@bigtablet/design-system 3.32.1 → 4.1.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/README.md +21 -2
- package/dist/esm/index.js +85 -0
- package/dist/esm/styles/a11y/index.js +1 -0
- package/dist/esm/styles/autofill.css +4 -0
- package/dist/esm/styles/border-width/index.js +1 -0
- package/dist/esm/styles/breakpoints/index.js +1 -0
- package/dist/esm/styles/colors/index.js +1 -0
- package/dist/esm/styles/css-vars.js +1 -0
- package/dist/esm/styles/elevation/index.js +1 -0
- package/dist/esm/styles/icon/index.js +1 -0
- package/dist/esm/styles/link.css +4 -0
- package/dist/esm/styles/motion/index.js +1 -0
- package/dist/esm/styles/opacity/index.js +1 -0
- package/dist/esm/styles/radius/index.js +1 -0
- package/dist/esm/styles/skeleton/index.js +1 -0
- package/dist/esm/styles/spacing/index.js +1 -0
- package/dist/esm/styles/theme.css +4 -0
- package/dist/esm/styles/typography/index.js +1 -0
- package/dist/esm/styles/z-index/index.js +1 -0
- package/dist/esm/ui/display/accordion/index.js +1 -0
- package/dist/esm/ui/display/accordion/style.css +4 -0
- package/dist/esm/ui/display/avatar/index.js +1 -0
- package/dist/esm/ui/display/avatar/style.css +4 -0
- package/dist/esm/ui/display/badge/index.js +1 -0
- package/dist/esm/ui/display/badge/style.css +4 -0
- package/dist/esm/ui/display/card/index.js +1 -0
- package/dist/esm/ui/display/card/style.css +4 -0
- package/dist/esm/ui/display/chip/index.js +1 -0
- package/dist/esm/ui/display/chip/style.css +4 -0
- package/dist/esm/ui/display/data-view/index.js +1 -0
- package/dist/esm/ui/display/data-view/style.css +4 -0
- package/dist/esm/ui/display/description-list/index.js +1 -0
- package/dist/esm/ui/display/description-list/style.css +4 -0
- package/dist/esm/ui/display/divider/index.js +1 -0
- package/dist/esm/ui/display/divider/style.css +4 -0
- package/dist/esm/ui/display/hero/index.js +1 -0
- package/dist/esm/ui/display/hero/style.css +4 -0
- package/dist/esm/ui/display/icon/index.js +1 -0
- package/dist/esm/ui/display/list-item/index.js +1 -0
- package/dist/esm/ui/display/list-item/style.css +4 -0
- package/dist/esm/ui/display/media-card/index.js +1 -0
- package/dist/esm/ui/display/media-card/style.css +4 -0
- package/dist/esm/ui/display/prose/index.js +1 -0
- package/dist/esm/ui/display/prose/style.css +4 -0
- package/dist/esm/ui/display/stat/index.js +1 -0
- package/dist/esm/ui/display/stat/style.css +4 -0
- package/dist/esm/ui/display/table/index.js +1 -0
- package/dist/esm/ui/display/table/style.css +4 -0
- package/dist/esm/ui/display/timeline/index.js +1 -0
- package/dist/esm/ui/display/timeline/style.css +4 -0
- package/dist/esm/ui/feedback/alert/index.js +1 -0
- package/dist/esm/ui/feedback/alert/style.css +4 -0
- package/dist/esm/ui/feedback/empty-state/index.js +1 -0
- package/dist/esm/ui/feedback/empty-state/style.css +4 -0
- package/dist/esm/ui/feedback/error-state/index.js +1 -0
- package/dist/esm/ui/feedback/error-state/style.css +4 -0
- package/dist/esm/ui/feedback/inline-alert/index.js +1 -0
- package/dist/esm/ui/feedback/inline-alert/style.css +4 -0
- package/dist/esm/ui/feedback/linear-progress/index.js +1 -0
- package/dist/esm/ui/feedback/linear-progress/style.css +4 -0
- package/dist/esm/ui/feedback/skeleton/index.js +1 -0
- package/dist/esm/ui/feedback/skeleton/style.css +4 -0
- package/dist/esm/ui/feedback/spinner/index.js +1 -0
- package/dist/esm/ui/feedback/spinner/style.css +4 -0
- package/dist/esm/ui/feedback/toast/index.js +1 -0
- package/dist/esm/ui/feedback/toast/style.css +4 -0
- package/dist/esm/ui/feedback/toast/use-toast.js +1 -0
- package/dist/esm/ui/feedback/top-loading/index.js +1 -0
- package/dist/esm/ui/feedback/top-loading/style.css +4 -0
- package/dist/esm/ui/forms/checkbox/index.js +1 -0
- package/dist/esm/ui/forms/checkbox/style.css +4 -0
- package/dist/esm/ui/forms/combobox/index.js +1 -0
- package/dist/esm/ui/forms/combobox/style.css +4 -0
- package/dist/esm/ui/forms/date-calendar/index.js +1 -0
- package/dist/esm/ui/forms/date-calendar/style.css +4 -0
- package/dist/esm/ui/forms/date-picker/index.js +1 -0
- package/dist/esm/ui/forms/date-picker/style.css +4 -0
- package/dist/esm/ui/forms/date-range-picker/index.js +1 -0
- package/dist/esm/ui/forms/date-range-picker/style.css +4 -0
- package/dist/esm/ui/forms/dropdown/index.js +1 -0
- package/dist/esm/ui/forms/dropdown/style.css +4 -0
- package/dist/esm/ui/forms/field/index.js +1 -0
- package/dist/esm/ui/forms/field/style.css +4 -0
- package/dist/esm/ui/forms/file/index.js +1 -0
- package/dist/esm/ui/forms/file/style.css +4 -0
- package/dist/esm/ui/forms/filter-bar/index.js +1 -0
- package/dist/esm/ui/forms/filter-bar/style.css +4 -0
- package/dist/esm/ui/forms/form/index.js +1 -0
- package/dist/esm/ui/forms/form/style.css +4 -0
- package/dist/esm/ui/forms/image-cropper/crop.util.js +1 -0
- package/dist/esm/ui/forms/image-cropper/index.js +1 -0
- package/dist/esm/ui/forms/image-cropper/style.css +4 -0
- package/dist/esm/ui/forms/otp-input/index.js +1 -0
- package/dist/esm/ui/forms/otp-input/style.css +4 -0
- package/dist/esm/ui/forms/radio/index.js +1 -0
- package/dist/esm/ui/forms/radio/style.css +4 -0
- package/dist/esm/ui/forms/radio-group/index.js +1 -0
- package/dist/esm/ui/forms/radio-group/style.css +4 -0
- package/dist/esm/ui/forms/segmented-control/index.js +1 -0
- package/dist/esm/ui/forms/segmented-control/style.css +4 -0
- package/dist/esm/ui/forms/tag-input/index.js +1 -0
- package/dist/esm/ui/forms/tag-input/style.css +4 -0
- package/dist/esm/ui/forms/textarea/index.js +1 -0
- package/dist/esm/ui/forms/textarea/style.css +4 -0
- package/dist/esm/ui/forms/textfield/index.js +1 -0
- package/dist/esm/ui/forms/textfield/style.css +4 -0
- package/dist/esm/ui/forms/time-picker/index.js +1 -0
- package/dist/esm/ui/forms/time-picker/style.css +4 -0
- package/dist/esm/ui/forms/toggle/index.js +1 -0
- package/dist/esm/ui/forms/toggle/style.css +4 -0
- package/dist/esm/ui/general/button/index.js +1 -0
- package/dist/esm/ui/general/button/style.css +4 -0
- package/dist/esm/ui/general/copy-button/index.js +1 -0
- package/dist/esm/ui/general/copy-button/style.css +4 -0
- package/dist/esm/ui/general/icon-button/index.js +1 -0
- package/dist/esm/ui/general/icon-button/style.css +4 -0
- package/dist/esm/ui/layout/app-shell/index.js +1 -0
- package/dist/esm/ui/layout/app-shell/style.css +4 -0
- package/dist/esm/ui/layout/container/index.js +1 -0
- package/dist/esm/ui/layout/container/style.css +4 -0
- package/dist/esm/ui/layout/grid/index.js +1 -0
- package/dist/esm/ui/layout/grid/style.css +4 -0
- package/dist/esm/ui/layout/page-header/index.js +1 -0
- package/dist/esm/ui/layout/page-header/style.css +4 -0
- package/dist/esm/ui/layout/section/index.js +1 -0
- package/dist/esm/ui/layout/section/style.css +4 -0
- package/dist/esm/ui/layout/stack/index.js +1 -0
- package/dist/esm/ui/layout/stack/style.css +4 -0
- package/dist/esm/ui/navigation/bottom-nav/index.js +1 -0
- package/dist/esm/ui/navigation/bottom-nav/style.css +4 -0
- package/dist/esm/ui/navigation/breadcrumb/index.js +1 -0
- package/dist/esm/ui/navigation/breadcrumb/style.css +4 -0
- package/dist/esm/ui/navigation/menu/index.js +1 -0
- package/dist/esm/ui/navigation/menu/style.css +4 -0
- package/dist/esm/ui/navigation/nav-bar/index.js +1 -0
- package/dist/esm/ui/navigation/nav-bar/style.css +4 -0
- package/dist/esm/ui/navigation/pagination/index.js +1 -0
- package/dist/esm/ui/navigation/pagination/style.css +4 -0
- package/dist/esm/ui/navigation/sidebar/index.js +1 -0
- package/dist/esm/ui/navigation/sidebar/style.css +4 -0
- package/dist/esm/ui/navigation/stepper/index.js +1 -0
- package/dist/esm/ui/navigation/stepper/style.css +4 -0
- package/dist/esm/ui/navigation/tabs/index.js +1 -0
- package/dist/esm/ui/navigation/tabs/style.css +4 -0
- package/dist/esm/ui/overlay/drawer/index.js +1 -0
- package/dist/esm/ui/overlay/drawer/style.css +4 -0
- package/dist/esm/ui/overlay/modal/index.js +1 -0
- package/dist/esm/ui/overlay/modal/style.css +4 -0
- package/dist/esm/ui/overlay/popover/index.js +1 -0
- package/dist/esm/ui/overlay/popover/style.css +4 -0
- package/dist/esm/ui/overlay/tooltip/index.js +1 -0
- package/dist/esm/ui/overlay/tooltip/style.css +4 -0
- package/dist/esm/ui/system/locale-provider/index.js +1 -0
- package/dist/esm/ui/system/locale-provider/messages.js +1 -0
- package/dist/esm/ui/system/theme-provider/index.js +1 -0
- package/dist/esm/utils/cn.js +1 -0
- package/dist/esm/utils/hangul-search.js +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/key-activation.js +1 -0
- package/dist/esm/utils/overlay-stack.js +1 -0
- package/dist/esm/utils/polymorphic.js +0 -0
- package/dist/esm/utils/safe-html.js +0 -0
- package/dist/esm/utils/scroll-lock.js +1 -0
- package/dist/esm/utils/split-aria-props.js +1 -0
- package/dist/esm/utils/use-anchored-position.js +1 -0
- package/dist/esm/utils/use-clipboard.js +1 -0
- package/dist/esm/utils/use-focus-trap.js +1 -0
- package/dist/esm/utils/use-is-mounted.js +1 -0
- package/dist/esm/utils/use-listbox-popup.js +1 -0
- package/dist/esm/utils/use-presence.js +1 -0
- package/dist/esm/utils/use-reduced-motion.js +1 -0
- package/dist/esm/utils/use-safe-layout-effect.js +1 -0
- package/dist/esm/utils/use-top-inset.js +1 -0
- package/dist/index.css +3 -7818
- package/dist/index.d.ts +192 -244
- package/dist/styles/a11y/_index.scss +2 -28
- package/dist/styles/a11y/_tokens.scss +25 -0
- package/dist/styles/border-width/_index.scss +2 -14
- package/dist/styles/border-width/_tokens.scss +9 -0
- package/dist/styles/breakpoints/_index.scss +2 -4
- package/dist/styles/breakpoints/_tokens.scss +6 -0
- package/dist/styles/colors/_index.scss +2 -195
- package/dist/styles/colors/_tokens.scss +182 -0
- package/dist/styles/elevation/_index.scss +2 -9
- package/dist/styles/elevation/_tokens.scss +7 -0
- package/dist/styles/icon/_index.scss +2 -5
- package/dist/styles/icon/_tokens.scss +7 -0
- package/dist/styles/layout/_index.scss +2 -1
- package/dist/styles/layout/_tokens.scss +4 -0
- package/dist/styles/motion/_index.scss +31 -56
- package/dist/styles/motion/_tokens.scss +52 -0
- package/dist/styles/opacity/_index.scss +2 -12
- package/dist/styles/opacity/_tokens.scss +12 -0
- package/dist/styles/radius/_index.scss +2 -7
- package/dist/styles/radius/_tokens.scss +19 -0
- package/dist/styles/skeleton/_index.scss +2 -28
- package/dist/styles/skeleton/_tokens.scss +23 -0
- package/dist/styles/spacing/_index.scss +2 -20
- package/dist/styles/spacing/_tokens.scss +43 -0
- package/dist/styles/typography/_index.scss +2 -118
- package/dist/styles/typography/_tokens.scss +93 -0
- package/dist/styles/z-index/_index.scss +2 -24
- package/dist/styles/z-index/_tokens.scss +27 -0
- package/dist/tailwind.css +112 -0
- package/dist/vanilla/bigtablet.min.css +1 -1
- package/dist/vanilla/bigtablet.min.js +1 -1
- package/docs/AGENT_GUIDE.md +51 -52
- package/package.json +15 -10
- package/dist/index.js +0 -8045
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { HTMLAttributes, Ref } from 'react';
|
|
3
|
-
import * as _react_spring_web from '@react-spring/web';
|
|
4
3
|
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
5
4
|
export { LucideIcon, LucideProps } from 'lucide-react';
|
|
6
5
|
|
|
@@ -158,56 +157,6 @@ declare function useFocusTrap(containerRef: React$1.RefObject<HTMLElement | null
|
|
|
158
157
|
*/
|
|
159
158
|
declare function useReducedMotion(): boolean;
|
|
160
159
|
|
|
161
|
-
/**
|
|
162
|
-
* 마우스 hover 시 spring 기반 lift 효과를 만든다. 카드/CTA 강조에 사용.
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```tsx
|
|
166
|
-
* const { style, bind } = useSpringHover();
|
|
167
|
-
* return <animated.div style={style} {...bind}>...</animated.div>;
|
|
168
|
-
* ```
|
|
169
|
-
*/
|
|
170
|
-
declare function useSpringHover({ scale, lift, }?: {
|
|
171
|
-
/** hover 시 scale 비율 (기본 1.02) */
|
|
172
|
-
scale?: number;
|
|
173
|
-
/** hover 시 Y축 이동 px (기본 -2 = 살짝 떠오름) */
|
|
174
|
-
lift?: number;
|
|
175
|
-
}): {
|
|
176
|
-
style: {
|
|
177
|
-
transform: _react_spring_web.SpringValue<string>;
|
|
178
|
-
};
|
|
179
|
-
bind: {
|
|
180
|
-
onMouseEnter: () => void;
|
|
181
|
-
onMouseLeave: () => void;
|
|
182
|
-
onFocus: () => void;
|
|
183
|
-
onBlur: () => void;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* 컴포넌트가 마운트/언마운트되거나 visible 상태가 토글될 때 자연스러운 진입/퇴출을 만든다.
|
|
189
|
-
* Vercel/Linear 스타일의 부드러운 spring 모션.
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```tsx
|
|
193
|
-
* const style = useSpringPresence({ visible: isOpen });
|
|
194
|
-
* return <animated.div style={style}>...</animated.div>;
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
declare function useSpringPresence({ visible, from, onExitComplete, onProgress, }: {
|
|
198
|
-
/** 보이는 상태인지 - false면 사라짐 모션 */
|
|
199
|
-
visible: boolean;
|
|
200
|
-
/** 진입 시 시작 transform (기본: 아래에서 살짝 올라옴) */
|
|
201
|
-
from?: string;
|
|
202
|
-
/** exit 모션 완료 시 호출 - 부모에서 unmount 트리거용 */
|
|
203
|
-
onExitComplete?: () => void;
|
|
204
|
-
/** 프레임마다 현재 opacity(0~1). 오버레이가 잠금에 딤 진행도를 보고할 때 쓴다(#583). */
|
|
205
|
-
onProgress?: (progress: number) => void;
|
|
206
|
-
}): {
|
|
207
|
-
opacity: _react_spring_web.SpringValue<number>;
|
|
208
|
-
transform: _react_spring_web.SpringValue<string>;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
160
|
/** 팝업 목록의 한 항목이 최소한 갖춰야 하는 모양. 라벨·값 등 나머지는 소비자 몫이다. */
|
|
212
161
|
interface ListboxItem {
|
|
213
162
|
/** 비활성 항목은 키보드 이동에서 건너뛰고 선택되지 않는다 */
|
|
@@ -317,8 +266,6 @@ interface AccordionProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLD
|
|
|
317
266
|
openKeys?: string[];
|
|
318
267
|
/** 펼침/접힘 콜백 (canonical). 열린 키 배열 전달 */
|
|
319
268
|
onValueChange?: (openKeys: string[]) => void;
|
|
320
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
321
|
-
onChange?: (openKeys: string[]) => void;
|
|
322
269
|
}
|
|
323
270
|
/**
|
|
324
271
|
* 펼침/접힘 영역. FAQ, 설정 그룹, details 패턴.
|
|
@@ -328,7 +275,7 @@ interface AccordionProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLD
|
|
|
328
275
|
* <Accordion items={faqItems} multiple />
|
|
329
276
|
* ```
|
|
330
277
|
*/
|
|
331
|
-
declare const Accordion: ({ items, multiple, defaultOpenKeys, openKeys: controlledKeys, onValueChange,
|
|
278
|
+
declare const Accordion: ({ items, multiple, defaultOpenKeys, openKeys: controlledKeys, onValueChange, className, ...props }: AccordionProps) => React$1.JSX.Element;
|
|
332
279
|
|
|
333
280
|
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
334
281
|
type AvatarShape = "circle" | "square";
|
|
@@ -356,13 +303,13 @@ interface AvatarProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLSpanEleme
|
|
|
356
303
|
*/
|
|
357
304
|
declare const Avatar: ({ src, name, size, shape, bgColor, className, style, ...props }: AvatarProps) => React$1.JSX.Element;
|
|
358
305
|
|
|
359
|
-
type
|
|
306
|
+
type BadgeTone = "accent" | "neutral" | "info" | "success" | "warning" | "error";
|
|
360
307
|
type BadgeShape = "dot" | "count" | "label";
|
|
361
308
|
type BadgeSize = "sm" | "md" | "lg";
|
|
362
309
|
type BadgeAppearance = "solid" | "soft";
|
|
363
310
|
interface BadgeProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>> {
|
|
364
|
-
/**
|
|
365
|
-
|
|
311
|
+
/** 의미 색 (기본값: "accent") */
|
|
312
|
+
tone?: BadgeTone;
|
|
366
313
|
/** 모양 (기본값: "label"). dot=점만 / count=숫자 / label=텍스트 */
|
|
367
314
|
shape?: BadgeShape;
|
|
368
315
|
/**
|
|
@@ -388,13 +335,13 @@ interface BadgeProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLSpanElemen
|
|
|
388
335
|
*
|
|
389
336
|
* @example
|
|
390
337
|
* ```tsx
|
|
391
|
-
* <Badge shape="dot"
|
|
338
|
+
* <Badge shape="dot" tone="error" />
|
|
392
339
|
* <Badge shape="count" count={5} />
|
|
393
340
|
* <Badge>New</Badge>
|
|
394
|
-
* <Badge
|
|
341
|
+
* <Badge tone="success" appearance="soft">+5%</Badge>
|
|
395
342
|
* ```
|
|
396
343
|
*/
|
|
397
|
-
declare const Badge: ({
|
|
344
|
+
declare const Badge: ({ tone, shape, size, appearance, count, max, className, children, ...props }: BadgeProps) => React$1.JSX.Element;
|
|
398
345
|
|
|
399
346
|
interface DescriptionListItem {
|
|
400
347
|
/** 항목 이름 */
|
|
@@ -490,9 +437,10 @@ declare const Timeline: ({ items, className, ref, ...props }: TimelineProps) =>
|
|
|
490
437
|
|
|
491
438
|
interface EmptyStateProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>>, "title"> {
|
|
492
439
|
/**
|
|
493
|
-
* 일러스트 영역 (아이콘/이미지 등).
|
|
494
|
-
*
|
|
495
|
-
*
|
|
440
|
+
* 일러스트 영역 (아이콘/이미지 등). lucide 아이콘은 `size` 에 맞는 원형 배지에 올라가고 크기가
|
|
441
|
+
* 고정된다(아이콘의 `size` prop 무시). 이미지·직접 그린 svg 는 그대로 렌더된다.
|
|
442
|
+
* **장식 전용** - `aria-hidden="true"` 래퍼로 접근성 트리에서 제외된다. 포커스 가능한 요소
|
|
443
|
+
* (버튼/링크 등)를 넣으면 포커스는 가는데 보조기기엔 없는 요소가 되므로(WCAG 4.1.2) `action` 을 쓸 것.
|
|
496
444
|
*/
|
|
497
445
|
illustration?: React$1.ReactNode;
|
|
498
446
|
/** 제목 */
|
|
@@ -517,7 +465,7 @@ interface EmptyStateProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTML
|
|
|
517
465
|
* @example
|
|
518
466
|
* ```tsx
|
|
519
467
|
* <EmptyState
|
|
520
|
-
* illustration={<InboxIcon
|
|
468
|
+
* illustration={<InboxIcon />}
|
|
521
469
|
* title="받은 메일이 없습니다"
|
|
522
470
|
* description="새 메일이 오면 여기 표시됩니다."
|
|
523
471
|
* action={<Button>새 메일 작성</Button>}
|
|
@@ -533,8 +481,9 @@ interface ErrorStateProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTML
|
|
|
533
481
|
/** 보조 설명 */
|
|
534
482
|
description?: React$1.ReactNode;
|
|
535
483
|
/**
|
|
536
|
-
* 아이콘/일러스트 (미지정 시 기본 경고 아이콘. `null` 로 숨김).
|
|
537
|
-
* `
|
|
484
|
+
* 아이콘/일러스트 (미지정 시 기본 경고 아이콘. `null` 로 숨김). lucide 아이콘은 `variant` 에 맞는 원형
|
|
485
|
+
* 배지에 올라가고 크기가 고정된다(아이콘의 `size` prop 무시). 이미지·직접 그린 svg 는 그대로 렌더된다.
|
|
486
|
+
* **장식 전용** - `aria-hidden="true"` 래퍼로 접근성 트리에서 제외된다. 래퍼는 필수다: 기본 아이콘이
|
|
538
487
|
* 이름 없는 bare lucide svg 라서, 빼면 `role="alert"` 이 이름 없는 그래픽까지 읽는다.
|
|
539
488
|
* 포커스 가능한 요소는 `action` 을 쓸 것 (WCAG 4.1.2).
|
|
540
489
|
*/
|
|
@@ -543,8 +492,8 @@ interface ErrorStateProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTML
|
|
|
543
492
|
action?: React$1.ReactNode;
|
|
544
493
|
/**
|
|
545
494
|
* 레이아웃 모드 (기본 "page").
|
|
546
|
-
* - `page`: 전체 화면/영역 채움 - error boundary fallback.
|
|
547
|
-
* - `widget`: 인라인 컴팩트 - 위젯/카드 내부 error fallback.
|
|
495
|
+
* - `page`: 전체 화면/영역 채움 - error boundary fallback. 배지 96 / 아이콘 48 + 넉넉한 패딩 + min-height.
|
|
496
|
+
* - `widget`: 인라인 컴팩트 - 위젯/카드 내부 error fallback. 배지 40 / 아이콘 20 + 좁은 패딩.
|
|
548
497
|
*/
|
|
549
498
|
variant?: ErrorStateVariant;
|
|
550
499
|
}
|
|
@@ -598,10 +547,7 @@ interface InlineAlertProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTM
|
|
|
598
547
|
* </InlineAlert>
|
|
599
548
|
* ```
|
|
600
549
|
*/
|
|
601
|
-
declare const InlineAlert: {
|
|
602
|
-
({ tone, title, children, icon, action, onDismiss, dismissLabel: dismissLabelProp, className, ...props }: InlineAlertProps): React$1.JSX.Element;
|
|
603
|
-
displayName: string;
|
|
604
|
-
};
|
|
550
|
+
declare const InlineAlert: ({ tone, title, children, icon, action, onDismiss, dismissLabel: dismissLabelProp, className, ...props }: InlineAlertProps) => React$1.JSX.Element;
|
|
605
551
|
|
|
606
552
|
interface BottomNavProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLElement>>, "onChange"> {
|
|
607
553
|
/** 스크린 리더 레이블 (기본 "주요 메뉴") */
|
|
@@ -738,8 +684,6 @@ interface NavBarLocaleConfig {
|
|
|
738
684
|
options: NavBarLocaleOption[];
|
|
739
685
|
/** locale 변경 콜백 (canonical) */
|
|
740
686
|
onValueChange?: (next: string) => void;
|
|
741
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
742
|
-
onChange?: (next: string) => void;
|
|
743
687
|
/** 표시 라벨 - 기본은 옵션의 label, 미지정 시 short code 표시 */
|
|
744
688
|
hideLabel?: boolean;
|
|
745
689
|
/**
|
|
@@ -789,7 +733,7 @@ interface NavBarProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLElement>>
|
|
|
789
733
|
* brand={<OrgButton />}
|
|
790
734
|
* searchSlot={<TextField placeholder="검색" />}
|
|
791
735
|
* actions={<IconButton icon={Calendar} aria-label="캘린더" />}
|
|
792
|
-
* locale={{ current: "ko", options: [...],
|
|
736
|
+
* locale={{ current: "ko", options: [...], onValueChange: setLocale }}
|
|
793
737
|
* profile={<Avatar name="박상민" />}
|
|
794
738
|
* />
|
|
795
739
|
* ```
|
|
@@ -938,10 +882,7 @@ interface StepperProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLOLi
|
|
|
938
882
|
* />
|
|
939
883
|
* ```
|
|
940
884
|
*/
|
|
941
|
-
declare const Stepper: {
|
|
942
|
-
({ steps, current, orientation, onStepClick, className, ref, ...props }: StepperProps): React$1.JSX.Element;
|
|
943
|
-
displayName: string;
|
|
944
|
-
};
|
|
885
|
+
declare const Stepper: ({ steps, current, orientation, onStepClick, className, ref, ...props }: StepperProps) => React$1.JSX.Element;
|
|
945
886
|
|
|
946
887
|
type TabsVariant = "line" | "fills";
|
|
947
888
|
type TabsSize = "sm" | "md";
|
|
@@ -1029,10 +970,7 @@ interface PopoverProps {
|
|
|
1029
970
|
* />
|
|
1030
971
|
* ```
|
|
1031
972
|
*/
|
|
1032
|
-
declare const Popover: {
|
|
1033
|
-
({ trigger, content, placement, open: openProp, defaultOpen, onOpenChange, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, }: PopoverProps): React$1.JSX.Element;
|
|
1034
|
-
displayName: string;
|
|
1035
|
-
};
|
|
973
|
+
declare const Popover: ({ trigger, content, placement, open: openProp, defaultOpen, onOpenChange, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, }: PopoverProps) => React$1.JSX.Element;
|
|
1036
974
|
|
|
1037
975
|
type TooltipPlacement = "top" | "bottom" | "left" | "right";
|
|
1038
976
|
interface TooltipProps {
|
|
@@ -1050,7 +988,7 @@ interface TooltipProps {
|
|
|
1050
988
|
children: React$1.ReactElement;
|
|
1051
989
|
}
|
|
1052
990
|
/**
|
|
1053
|
-
* hover/focus 시 추가 정보를 보여주는 툴팁.
|
|
991
|
+
* hover/focus 시 추가 정보를 보여주는 툴팁. CSS fade+slide 진입/퇴장.
|
|
1054
992
|
*
|
|
1055
993
|
* @example
|
|
1056
994
|
* ```tsx
|
|
@@ -1062,19 +1000,24 @@ interface TooltipProps {
|
|
|
1062
1000
|
declare const Tooltip: ({ content, placement, delay, disabled, children, }: TooltipProps) => React$1.JSX.Element;
|
|
1063
1001
|
|
|
1064
1002
|
declare const a11y: {
|
|
1065
|
-
|
|
1066
|
-
readonly focusRingError: "0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C";
|
|
1067
|
-
readonly focusRingSuccess: "0 0 0 2px #FFFFFF, 0 0 0 4px #047857";
|
|
1003
|
+
/** a11y 최소 권장 */
|
|
1068
1004
|
readonly tapMinSize: "44px";
|
|
1069
1005
|
readonly tapTarget: {
|
|
1006
|
+
/** 데스크탑 인라인 폼, 컴팩트 UI. 인터랙티브 컨트롤의 하한이다 - 터치 입력이 있는 화면에서는 responsive_height 로 승급할 것 - 예외: 마우스 전용 내부 도구(admin 등)는 28px 까지 허용 */
|
|
1070
1007
|
readonly dense: "32px";
|
|
1008
|
+
/** 데스크탑 기본 */
|
|
1071
1009
|
readonly compact: "40px";
|
|
1010
|
+
/** 모바일/터치 기본 (44 초과) */
|
|
1072
1011
|
readonly comfortable: "48px";
|
|
1012
|
+
/** 강조 CTA, 풀스크린 액션 */
|
|
1073
1013
|
readonly spacious: "56px";
|
|
1074
1014
|
};
|
|
1015
|
+
readonly focusRing: "0 0 0 2px #FFFFFF, 0 0 0 4px #121212";
|
|
1016
|
+
readonly focusRingError: "0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C";
|
|
1017
|
+
readonly focusRingSuccess: "0 0 0 2px #FFFFFF, 0 0 0 4px #047857";
|
|
1075
1018
|
};
|
|
1076
|
-
/** 크기 단계가 있는 컨트롤·아바타의 높이 - SCSS `$control_height_*` 와 같다 (값은 `a11y.tapTarget`) */
|
|
1077
1019
|
declare const controlHeight: {
|
|
1020
|
+
/** 컨트롤·아바타처럼 크기 단계가 있는 요소는 픽셀을 직접 쓰지 말고 이 단계를 참조한다. 값은 위 tap target 과 같다 - 이름만 "크기 단계" 로 읽히게 붙인 것이라 responsive_height 의 승급 규칙(sm→md→lg→xl)도 그대로 맞물린다. */
|
|
1078
1021
|
readonly sm: "32px";
|
|
1079
1022
|
readonly md: "40px";
|
|
1080
1023
|
readonly lg: "48px";
|
|
@@ -1114,33 +1057,61 @@ declare const baseColors: {
|
|
|
1114
1057
|
readonly neutral700: "#666666";
|
|
1115
1058
|
readonly neutral800: "#333333";
|
|
1116
1059
|
readonly neutral900: "#121212";
|
|
1060
|
+
/** dark panel/card bg (Vercel-style) */
|
|
1117
1061
|
readonly neutral925: "#141414";
|
|
1062
|
+
/** darkest page bg (Vercel-style) */
|
|
1118
1063
|
readonly neutral950: "#0A0A0A";
|
|
1064
|
+
/** Text caption - AA 전용값 (neutral scale 과 분리: neutral_500/600 은 border-hover 등 재사용되므로 caption 만 따로) on #fff 5.0:1 / on #F4F4F4 4.57:1 (WCAG AA) */
|
|
1119
1065
|
readonly textCaptionLight: "#6F6F6F";
|
|
1066
|
+
/** on #0A0A0A 5.0:1 / on #141414 4.66:1 (WCAG AA) */
|
|
1120
1067
|
readonly textCaptionDark: "#808080";
|
|
1068
|
+
/** Status - light mode default (darkened for AA on #fff text, 5+:1) 이전 값 (#EF4444 등) 은 #fff 텍스트 조합 시 AA 미달 (2.0~3.7:1) - Tailwind 700 계열로 교체. red-700, with #fff = 6.4:1 */
|
|
1121
1069
|
readonly statusError: "#B91C1C";
|
|
1070
|
+
/** green-700, with #fff = 5.5:1 */
|
|
1122
1071
|
readonly statusSuccess: "#047857";
|
|
1072
|
+
/** amber-700, with #fff = 5.1:1 */
|
|
1123
1073
|
readonly statusWarning: "#B45309";
|
|
1074
|
+
/** blue-700, with #fff = 6.5:1 */
|
|
1124
1075
|
readonly statusInfo: "#1D4ED8";
|
|
1125
|
-
|
|
1126
|
-
readonly statusSuccessDarkText: "#4ADE80";
|
|
1127
|
-
readonly statusWarningDarkText: "#FBBF24";
|
|
1128
|
-
readonly statusInfoDarkText: "#60A5FA";
|
|
1076
|
+
/** Status container - light mode (연한 tint 배경) red-100 */
|
|
1129
1077
|
readonly statusErrorContainerLight: "#FEE2E2";
|
|
1078
|
+
/** green-100 */
|
|
1130
1079
|
readonly statusSuccessContainerLight: "#DCFCE7";
|
|
1080
|
+
/** amber-100 */
|
|
1131
1081
|
readonly statusWarningContainerLight: "#FEF3C7";
|
|
1082
|
+
/** blue-100 */
|
|
1132
1083
|
readonly statusInfoContainerLight: "#DBEAFE";
|
|
1084
|
+
/** Status container - dark mode (deep alpha tint, dark neutral bg 위 식별 가능) Sass rgba(hex, alpha) - 다른 토큰 정의와 hex 일관성 유지. red-900 @ 35% */
|
|
1133
1085
|
readonly statusErrorContainerDark: "rgba(127, 29, 29, 0.35)";
|
|
1086
|
+
/** green-900 @ 35% */
|
|
1134
1087
|
readonly statusSuccessContainerDark: "rgba(6, 78, 59, 0.35)";
|
|
1088
|
+
/** amber-900 @ 35% */
|
|
1135
1089
|
readonly statusWarningContainerDark: "rgba(120, 53, 15, 0.35)";
|
|
1090
|
+
/** blue-900 @ 35% */
|
|
1136
1091
|
readonly statusInfoContainerDark: "rgba(30, 58, 138, 0.35)";
|
|
1092
|
+
/** Status on-container - dark mode (tint 위에서 보일 만한 밝은 색) red-300 */
|
|
1137
1093
|
readonly statusErrorOnContainerDark: "#FCA5A5";
|
|
1094
|
+
/** green-300 */
|
|
1138
1095
|
readonly statusSuccessOnContainerDark: "#86EFAC";
|
|
1096
|
+
/** amber-300 */
|
|
1139
1097
|
readonly statusWarningOnContainerDark: "#FCD34D";
|
|
1098
|
+
/** blue-300 */
|
|
1140
1099
|
readonly statusInfoOnContainerDark: "#93C5FD";
|
|
1100
|
+
/** Status - dark mode 텍스트 / surface 위 직접 사용용 (brightened) dark canvas (neutral_950 #0A0A0A lum ~0.001) 위에서 6+:1 이상 보장. red-400, on neutral_950 ~8.2:1 */
|
|
1101
|
+
readonly statusErrorDarkText: "#F87171";
|
|
1102
|
+
/** green-400, on neutral_950 ~12.6:1 */
|
|
1103
|
+
readonly statusSuccessDarkText: "#4ADE80";
|
|
1104
|
+
/** amber-400, on neutral_950 ~15.7:1 */
|
|
1105
|
+
readonly statusWarningDarkText: "#FBBF24";
|
|
1106
|
+
/** amber-600, with #fff = 3.19:1 - icons and bars only (non-text 3:1). Fails 4.5:1, never use for text */
|
|
1107
|
+
readonly statusWarningGraphic: "#D97706";
|
|
1108
|
+
/** blue-400, on neutral_950 ~9.4:1 */
|
|
1109
|
+
readonly statusInfoDarkText: "#60A5FA";
|
|
1110
|
+
/** Skeleton - light mode (off-white grays, not in neutral scale) */
|
|
1141
1111
|
readonly skeletonBase: "#F3F3F3";
|
|
1142
1112
|
readonly skeletonWave: "#F0F0F0";
|
|
1143
1113
|
readonly skeletonHighlight: "#FAFAFA";
|
|
1114
|
+
/** Alpha */
|
|
1144
1115
|
readonly alphaBlack5: "rgba(0, 0, 0, 0.05)";
|
|
1145
1116
|
readonly alphaBlack8: "rgba(0, 0, 0, 0.08)";
|
|
1146
1117
|
readonly alphaBlack12: "rgba(26, 26, 26, 0.12)";
|
|
@@ -1153,11 +1124,13 @@ declare const baseColors: {
|
|
|
1153
1124
|
};
|
|
1154
1125
|
declare const colors: {
|
|
1155
1126
|
readonly brand: {
|
|
1127
|
+
/** Brand */
|
|
1156
1128
|
readonly primary: "#121212";
|
|
1157
1129
|
readonly onPrimary: "#FFFFFF";
|
|
1158
1130
|
readonly primaryContainer: "rgba(0, 0, 0, 0.05)";
|
|
1159
1131
|
};
|
|
1160
1132
|
readonly text: {
|
|
1133
|
+
/** Text */
|
|
1161
1134
|
readonly heading: "#121212";
|
|
1162
1135
|
readonly body: "#666666";
|
|
1163
1136
|
readonly caption: "#6F6F6F";
|
|
@@ -1166,6 +1139,7 @@ declare const colors: {
|
|
|
1166
1139
|
readonly disabled: "rgba(26, 26, 26, 0.38)";
|
|
1167
1140
|
};
|
|
1168
1141
|
readonly bg: {
|
|
1142
|
+
/** Background */
|
|
1169
1143
|
readonly solid: "#FFFFFF";
|
|
1170
1144
|
readonly solidDim: "#F4F4F4";
|
|
1171
1145
|
readonly additive: "rgba(0, 0, 0, 0.05)";
|
|
@@ -1174,6 +1148,7 @@ declare const colors: {
|
|
|
1174
1148
|
readonly inverseSurface: "#333333";
|
|
1175
1149
|
};
|
|
1176
1150
|
readonly state: {
|
|
1151
|
+
/** State */
|
|
1177
1152
|
readonly hoverOnLight: "rgba(0, 0, 0, 0.05)";
|
|
1178
1153
|
readonly pressedOnLight: "rgba(26, 26, 26, 0.12)";
|
|
1179
1154
|
readonly focusOnLight: "rgba(0, 0, 0, 0.08)";
|
|
@@ -1182,6 +1157,7 @@ declare const colors: {
|
|
|
1182
1157
|
readonly focusOnDark: "rgba(255, 255, 255, 0.08)";
|
|
1183
1158
|
};
|
|
1184
1159
|
readonly border: {
|
|
1160
|
+
/** Border */
|
|
1185
1161
|
readonly default: "#E5E5E5";
|
|
1186
1162
|
readonly hover: "#B3B3B3";
|
|
1187
1163
|
readonly subtle: "rgba(0, 0, 0, 0.08)";
|
|
@@ -1189,36 +1165,46 @@ declare const colors: {
|
|
|
1189
1165
|
readonly disabled: "#F2F2F2";
|
|
1190
1166
|
};
|
|
1191
1167
|
readonly status: {
|
|
1168
|
+
/** Status - solid (light=darkened for AA, dark=동일) */
|
|
1192
1169
|
readonly error: "#B91C1C";
|
|
1193
1170
|
readonly success: "#047857";
|
|
1194
1171
|
readonly warning: "#B45309";
|
|
1195
1172
|
readonly info: "#1D4ED8";
|
|
1173
|
+
/** Status - on-default (solid bg 위 텍스트) */
|
|
1196
1174
|
readonly errorOnDefault: "#FFFFFF";
|
|
1197
1175
|
readonly successOnDefault: "#FFFFFF";
|
|
1198
1176
|
readonly warningOnDefault: "#FFFFFF";
|
|
1199
1177
|
readonly infoOnDefault: "#FFFFFF";
|
|
1178
|
+
/** Status - container (tint 배경, soft variant 용) */
|
|
1200
1179
|
readonly errorContainer: "#FEE2E2";
|
|
1201
1180
|
readonly successContainer: "#DCFCE7";
|
|
1202
1181
|
readonly warningContainer: "#FEF3C7";
|
|
1203
1182
|
readonly infoContainer: "#DBEAFE";
|
|
1183
|
+
/** Status - on-container (tint 위 텍스트) */
|
|
1204
1184
|
readonly errorOnContainer: "#B91C1C";
|
|
1205
1185
|
readonly successOnContainer: "#047857";
|
|
1206
1186
|
readonly warningOnContainer: "#B45309";
|
|
1207
1187
|
readonly infoOnContainer: "#1D4ED8";
|
|
1188
|
+
/** Status - on-surface (앱 surface 위 직접 텍스트, light/dark 자동 swap) */
|
|
1208
1189
|
readonly errorOnSurface: "#B91C1C";
|
|
1209
1190
|
readonly successOnSurface: "#047857";
|
|
1210
1191
|
readonly warningOnSurface: "#B45309";
|
|
1192
|
+
/** Warning icons and progress bars on a surface. amber-700 (warning) reads brown next to error red, and graphics only need 3:1 - not for text */
|
|
1193
|
+
readonly warningGraphic: "#D97706";
|
|
1211
1194
|
readonly infoOnSurface: "#1D4ED8";
|
|
1212
1195
|
};
|
|
1213
1196
|
readonly accent: {
|
|
1197
|
+
/** Accent */
|
|
1214
1198
|
readonly subtle: "rgba(0, 0, 0, 0.05)";
|
|
1215
1199
|
readonly muted: "rgba(26, 26, 26, 0.12)";
|
|
1216
1200
|
readonly light: "#B3B3B3";
|
|
1201
|
+
/** light 는 검정(brand), dark 는 흰색으로 반전 */
|
|
1217
1202
|
readonly default: "#121212";
|
|
1218
1203
|
readonly strong: "#121212";
|
|
1219
1204
|
readonly onSurface: "#FFFFFF";
|
|
1220
1205
|
};
|
|
1221
1206
|
readonly skeleton: {
|
|
1207
|
+
/** CSS custom property 기반 - `[data-theme="dark"]` 에서 자동 전환. fallback 값은 standalone import (colors 미포함) 시 light 동작 보장. */
|
|
1222
1208
|
readonly base: "#F3F3F3";
|
|
1223
1209
|
readonly wave: "#F0F0F0";
|
|
1224
1210
|
readonly highlight: "#FAFAFA";
|
|
@@ -1235,9 +1221,12 @@ type VarsOf<T> = {
|
|
|
1235
1221
|
* light 색이 남는다. 같은 키로 이쪽을 쓰면 브라우저가 현재 테마의 값을 고른다. `style.css` 가 로드돼
|
|
1236
1222
|
* 있어야 변수가 정의된다.
|
|
1237
1223
|
*
|
|
1224
|
+
* `radius` · `spacing` · `fontFamily` 는 테마와 무관하지만 사용처가 `:root` 에서 덮어쓸 수 있다 - 숫자 export
|
|
1225
|
+
* (`radius.md` = `"8px"`) 대신 이쪽을 쓰면 그 덮어쓴 값을 DS 컴포넌트와 같이 따라간다.
|
|
1226
|
+
*
|
|
1238
1227
|
* @example
|
|
1239
1228
|
* ```tsx
|
|
1240
|
-
* <div style={{ color: cssVars.colors.text.caption,
|
|
1229
|
+
* <div style={{ color: cssVars.colors.text.caption, borderRadius: cssVars.radius.md }} />
|
|
1241
1230
|
* ```
|
|
1242
1231
|
*/
|
|
1243
1232
|
declare const cssVars: {
|
|
@@ -1254,6 +1243,36 @@ declare const cssVars: {
|
|
|
1254
1243
|
focusRingError: string;
|
|
1255
1244
|
focusRingSuccess: string;
|
|
1256
1245
|
};
|
|
1246
|
+
readonly radius: VarsOf<{
|
|
1247
|
+
readonly none: "0px";
|
|
1248
|
+
readonly xs: "4px";
|
|
1249
|
+
readonly sm: "6px";
|
|
1250
|
+
readonly md: "8px";
|
|
1251
|
+
readonly lg: "12px";
|
|
1252
|
+
readonly xl: "16px";
|
|
1253
|
+
readonly full: "9999px";
|
|
1254
|
+
}>;
|
|
1255
|
+
readonly spacing: VarsOf<{
|
|
1256
|
+
readonly "0": "0px";
|
|
1257
|
+
readonly "1": "1px";
|
|
1258
|
+
readonly "2": "2px";
|
|
1259
|
+
readonly "3": "3px";
|
|
1260
|
+
readonly "4": "4px";
|
|
1261
|
+
readonly "6": "6px";
|
|
1262
|
+
readonly "8": "8px";
|
|
1263
|
+
readonly "10": "10px";
|
|
1264
|
+
readonly "12": "12px";
|
|
1265
|
+
readonly "16": "16px";
|
|
1266
|
+
readonly "20": "20px";
|
|
1267
|
+
readonly "24": "24px";
|
|
1268
|
+
readonly "32": "32px";
|
|
1269
|
+
readonly "40": "40px";
|
|
1270
|
+
readonly "48": "48px";
|
|
1271
|
+
readonly "64": "64px";
|
|
1272
|
+
readonly "96": "96px";
|
|
1273
|
+
readonly "128": "128px";
|
|
1274
|
+
}>;
|
|
1275
|
+
readonly fontFamily: "var(--bt-font-family)";
|
|
1257
1276
|
};
|
|
1258
1277
|
|
|
1259
1278
|
declare const elevation: {
|
|
@@ -1273,14 +1292,23 @@ declare const iconSize: {
|
|
|
1273
1292
|
};
|
|
1274
1293
|
|
|
1275
1294
|
declare const motion: {
|
|
1295
|
+
readonly easing: {
|
|
1296
|
+
/** 감속 진입 */
|
|
1297
|
+
readonly enter: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
1298
|
+
/** 가속 퇴출 */
|
|
1299
|
+
readonly exit: "cubic-bezier(0.4, 0, 1, 1)";
|
|
1300
|
+
};
|
|
1276
1301
|
readonly transition: {
|
|
1302
|
+
/** hover, icon */
|
|
1277
1303
|
readonly fast: "0.1s ease-in-out";
|
|
1304
|
+
/** 메뉴 열림 */
|
|
1278
1305
|
readonly base: "0.2s ease-in-out";
|
|
1306
|
+
/** 레이아웃 변화 */
|
|
1279
1307
|
readonly slow: "0.3s ease-in-out";
|
|
1280
1308
|
readonly emphasized: "0.25s cubic-bezier(0.4, 0, 0.2, 1)";
|
|
1281
1309
|
readonly bounce: "0.3s cubic-bezier(0.16, 1, 0.3, 1)";
|
|
1282
1310
|
readonly fade: "0.15s ease-in-out";
|
|
1283
|
-
readonly slide: "0.25s
|
|
1311
|
+
readonly slide: "0.25s cubic-bezier(0.16, 1, 0.3, 1)";
|
|
1284
1312
|
readonly scale: "0.2s cubic-bezier(0.2, 0.8, 0.2, 1)";
|
|
1285
1313
|
readonly state: "0.18s ease-in-out";
|
|
1286
1314
|
readonly enterFast: "0.15s cubic-bezier(0.16, 1, 0.3, 1)";
|
|
@@ -1288,10 +1316,6 @@ declare const motion: {
|
|
|
1288
1316
|
readonly exitFast: "0.12s cubic-bezier(0.4, 0, 1, 1)";
|
|
1289
1317
|
readonly exitBase: "0.15s cubic-bezier(0.4, 0, 1, 1)";
|
|
1290
1318
|
};
|
|
1291
|
-
readonly easing: {
|
|
1292
|
-
readonly enter: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
1293
|
-
readonly exit: "cubic-bezier(0.4, 0, 1, 1)";
|
|
1294
|
-
};
|
|
1295
1319
|
};
|
|
1296
1320
|
|
|
1297
1321
|
declare const opacity: {
|
|
@@ -1308,6 +1332,7 @@ declare const opacity: {
|
|
|
1308
1332
|
};
|
|
1309
1333
|
|
|
1310
1334
|
declare const radius: {
|
|
1335
|
+
/** 컴포넌트·소비자용 - `var(--bt-*, 원값)`. `:root { --bt-radius-md: 4px }` 처럼 덮어쓰면 따라간다. 문자열이라 Sass 산술(`* 2`, 단항 `-`)이 안 된다 - `calc(2 * #{$x})` 를 쓰거나 원값(`_base_`)을 쓴다. */
|
|
1311
1336
|
readonly none: "0px";
|
|
1312
1337
|
readonly xs: "4px";
|
|
1313
1338
|
readonly sm: "6px";
|
|
@@ -1319,6 +1344,7 @@ declare const radius: {
|
|
|
1319
1344
|
|
|
1320
1345
|
declare const skeleton: {
|
|
1321
1346
|
readonly color: {
|
|
1347
|
+
/** CSS custom property 기반 - `[data-theme="dark"]` 에서 자동 전환. fallback 값은 standalone import (colors 미포함) 시 light 동작 보장. */
|
|
1322
1348
|
readonly base: "#F3F3F3";
|
|
1323
1349
|
readonly wave: "#F0F0F0";
|
|
1324
1350
|
readonly highlight: "#FAFAFA";
|
|
@@ -1330,11 +1356,16 @@ declare const skeleton: {
|
|
|
1330
1356
|
readonly lg: "12px";
|
|
1331
1357
|
};
|
|
1332
1358
|
readonly height: {
|
|
1333
|
-
|
|
1334
|
-
readonly
|
|
1335
|
-
|
|
1336
|
-
readonly
|
|
1337
|
-
|
|
1359
|
+
/** 4px */
|
|
1360
|
+
readonly xs: "0.25rem";
|
|
1361
|
+
/** 8px */
|
|
1362
|
+
readonly sm: "0.5rem";
|
|
1363
|
+
/** 12px */
|
|
1364
|
+
readonly md: "0.75rem";
|
|
1365
|
+
/** 16px */
|
|
1366
|
+
readonly lg: "1rem";
|
|
1367
|
+
/** 20px */
|
|
1368
|
+
readonly xl: "1.25rem";
|
|
1338
1369
|
};
|
|
1339
1370
|
readonly animation: {
|
|
1340
1371
|
readonly duration: "1.4s";
|
|
@@ -1343,6 +1374,7 @@ declare const skeleton: {
|
|
|
1343
1374
|
};
|
|
1344
1375
|
|
|
1345
1376
|
declare const spacing: {
|
|
1377
|
+
/** 컴포넌트·소비자용 - `var(--bt-*, 원값)`. `:root { --bt-spacing-16: 20px }` 처럼 덮어쓰면 따라간다. 문자열이라 Sass 산술(`* 2`, 단항 `-`)이 안 된다 - `calc(2 * #{$x})` 를 쓰거나 원값(`_base_`)을 쓴다. */
|
|
1346
1378
|
readonly "0": "0px";
|
|
1347
1379
|
readonly "1": "1px";
|
|
1348
1380
|
readonly "2": "2px";
|
|
@@ -1365,9 +1397,11 @@ declare const spacing: {
|
|
|
1365
1397
|
|
|
1366
1398
|
declare const baseTypography: {
|
|
1367
1399
|
readonly fontFamily: {
|
|
1400
|
+
/** 글꼴 이름만 - Figma 스타일과 TS `baseTypography` 용. CSS 에는 아래 font-stack-primary 를 쓴다 */
|
|
1368
1401
|
readonly primary: "Pretendard";
|
|
1369
1402
|
};
|
|
1370
1403
|
readonly fontSize: {
|
|
1404
|
+
/** 10px - 본문에는 쓰지 않는다. avatar xs(24px 원) 이니셜과 badge count 처럼 장식적인 숫자·글자 전용이다. 그 자리에 12px 을 넣으면 16px 카운트 뱃지를 넘친다. */
|
|
1371
1405
|
readonly "10": "10px";
|
|
1372
1406
|
readonly "12": "12px";
|
|
1373
1407
|
readonly "13": "13px";
|
|
@@ -1397,7 +1431,6 @@ declare const baseTypography: {
|
|
|
1397
1431
|
readonly "16": "16px";
|
|
1398
1432
|
readonly "18": "18px";
|
|
1399
1433
|
readonly "20": "20px";
|
|
1400
|
-
readonly "22-5": "22.5px";
|
|
1401
1434
|
readonly "24": "24px";
|
|
1402
1435
|
readonly "28": "28px";
|
|
1403
1436
|
readonly "32": "32px";
|
|
@@ -1405,6 +1438,7 @@ declare const baseTypography: {
|
|
|
1405
1438
|
readonly "40": "40px";
|
|
1406
1439
|
readonly "50": "50px";
|
|
1407
1440
|
readonly "60": "60px";
|
|
1441
|
+
readonly "22-5": "22.5px";
|
|
1408
1442
|
};
|
|
1409
1443
|
readonly letterSpacing: {
|
|
1410
1444
|
readonly normal: "0px";
|
|
@@ -1413,7 +1447,8 @@ declare const baseTypography: {
|
|
|
1413
1447
|
};
|
|
1414
1448
|
declare const typography: {
|
|
1415
1449
|
readonly fontFamily: {
|
|
1416
|
-
|
|
1450
|
+
/** 폴백까지 포함한 CSS font-family 값 */
|
|
1451
|
+
readonly primary: "\"Pretendard\", sans-serif";
|
|
1417
1452
|
};
|
|
1418
1453
|
readonly display: {
|
|
1419
1454
|
readonly large: {
|
|
@@ -1707,7 +1742,6 @@ declare const typography: {
|
|
|
1707
1742
|
readonly lineHeight: "16px";
|
|
1708
1743
|
readonly letterSpacing: "0.32px";
|
|
1709
1744
|
};
|
|
1710
|
-
/** 섹션 머리 라벨 - 대문자 변환까지 포함한다 */
|
|
1711
1745
|
readonly overline: {
|
|
1712
1746
|
readonly fontSize: "12px";
|
|
1713
1747
|
readonly fontWeight: 600;
|
|
@@ -1729,27 +1763,28 @@ declare const typography: {
|
|
|
1729
1763
|
};
|
|
1730
1764
|
|
|
1731
1765
|
declare const zIndex: {
|
|
1766
|
+
/** 레벨 스케일 - 값의 원천. 제거하면 하위 호환이 깨지므로 유지한다. */
|
|
1732
1767
|
readonly level0: 0;
|
|
1733
1768
|
readonly level1: 10;
|
|
1734
1769
|
readonly level2: 100;
|
|
1735
1770
|
readonly level3: 200;
|
|
1736
1771
|
readonly level4: 500;
|
|
1737
1772
|
readonly level5: 1000;
|
|
1738
|
-
/** 컨텐츠 내부 겹침
|
|
1773
|
+
/** 레벨 이름만으로는 "무엇이 어디 있는지" 를 알 수 없다. $z_level2 를 보고 모달을 떠올릴 방법이 없어서, 소비자가 배포 CSS 를 grep 해 레이어를 알아내고 있었다. 값은 위와 같고 이름만 붙인다. 앱 레이어를 DS 레이어 사이에 놓을 때는 값을 베끼지 말고 이 이름을 기준으로 계산한다. .floating_bar { z-index: calc(#{$z_notification} - 1); } // 토스트 아래, 모달 위 10 - 컨텐츠 내부 겹침 (sticky 표 헤더, Hero 오버레이) */
|
|
1739
1774
|
readonly content: 10;
|
|
1740
|
-
/** Modal · Drawer · Sidebar · BottomNav */
|
|
1775
|
+
/** 100 - Modal · Drawer · Sidebar · BottomNav */
|
|
1741
1776
|
readonly chrome: 100;
|
|
1742
|
-
/** Toast · NavBar */
|
|
1777
|
+
/** 200 - Toast · NavBar */
|
|
1743
1778
|
readonly notification: 200;
|
|
1744
|
-
/** TopLoading */
|
|
1779
|
+
/** 500 - TopLoading */
|
|
1745
1780
|
readonly loading: 500;
|
|
1746
|
-
/** Tooltip · Popover · Menu · Dropdown 목록 · Alert */
|
|
1781
|
+
/** 1000 - Tooltip · Popover · Menu · Dropdown 목록 · Alert */
|
|
1747
1782
|
readonly popup: 1000;
|
|
1748
|
-
/** 앱이 소유한
|
|
1783
|
+
/** 앱이 소유한 하단·상단 크롬을 위한 자리. DS 크롬(100)보다 위, 알림(200)보다 아래. 소비처의 플로팅 액션 바가 정확히 이 대역을 필요로 한다 - 앱 스케일에서 900 을 골랐다가 DS 토스트(200)를 덮어 토스트에 z-index 를 덧씌우는 규칙이 남아 있었다. */
|
|
1749
1784
|
readonly appChrome: 150;
|
|
1750
1785
|
};
|
|
1751
1786
|
|
|
1752
|
-
type CardVariant = "default" | "accent" | "glass" | "
|
|
1787
|
+
type CardVariant = "default" | "accent" | "glass" | "outline";
|
|
1753
1788
|
type CardFooterAlign = "start" | "between" | "end";
|
|
1754
1789
|
interface CardProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>> {
|
|
1755
1790
|
/** 카드 상단에 표시할 제목 */
|
|
@@ -1766,7 +1801,7 @@ interface CardProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>
|
|
|
1766
1801
|
* 카드 variant (기본값: "default")
|
|
1767
1802
|
* - "accent": inverted bg + white text (강조 카드)
|
|
1768
1803
|
* - "glass": 반투명 + backdrop blur (컬러/이미지 배경 위에 권장)
|
|
1769
|
-
* - "
|
|
1804
|
+
* - "outline": 투명 bg + 테두리만 (shadow 무시)
|
|
1770
1805
|
*/
|
|
1771
1806
|
variant?: CardVariant;
|
|
1772
1807
|
/** hover 시 살짝 떠오르는 인터랙션 (기본값: false). 클릭 가능한 카드에 사용 */
|
|
@@ -1788,13 +1823,13 @@ declare const Card: ({ heading, headingAs: HeadingTag, shadow, padding, bordered
|
|
|
1788
1823
|
|
|
1789
1824
|
type ChipType = "basic" | "input" | "filter" | "static";
|
|
1790
1825
|
type ChipSize = "sm" | "md";
|
|
1791
|
-
type ChipTone = "
|
|
1826
|
+
type ChipTone = "neutral" | "accent" | "info" | "success" | "warning" | "error";
|
|
1792
1827
|
interface ChipProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>>, "onClick"> {
|
|
1793
1828
|
/** 칩 유형 (기본값: "basic"). `static`은 비인터랙티브 라벨 (구 Tag 대체) */
|
|
1794
1829
|
type?: ChipType;
|
|
1795
1830
|
/** 칩 크기 (미지정 시 기본 32px). "sm"=24px, "md"=28px */
|
|
1796
1831
|
size?: ChipSize;
|
|
1797
|
-
/**
|
|
1832
|
+
/** 의미 색 (기본값: "neutral", type=`static`에서만 적용). 카테고리/상태 라벨 색 구분 */
|
|
1798
1833
|
tone?: ChipTone;
|
|
1799
1834
|
/** 라벨 텍스트 */
|
|
1800
1835
|
label: string;
|
|
@@ -2122,10 +2157,7 @@ interface IconProps extends Omit<LucideProps, "ref" | "dangerouslySetInnerHTML">
|
|
|
2122
2157
|
*
|
|
2123
2158
|
* lucide-react 아이콘 전체 카탈로그: https://lucide.dev/icons/
|
|
2124
2159
|
*/
|
|
2125
|
-
declare const Icon: {
|
|
2126
|
-
({ icon: IconComponent, ...props }: IconProps): React$1.JSX.Element;
|
|
2127
|
-
displayName: string;
|
|
2128
|
-
};
|
|
2160
|
+
declare const Icon: ({ icon: IconComponent, ...props }: IconProps) => React$1.JSX.Element;
|
|
2129
2161
|
|
|
2130
2162
|
interface ListItemProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>>, "onClick"> {
|
|
2131
2163
|
/** 오버라인 (상단 작은 글씨). 문자열 또는 노드(강조/링크/아이콘) */
|
|
@@ -2217,16 +2249,13 @@ interface ProseProps extends SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement
|
|
|
2217
2249
|
* </Prose>
|
|
2218
2250
|
* ```
|
|
2219
2251
|
*/
|
|
2220
|
-
declare const Prose: {
|
|
2221
|
-
({ size, className, children, ref, ...props }: ProseProps): React$1.JSX.Element;
|
|
2222
|
-
displayName: string;
|
|
2223
|
-
};
|
|
2252
|
+
declare const Prose: ({ size, className, children, ref, ...props }: ProseProps) => React$1.JSX.Element;
|
|
2224
2253
|
|
|
2225
|
-
type
|
|
2254
|
+
type AlertTone = "info" | "success" | "warning" | "error";
|
|
2226
2255
|
type AlertActionsAlign = "left" | "center" | "right";
|
|
2227
2256
|
interface AlertOptions {
|
|
2228
|
-
/**
|
|
2229
|
-
|
|
2257
|
+
/** 의미 색 (기본값: "info") */
|
|
2258
|
+
tone?: AlertTone;
|
|
2230
2259
|
/** 알림 제목 */
|
|
2231
2260
|
title?: React$1.ReactNode;
|
|
2232
2261
|
/** 알림 본문 메시지 */
|
|
@@ -2278,7 +2307,7 @@ interface AlertContextValue {
|
|
|
2278
2307
|
* @example
|
|
2279
2308
|
* ```tsx
|
|
2280
2309
|
* const confirm = useConfirm();
|
|
2281
|
-
* if (await confirm({
|
|
2310
|
+
* if (await confirm({ tone: "warning", title: "변경사항을 버릴까요?", confirmText: "버리기", destructive: true })) {
|
|
2282
2311
|
* discard();
|
|
2283
2312
|
* }
|
|
2284
2313
|
* ```
|
|
@@ -2337,7 +2366,7 @@ interface SpinnerProps {
|
|
|
2337
2366
|
*/
|
|
2338
2367
|
declare const Spinner: ({ size, ariaLabel: ariaLabelProp }: SpinnerProps) => React$1.JSX.Element;
|
|
2339
2368
|
|
|
2340
|
-
type
|
|
2369
|
+
type ToastTone = "success" | "error" | "warning" | "info" | "neutral";
|
|
2341
2370
|
interface ToastAction {
|
|
2342
2371
|
/** 버튼 라벨 - "실행 취소" 등 */
|
|
2343
2372
|
label: string;
|
|
@@ -2353,7 +2382,7 @@ interface ToastOptions {
|
|
|
2353
2382
|
/** `update` 로 바꿀 수 있는 필드. `action: null` 이면 버튼을 뗀다 */
|
|
2354
2383
|
type ToastPatch = Partial<{
|
|
2355
2384
|
message: string;
|
|
2356
|
-
|
|
2385
|
+
tone: ToastTone;
|
|
2357
2386
|
duration: number;
|
|
2358
2387
|
action: ToastAction | null;
|
|
2359
2388
|
}>;
|
|
@@ -2389,7 +2418,7 @@ declare const useToast: () => {
|
|
|
2389
2418
|
warning: (message: string, options?: number | ToastOptions) => string;
|
|
2390
2419
|
/** 정보 메시지를 표시한다 */
|
|
2391
2420
|
info: (message: string, options?: number | ToastOptions) => string;
|
|
2392
|
-
/**
|
|
2421
|
+
/** 의미 색 없는(neutral) 메시지를 표시한다 */
|
|
2393
2422
|
message: (message: string, options?: number | ToastOptions) => string;
|
|
2394
2423
|
/** id 의 토스트를 닫는다 - 닫기 버튼과 같은 퇴출 모션 */
|
|
2395
2424
|
dismiss: (id: string) => void;
|
|
@@ -2433,10 +2462,7 @@ interface CheckboxProps extends Omit<SafeHTMLProps<React$1.InputHTMLAttributes<H
|
|
|
2433
2462
|
* @param props 체크박스 속성
|
|
2434
2463
|
* @returns 렌더링된 체크박스 UI
|
|
2435
2464
|
*/
|
|
2436
|
-
declare const Checkbox: {
|
|
2437
|
-
({ label, indeterminate, error, className, ref, ...props }: CheckboxProps): React$1.JSX.Element;
|
|
2438
|
-
displayName: string;
|
|
2439
|
-
};
|
|
2465
|
+
declare const Checkbox: ({ label, indeterminate, error, className, ref, ...props }: CheckboxProps) => React$1.JSX.Element;
|
|
2440
2466
|
|
|
2441
2467
|
interface ComboboxOption {
|
|
2442
2468
|
/** 선택 시 돌려줄 값 */
|
|
@@ -2552,10 +2578,7 @@ interface DateCalendarProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HT
|
|
|
2552
2578
|
* 처음 · 끝, PageUp/PageDown 한 달(Shift 와 함께면 한 해), Enter/Space 선택. 포커스는 한 칸만
|
|
2553
2579
|
* 받는다(roving tabindex) - Tab 한 번에 달력을 빠져나간다.
|
|
2554
2580
|
*/
|
|
2555
|
-
declare const DateCalendar: {
|
|
2556
|
-
({ value: valueProp, defaultValue, onValueChange, month: monthProp, defaultMonth, onMonthChange, min: minProp, max: maxProp, isDateDisabled, today: todayProp, weekStartsOn, renderDay, describeDay, prevMonthLabel, nextMonthLabel, className, ...props }: DateCalendarProps): React$1.JSX.Element;
|
|
2557
|
-
displayName: string;
|
|
2558
|
-
};
|
|
2581
|
+
declare const DateCalendar: ({ value: valueProp, defaultValue, onValueChange, month: monthProp, defaultMonth, onMonthChange, min: minProp, max: maxProp, isDateDisabled, today: todayProp, weekStartsOn, renderDay, describeDay, prevMonthLabel, nextMonthLabel, className, ...props }: DateCalendarProps) => React$1.JSX.Element;
|
|
2559
2582
|
|
|
2560
2583
|
type DatePickerMode = "year-month" | "year-month-day";
|
|
2561
2584
|
type DatePickerVariant = "dropdown" | "calendar";
|
|
@@ -2593,11 +2616,6 @@ interface DatePickerBaseProps {
|
|
|
2593
2616
|
required?: boolean;
|
|
2594
2617
|
/** 데이트 피커가 컨테이너의 전체 너비를 차지할지 여부 */
|
|
2595
2618
|
fullWidth?: boolean;
|
|
2596
|
-
/**
|
|
2597
|
-
* 데이트 피커의 커스텀 너비
|
|
2598
|
-
* @deprecated `fullWidth` 사용 또는 CSS로 처리
|
|
2599
|
-
*/
|
|
2600
|
-
width?: number | string;
|
|
2601
2619
|
/** 연도 select의 라벨/플레이스홀더 */
|
|
2602
2620
|
yearLabel?: string;
|
|
2603
2621
|
/** 월 select의 라벨/플레이스홀더 */
|
|
@@ -2615,21 +2633,15 @@ interface DatePickerBaseProps {
|
|
|
2615
2633
|
*/
|
|
2616
2634
|
selectableRangeUntilTodaySrText?: string;
|
|
2617
2635
|
}
|
|
2618
|
-
type
|
|
2636
|
+
type DatePickerProps = DatePickerBaseProps & {
|
|
2637
|
+
/** 값이 바뀔 때 호출된다 - `YYYY-MM-DD` (year-month 모드는 `YYYY-MM`) */
|
|
2619
2638
|
onValueChange: (value: string) => void;
|
|
2620
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
2621
|
-
onChange?: (value: string) => void;
|
|
2622
|
-
} | {
|
|
2623
|
-
onValueChange?: (value: string) => void;
|
|
2624
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
2625
|
-
onChange: (value: string) => void;
|
|
2626
2639
|
};
|
|
2627
|
-
type DatePickerProps = DatePickerBaseProps & DatePickerCallbacks;
|
|
2628
2640
|
/**
|
|
2629
2641
|
* 연/월/일 선택형 데이트 피커를 렌더링한다.
|
|
2630
2642
|
* 내부적으로 DS Dropdown 3개를 조합해 드롭다운 UX 일관성을 유지한다.
|
|
2631
2643
|
*/
|
|
2632
|
-
declare const DatePicker: ({ label, value, onValueChange,
|
|
2644
|
+
declare const DatePicker: ({ label, value, onValueChange, mode, variant, placeholder: placeholderProp, startYear, endYear: endYearProp, minDate, selectableRange, disabled, required, fullWidth, yearLabel: yearLabelProp, monthLabel: monthLabelProp, dayLabel: dayLabelProp, minDateSrFormat: minDateSrFormatProp, selectableRangeUntilTodaySrText: selectableRangeUntilTodaySrTextProp, }: DatePickerProps) => React$1.JSX.Element;
|
|
2633
2645
|
|
|
2634
2646
|
interface DateRange {
|
|
2635
2647
|
/** 시작일 (`"YYYY-MM-DD"`). 아직 고르지 않았으면 undefined */
|
|
@@ -2723,18 +2735,10 @@ interface DropdownCommonProps {
|
|
|
2723
2735
|
required?: boolean;
|
|
2724
2736
|
/** 드롭다운 크기 */
|
|
2725
2737
|
size?: DropdownSize;
|
|
2726
|
-
/**
|
|
2727
|
-
* @deprecated Dropdown 은 이제 항상 부모 너비를 채웁니다. 인라인 사용 시 부모를 `inline-block + width` 로 감싸세요.
|
|
2728
|
-
*/
|
|
2729
|
-
fullWidth?: boolean;
|
|
2730
2738
|
/** 루트 요소에 추가할 className */
|
|
2731
2739
|
className?: string;
|
|
2732
2740
|
/** 컨트롤 시각 변형 */
|
|
2733
2741
|
variant?: DropdownVariant;
|
|
2734
|
-
/**
|
|
2735
|
-
* @deprecated textAlign은 더 이상 지원되지 않습니다.
|
|
2736
|
-
*/
|
|
2737
|
-
textAlign?: "left" | "center";
|
|
2738
2742
|
/**
|
|
2739
2743
|
* 검색 가능 여부. 활성화 시 열린 패널 상단에 검색 입력이 표시되고, 옵션 `label` 부분 일치로 필터링됩니다.
|
|
2740
2744
|
* (기본값: false)
|
|
@@ -2760,8 +2764,6 @@ interface DropdownSingleProps extends DropdownCommonProps {
|
|
|
2760
2764
|
value?: string | null;
|
|
2761
2765
|
/** 값 변경 콜백 (canonical). 선택된 값과 전체 옵션 객체를 전달합니다. */
|
|
2762
2766
|
onValueChange?: (value: string | null, option?: DropdownOption | null) => void;
|
|
2763
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
2764
|
-
onChange?: (value: string | null, option?: DropdownOption | null) => void;
|
|
2765
2767
|
/** 비제어형 초기 선택 값 */
|
|
2766
2768
|
defaultValue?: string | null;
|
|
2767
2769
|
}
|
|
@@ -2773,8 +2775,6 @@ interface DropdownMultipleProps extends DropdownCommonProps {
|
|
|
2773
2775
|
value?: string[];
|
|
2774
2776
|
/** 값 변경 콜백 (canonical). 선택된 값 목록과 옵션 객체 목록을 전달합니다. */
|
|
2775
2777
|
onValueChange?: (values: string[], options: DropdownOption[]) => void;
|
|
2776
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
2777
|
-
onChange?: (values: string[], options: DropdownOption[]) => void;
|
|
2778
2778
|
/** 비제어형 초기 선택 값 목록 */
|
|
2779
2779
|
defaultValue?: string[];
|
|
2780
2780
|
}
|
|
@@ -2903,7 +2903,7 @@ interface FilterBarBaseProps extends Omit<SafeHTMLProps<React$1.FormHTMLAttribut
|
|
|
2903
2903
|
/** 초기화할 것이 있는가 (기본값: true). 이미 비어 있으면 false 로 */
|
|
2904
2904
|
canReset?: boolean;
|
|
2905
2905
|
/** 적용 중 - form 에 aria-busy. submit 모드에서는 검색 버튼 스피너와 중복 제출 방지도 적용한다 */
|
|
2906
|
-
|
|
2906
|
+
isLoading?: boolean;
|
|
2907
2907
|
/** 버튼 전체 비활성화 */
|
|
2908
2908
|
disabled?: boolean;
|
|
2909
2909
|
/** 초기화 버튼 문구 (기본값: 로케일 `filterBar.reset`) */
|
|
@@ -2942,10 +2942,7 @@ type FilterBarProps = FilterBarBaseProps & (FilterBarSubmitProps | FilterBarInst
|
|
|
2942
2942
|
* </FilterBar>
|
|
2943
2943
|
* ```
|
|
2944
2944
|
*/
|
|
2945
|
-
declare const FilterBar: {
|
|
2946
|
-
({ children, submitMode, onSubmit, onReset, canSubmit, canReset, loading, disabled, submitLabel: submitLabelProp, resetLabel: resetLabelProp, fieldMinWidth, className, style, ...props }: FilterBarProps): React$1.JSX.Element;
|
|
2947
|
-
displayName: string;
|
|
2948
|
-
};
|
|
2945
|
+
declare const FilterBar: ({ children, submitMode, onSubmit, onReset, canSubmit, canReset, isLoading: loading, disabled, submitLabel: submitLabelProp, resetLabel: resetLabelProp, fieldMinWidth, className, style, ...props }: FilterBarProps) => React$1.JSX.Element;
|
|
2949
2946
|
|
|
2950
2947
|
interface FormProps extends Omit<SafeHTMLProps<React$1.FormHTMLAttributes<HTMLFormElement>>, "onSubmit"> {
|
|
2951
2948
|
/**
|
|
@@ -3047,7 +3044,7 @@ interface ImageCropperProps extends Omit<HTMLAttributes<HTMLDivElement>, "onErro
|
|
|
3047
3044
|
className?: string;
|
|
3048
3045
|
/** 뷰포트 접근성 레이블. 기본 "이미지 위치와 배율 조정". */
|
|
3049
3046
|
label?: string;
|
|
3050
|
-
/** 뷰포트 아래 조작 안내 문구. 기본 "
|
|
3047
|
+
/** 뷰포트 아래 조작 안내 문구. 기본 "드래그하거나 가운데로 올 곳을 탭(또는 방향키)해 위치를, 휠·슬라이더로 배율을 맞추세요." */
|
|
3051
3048
|
hint?: string;
|
|
3052
3049
|
/** 축소 버튼 접근성 레이블. 기본 "축소". */
|
|
3053
3050
|
zoomOutLabel?: string;
|
|
@@ -3059,8 +3056,8 @@ interface ImageCropperProps extends Omit<HTMLAttributes<HTMLDivElement>, "onErro
|
|
|
3059
3056
|
noPanHint?: string;
|
|
3060
3057
|
}
|
|
3061
3058
|
/**
|
|
3062
|
-
* 업로드 전에 이미지에서 보일 정사각 영역을 정하는 크로퍼. 뷰포트 안에서
|
|
3063
|
-
*
|
|
3059
|
+
* 업로드 전에 이미지에서 보일 정사각 영역을 정하는 크로퍼. 뷰포트 안에서 **드래그·탭(또는 방향키)**
|
|
3060
|
+
* 으로 위치를(탭하면 그 지점이 가운데로 온다), **휠·슬라이더·+/- 버튼(또는 `+`/`-` 키)** 으로 배율을 맞춘다. 모달은 포함하지
|
|
3064
3061
|
* 않으므로 소비자가 `Modal` 등으로 감싸고, 적용 버튼에서 `ref.crop()` 을 호출해 Blob 을 받는다.
|
|
3065
3062
|
*
|
|
3066
3063
|
* ```tsx
|
|
@@ -3082,8 +3079,6 @@ interface OtpInputProps {
|
|
|
3082
3079
|
value?: string;
|
|
3083
3080
|
/** 값 변경 콜백 (canonical) */
|
|
3084
3081
|
onValueChange?: (value: string) => void;
|
|
3085
|
-
/** @deprecated `onValueChange` 를 사용하세요. */
|
|
3086
|
-
onChange?: (value: string) => void;
|
|
3087
3082
|
/** 에러 상태 */
|
|
3088
3083
|
error?: boolean;
|
|
3089
3084
|
/** 비활성화 */
|
|
@@ -3103,10 +3098,7 @@ interface OtpInputProps {
|
|
|
3103
3098
|
* @param props OTP 입력 속성
|
|
3104
3099
|
* @returns 렌더링된 OTP 입력 요소
|
|
3105
3100
|
*/
|
|
3106
|
-
declare const OtpInput: {
|
|
3107
|
-
({ length, value, onValueChange, onChange, error, disabled, supportingText, autoFocus, ariaLabel: ariaLabelProp, className, }: OtpInputProps): React$1.JSX.Element;
|
|
3108
|
-
displayName: string;
|
|
3109
|
-
};
|
|
3101
|
+
declare const OtpInput: ({ length, value, onValueChange, error, disabled, supportingText, autoFocus, ariaLabel: ariaLabelProp, className, }: OtpInputProps) => React$1.JSX.Element;
|
|
3110
3102
|
|
|
3111
3103
|
interface RadioProps extends Omit<SafeHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>>, "size"> {
|
|
3112
3104
|
/** 라디오 버튼 옆에 표시할 라벨 */
|
|
@@ -3123,10 +3115,7 @@ interface RadioProps extends Omit<SafeHTMLProps<React$1.InputHTMLAttributes<HTML
|
|
|
3123
3115
|
* @param props 라디오 속성
|
|
3124
3116
|
* @returns 렌더링된 라디오 UI
|
|
3125
3117
|
*/
|
|
3126
|
-
declare const Radio: {
|
|
3127
|
-
({ label, size: sizeProp, className, ref, value, checked, onChange, name: nameProp, disabled: disabledProp, ...props }: RadioProps): React$1.JSX.Element;
|
|
3128
|
-
displayName: string;
|
|
3129
|
-
};
|
|
3118
|
+
declare const Radio: ({ label, size: sizeProp, className, ref, value, checked, onChange, name: nameProp, disabled: disabledProp, ...props }: RadioProps) => React$1.JSX.Element;
|
|
3130
3119
|
|
|
3131
3120
|
type RadioGroupSize = "sm" | "md" | "lg";
|
|
3132
3121
|
type RadioGroupOrientation = "vertical" | "horizontal";
|
|
@@ -3187,10 +3176,7 @@ interface RadioGroupProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTML
|
|
|
3187
3176
|
* </RadioGroup>
|
|
3188
3177
|
* ```
|
|
3189
3178
|
*/
|
|
3190
|
-
declare const RadioGroup: {
|
|
3191
|
-
({ value: controlledValue, defaultValue, onValueChange, name: nameProp, label, supportingText, error, size, orientation, disabled, className, children, ...props }: RadioGroupProps): React$1.JSX.Element;
|
|
3192
|
-
displayName: string;
|
|
3193
|
-
};
|
|
3179
|
+
declare const RadioGroup: ({ value: controlledValue, defaultValue, onValueChange, name: nameProp, label, supportingText, error, size, orientation, disabled, className, children, ...props }: RadioGroupProps) => React$1.JSX.Element;
|
|
3194
3180
|
|
|
3195
3181
|
type SegmentedControlSize = "sm" | "md";
|
|
3196
3182
|
interface SegmentedControlItem<T extends string = string> {
|
|
@@ -3245,10 +3231,7 @@ interface SegmentedControlProps<T extends string = string> extends Omit<SafeHTML
|
|
|
3245
3231
|
* />
|
|
3246
3232
|
* ```
|
|
3247
3233
|
*/
|
|
3248
|
-
declare const SegmentedControl: {
|
|
3249
|
-
<T extends string = string>({ items, value: controlledValue, defaultValue, onValueChange, name: nameProp, size, fullWidth, disabled, required, className, onKeyDown: onKeyDownProp, ...props }: SegmentedControlProps<T>): React$1.JSX.Element;
|
|
3250
|
-
displayName: string;
|
|
3251
|
-
};
|
|
3234
|
+
declare const SegmentedControl: <T extends string = string>({ items, value: controlledValue, defaultValue, onValueChange, name: nameProp, size, fullWidth, disabled, required, className, onKeyDown: onKeyDownProp, ...props }: SegmentedControlProps<T>) => React$1.JSX.Element;
|
|
3252
3235
|
|
|
3253
3236
|
type TagInputSize = "sm" | "md" | "lg";
|
|
3254
3237
|
interface TagInputProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>>, "onChange" | "defaultValue"> {
|
|
@@ -3300,7 +3283,7 @@ type TextFieldSize = "sm" | "md" | "lg";
|
|
|
3300
3283
|
type TextFieldVariant = "outline" | "filled";
|
|
3301
3284
|
/**
|
|
3302
3285
|
* IME 조합(한글/일본어/중국어) 중 외부 콜백 처리 전략.
|
|
3303
|
-
* - `delayed`: 조합 완료 후에만 `
|
|
3286
|
+
* - `delayed`: 조합 완료 후에만 `onValueChange` 호출 (기본 - 폼 제출/검증용).
|
|
3304
3287
|
* - `immediate`: 조합 중에도 매 입력마다 즉시 호출 (실시간 검색/필터/미리보기용).
|
|
3305
3288
|
*/
|
|
3306
3289
|
type ImeStrategy = "delayed" | "immediate";
|
|
@@ -3360,10 +3343,8 @@ interface TextFieldProps extends Omit<SafeHTMLProps<React$1.InputHTMLAttributes<
|
|
|
3360
3343
|
clearLabel?: string;
|
|
3361
3344
|
/** 컨테이너 전체 너비 차지 여부 */
|
|
3362
3345
|
fullWidth?: boolean;
|
|
3363
|
-
/** 값 변경
|
|
3346
|
+
/** 값 변경 콜백. 호출 시점은 `imeStrategy` 에 따름 (기본: 조합 완료 후) */
|
|
3364
3347
|
onValueChange?: (value: string) => void;
|
|
3365
|
-
/** @deprecated `onValueChange` 를 사용하세요. (Next 서버액션 전달용으로 `Action` 접미사가 필요하면 그대로 사용 가능) */
|
|
3366
|
-
onChangeAction?: (value: string) => void;
|
|
3367
3348
|
/**
|
|
3368
3349
|
* IME 조합 중 콜백 전략 (기본값: "delayed").
|
|
3369
3350
|
* 실시간 구독(검색/필터) 이 필요하면 "immediate" - 한글 조합 중에도 매 입력 즉시 반영.
|
|
@@ -3385,10 +3366,7 @@ interface TextFieldProps extends Omit<SafeHTMLProps<React$1.InputHTMLAttributes<
|
|
|
3385
3366
|
* @param props 텍스트 필드 속성
|
|
3386
3367
|
* @returns 렌더링된 텍스트 필드 UI
|
|
3387
3368
|
*/
|
|
3388
|
-
declare const TextField: {
|
|
3389
|
-
({ id, label, showLabel, supportingText, error, success, identifier, leadingIcon, trailingIcon, leadingAction, trailingAction, showPasswordToggle, passwordToggleLabels, clearable, clearLabel: clearLabelProp, type, fullWidth, size, variant, className, onValueChange, onChangeAction, imeStrategy, value, defaultValue, transformValue, ref, ...props }: TextFieldProps): React$1.JSX.Element;
|
|
3390
|
-
displayName: string;
|
|
3391
|
-
};
|
|
3369
|
+
declare const TextField: ({ id, label, showLabel, supportingText, error, success, identifier, leadingIcon, trailingIcon, leadingAction, trailingAction, showPasswordToggle, passwordToggleLabels, clearable, clearLabel: clearLabelProp, type, fullWidth, size, variant, className, onValueChange, imeStrategy, value, defaultValue, transformValue, ref, ...props }: TextFieldProps) => React$1.JSX.Element;
|
|
3392
3370
|
|
|
3393
3371
|
type TextareaSize = TextFieldSize;
|
|
3394
3372
|
type TextareaResize = "none" | "vertical" | "both";
|
|
@@ -3405,10 +3383,8 @@ interface TextareaProps extends Omit<SafeHTMLProps<React$1.TextareaHTMLAttribute
|
|
|
3405
3383
|
error?: boolean;
|
|
3406
3384
|
/** 컨테이너 전체 너비 차지 여부 */
|
|
3407
3385
|
fullWidth?: boolean;
|
|
3408
|
-
/** 값 변경
|
|
3386
|
+
/** 값 변경 콜백. 호출 시점은 `imeStrategy` 에 따름 (기본: 조합 완료 후) */
|
|
3409
3387
|
onValueChange?: (value: string) => void;
|
|
3410
|
-
/** @deprecated `onValueChange` 를 사용하세요. (Next 서버액션 전달용으로 `Action` 접미사가 필요하면 그대로 사용 가능) */
|
|
3411
|
-
onChangeAction?: (value: string) => void;
|
|
3412
3388
|
/**
|
|
3413
3389
|
* IME 조합 중 콜백 전략 (기본값: "delayed").
|
|
3414
3390
|
* 실시간 구독이 필요하면 "immediate" - 한글 조합 중에도 매 입력 즉시 반영.
|
|
@@ -3449,13 +3425,10 @@ interface TextareaProps extends Omit<SafeHTMLProps<React$1.TextareaHTMLAttribute
|
|
|
3449
3425
|
* @example
|
|
3450
3426
|
* ```tsx
|
|
3451
3427
|
* <Textarea label="내용" minRows={3} maxRows={8} maxLength={500} showCounter
|
|
3452
|
-
*
|
|
3428
|
+
* onValueChange={(v) => setContent(v)} />
|
|
3453
3429
|
* ```
|
|
3454
3430
|
*/
|
|
3455
|
-
declare const Textarea: {
|
|
3456
|
-
({ id, label, showLabel, supportingText, error, fullWidth, size, className, onValueChange, onChangeAction, imeStrategy, value, defaultValue, transformValue, rows, minRows, maxRows, showCounter, resize, toolbar, maxLength, ref, ...props }: TextareaProps): React$1.JSX.Element;
|
|
3457
|
-
displayName: string;
|
|
3458
|
-
};
|
|
3431
|
+
declare const Textarea: ({ id, label, showLabel, supportingText, error, fullWidth, size, className, onValueChange, imeStrategy, value, defaultValue, transformValue, rows, minRows, maxRows, showCounter, resize, toolbar, maxLength, ref, ...props }: TextareaProps) => React$1.JSX.Element;
|
|
3459
3432
|
|
|
3460
3433
|
interface TimePickerProps {
|
|
3461
3434
|
/** 위에 표시할 라벨 */
|
|
@@ -3512,8 +3485,6 @@ interface ToggleProps extends Omit<SafeHTMLProps<React$1.ButtonHTMLAttributes<HT
|
|
|
3512
3485
|
defaultChecked?: boolean;
|
|
3513
3486
|
/** 상태 변경 콜백 (canonical) */
|
|
3514
3487
|
onCheckedChange?: (checked: boolean) => void;
|
|
3515
|
-
/** @deprecated `onCheckedChange` 를 사용하세요. */
|
|
3516
|
-
onChange?: (checked: boolean) => void;
|
|
3517
3488
|
/** 토글 크기 (기본값: "sm") */
|
|
3518
3489
|
size?: "sm" | "md";
|
|
3519
3490
|
/** 비활성화 여부 */
|
|
@@ -3529,10 +3500,7 @@ interface ToggleProps extends Omit<SafeHTMLProps<React$1.ButtonHTMLAttributes<HT
|
|
|
3529
3500
|
* @param props 토글 속성
|
|
3530
3501
|
* @returns 렌더링된 토글 요소
|
|
3531
3502
|
*/
|
|
3532
|
-
declare const Toggle: {
|
|
3533
|
-
({ checked, defaultChecked, onCheckedChange, onChange, size, disabled, className, ariaLabel, ref, ...props }: ToggleProps): React$1.JSX.Element;
|
|
3534
|
-
displayName: string;
|
|
3535
|
-
};
|
|
3503
|
+
declare const Toggle: ({ checked, defaultChecked, onCheckedChange, size, disabled, className, ariaLabel, ref, ...props }: ToggleProps) => React$1.JSX.Element;
|
|
3536
3504
|
|
|
3537
3505
|
type ButtonVariant = "filled" | "tonal" | "outline" | "text";
|
|
3538
3506
|
type ButtonSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -3577,14 +3545,6 @@ type ButtonProps<T extends React$1.ElementType = "button"> = PolymorphicProps<T,
|
|
|
3577
3545
|
} : Record<never, never>) & ("a" extends T ? {
|
|
3578
3546
|
href: string;
|
|
3579
3547
|
} : Record<never, never>);
|
|
3580
|
-
/**
|
|
3581
|
-
* @deprecated `ButtonProps<"button">` 을 쓰세요. 리터럴 유니온 시절의 이름입니다.
|
|
3582
|
-
*/
|
|
3583
|
-
type ButtonAsButton = ButtonProps<"button">;
|
|
3584
|
-
/**
|
|
3585
|
-
* @deprecated `ButtonProps<"a">` 을 쓰세요. 리터럴 유니온 시절의 이름입니다.
|
|
3586
|
-
*/
|
|
3587
|
-
type ButtonAsAnchor = ButtonProps<"a">;
|
|
3588
3548
|
/**
|
|
3589
3549
|
* 버튼을 렌더링한다.
|
|
3590
3550
|
* Figma DS 기준 4가지 variant(filled/tonal/outline/text)와 4가지 size(sm/md/lg/xl)를 지원한다.
|
|
@@ -3635,16 +3595,13 @@ interface CopyButtonProps extends Omit<SafeHTMLProps<React$1.ButtonHTMLAttribute
|
|
|
3635
3595
|
* <CopyButton text={apiKey} iconOnly label="API 키 복사" />
|
|
3636
3596
|
* ```
|
|
3637
3597
|
*/
|
|
3638
|
-
declare const CopyButton: {
|
|
3639
|
-
({ text, label: labelProp, copiedLabel: copiedLabelProp, failedLabel: failedLabelProp, iconOnly, size, variant, resetAfter, onCopy, onError, className, ...props }: CopyButtonProps): React$1.JSX.Element;
|
|
3640
|
-
displayName: string;
|
|
3641
|
-
};
|
|
3598
|
+
declare const CopyButton: ({ text, label: labelProp, copiedLabel: copiedLabelProp, failedLabel: failedLabelProp, iconOnly, size, variant, resetAfter, onCopy, onError, className, ...props }: CopyButtonProps) => React$1.JSX.Element;
|
|
3642
3599
|
|
|
3643
|
-
type IconButtonVariant = "
|
|
3600
|
+
type IconButtonVariant = "text" | "filled" | "tonal" | "outline";
|
|
3644
3601
|
type IconButtonSize = "sm" | "md";
|
|
3645
3602
|
/** 접근성 이름을 제외한 IconButton 공통 props */
|
|
3646
3603
|
interface IconButtonBaseProps extends Omit<SafeHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>>, "aria-label" | "aria-labelledby"> {
|
|
3647
|
-
/** 아이콘 버튼 스타일 변형 (기본값: "
|
|
3604
|
+
/** 아이콘 버튼 스타일 변형 (기본값: "text"). Button 의 variant 이름과 같다 */
|
|
3648
3605
|
variant?: IconButtonVariant;
|
|
3649
3606
|
/** 아이콘 버튼 크기 (기본값: "md") */
|
|
3650
3607
|
size?: IconButtonSize;
|
|
@@ -3685,7 +3642,7 @@ interface IconButtonWithAriaLabelledBy extends IconButtonBaseProps {
|
|
|
3685
3642
|
type IconButtonProps = IconButtonWithAriaLabel | IconButtonWithAriaLabelledBy;
|
|
3686
3643
|
/**
|
|
3687
3644
|
* 아이콘만 표시하는 버튼을 렌더링한다.
|
|
3688
|
-
*
|
|
3645
|
+
* 4가지 variant(text/filled/tonal/outline)와 2가지 size(sm/md)를 지원한다.
|
|
3689
3646
|
* 아이콘은 `aria-hidden` 이므로 `aria-label` 또는 `aria-labelledby` 가 타입 레벨에서 필수다.
|
|
3690
3647
|
* @param props 아이콘 버튼 속성
|
|
3691
3648
|
* @returns 렌더링된 아이콘 버튼 요소
|
|
@@ -3704,23 +3661,17 @@ interface PaginationBaseProps {
|
|
|
3704
3661
|
/** `<nav>` 랜드마크 이름 (기본값: "페이지 이동"). 스크린리더의 리전 목록에 그대로 뜬다 */
|
|
3705
3662
|
navLabel?: string;
|
|
3706
3663
|
}
|
|
3707
|
-
type
|
|
3664
|
+
type PaginationProps = PaginationBaseProps & {
|
|
3665
|
+
/** 페이지를 바꿀 때 호출된다 */
|
|
3708
3666
|
onPageChange: (page: number) => void;
|
|
3709
|
-
/** @deprecated `onPageChange` 를 사용하세요. */
|
|
3710
|
-
onChange?: (page: number) => void;
|
|
3711
|
-
} | {
|
|
3712
|
-
onPageChange?: (page: number) => void;
|
|
3713
|
-
/** @deprecated `onPageChange` 를 사용하세요. */
|
|
3714
|
-
onChange: (page: number) => void;
|
|
3715
3667
|
};
|
|
3716
|
-
type PaginationProps = PaginationBaseProps & PaginationCallbacks;
|
|
3717
3668
|
/**
|
|
3718
3669
|
* 페이지네이션을 렌더링한다.
|
|
3719
3670
|
* 이전/다음 버튼과 페이지 목록을 구성해 전달된 콜백으로 페이지 변경을 전달한다.
|
|
3720
3671
|
* @param props 페이지네이션 속성
|
|
3721
3672
|
* @returns 렌더링된 페이지네이션 UI
|
|
3722
3673
|
*/
|
|
3723
|
-
declare const Pagination: ({ page, totalPages, onPageChange,
|
|
3674
|
+
declare const Pagination: ({ page, totalPages, onPageChange, prevLabel: prevLabelProp, nextLabel: nextLabelProp, navLabel: navLabelProp, }: PaginationProps) => React$1.JSX.Element;
|
|
3724
3675
|
|
|
3725
3676
|
/** Drawer 가 미끄러져 들어오는 방향 (top 은 범위 외) */
|
|
3726
3677
|
type DrawerPlacement = "left" | "right" | "bottom";
|
|
@@ -3776,15 +3727,12 @@ interface DrawerProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivE
|
|
|
3776
3727
|
}
|
|
3777
3728
|
/**
|
|
3778
3729
|
* 화면 가장자리에서 미끄러져 들어오는 패널(Drawer)을 렌더링한다.
|
|
3779
|
-
*
|
|
3730
|
+
* CSS 방향별 슬라이드 진입/퇴출 + 포커스 트랩 + 바디 스크롤 잠금.
|
|
3780
3731
|
*
|
|
3781
3732
|
* @param props 드로어 속성
|
|
3782
3733
|
* @returns 열림 상태일 때 렌더링된 드로어, 닫힘 상태면 null
|
|
3783
3734
|
*/
|
|
3784
|
-
declare const Drawer: {
|
|
3785
|
-
({ open, onClose, placement, size, title, footer, closeOnOverlay, dismissible, showCloseIcon, closeLabel: closeLabelProp, ariaLabel, initialFocusRef, onExited, disableAnimation, children, className, ...props }: DrawerProps): React$1.ReactPortal | null;
|
|
3786
|
-
displayName: string;
|
|
3787
|
-
};
|
|
3735
|
+
declare const Drawer: ({ open, onClose, placement, size, title, footer, closeOnOverlay, dismissible, showCloseIcon, closeLabel: closeLabelProp, ariaLabel, initialFocusRef, onExited, disableAnimation, children, className, ...props }: DrawerProps) => React$1.ReactPortal | null;
|
|
3788
3736
|
|
|
3789
3737
|
type ModalFooterAlign = "end" | "between" | "start";
|
|
3790
3738
|
interface ModalProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivElement>>, "title" | "onClick" | "onKeyDown" | "onPointerDown"> {
|
|
@@ -3835,7 +3783,7 @@ interface ModalProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivEl
|
|
|
3835
3783
|
}
|
|
3836
3784
|
/**
|
|
3837
3785
|
* 모달을 렌더링한다.
|
|
3838
|
-
*
|
|
3786
|
+
* CSS 진입/퇴출 모션 + 포커스 트랩 + 바디 스크롤 잠금.
|
|
3839
3787
|
* @param props 모달 속성
|
|
3840
3788
|
* @returns 열림 상태일 때 렌더링된 모달, 닫힘 상태면 null
|
|
3841
3789
|
*/
|
|
@@ -4262,4 +4210,4 @@ type StackProps<T extends React$1.ElementType = "div"> = PolymorphicProps<T, Sta
|
|
|
4262
4210
|
*/
|
|
4263
4211
|
declare const Stack: <T extends React$1.ElementType = "div">({ direction, gap, align, justify, wrap, as, ref, className, children, style, ...props }: StackProps<T>) => React$1.JSX.Element;
|
|
4264
4212
|
|
|
4265
|
-
export { Accordion, type AccordionItem, type AccordionProps, type AlertActionsAlign, type AlertOptions, AlertProvider, type
|
|
4213
|
+
export { Accordion, type AccordionItem, type AccordionProps, type AlertActionsAlign, type AlertOptions, AlertProvider, type AlertTone, AppShell, type AppShellProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeAppearance, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeTone, BottomNav, BottomNavItem, type BottomNavItemProps, type BottomNavProps, BottomNavSpacer, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardFooterAlign, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, type ChipSize, type ChipTone, type ChipType, type ClipboardStatus, Combobox, type ComboboxOption, type ComboboxProps, type ComboboxSize, type ConfirmOptions, Container, type ContainerProps, type ContainerSize, CopyButton, type CopyButtonProps, type CropImageSize, type CropOffset, type CropRect, DataView, type DataViewPagination, type DataViewProps, type DataViewQuery, type DataViewSelectionAction, type DataViewToolbar, DateCalendar, type DateCalendarDayInfo, type DateCalendarProps, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, type DescriptionListProps, Divider, type DividerProps, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, type DropdownMultipleProps, type DropdownOption, type DropdownProps, type DropdownSingleProps, type DropdownSize, type DropdownVariant, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type ErrorStateVariant, Field, type FieldControl, type FieldProps, FileInput, type FileInputProps, type FileInputVariant, FilterBar, type FilterBarProps, type FilterBarSubmitMode, type FocusTrapOptions, Form, type FormActionsProps, type FormProps, Grid, type GridCols, type GridGap, type GridProps, Hero, type HeroAction, type HeroAlign, type HeroHeight, type HeroOverlay, type HeroProps, Icon, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, ImageCropper, type ImageCropperHandle, type ImageCropperProps, type ImeStrategy, InlineAlert, type InlineAlertProps, type InlineAlertTone, LinearProgress, type LinearProgressProps, ListItem, type ListItemProps, type ListboxItem, type LocaleKey, type LocaleMessages, type LocaleName, LocaleProvider, type LocaleProviderProps, type LocaleText, MediaCard, type MediaCardImage, type MediaCardImagePosition, type MediaCardProps, type MediaCardShadow, Menu, type MenuItem, type MenuProps, Modal, type ModalFooterAlign, type ModalProps, NavBar, type NavBarLayout, type NavBarLocaleConfig, type NavBarLocaleOption, type NavBarProps, type NavBarVariant, NavLink, type NavLinkProps, OtpInput, type OtpInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, type PolymorphicProps, type PolymorphicRef, Popover, type PopoverPlacement, type PopoverProps, Prose, type ProseProps, type ProseSize, Radio, RadioGroup, type RadioGroupContextValue, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupSize, type RadioProps, type ResolvedTheme, Section, type SectionBg, type SectionProps, type SectionSpacing, SegmentedControl, type SegmentedControlItem, type SegmentedControlProps, type SegmentedControlSize, Sidebar, SidebarItem, type SidebarItemProps, type SidebarMode, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SkeletonVariant, Spinner, type SpinnerProps, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, type StackWrap, Stat, type StatDeltaTone, type StatProps, Stepper, type StepperOrientation, type StepperProps, type StepperStatus, type StepperStep, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, type TableColumn, type TableProps, type TableSize, type TableSort, type TableSortDirection, Tabs, type TabsProps, type TabsSize, type TabsVariant, TagInput, type TagInputProps, type TagInputSize, TextField, type TextFieldProps, type TextFieldSize, type TextFieldVariant, Textarea, type TextareaProps, type TextareaResize, type TextareaSize, type ThemeMode, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, type ToastAction, type ToastOptions, type ToastPatch, ToastProvider, type ToastProviderProps, type ToastTone, Toggle, type ToggleProps, Tooltip, type TooltipPlacement, type TooltipProps, TopLoading, type TopLoadingProps, type UseClipboardOptions, type UseClipboardResult, type UseListboxPopupArgs, type UseListboxPopupResult, type Weekday, a11y, baseBorderWidth, baseColors, baseTypography, borderWidth, breakpoints, catalogs, cn, colors, controlHeight, copyText, cssVars, elevation, en, iconSize, ko, motion, opacity, radius, skeleton, spacing, typography, useAlert, useClipboard, useConfirm, useFieldControl, useFocusTrap, useListboxPopup, useLocaleName, useLocaleText, useRadioGroupContext, useReducedMotion, useTheme, useToast, zIndex };
|