@tide-design/components 0.18.0 → 0.18.2

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { ListBoxNodes } from "../../_internal/components/ListBoxNodes/ListBoxNodes.js";
4
- import { listPopupClass } from "../../_internal/constants/listClass.js";
4
+ import { listItemsClass, listPopupClass } from "../../_internal/constants/listClass.js";
5
5
  import { useOverlayTheme } from "../../_internal/hooks/useOverlayTheme.js";
6
6
  import { usePopoverOverlay } from "../../_internal/hooks/usePopoverOverlay.js";
7
7
  import { emptyClass } from "../constants/comboboxClass.js";
@@ -34,7 +34,7 @@ function ComboboxPopoverInner({ state, inputRef, popoverRef, listBoxRef, listBox
34
34
  children: [/* @__PURE__ */ jsx("div", {
35
35
  ...listProps,
36
36
  ref: listBoxRef,
37
- className: "outline-none",
37
+ className: `${listItemsClass} outline-none`,
38
38
  children: /* @__PURE__ */ jsx(ListBoxNodes, { state })
39
39
  }), empty && /* @__PURE__ */ jsx("div", {
40
40
  className: "px-2 py-1.5 text-body-sm text-muted select-none",
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ import { useDialogContext } from "../../_internal/hooks/useDialogContext.js";
4
+ import { IconButton } from "../../IconButton/IconButton.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { XIcon } from "@tide-design/icons";
7
+
8
+ // src/Dialog/components/DialogCloseButton.tsx
9
+ /** Dialog 끝 위쪽의 아이콘 닫기 버튼. */
10
+ function DialogCloseButton({ label, className }) {
11
+ const { state } = useDialogContext("DialogCloseButton");
12
+ return /* @__PURE__ */ jsx(IconButton, {
13
+ "aria-label": label,
14
+ variant: "ghost",
15
+ color: "neutral",
16
+ size: "sm",
17
+ onClick: state.close,
18
+ className,
19
+ children: /* @__PURE__ */ jsx(XIcon, {})
20
+ });
21
+ }
22
+
23
+ export { DialogCloseButton };
@@ -2,12 +2,11 @@
2
2
 
3
3
  import { useOverlayTheme } from "../../_internal/hooks/useOverlayTheme.js";
4
4
  import { cn } from "../../_internal/libs/cn.js";
5
- import { IconButton } from "../../IconButton/IconButton.js";
6
5
  import { backdropClass, contentClass, sizeClass } from "../constants/dialogClass.js";
7
6
  import { DialogPartsContext } from "../hooks/useDialogPartsContext.js";
7
+ import { DialogCloseButton } from "./DialogCloseButton.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useEffect, useMemo, useRef, useState } from "react";
10
- import { XIcon } from "@tide-design/icons";
11
10
  import { mergeProps, mergeRefs, useDialog, useFocusManager, useModalOverlay } from "react-aria";
12
11
 
13
12
  // src/Dialog/components/DialogContentInner.tsx
@@ -17,6 +16,7 @@ function DialogContentInner({ context, backdropRef, size = "md", closeLabel = "
17
16
  const dialogRef = useRef(null);
18
17
  const [titleId, setTitleId] = useState(null);
19
18
  const [descriptionId, setDescriptionId] = useState(null);
19
+ const [hasHeader, setHasHeader] = useState(false);
20
20
  useOverlayTheme(triggerRef, backdropRef);
21
21
  const { modalProps, underlayProps } = useModalOverlay({ isDismissable: !alert }, state, dialogRef);
22
22
  const labelledBy = props["aria-labelledby"] ?? (props["aria-label"] ? void 0 : titleId ?? triggerId ?? void 0);
@@ -34,9 +34,16 @@ function DialogContentInner({ context, backdropRef, size = "md", closeLabel = "
34
34
  const mergedRef = useMemo(() => mergeRefs(ref, dialogRef), [ref]);
35
35
  const parts = useMemo(() => ({
36
36
  alert,
37
+ closeLabel,
38
+ hasHeader,
39
+ setHasHeader,
37
40
  setTitleId,
38
41
  setDescriptionId
39
- }), [alert]);
42
+ }), [
43
+ alert,
44
+ closeLabel,
45
+ hasHeader
46
+ ]);
40
47
  const open = state.isOpen ? "" : void 0;
41
48
  return /* @__PURE__ */ jsx("div", {
42
49
  ...underlayProps,
@@ -52,14 +59,9 @@ function DialogContentInner({ context, backdropRef, size = "md", closeLabel = "
52
59
  children: [/* @__PURE__ */ jsx(DialogPartsContext, {
53
60
  value: parts,
54
61
  children
55
- }), !alert && /* @__PURE__ */ jsx(IconButton, {
56
- "aria-label": closeLabel,
57
- variant: "ghost",
58
- color: "neutral",
59
- size: "sm",
60
- onClick: state.close,
61
- className: "absolute end-5 top-5",
62
- children: /* @__PURE__ */ jsx(XIcon, {})
62
+ }), !alert && !hasHeader && /* @__PURE__ */ jsx(DialogCloseButton, {
63
+ label: closeLabel,
64
+ className: "absolute end-5 top-5"
63
65
  })]
64
66
  })
65
67
  });
@@ -0,0 +1,13 @@
1
+ import { ComponentProps, ReactElement } from "react";
2
+ export type DialogHeaderAlign = "start" | "center";
3
+ export interface DialogHeaderOwnProps {
4
+ /** 닫기 버튼의 세로 정렬. `start`(기본값)는 제목 첫 줄, `center`는 한 줄 내용(입력 등)의 가운데다. */
5
+ align?: DialogHeaderAlign;
6
+ }
7
+ export interface DialogHeaderProps extends DialogHeaderOwnProps, Omit<ComponentProps<"div">, keyof DialogHeaderOwnProps> {}
8
+ /**
9
+ * 제목이나 입력과 닫기 버튼을 한 줄에 놓는 머리. 있으면 `DialogContent`의 기본 닫기 버튼을 대신한다.
10
+ * AlertDialog에서는 닫기 버튼이 없다.
11
+ * Tide props: `align` ({@link DialogHeaderOwnProps}). 나머지는 `<div>` 속성.
12
+ */
13
+ export declare function DialogHeader({ align, className, children, ...props }: DialogHeaderProps): ReactElement;
@@ -0,0 +1,34 @@
1
+ "use client";
2
+
3
+ import { cn } from "../../_internal/libs/cn.js";
4
+ import { useDialogPartsContext } from "../hooks/useDialogPartsContext.js";
5
+ import { DialogCloseButton } from "./DialogCloseButton.js";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { useLayoutEffect } from "react";
8
+
9
+ // src/Dialog/components/DialogHeader.tsx
10
+ /**
11
+ * 제목이나 입력과 닫기 버튼을 한 줄에 놓는 머리. 있으면 `DialogContent`의 기본 닫기 버튼을 대신한다.
12
+ * AlertDialog에서는 닫기 버튼이 없다.
13
+ * Tide props: `align` ({@link DialogHeaderOwnProps}). 나머지는 `<div>` 속성.
14
+ */
15
+ function DialogHeader({ align = "start", className, children, ...props }) {
16
+ const { alert, closeLabel, setHasHeader } = useDialogPartsContext("DialogHeader");
17
+ useLayoutEffect(() => {
18
+ setHasHeader(true);
19
+ return () => setHasHeader(false);
20
+ }, [setHasHeader]);
21
+ return /* @__PURE__ */ jsxs("div", {
22
+ ...props,
23
+ className: cn("flex gap-3", align === "center" ? "items-center" : "items-start", className),
24
+ children: [/* @__PURE__ */ jsx("div", {
25
+ className: "flex min-w-0 flex-1 flex-col gap-4",
26
+ children
27
+ }), !alert && /* @__PURE__ */ jsx(DialogCloseButton, {
28
+ label: closeLabel,
29
+ className: align === "start" ? "-my-0.5" : "shrink-0"
30
+ })]
31
+ });
32
+ }
33
+
34
+ export { DialogHeader };
@@ -2,6 +2,6 @@ import { ComponentProps, ReactElement } from "react";
2
2
  export type DialogTitleProps = ComponentProps<"h2">;
3
3
  /**
4
4
  * Dialog 제목(`<h2>`, `text-heading-sm`). 있으면 dialog의 `aria-labelledby`가 가리켜 이름이 된다.
5
- * Dialog에서는 끝쪽 닫기 버튼과 겹치지 않게 끝 여백(36px)을 둔다.
5
+ * `DialogHeader` 밖에서는 끝쪽 닫기 버튼과 겹치지 않게 끝 여백(36px)을 둔다.
6
6
  */
7
7
  export declare function DialogTitle({ id, className, ...props }: DialogTitleProps): ReactElement;
@@ -8,15 +8,15 @@ import { jsx } from "react/jsx-runtime";
8
8
  // src/Dialog/components/DialogTitle.tsx
9
9
  /**
10
10
  * Dialog 제목(`<h2>`, `text-heading-sm`). 있으면 dialog의 `aria-labelledby`가 가리켜 이름이 된다.
11
- * Dialog에서는 끝쪽 닫기 버튼과 겹치지 않게 끝 여백(36px)을 둔다.
11
+ * `DialogHeader` 밖에서는 끝쪽 닫기 버튼과 겹치지 않게 끝 여백(36px)을 둔다.
12
12
  */
13
13
  function DialogTitle({ id, className, ...props }) {
14
- const { alert, setTitleId } = useDialogPartsContext("DialogTitle");
14
+ const { alert, hasHeader, setTitleId } = useDialogPartsContext("DialogTitle");
15
15
  const resolvedId = usePartId(id, setTitleId);
16
16
  return /* @__PURE__ */ jsx("h2", {
17
17
  ...props,
18
18
  id: resolvedId,
19
- className: cn("text-heading-sm text-default", !alert && "pe-9", className)
19
+ className: cn("text-heading-sm text-default", !alert && !hasHeader && "pe-9", className)
20
20
  });
21
21
  }
22
22
 
@@ -3,8 +3,9 @@ import { Dialog } from "./Dialog.js";
3
3
  import { DialogTrigger, DialogTriggerOwnProps, DialogTriggerProps } from "./components/DialogTrigger.js";
4
4
  import { DialogSize } from "./types.js";
5
5
  import { DialogContent, DialogContentOwnProps, DialogContentProps } from "./components/DialogContent.js";
6
+ import { DialogHeader, DialogHeaderAlign, DialogHeaderOwnProps, DialogHeaderProps } from "./components/DialogHeader.js";
6
7
  import { DialogTitle, DialogTitleProps } from "./components/DialogTitle.js";
7
8
  import { DialogDescription, DialogDescriptionProps } from "./components/DialogDescription.js";
8
9
  import { DialogFooter, DialogFooterProps } from "./components/DialogFooter.js";
9
10
  import { DialogClose, DialogCloseOwnProps, DialogCloseProps } from "./components/DialogClose.js";
10
- export { Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps };
11
+ export { Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderAlign, type DialogHeaderOwnProps, type DialogHeaderProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { listPopupClass, listSeparatorClass } from "../../_internal/constants/listClass.js";
3
+ import { listItemsClass, listPopupClass, listSeparatorClass } from "../../_internal/constants/listClass.js";
4
4
  import { useCloseOnTab } from "../../_internal/hooks/useCloseOnTab.js";
5
5
  import { useOverlayTheme } from "../../_internal/hooks/useOverlayTheme.js";
6
6
  import { usePopoverOverlay } from "../../_internal/hooks/usePopoverOverlay.js";
@@ -39,7 +39,7 @@ function MenuContentInner({ context, popoverRef, placement = "bottom start", off
39
39
  ...rest,
40
40
  ref: mergedRef,
41
41
  "data-open": state.isOpen ? "" : void 0,
42
- className: cn(listPopupClass, className),
42
+ className: cn(listPopupClass, listItemsClass, className),
43
43
  style: {
44
44
  ...overlayProps.style,
45
45
  ...props.style
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { listHeadingClass } from "../../_internal/constants/listClass.js";
3
+ import { listHeadingClass, listItemsClass } from "../../_internal/constants/listClass.js";
4
4
  import { MenuItemView } from "./MenuItemView.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useMenuSection } from "react-aria";
@@ -21,6 +21,7 @@ function MenuSectionView({ node, tree }) {
21
21
  children: node.rendered
22
22
  }), /* @__PURE__ */ jsx("div", {
23
23
  ...groupProps,
24
+ className: listItemsClass,
24
25
  children: [...node.childNodes].map((child) => /* @__PURE__ */ jsx(MenuItemView, {
25
26
  node: child,
26
27
  tree
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { ListBoxNodes } from "../../_internal/components/ListBoxNodes/ListBoxNodes.js";
4
- import { listPopupClass } from "../../_internal/constants/listClass.js";
4
+ import { listItemsClass, listPopupClass } from "../../_internal/constants/listClass.js";
5
5
  import { useCloseOnTab } from "../../_internal/hooks/useCloseOnTab.js";
6
6
  import { useOverlayTheme } from "../../_internal/hooks/useOverlayTheme.js";
7
7
  import { usePopoverOverlay } from "../../_internal/hooks/usePopoverOverlay.js";
@@ -37,7 +37,7 @@ function SelectPopoverInner({ state, triggerRef, menuProps, popoverRef }) {
37
37
  /* @__PURE__ */ jsx("div", {
38
38
  ...listBoxProps,
39
39
  ref: listRef,
40
- className: "outline-none",
40
+ className: `${listItemsClass} outline-none`,
41
41
  children: /* @__PURE__ */ jsx(ListBoxNodes, { state })
42
42
  }),
43
43
  /* @__PURE__ */ jsx(DismissButton, { onDismiss: state.close })
@@ -1,5 +1,5 @@
1
1
  // src/Select/constants/selectClass.ts
2
- const triggerClass = "group inline-flex items-center justify-between gap-2 text-start";
2
+ const triggerClass = "group inline-flex cursor-pointer items-center justify-between gap-2 text-start";
3
3
  const valueClass = "min-w-0 flex-1 truncate [&>svg]:me-2 [&>svg]:inline-block [&>svg]:size-4 [&>svg]:align-[-0.125em]";
4
4
  const placeholderClass = "text-muted group-disabled:text-disabled";
5
5
  const chevronClass = "shrink-0 text-muted group-disabled:text-disabled";
@@ -1,6 +1,7 @@
1
- import { frequentMotionClass, overlaySurfaceClass } from "../../_internal/constants/overlayClass.js";
1
+ import { overlaySurfaceClass } from "../../_internal/constants/overlayClass.js";
2
2
 
3
3
  // src/Tooltip/constants/tooltipClass.ts
4
- const contentClass = `isolate z-tooltip max-w-60 px-2 py-1 text-body-sm ${overlaySurfaceClass} ${frequentMotionClass}`;
4
+ const motionClass = ["transition-[opacity,display] transition-discrete duration-fast ease-out data-open:transition-none", "not-data-open:pointer-events-none not-data-open:hidden not-data-open:opacity-0"].join(" ");
5
+ const contentClass = `isolate z-tooltip max-w-60 px-2 py-1 text-body-sm ${overlaySurfaceClass} ${motionClass}`;
5
6
 
6
7
  export { contentClass };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { listHeadingClass } from "../../../constants/listClass.js";
3
+ import { listHeadingClass, listItemsClass } from "../../../constants/listClass.js";
4
4
  import { ListBoxOptionView } from "./ListBoxOptionView.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useListBoxSection } from "react-aria";
@@ -22,6 +22,7 @@ function ListBoxSectionView({ node, state }) {
22
22
  children: node.rendered
23
23
  }), /* @__PURE__ */ jsx("div", {
24
24
  ...groupProps,
25
+ className: listItemsClass,
25
26
  children: [...node.childNodes].map((child) => /* @__PURE__ */ jsx(ListBoxOptionView, {
26
27
  node: child,
27
28
  state
@@ -1,14 +1,21 @@
1
- import { frequentMotionClass, overlaySurfaceClass } from "./overlayClass.js";
1
+ import { overlaySurfaceClass } from "./overlayClass.js";
2
2
 
3
3
  // src/_internal/constants/listClass.ts
4
- /** 요소에 `data-open`이 있어야 한다. padding 3px는 radius 중첩 규칙(8 = 4 + 3 + 1)이다. */
5
- const listPopupClass = `isolate z-popover min-w-40 max-w-80 overflow-auto p-[3px] outline-none ${overlaySurfaceClass} ${frequentMotionClass}`;
4
+ const listMotionClass = [
5
+ "transition-[opacity,display] transition-discrete duration-fast ease-out motion-safe:transition-[opacity,translate,display]",
6
+ "not-data-open:pointer-events-none not-data-open:hidden not-data-open:opacity-0",
7
+ "starting:opacity-0",
8
+ "motion-safe:data-[placement=bottom]:starting:-translate-y-0.5 motion-safe:data-[placement=top]:starting:translate-y-0.5",
9
+ "motion-safe:data-[placement=right]:starting:-translate-x-0.5 motion-safe:data-[placement=left]:starting:translate-x-0.5"
10
+ ].join(" ");
11
+ /** 요소에 `data-open`과 `data-placement`가 있어야 한다. padding 3px는 radius 중첩 규칙(8 = 4 + 3 + 1)이다. */
12
+ const listPopupClass = `isolate z-popover min-w-40 max-w-80 overflow-auto p-[3px] outline-none ${overlaySurfaceClass} ${listMotionClass}`;
6
13
  /**
7
14
  * 상태는 boolean `data-*`로 받고 `not-data-highlighted:`로 서로 빼 CSS 순서에 기대지 않는다.
8
- * highlight의 투명 outline은 forced-colors에서 위치를 남긴다. `outline-none`이 모양을 none으로 두어 `outline-solid`를 함께 쓴다.
15
+ * highlight의 투명 outline(`outline-none`을 덮는 `outline-solid`)은 forced-colors에서 위치를 남기고, 번쩍이지 않게 색 전환에서 뺀다(ADR 0040).
9
16
  */
10
17
  const listItemClass = [
11
- "flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-body-sm text-default outline-none select-none [&>svg]:size-4 [&>svg]:shrink-0",
18
+ "flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-body-sm text-default outline-none select-none transition-[color,background-color] [&>svg]:size-4 [&>svg]:shrink-0",
12
19
  "hover:not-data-highlighted:not-data-disabled:bg-hover",
13
20
  "data-selected:not-data-highlighted:bg-neutral-subtle-active",
14
21
  "data-highlighted:bg-primary-subtle data-highlighted:text-primary data-highlighted:outline-2 data-highlighted:outline-solid data-highlighted:-outline-offset-2 data-highlighted:outline-transparent",
@@ -16,6 +23,9 @@ const listItemClass = [
16
23
  ].join(" ");
17
24
  /** 항목과 같은 가로 여백이라 글자 시작이 맞는다. */
18
25
  const listHeadingClass = "px-2 pt-1.5 pb-1 text-label-sm text-muted select-none";
19
- const listSeparatorClass = "my-1 h-0 border-t border-default";
26
+ /** 항목을 바로 담는 요소(목록·묶음)에 붙인다. 2px 간격이 highlight·선택 배경이 맞닿지 않게 한다. */
27
+ const listItemsClass = "flex flex-col gap-0.5";
28
+ /** 양옆 간격(`gap-0.5`)과 더해 항목에서 4px 떨어진다. */
29
+ const listSeparatorClass = "my-0.5 h-0 border-t border-default";
20
30
 
21
- export { listHeadingClass, listItemClass, listPopupClass, listSeparatorClass };
31
+ export { listHeadingClass, listItemClass, listItemsClass, listPopupClass, listSeparatorClass };
@@ -14,11 +14,6 @@ const popoverMotionClass = [
14
14
  "motion-safe:data-[placement=bottom]:starting:-translate-y-1 motion-safe:data-[placement=top]:starting:translate-y-1",
15
15
  "motion-safe:data-[placement=right]:starting:-translate-x-1 motion-safe:data-[placement=left]:starting:translate-x-1"
16
16
  ].join(" ");
17
- /**
18
- * 「자주 씀」 오버레이 motion. 요소에 `data-open`이 있어야 한다.
19
- * 열린 동안 `transition-none`이라 퇴장 중에 다시 열려도 바로 불투명해진다.
20
- */
21
- const frequentMotionClass = ["transition-[opacity,display] transition-discrete duration-fast ease-out data-open:transition-none", "not-data-open:pointer-events-none not-data-open:hidden not-data-open:opacity-0"].join(" ");
22
17
  /** Dialog류 표면. forced-colors 처리는 `overlaySurfaceClass`와 같다. */
23
18
  const dialogSurfaceClass = "rounded-xl border border-raised bg-raised text-default shadow-lg";
24
19
  /**
@@ -37,4 +32,4 @@ const dialogMotionClass = [
37
32
  "starting:opacity-0 motion-safe:starting:scale-96"
38
33
  ].join(" ");
39
34
 
40
- export { backdropMotionClass, dialogMotionClass, dialogSurfaceClass, frequentMotionClass, overlaySurfaceClass, popoverMotionClass };
35
+ export { backdropMotionClass, dialogMotionClass, dialogSurfaceClass, overlaySurfaceClass, popoverMotionClass };
package/dist/index.d.ts CHANGED
@@ -89,6 +89,7 @@ import { Dialog } from "./Dialog/Dialog.js";
89
89
  import { DialogTrigger, DialogTriggerOwnProps, DialogTriggerProps } from "./Dialog/components/DialogTrigger.js";
90
90
  import { DialogSize } from "./Dialog/types.js";
91
91
  import { DialogContent, DialogContentOwnProps, DialogContentProps } from "./Dialog/components/DialogContent.js";
92
+ import { DialogHeader, DialogHeaderAlign, DialogHeaderOwnProps, DialogHeaderProps } from "./Dialog/components/DialogHeader.js";
92
93
  import { DialogTitle, DialogTitleProps } from "./Dialog/components/DialogTitle.js";
93
94
  import { DialogDescription, DialogDescriptionProps } from "./Dialog/components/DialogDescription.js";
94
95
  import { DialogFooter, DialogFooterProps } from "./Dialog/components/DialogFooter.js";
@@ -118,4 +119,4 @@ import { TooltipTrigger, TooltipTriggerOwnProps, TooltipTriggerProps } from "./T
118
119
  import { TooltipPlacement } from "./Tooltip/types.js";
119
120
  import { TooltipContent, TooltipContentOwnProps, TooltipContentProps } from "./Tooltip/components/TooltipContent.js";
120
121
  import { Color, ColorFamilyName, ColorFamilyRegistry, FillVariant, Role, RoleRegistry, Size } from "./types.js";
121
- export { Accordion, type AccordionHeadingLevel, AccordionItem, type AccordionItemOwnProps, type AccordionItemProps, type AccordionOwnProps, AccordionPanel, type AccordionPanelOwnProps, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerOwnProps, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertOwnProps, type AlertProps, Avatar, type AvatarOwnProps, type AvatarProps, Badge, type BadgeOwnProps, type BadgeProps, Breadcrumb, BreadcrumbCurrent, type BreadcrumbCurrentProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkOwnProps, type BreadcrumbLinkProps, type BreadcrumbOwnProps, type BreadcrumbProps, Button, type ButtonOwnProps, type ButtonProps, Card, type CardOwnProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupOwnProps, type CheckboxGroupProps, type CheckboxOwnProps, type CheckboxProps, type ChoiceOrientation, type Color, type ColorFamilyName, type ColorFamilyRegistry, Combobox, ComboboxItem, type ComboboxItemOwnProps, type ComboboxItemProps, type ComboboxOwnProps, type ComboboxProps, ComboboxSection, type ComboboxSectionProps, Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps, Field, type FieldOwnProps, type FieldProps, type FillVariant, IconButton, type IconButtonOwnProps, type IconButtonProps, Input, type InputOwnProps, type InputProps, Link, type LinkOwnProps, type LinkProps, Menu, MenuContent, type MenuContentOwnProps, type MenuContentProps, MenuItem, type MenuItemOwnProps, type MenuItemProps, type MenuPlacement, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerOwnProps, type MenuTriggerProps, Pagination, PaginationEllipsis, type PaginationEllipsisOwnProps, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkOwnProps, type PaginationLinkProps, PaginationNext, type PaginationNextOwnProps, type PaginationNextProps, type PaginationOwnProps, PaginationPrevious, type PaginationPreviousOwnProps, type PaginationPreviousProps, type PaginationProps, Popover, PopoverContent, type PopoverContentOwnProps, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerOwnProps, type PopoverTriggerProps, Progress, type ProgressOwnProps, type ProgressProps, Radio, RadioGroup, type RadioGroupOwnProps, type RadioGroupProps, type RadioOwnProps, type RadioProps, type Role, type RoleRegistry, Select, SelectItem, type SelectItemOwnProps, type SelectItemProps, type SelectOwnProps, type SelectProps, SelectSection, type SelectSectionProps, Separator, type SeparatorOwnProps, type SeparatorProps, type Size, Skeleton, type SkeletonOwnProps, type SkeletonProps, Spinner, type SpinnerOwnProps, type SpinnerProps, Switch, type SwitchOwnProps, type SwitchProps, Tab, TabList, type TabListOwnProps, type TabListProps, type TabOwnProps, TabPanel, type TabPanelOwnProps, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellOwnProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsOwnProps, type TabsProps, type TabsShape, Tag, TagGroup, type TagGroupOwnProps, type TagGroupProps, type TagOwnProps, type TagProps, Textarea, type TextareaOwnProps, type TextareaProps, type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionOwnProps, type ToastRegionProps, Tooltip, TooltipContent, type TooltipContentOwnProps, type TooltipContentProps, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerOwnProps, type TooltipTriggerProps, Typography, type TypographyOwnProps, type TypographyProps, VisuallyHidden, type VisuallyHiddenProps, cn };
122
+ export { Accordion, type AccordionHeadingLevel, AccordionItem, type AccordionItemOwnProps, type AccordionItemProps, type AccordionOwnProps, AccordionPanel, type AccordionPanelOwnProps, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerOwnProps, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertOwnProps, type AlertProps, Avatar, type AvatarOwnProps, type AvatarProps, Badge, type BadgeOwnProps, type BadgeProps, Breadcrumb, BreadcrumbCurrent, type BreadcrumbCurrentProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkOwnProps, type BreadcrumbLinkProps, type BreadcrumbOwnProps, type BreadcrumbProps, Button, type ButtonOwnProps, type ButtonProps, Card, type CardOwnProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupOwnProps, type CheckboxGroupProps, type CheckboxOwnProps, type CheckboxProps, type ChoiceOrientation, type Color, type ColorFamilyName, type ColorFamilyRegistry, Combobox, ComboboxItem, type ComboboxItemOwnProps, type ComboboxItemProps, type ComboboxOwnProps, type ComboboxProps, ComboboxSection, type ComboboxSectionProps, Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderAlign, type DialogHeaderOwnProps, type DialogHeaderProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps, Field, type FieldOwnProps, type FieldProps, type FillVariant, IconButton, type IconButtonOwnProps, type IconButtonProps, Input, type InputOwnProps, type InputProps, Link, type LinkOwnProps, type LinkProps, Menu, MenuContent, type MenuContentOwnProps, type MenuContentProps, MenuItem, type MenuItemOwnProps, type MenuItemProps, type MenuPlacement, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerOwnProps, type MenuTriggerProps, Pagination, PaginationEllipsis, type PaginationEllipsisOwnProps, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkOwnProps, type PaginationLinkProps, PaginationNext, type PaginationNextOwnProps, type PaginationNextProps, type PaginationOwnProps, PaginationPrevious, type PaginationPreviousOwnProps, type PaginationPreviousProps, type PaginationProps, Popover, PopoverContent, type PopoverContentOwnProps, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerOwnProps, type PopoverTriggerProps, Progress, type ProgressOwnProps, type ProgressProps, Radio, RadioGroup, type RadioGroupOwnProps, type RadioGroupProps, type RadioOwnProps, type RadioProps, type Role, type RoleRegistry, Select, SelectItem, type SelectItemOwnProps, type SelectItemProps, type SelectOwnProps, type SelectProps, SelectSection, type SelectSectionProps, Separator, type SeparatorOwnProps, type SeparatorProps, type Size, Skeleton, type SkeletonOwnProps, type SkeletonProps, Spinner, type SpinnerOwnProps, type SpinnerProps, Switch, type SwitchOwnProps, type SwitchProps, Tab, TabList, type TabListOwnProps, type TabListProps, type TabOwnProps, TabPanel, type TabPanelOwnProps, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellOwnProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsOwnProps, type TabsProps, type TabsShape, Tag, TagGroup, type TagGroupOwnProps, type TagGroupProps, type TagOwnProps, type TagProps, Textarea, type TextareaOwnProps, type TextareaProps, type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionOwnProps, type ToastRegionProps, Tooltip, TooltipContent, type TooltipContentOwnProps, type TooltipContentProps, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerOwnProps, type TooltipTriggerProps, Typography, type TypographyOwnProps, type TypographyProps, VisuallyHidden, type VisuallyHiddenProps, cn };
package/dist/index.js CHANGED
@@ -56,6 +56,7 @@ import { DialogClose } from "./Dialog/components/DialogClose.js";
56
56
  import { DialogContent } from "./Dialog/components/DialogContent.js";
57
57
  import { DialogDescription } from "./Dialog/components/DialogDescription.js";
58
58
  import { DialogFooter } from "./Dialog/components/DialogFooter.js";
59
+ import { DialogHeader } from "./Dialog/components/DialogHeader.js";
59
60
  import { DialogTitle } from "./Dialog/components/DialogTitle.js";
60
61
  import { DialogTrigger } from "./Dialog/components/DialogTrigger.js";
61
62
  import { Accordion } from "./Accordion/Accordion.js";
@@ -74,4 +75,4 @@ import { Tooltip } from "./Tooltip/Tooltip.js";
74
75
  import { TooltipContent } from "./Tooltip/components/TooltipContent.js";
75
76
  import { TooltipTrigger } from "./Tooltip/components/TooltipTrigger.js";
76
77
 
77
- export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, Alert, AlertDialog, Avatar, Badge, Breadcrumb, BreadcrumbCurrent, BreadcrumbItem, BreadcrumbLink, Button, Card, Checkbox, CheckboxGroup, Combobox, ComboboxItem, ComboboxSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, Field, IconButton, Input, Link, Menu, MenuContent, MenuItem, MenuSection, MenuTrigger, Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioGroup, Select, SelectItem, SelectSection, Separator, Skeleton, Spinner, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, Tag, TagGroup, Textarea, ToastQueue, ToastRegion, Tooltip, TooltipContent, TooltipTrigger, Typography, VisuallyHidden, cn };
78
+ export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, Alert, AlertDialog, Avatar, Badge, Breadcrumb, BreadcrumbCurrent, BreadcrumbItem, BreadcrumbLink, Button, Card, Checkbox, CheckboxGroup, Combobox, ComboboxItem, ComboboxSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Field, IconButton, Input, Link, Menu, MenuContent, MenuItem, MenuSection, MenuTrigger, Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioGroup, Select, SelectItem, SelectSection, Separator, Skeleton, Spinner, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, Tag, TagGroup, Textarea, ToastQueue, ToastRegion, Tooltip, TooltipContent, TooltipTrigger, Typography, VisuallyHidden, cn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tide-design/components",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "description": "Tide 디자인 시스템의 React Component",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -34,8 +34,8 @@
34
34
  "./styles.css": "./dist/styles.css"
35
35
  },
36
36
  "dependencies": {
37
- "@tide-design/foundation": "0.18.0",
38
- "@tide-design/icons": "0.18.0",
37
+ "@tide-design/foundation": "0.18.2",
38
+ "@tide-design/icons": "0.18.2",
39
39
  "clsx": "^2.1.1",
40
40
  "react-aria": "^3.53.1",
41
41
  "react-stately": "^3.51.0",