@tide-design/components 0.11.3 → 0.11.5

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.
Files changed (143) hide show
  1. package/dist/Accordion/Accordion.d.ts +6 -2
  2. package/dist/Accordion/Accordion.js +4 -1
  3. package/dist/Accordion/components/AccordionItem.d.ts +3 -1
  4. package/dist/Accordion/components/AccordionItem.js +1 -0
  5. package/dist/Accordion/components/AccordionPanel.d.ts +3 -1
  6. package/dist/Accordion/components/AccordionPanel.js +1 -0
  7. package/dist/Accordion/components/AccordionTrigger.d.ts +3 -1
  8. package/dist/Accordion/components/AccordionTrigger.js +1 -0
  9. package/dist/Accordion/index.d.ts +5 -5
  10. package/dist/Alert/Alert.d.ts +6 -2
  11. package/dist/Alert/Alert.js +4 -1
  12. package/dist/Alert/index.d.ts +2 -2
  13. package/dist/Avatar/Avatar.d.ts +3 -1
  14. package/dist/Avatar/Avatar.js +1 -0
  15. package/dist/Avatar/index.d.ts +2 -2
  16. package/dist/Badge/Badge.d.ts +6 -2
  17. package/dist/Badge/Badge.js +4 -1
  18. package/dist/Badge/index.d.ts +2 -2
  19. package/dist/Breadcrumb/Breadcrumb.d.ts +3 -1
  20. package/dist/Breadcrumb/Breadcrumb.js +1 -0
  21. package/dist/Breadcrumb/components/BreadcrumbLink.d.ts +6 -2
  22. package/dist/Breadcrumb/components/BreadcrumbLink.js +4 -1
  23. package/dist/Breadcrumb/index.d.ts +3 -3
  24. package/dist/Button/Button.d.ts +6 -2
  25. package/dist/Button/Button.js +4 -1
  26. package/dist/Button/index.d.ts +2 -2
  27. package/dist/Card/Card.d.ts +3 -1
  28. package/dist/Card/Card.js +1 -0
  29. package/dist/Card/index.d.ts +2 -2
  30. package/dist/Checkbox/Checkbox.d.ts +6 -2
  31. package/dist/Checkbox/Checkbox.js +4 -1
  32. package/dist/Checkbox/index.d.ts +2 -2
  33. package/dist/CheckboxGroup/CheckboxGroup.d.ts +3 -1
  34. package/dist/CheckboxGroup/CheckboxGroup.js +1 -0
  35. package/dist/CheckboxGroup/index.d.ts +2 -2
  36. package/dist/Combobox/Combobox.d.ts +3 -1
  37. package/dist/Combobox/Combobox.js +1 -0
  38. package/dist/Combobox/components/ComboboxItem.d.ts +3 -1
  39. package/dist/Combobox/components/ComboboxItem.js +1 -0
  40. package/dist/Combobox/index.d.ts +3 -3
  41. package/dist/Dialog/components/DialogClose.d.ts +3 -1
  42. package/dist/Dialog/components/DialogClose.js +1 -0
  43. package/dist/Dialog/components/DialogContent.d.ts +3 -1
  44. package/dist/Dialog/components/DialogContent.js +1 -0
  45. package/dist/Dialog/components/DialogTrigger.d.ts +3 -1
  46. package/dist/Dialog/components/DialogTrigger.js +1 -0
  47. package/dist/Dialog/index.d.ts +4 -4
  48. package/dist/Field/Field.d.ts +3 -1
  49. package/dist/Field/Field.js +1 -0
  50. package/dist/Field/index.d.ts +2 -2
  51. package/dist/IconButton/IconButton.d.ts +6 -2
  52. package/dist/IconButton/IconButton.js +4 -1
  53. package/dist/IconButton/index.d.ts +2 -2
  54. package/dist/Input/Input.d.ts +3 -1
  55. package/dist/Input/Input.js +1 -0
  56. package/dist/Input/index.d.ts +2 -2
  57. package/dist/Link/Link.d.ts +6 -2
  58. package/dist/Link/Link.js +4 -1
  59. package/dist/Link/index.d.ts +2 -2
  60. package/dist/Menu/components/MenuContent.d.ts +3 -1
  61. package/dist/Menu/components/MenuContent.js +1 -0
  62. package/dist/Menu/components/MenuItem.d.ts +3 -1
  63. package/dist/Menu/components/MenuItem.js +1 -0
  64. package/dist/Menu/components/MenuTrigger.d.ts +3 -1
  65. package/dist/Menu/components/MenuTrigger.js +1 -0
  66. package/dist/Menu/index.d.ts +4 -4
  67. package/dist/Pagination/Pagination.d.ts +3 -1
  68. package/dist/Pagination/Pagination.js +1 -0
  69. package/dist/Pagination/components/PaginationEllipsis.d.ts +6 -2
  70. package/dist/Pagination/components/PaginationEllipsis.js +4 -1
  71. package/dist/Pagination/components/PaginationLink.d.ts +6 -2
  72. package/dist/Pagination/components/PaginationLink.js +4 -1
  73. package/dist/Pagination/components/PaginationNext.d.ts +6 -2
  74. package/dist/Pagination/components/PaginationNext.js +4 -1
  75. package/dist/Pagination/components/PaginationPrevious.d.ts +6 -2
  76. package/dist/Pagination/components/PaginationPrevious.js +4 -1
  77. package/dist/Pagination/index.d.ts +6 -6
  78. package/dist/Pagination/types.d.ts +5 -4
  79. package/dist/Popover/components/PopoverContent.d.ts +3 -1
  80. package/dist/Popover/components/PopoverContent.js +1 -0
  81. package/dist/Popover/components/PopoverTrigger.d.ts +3 -1
  82. package/dist/Popover/components/PopoverTrigger.js +1 -0
  83. package/dist/Popover/index.d.ts +3 -3
  84. package/dist/Progress/Progress.d.ts +6 -3
  85. package/dist/Progress/Progress.js +4 -1
  86. package/dist/Progress/index.d.ts +2 -2
  87. package/dist/Radio/Radio.d.ts +6 -2
  88. package/dist/Radio/Radio.js +4 -1
  89. package/dist/Radio/index.d.ts +2 -2
  90. package/dist/RadioGroup/RadioGroup.d.ts +3 -1
  91. package/dist/RadioGroup/RadioGroup.js +1 -0
  92. package/dist/RadioGroup/index.d.ts +2 -2
  93. package/dist/Select/Select.d.ts +3 -1
  94. package/dist/Select/Select.js +1 -0
  95. package/dist/Select/components/SelectItem.d.ts +3 -1
  96. package/dist/Select/components/SelectItem.js +1 -0
  97. package/dist/Select/index.d.ts +3 -3
  98. package/dist/Separator/Separator.d.ts +6 -2
  99. package/dist/Separator/Separator.js +4 -1
  100. package/dist/Separator/index.d.ts +2 -2
  101. package/dist/Skeleton/Skeleton.d.ts +4 -3
  102. package/dist/Skeleton/Skeleton.js +1 -0
  103. package/dist/Skeleton/index.d.ts +2 -2
  104. package/dist/Spinner/Spinner.d.ts +3 -1
  105. package/dist/Spinner/Spinner.js +1 -0
  106. package/dist/Spinner/index.d.ts +2 -2
  107. package/dist/Switch/Switch.d.ts +3 -1
  108. package/dist/Switch/Switch.js +1 -0
  109. package/dist/Switch/index.d.ts +2 -2
  110. package/dist/Table/components/TableHeaderCell.d.ts +3 -1
  111. package/dist/Table/components/TableHeaderCell.js +1 -0
  112. package/dist/Table/index.d.ts +2 -2
  113. package/dist/Tabs/Tabs.d.ts +4 -2
  114. package/dist/Tabs/Tabs.js +1 -0
  115. package/dist/Tabs/components/Tab.d.ts +3 -1
  116. package/dist/Tabs/components/Tab.js +1 -0
  117. package/dist/Tabs/components/TabList.d.ts +3 -1
  118. package/dist/Tabs/components/TabList.js +1 -0
  119. package/dist/Tabs/components/TabPanel.d.ts +3 -1
  120. package/dist/Tabs/components/TabPanel.js +1 -0
  121. package/dist/Tabs/index.d.ts +5 -5
  122. package/dist/Tag/Tag.d.ts +3 -1
  123. package/dist/Tag/Tag.js +1 -0
  124. package/dist/Tag/components/TagGroup.d.ts +3 -2
  125. package/dist/Tag/components/TagGroup.js +1 -0
  126. package/dist/Tag/index.d.ts +3 -3
  127. package/dist/Textarea/Textarea.d.ts +3 -1
  128. package/dist/Textarea/Textarea.js +1 -0
  129. package/dist/Textarea/index.d.ts +2 -2
  130. package/dist/Toast/Toast.d.ts +3 -1
  131. package/dist/Toast/Toast.js +1 -0
  132. package/dist/Toast/index.d.ts +2 -2
  133. package/dist/Tooltip/components/TooltipContent.d.ts +3 -1
  134. package/dist/Tooltip/components/TooltipContent.js +1 -0
  135. package/dist/Tooltip/components/TooltipTrigger.d.ts +3 -1
  136. package/dist/Tooltip/components/TooltipTrigger.js +1 -0
  137. package/dist/Tooltip/index.d.ts +3 -3
  138. package/dist/Typography/Typography.d.ts +8 -4
  139. package/dist/Typography/Typography.js +1 -0
  140. package/dist/Typography/index.d.ts +2 -2
  141. package/dist/_internal/components/ListBoxNodes/types.d.ts +2 -1
  142. package/dist/index.d.ts +54 -54
  143. package/package.json +14 -3
@@ -1,6 +1,6 @@
1
1
  import { ChoiceOrientation } from "../_internal/constants/choiceGroupClass.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
- export interface RadioGroupProps extends Omit<ComponentProps<"div">, "defaultValue"> {
3
+ export interface RadioGroupOwnProps {
4
4
  /** 안의 Radio가 함께 쓰는 `name`. form에 이 이름으로 제출된다. 주지 않으면 자동으로 만든다. */
5
5
  name?: string;
6
6
  /** 선택된 Radio의 값(제어). `onValueChange`와 함께 쓴다. */
@@ -21,8 +21,10 @@ export interface RadioGroupProps extends Omit<ComponentProps<"div">, "defaultVal
21
21
  /** 하나를 꼭 골라야 한다. 안의 Radio에 네이티브 `required`가 붙고 묶음에 `aria-required`가 붙는다. */
22
22
  required?: boolean;
23
23
  }
24
+ export interface RadioGroupProps extends RadioGroupOwnProps, Omit<ComponentProps<"div">, keyof RadioGroupOwnProps> {}
24
25
  /**
25
26
  * Radio 여러 개를 하나의 이름과 선택 값으로 묶는다. `<Field label group>` 안에 두면 label이 묶음의 이름,
26
27
  * 설명·오류가 묶음의 설명이 된다. Field 밖에서는 `aria-label`이나 `aria-labelledby`를 준다.
28
+ * Tide props: `name`, `value`, `defaultValue`, `onValueChange`, `orientation`, `invalid`, `disabled`, `required` ({@link RadioGroupOwnProps}). 나머지는 `<div>` 속성.
27
29
  */
28
30
  export declare function RadioGroup({ name, value, defaultValue, onValueChange, orientation, invalid, disabled, required, id, className, children, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: RadioGroupProps): ReactElement;
@@ -11,6 +11,7 @@ import { useId } from "react";
11
11
  /**
12
12
  * Radio 여러 개를 하나의 이름과 선택 값으로 묶는다. `<Field label group>` 안에 두면 label이 묶음의 이름,
13
13
  * 설명·오류가 묶음의 설명이 된다. Field 밖에서는 `aria-label`이나 `aria-labelledby`를 준다.
14
+ * Tide props: `name`, `value`, `defaultValue`, `onValueChange`, `orientation`, `invalid`, `disabled`, `required` ({@link RadioGroupOwnProps}). 나머지는 `<div>` 속성.
14
15
  */
15
16
  function RadioGroup({ name, value, defaultValue, onValueChange, orientation = "vertical", invalid, disabled, required, id, className, children, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }) {
16
17
  const autoName = useId();
@@ -1,2 +1,2 @@
1
- import { RadioGroup, RadioGroupProps } from "./RadioGroup.js";
2
- export { RadioGroup, type RadioGroupProps };
1
+ import { RadioGroup, RadioGroupOwnProps, RadioGroupProps } from "./RadioGroup.js";
2
+ export { RadioGroup, type RadioGroupOwnProps, type RadioGroupProps };
@@ -1,6 +1,6 @@
1
1
  import { InputSize } from "../_internal/constants/inputClass.js";
2
2
  import { ComponentProps, ReactElement, ReactNode } from "react";
3
- export interface SelectProps extends Omit<ComponentProps<"button">, "value" | "defaultValue" | "onChange" | "type" | "size" | "children" | "name" | "form"> {
3
+ export interface SelectOwnProps {
4
4
  /** 고른 옵션의 `value`(제어). `null`이면 아무것도 고르지 않은 상태다. */
5
5
  value?: string | null;
6
6
  /** 처음 고른 값(비제어). 폼을 reset하면 이 값으로 돌아간다. */
@@ -30,8 +30,10 @@ export interface SelectProps extends Omit<ComponentProps<"button">, "value" | "d
30
30
  /** `SelectItem`과 `SelectSection`. 이 요소들을 바로 아래(또는 Fragment·배열 안)에 둔다. */
31
31
  children?: ReactNode;
32
32
  }
33
+ export interface SelectProps extends SelectOwnProps, Omit<ComponentProps<"button">, keyof SelectOwnProps | "onChange" | "type"> {}
33
34
  /**
34
35
  * 값 하나를 고르는 입력. 루트 DOM은 트리거 `<button>`이고 목록은 `document.body`에 portal한다.
35
36
  * Field 안에 두면 label·설명·오류가 자동으로 연결되고, `name`을 주면 고른 값이 폼에 제출된다.
37
+ * Tide props: `value`, `defaultValue`, `onValueChange`, `open`, `defaultOpen`, `onOpenChange`, `name`, `form`, `autoComplete`, `placeholder`, `size`, `invalid`, `required`, `children` ({@link SelectOwnProps}). 나머지는 `<button>` 속성.
36
38
  */
37
39
  export declare function Select({ value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, name, form, autoComplete, placeholder, size, invalid, disabled, required, id, ref, className, children, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: SelectProps): ReactElement;
@@ -16,6 +16,7 @@ import { useSelectState } from "react-stately";
16
16
  /**
17
17
  * 값 하나를 고르는 입력. 루트 DOM은 트리거 `<button>`이고 목록은 `document.body`에 portal한다.
18
18
  * Field 안에 두면 label·설명·오류가 자동으로 연결되고, `name`을 주면 고른 값이 폼에 제출된다.
19
+ * Tide props: `value`, `defaultValue`, `onValueChange`, `open`, `defaultOpen`, `onOpenChange`, `name`, `form`, `autoComplete`, `placeholder`, `size`, `invalid`, `required`, `children` ({@link SelectOwnProps}). 나머지는 `<button>` 속성.
19
20
  */
20
21
  function Select({ value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, name, form, autoComplete, placeholder = "선택하세요", size = "md", invalid, disabled, required, id, ref, className, children, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }) {
21
22
  const field = use(FieldContext);
@@ -1,7 +1,9 @@
1
- import { ListBoxOptionProps } from "../../_internal/components/ListBoxNodes/types.js";
1
+ import { ListBoxOptionOwnProps, ListBoxOptionProps } from "../../_internal/components/ListBoxNodes/types.js";
2
+ export interface SelectItemOwnProps extends ListBoxOptionOwnProps {}
2
3
  export interface SelectItemProps extends ListBoxOptionProps {}
3
4
  /**
4
5
  * Select의 옵션(`role="option"`). `Select`나 `SelectSection` 바로 안에 둔다. `value`가 고른 값이고 폼에 제출된다.
5
6
  * 내용(아이콘과 글자)은 고르면 트리거에도 보인다. 상태는 `data-highlighted`·`data-selected`·`data-disabled`다.
7
+ * Tide props: `value`, `disabled`, `textValue`, `aria-label`, `children` ({@link SelectItemOwnProps}). 나머지는 `<div>` 속성.
6
8
  */
7
9
  export declare function SelectItem(_props: SelectItemProps): null;
@@ -6,6 +6,7 @@ import { asCollectionComponent, valueItemCollectionNode } from "../../_internal/
6
6
  /**
7
7
  * Select의 옵션(`role="option"`). `Select`나 `SelectSection` 바로 안에 둔다. `value`가 고른 값이고 폼에 제출된다.
8
8
  * 내용(아이콘과 글자)은 고르면 트리거에도 보인다. 상태는 `data-highlighted`·`data-selected`·`data-disabled`다.
9
+ * Tide props: `value`, `disabled`, `textValue`, `aria-label`, `children` ({@link SelectItemOwnProps}). 나머지는 `<div>` 속성.
9
10
  */
10
11
  function SelectItem(_props) {
11
12
  return null;
@@ -1,4 +1,4 @@
1
- import { Select, SelectProps } from "./Select.js";
2
- import { SelectItem, SelectItemProps } from "./components/SelectItem.js";
1
+ import { Select, SelectOwnProps, SelectProps } from "./Select.js";
2
+ import { SelectItem, SelectItemOwnProps, SelectItemProps } from "./components/SelectItem.js";
3
3
  import { SelectSection, SelectSectionProps } from "./components/SelectSection.js";
4
- export { Select, SelectItem, type SelectItemProps, type SelectProps, SelectSection, type SelectSectionProps };
4
+ export { Select, SelectItem, type SelectItemOwnProps, type SelectItemProps, type SelectOwnProps, type SelectProps, SelectSection, type SelectSectionProps };
@@ -1,11 +1,15 @@
1
1
  import { ComponentProps, ReactElement } from "react";
2
2
  type SeparatorOrientation = "horizontal" | "vertical";
3
- export interface SeparatorProps extends Omit<ComponentProps<"hr">, "children" | "role"> {
3
+ export interface SeparatorOwnProps {
4
4
  /** `horizontal`(기본값)은 위아래 내용을, `vertical`은 한 줄 안의 양옆 내용을 나눈다. */
5
5
  orientation?: SeparatorOrientation;
6
6
  /** 보기만 나누는 선이면 `true`(`role="none"`, 보조 기술에서 빠진다). 기본값 `false`. 주제가 바뀌는 곳이면 `false`로 둔다. */
7
7
  decorative?: boolean;
8
8
  }
9
- /** 내용 묶음 사이를 선(`<hr>`)으로 나눈다. `decorative`면 보조 기술에서 빠진다. 서버 컴포넌트로 쓸 수 있다. */
9
+ export interface SeparatorProps extends SeparatorOwnProps, Omit<ComponentProps<"hr">, keyof SeparatorOwnProps | "children" | "role"> {}
10
+ /**
11
+ * 내용 묶음 사이를 선(`<hr>`)으로 나눈다. `decorative`면 보조 기술에서 빠진다. 서버 컴포넌트로 쓸 수 있다.
12
+ * Tide props: `orientation`, `decorative` ({@link SeparatorOwnProps}). 나머지는 `<hr>` 속성.
13
+ */
10
14
  export declare function Separator({ orientation, decorative, className, ...props }: SeparatorProps): ReactElement;
11
15
  export {};
@@ -7,7 +7,10 @@ const orientationClass = {
7
7
  vertical: "h-auto w-0 self-stretch border-s"
8
8
  };
9
9
  const baseClass = "m-0 shrink-0 border-0 border-default";
10
- /** 내용 묶음 사이를 선(`<hr>`)으로 나눈다. `decorative`면 보조 기술에서 빠진다. 서버 컴포넌트로 쓸 수 있다. */
10
+ /**
11
+ * 내용 묶음 사이를 선(`<hr>`)으로 나눈다. `decorative`면 보조 기술에서 빠진다. 서버 컴포넌트로 쓸 수 있다.
12
+ * Tide props: `orientation`, `decorative` ({@link SeparatorOwnProps}). 나머지는 `<hr>` 속성.
13
+ */
11
14
  function Separator({ orientation = "horizontal", decorative = false, className, ...props }) {
12
15
  return /* @__PURE__ */ jsx("hr", {
13
16
  ...props,
@@ -1,2 +1,2 @@
1
- import { Separator, SeparatorProps } from "./Separator.js";
2
- export { Separator, type SeparatorProps };
1
+ import { Separator, SeparatorOwnProps, SeparatorProps } from "./Separator.js";
2
+ export { Separator, type SeparatorOwnProps, type SeparatorProps };
@@ -1,9 +1,8 @@
1
1
  import { Size } from "../types.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
3
  type SkeletonCircleSize = Extract<Size, "xs" | "sm" | "md" | "lg">;
4
- interface SkeletonBaseProps extends Omit<ComponentProps<"div">, "children" | "aria-hidden"> {}
5
4
  /** `size`는 원(`circle`)에만 있다. */
6
- export type SkeletonProps = SkeletonBaseProps & ({
5
+ export type SkeletonOwnProps = {
7
6
  /** 모양. `text`는 글 한 줄, `rect`는 사각형(높이는 `className`으로), `circle`은 원. 기본값 `text`. */
8
7
  variant?: "text" | "rect";
9
8
  size?: never;
@@ -11,10 +10,12 @@ export type SkeletonProps = SkeletonBaseProps & ({
11
10
  variant: "circle";
12
11
  /** 원 크기. `xs` 24px, `sm` 32px, `md` 40px, `lg` 48px(Avatar와 같다). 기본값 `md`. */
13
12
  size?: SkeletonCircleSize;
14
- });
13
+ };
14
+ export type SkeletonProps = SkeletonOwnProps & Omit<ComponentProps<"div">, keyof SkeletonOwnProps | "children" | "aria-hidden">;
15
15
  /**
16
16
  * 내용이 오기 전 자리를 표시한다. 스크린 리더에는 읽히지 않는다(`aria-hidden`).
17
17
  * 불러오는 중이라는 사실은 앱이 `aria-busy`나 보이는 문구로 알린다. 서버 컴포넌트로 쓸 수 있다.
18
+ * Tide props: `variant`, `size` ({@link SkeletonOwnProps}). 나머지는 `<div>` 속성.
18
19
  */
19
20
  export declare function Skeleton({ variant, size, className, ...props }: SkeletonProps): ReactElement;
20
21
  export {};
@@ -17,6 +17,7 @@ const baseClass = "block border border-transparent bg-neutral-subtle-active moti
17
17
  /**
18
18
  * 내용이 오기 전 자리를 표시한다. 스크린 리더에는 읽히지 않는다(`aria-hidden`).
19
19
  * 불러오는 중이라는 사실은 앱이 `aria-busy`나 보이는 문구로 알린다. 서버 컴포넌트로 쓸 수 있다.
20
+ * Tide props: `variant`, `size` ({@link SkeletonOwnProps}). 나머지는 `<div>` 속성.
20
21
  */
21
22
  function Skeleton({ variant = "text", size, className, ...props }) {
22
23
  return /* @__PURE__ */ jsx("div", {
@@ -1,2 +1,2 @@
1
- import { Skeleton, SkeletonProps } from "./Skeleton.js";
2
- export { Skeleton, type SkeletonProps };
1
+ import { Skeleton, SkeletonOwnProps, SkeletonProps } from "./Skeleton.js";
2
+ export { Skeleton, type SkeletonOwnProps, type SkeletonProps };
@@ -1,14 +1,16 @@
1
1
  import { Size } from "../types.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
3
  type SpinnerSize = Extract<Size, "xs" | "sm" | "md" | "lg">;
4
- export interface SpinnerProps extends Omit<ComponentProps<"svg">, "children"> {
4
+ export interface SpinnerOwnProps {
5
5
  /** `xs`·`sm` 14px, `md` 16px, `lg` 20px(같은 size Component의 텍스트 옆 아이콘 크기). 기본값 `md`. */
6
6
  size?: SpinnerSize;
7
7
  /** 접근 가능한 이름. 기본값은 `"로딩 중"`이다. 무엇을 불러오는지 적으면 더 좋다. */
8
8
  "aria-label"?: string;
9
9
  }
10
+ export interface SpinnerProps extends SpinnerOwnProps, Omit<ComponentProps<"svg">, keyof SpinnerOwnProps | "children"> {}
10
11
  /**
11
12
  * 로딩 중임을 알리는 회전 표시(`role="status"`). 색은 주변 글자색을 따르고, 움직임 줄이기에서도 멈추지 않는다.
13
+ * Tide props: `size`, `aria-label` ({@link SpinnerOwnProps}). 나머지는 `<svg>` 속성.
12
14
  */
13
15
  export declare function Spinner({ size, className, "aria-label": ariaLabel, ...props }: SpinnerProps): ReactElement;
14
16
  export {};
@@ -10,6 +10,7 @@ const sizeClass = {
10
10
  };
11
11
  /**
12
12
  * 로딩 중임을 알리는 회전 표시(`role="status"`). 색은 주변 글자색을 따르고, 움직임 줄이기에서도 멈추지 않는다.
13
+ * Tide props: `size`, `aria-label` ({@link SpinnerOwnProps}). 나머지는 `<svg>` 속성.
13
14
  */
14
15
  function Spinner({ size = "md", className, "aria-label": ariaLabel = "로딩 중", ...props }) {
15
16
  return /* @__PURE__ */ jsx("svg", {
@@ -1,2 +1,2 @@
1
- import { Spinner, SpinnerProps } from "./Spinner.js";
2
- export { Spinner, type SpinnerProps };
1
+ import { Spinner, SpinnerOwnProps, SpinnerProps } from "./Spinner.js";
2
+ export { Spinner, type SpinnerOwnProps, type SpinnerProps };
@@ -2,7 +2,7 @@ import { Role, Size } from "../types.js";
2
2
  import { CSSProperties, ComponentProps, ReactElement, ReactNode } from "react";
3
3
  /** Switch의 size. `xs`는 track이 너무 작아 받지 않는다. */
4
4
  type SwitchSize = Extract<Size, "sm" | "md" | "lg">;
5
- export interface SwitchProps extends Omit<ComponentProps<"input">, "type" | "size" | "color" | "role" | "children"> {
5
+ export interface SwitchOwnProps {
6
6
  /** 스위치 옆에 보이는 label. 스위치의 이름이 된다. Field 안에서는 Field의 `label`을 쓰고 비워 둔다. */
7
7
  children?: ReactNode;
8
8
  /** track 크기 `sm` 28×16px, `md` 36×20px, `lg` 44×24px. label 글자 크기도 함께 바뀐다. 기본값 `md`. */
@@ -16,9 +16,11 @@ export interface SwitchProps extends Omit<ComponentProps<"input">, "type" | "siz
16
16
  /** 루트 `<label>`의 style */
17
17
  style?: CSSProperties;
18
18
  }
19
+ export interface SwitchProps extends SwitchOwnProps, Omit<ComponentProps<"input">, keyof SwitchOwnProps | "type" | "role"> {}
19
20
  /**
20
21
  * 켜고 끄는 스위치. 네이티브 체크박스(`role="switch"`)라 form 제출이 그대로 된다.
21
22
  * `children`이 label이 된다. Field 안에 두면 Field의 label·설명·오류가 연결된다.
23
+ * Tide props: `children`, `size`, `color`, `invalid`, `className`, `style` ({@link SwitchOwnProps}). 나머지는 `<input>` 속성.
22
24
  */
23
25
  export declare function Switch({ children, size, color, invalid, id, disabled, required, className, style, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }: SwitchProps): ReactElement;
24
26
  export {};
@@ -27,6 +27,7 @@ const thumbForcedClass = "forced-colors:forced-color-adjust-none forced-colors:[
27
27
  /**
28
28
  * 켜고 끄는 스위치. 네이티브 체크박스(`role="switch"`)라 form 제출이 그대로 된다.
29
29
  * `children`이 label이 된다. Field 안에 두면 Field의 label·설명·오류가 연결된다.
30
+ * Tide props: `children`, `size`, `color`, `invalid`, `className`, `style` ({@link SwitchOwnProps}). 나머지는 `<input>` 속성.
30
31
  */
31
32
  function Switch({ children, size = "md", color = "primary", invalid, id, disabled, required, className, style, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }) {
32
33
  const control = useFieldControl({
@@ -1,2 +1,2 @@
1
- import { Switch, SwitchProps } from "./Switch.js";
2
- export { Switch, type SwitchProps };
1
+ import { Switch, SwitchOwnProps, SwitchProps } from "./Switch.js";
2
+ export { Switch, type SwitchOwnProps, type SwitchProps };
@@ -1,13 +1,15 @@
1
1
  import { ComponentProps, ReactElement } from "react";
2
- export interface TableHeaderCellProps extends ComponentProps<"th"> {
2
+ export interface TableHeaderCellOwnProps {
3
3
  /**
4
4
  * 이 머리 칸이 맡는 범위. 기본값은 `"col"`(아래 열)이다. 본문 행의 첫 칸처럼 행을 맡으면 `"row"`를 준다.
5
5
  * 열 그룹·행 그룹 머리는 `"colgroup"`·`"rowgroup"`이다.
6
6
  */
7
7
  scope?: "col" | "row" | "colgroup" | "rowgroup";
8
8
  }
9
+ export interface TableHeaderCellProps extends TableHeaderCellOwnProps, Omit<ComponentProps<"th">, keyof TableHeaderCellOwnProps> {}
9
10
  /**
10
11
  * 머리 칸 `<th>`. 기본은 `scope="col"`(열 머리, columnheader)이다. 본문 행의 행 머리는 `scope="row"`(rowheader)를 준다.
11
12
  * 복잡한 표(여러 줄 머리)는 `id`와 칸의 `headers`로 직접 잇는다.
13
+ * Tide props: `scope` ({@link TableHeaderCellOwnProps}). 나머지는 `<th>` 속성.
12
14
  */
13
15
  export declare function TableHeaderCell({ scope, className, ...props }: TableHeaderCellProps): ReactElement;
@@ -6,6 +6,7 @@ import { jsx } from "react/jsx-runtime";
6
6
  /**
7
7
  * 머리 칸 `<th>`. 기본은 `scope="col"`(열 머리, columnheader)이다. 본문 행의 행 머리는 `scope="row"`(rowheader)를 준다.
8
8
  * 복잡한 표(여러 줄 머리)는 `id`와 칸의 `headers`로 직접 잇는다.
9
+ * Tide props: `scope` ({@link TableHeaderCellOwnProps}). 나머지는 `<th>` 속성.
9
10
  */
10
11
  function TableHeaderCell({ scope = "col", className, ...props }) {
11
12
  return /* @__PURE__ */ jsx("th", {
@@ -2,6 +2,6 @@ import { Table, TableProps } from "./Table.js";
2
2
  import { TableHead, TableHeadProps } from "./components/TableHead.js";
3
3
  import { TableBody, TableBodyProps } from "./components/TableBody.js";
4
4
  import { TableRow, TableRowProps } from "./components/TableRow.js";
5
- import { TableHeaderCell, TableHeaderCellProps } from "./components/TableHeaderCell.js";
5
+ import { TableHeaderCell, TableHeaderCellOwnProps, TableHeaderCellProps } from "./components/TableHeaderCell.js";
6
6
  import { TableCell, TableCellProps } from "./components/TableCell.js";
7
- export { Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps };
7
+ export { Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellOwnProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps };
@@ -9,7 +9,7 @@ type TabsValueProps = {
9
9
  /** 처음 고른 탭의 값(비제어). 서버 렌더에서도 그 패널이 바로 보이도록 `value`나 `defaultValue` 하나는 꼭 준다. */
10
10
  defaultValue: string;
11
11
  };
12
- interface TabsBaseProps extends Omit<ComponentProps<"div">, "defaultValue" | "onChange"> {
12
+ interface TabsBaseOwnProps {
13
13
  /** 고른 탭이 바뀌려 할 때 부른다. 같은 탭을 다시 누르면 부르지 않고, 준 값의 탭이 없으면 첫 활성 탭으로 부른다. */
14
14
  onValueChange?: (value: string) => void;
15
15
  /** 탭 목록의 방향. 기본값은 `horizontal`이다. 세로면 ↓↑로 옮기고 탭 목록이 패널의 시작쪽에 선다. */
@@ -19,10 +19,12 @@ interface TabsBaseProps extends Omit<ComponentProps<"div">, "defaultValue" | "on
19
19
  /** `TabList` 하나와 `TabPanel`들 */
20
20
  children?: ReactNode;
21
21
  }
22
- export type TabsProps = TabsBaseProps & TabsValueProps;
22
+ export type TabsOwnProps = TabsBaseOwnProps & TabsValueProps;
23
+ export type TabsProps = TabsOwnProps & Omit<ComponentProps<"div">, keyof TabsOwnProps | "onChange">;
23
24
  /**
24
25
  * 같은 영역의 여러 패널 중 하나를 고르는 탭 묶음. 루트는 `<div>`이고 방향이 `data-orientation`으로 붙는다.
25
26
  * 안에 `TabList` 하나와 탭마다 `TabPanel`을 둔다.
27
+ * Tide props: `value`, `defaultValue`, `onValueChange`, `orientation`, `activationMode`, `children` ({@link TabsOwnProps}). 나머지는 `<div>` 속성.
26
28
  */
27
29
  export declare function Tabs({ value: valueProp, defaultValue, onValueChange, orientation, activationMode, ref, className, children, ...props }: TabsProps): ReactElement;
28
30
  export {};
package/dist/Tabs/Tabs.js CHANGED
@@ -12,6 +12,7 @@ const idPart = (value) => value.replace(/\s+/g, "");
12
12
  /**
13
13
  * 같은 영역의 여러 패널 중 하나를 고르는 탭 묶음. 루트는 `<div>`이고 방향이 `data-orientation`으로 붙는다.
14
14
  * 안에 `TabList` 하나와 탭마다 `TabPanel`을 둔다.
15
+ * Tide props: `value`, `defaultValue`, `onValueChange`, `orientation`, `activationMode`, `children` ({@link TabsOwnProps}). 나머지는 `<div>` 속성.
15
16
  */
16
17
  function Tabs({ value: valueProp, defaultValue, onValueChange, orientation = "horizontal", activationMode = "automatic", ref, className, children, ...props }) {
17
18
  const [internal, setInternal] = useState(defaultValue ?? "");
@@ -1,11 +1,13 @@
1
1
  import { CollectionValueItemProps } from "../../_internal/libs/listCollection.js";
2
2
  import { ComponentProps, ReactNode } from "react";
3
- export interface TabProps extends Omit<ComponentProps<"button">, "value" | "type" | "role" | "id" | "disabled" | "children">, Omit<CollectionValueItemProps, "textValue"> {
3
+ export interface TabOwnProps extends Omit<CollectionValueItemProps, "textValue"> {
4
4
  /** 탭 글자. 아이콘(장식용)과 글자를 함께 둘 수 있다. */
5
5
  children?: ReactNode;
6
6
  }
7
+ export interface TabProps extends TabOwnProps, Omit<ComponentProps<"button">, keyof TabOwnProps | "type" | "role" | "id"> {}
7
8
  /**
8
9
  * 탭 하나(`role="tab"`). `TabList` 바로 안에 두고, 같은 `value`의 `TabPanel`과 이어진다.
9
10
  * 고른 탭은 `data-selected`·`aria-selected="true"`다. `disabled`면 고를 수 없고 키보드 이동도 건너뛴다.
11
+ * Tide props: `value`, `disabled`, `aria-label`, `children` ({@link TabOwnProps}). 나머지는 `<button>` 속성.
10
12
  */
11
13
  export declare function Tab(_props: TabProps): null;
@@ -6,6 +6,7 @@ import { asCollectionComponent, valueItemCollectionNode } from "../../_internal/
6
6
  /**
7
7
  * 탭 하나(`role="tab"`). `TabList` 바로 안에 두고, 같은 `value`의 `TabPanel`과 이어진다.
8
8
  * 고른 탭은 `data-selected`·`aria-selected="true"`다. `disabled`면 고를 수 없고 키보드 이동도 건너뛴다.
9
+ * Tide props: `value`, `disabled`, `aria-label`, `children` ({@link TabOwnProps}). 나머지는 `<button>` 속성.
9
10
  */
10
11
  function Tab(_props) {
11
12
  return null;
@@ -1,10 +1,12 @@
1
1
  import { ComponentProps, ReactElement, ReactNode } from "react";
2
- export interface TabListProps extends Omit<ComponentProps<"div">, "role" | "children"> {
2
+ export interface TabListOwnProps {
3
3
  /** `Tab`. 바로 아래(또는 Fragment·배열 안)에 둔다. */
4
4
  children?: ReactNode;
5
5
  }
6
+ export interface TabListProps extends TabListOwnProps, Omit<ComponentProps<"div">, keyof TabListOwnProps | "role"> {}
6
7
  /**
7
8
  * 탭 목록(`role="tablist"`). 화살표로 탭을 옮기고(끝에서 처음으로 돈다) Home·End로 처음·마지막 탭에 간다.
8
9
  * 비활성 탭은 건너뛴다. 이름은 `aria-label`이나 `aria-labelledby`로 준다.
10
+ * Tide props: `children` ({@link TabListOwnProps}). 나머지는 `<div>` 속성.
9
11
  */
10
12
  export declare function TabList({ ref, className, children, ...props }: TabListProps): ReactElement;
@@ -14,6 +14,7 @@ import { useTabListState } from "react-stately";
14
14
  /**
15
15
  * 탭 목록(`role="tablist"`). 화살표로 탭을 옮기고(끝에서 처음으로 돈다) Home·End로 처음·마지막 탭에 간다.
16
16
  * 비활성 탭은 건너뛴다. 이름은 `aria-label`이나 `aria-labelledby`로 준다.
17
+ * Tide props: `children` ({@link TabListOwnProps}). 나머지는 `<div>` 속성.
17
18
  */
18
19
  function TabList({ ref, className, children, ...props }) {
19
20
  const context = useTabsContext("TabList");
@@ -1,10 +1,12 @@
1
1
  import { ComponentProps, ReactElement } from "react";
2
- export interface TabPanelProps extends Omit<ComponentProps<"div">, "id" | "role"> {
2
+ export interface TabPanelOwnProps {
3
3
  /** 이어지는 `Tab`의 값. 그 탭을 고른 동안만 렌더한다. */
4
4
  value: string;
5
5
  }
6
+ export interface TabPanelProps extends TabPanelOwnProps, Omit<ComponentProps<"div">, keyof TabPanelOwnProps | "id" | "role"> {}
6
7
  /**
7
8
  * 탭 하나의 내용(`role="tabpanel"`). 같은 `value`의 탭을 고른 동안만 렌더하고, 그 탭이 이름이 된다.
8
9
  * 탭 다음 Tab 순서에 들어간다(`tabIndex` 기본 `0`). 첫 내용이 조작 요소면 `tabIndex={-1}`로 뺄 수 있다.
10
+ * Tide props: `value` ({@link TabPanelOwnProps}). 나머지는 `<div>` 속성.
9
11
  */
10
12
  export declare function TabPanel({ value, ref, className, tabIndex, ...props }: TabPanelProps): ReactElement | null;
@@ -9,6 +9,7 @@ import { jsx } from "react/jsx-runtime";
9
9
  /**
10
10
  * 탭 하나의 내용(`role="tabpanel"`). 같은 `value`의 탭을 고른 동안만 렌더하고, 그 탭이 이름이 된다.
11
11
  * 탭 다음 Tab 순서에 들어간다(`tabIndex` 기본 `0`). 첫 내용이 조작 요소면 `tabIndex={-1}`로 뺄 수 있다.
12
+ * Tide props: `value` ({@link TabPanelOwnProps}). 나머지는 `<div>` 속성.
12
13
  */
13
14
  function TabPanel({ value, ref, className, tabIndex = 0, ...props }) {
14
15
  const context = useTabsContext("TabPanel");
@@ -1,6 +1,6 @@
1
- import { Tabs, TabsProps } from "./Tabs.js";
2
- import { TabList, TabListProps } from "./components/TabList.js";
3
- import { Tab, TabProps } from "./components/Tab.js";
4
- import { TabPanel, TabPanelProps } from "./components/TabPanel.js";
1
+ import { Tabs, TabsOwnProps, TabsProps } from "./Tabs.js";
2
+ import { TabList, TabListOwnProps, TabListProps } from "./components/TabList.js";
3
+ import { Tab, TabOwnProps, TabProps } from "./components/Tab.js";
4
+ import { TabPanel, TabPanelOwnProps, TabPanelProps } from "./components/TabPanel.js";
5
5
  import { TabsActivationMode, TabsOrientation } from "./types.js";
6
- export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsProps };
6
+ export { Tab, TabList, type TabListOwnProps, type TabListProps, type TabOwnProps, TabPanel, type TabPanelOwnProps, type TabPanelProps, type TabProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsOwnProps, type TabsProps };
package/dist/Tag/Tag.d.ts CHANGED
@@ -1,14 +1,16 @@
1
1
  import { CollectionValueItemProps } from "../_internal/libs/listCollection.js";
2
2
  import { ColorFamilyName } from "../types.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
- export interface TagProps extends Omit<ComponentProps<"div">, "color" | "role" | "id" | "tabIndex" | "children">, CollectionValueItemProps {
4
+ export interface TagOwnProps extends CollectionValueItemProps {
5
5
  /** 태그 글자. 필수다. 아이콘(장식용)을 앞에 함께 둘 수 있다. */
6
6
  children: ReactNode;
7
7
  /** 색 계열 이름(Tide 8개 + 앱 장식 계열). 기본값 `gray`. 분류용 뜻 없는 색이라 Role은 받지 않는다. */
8
8
  color?: ColorFamilyName;
9
9
  }
10
+ export interface TagProps extends TagOwnProps, Omit<ComponentProps<"div">, keyof TagOwnProps | "role" | "id" | "tabIndex"> {}
10
11
  /**
11
12
  * 태그 하나(`role="row"`). `TagGroup` 바로 안에 둔다. `value`가 묶음 안의 key이고 `onRemove`에 넘어오는 값이다.
12
13
  * `disabled`면 지울 수 없고 키보드 이동도 건너뛴다(`aria-disabled`).
14
+ * Tide props: `value`, `disabled`, `textValue`, `aria-label`, `children`, `color` ({@link TagOwnProps}). 나머지는 `<div>` 속성.
13
15
  */
14
16
  export declare function Tag(_props: TagProps): null;
package/dist/Tag/Tag.js CHANGED
@@ -6,6 +6,7 @@ import { asCollectionComponent, valueItemCollectionNode } from "../_internal/lib
6
6
  /**
7
7
  * 태그 하나(`role="row"`). `TagGroup` 바로 안에 둔다. `value`가 묶음 안의 key이고 `onRemove`에 넘어오는 값이다.
8
8
  * `disabled`면 지울 수 없고 키보드 이동도 건너뛴다(`aria-disabled`).
9
+ * Tide props: `value`, `disabled`, `textValue`, `aria-label`, `children`, `color` ({@link TagOwnProps}). 나머지는 `<div>` 속성.
9
10
  */
10
11
  function Tag(_props) {
11
12
  return null;
@@ -8,7 +8,7 @@ type TagGroupNameProps = {
8
8
  /** 묶음 이름이 되는 요소의 id. 이름(`aria-label`이나 `aria-labelledby`) 하나는 꼭 준다. */
9
9
  "aria-labelledby": string;
10
10
  };
11
- interface TagGroupBaseProps extends Omit<ComponentProps<"div">, "role" | "children" | "aria-label" | "aria-labelledby"> {
11
+ export interface TagGroupOwnProps {
12
12
  /**
13
13
  * 지우기 버튼이나 Delete·Backspace로 지우려 할 때 태그의 `value`로 부른다. 주면 지우기 버튼이 생긴다.
14
14
  * 태그를 목록에서 빼는 일은 앱이 한다.
@@ -19,10 +19,11 @@ interface TagGroupBaseProps extends Omit<ComponentProps<"div">, "role" | "childr
19
19
  /** `Tag`. 바로 아래(또는 Fragment·배열 안)에 둔다. */
20
20
  children?: ReactNode;
21
21
  }
22
- export type TagGroupProps = TagGroupBaseProps & TagGroupNameProps;
22
+ export type TagGroupProps = TagGroupOwnProps & TagGroupNameProps & Omit<ComponentProps<"div">, keyof TagGroupOwnProps | "role" | "aria-label" | "aria-labelledby">;
23
23
  /**
24
24
  * 고르거나 입력한 값을 보여 주는 태그 묶음(`role="grid"`). ←→·Home·End로 태그를 옮긴다.
25
25
  * 이름은 `aria-label`이나 `aria-labelledby`로 꼭 준다.
26
+ * Tide props: `onRemove`, `removeLabel`, `children` ({@link TagGroupOwnProps}). 나머지는 `<div>` 속성.
26
27
  */
27
28
  export declare function TagGroup({ onRemove, removeLabel, ref, className, children, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, ...props }: TagGroupProps): ReactElement;
28
29
  export {};
@@ -14,6 +14,7 @@ import { useListState } from "react-stately";
14
14
  /**
15
15
  * 고르거나 입력한 값을 보여 주는 태그 묶음(`role="grid"`). ←→·Home·End로 태그를 옮긴다.
16
16
  * 이름은 `aria-label`이나 `aria-labelledby`로 꼭 준다.
17
+ * Tide props: `onRemove`, `removeLabel`, `children` ({@link TagGroupOwnProps}). 나머지는 `<div>` 속성.
17
18
  */
18
19
  function TagGroup({ onRemove, removeLabel = "제거", ref, className, children, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, ...props }) {
19
20
  const groupRef = useRef(null);
@@ -1,3 +1,3 @@
1
- import { Tag, TagProps } from "./Tag.js";
2
- import { TagGroup, TagGroupProps } from "./components/TagGroup.js";
3
- export { Tag, TagGroup, type TagGroupProps, type TagProps };
1
+ import { Tag, TagOwnProps, TagProps } from "./Tag.js";
2
+ import { TagGroup, TagGroupOwnProps, TagGroupProps } from "./components/TagGroup.js";
3
+ export { Tag, TagGroup, type TagGroupOwnProps, type TagGroupProps, type TagOwnProps, type TagProps };
@@ -2,15 +2,17 @@ import { Size } from "../types.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
3
  /** Textarea의 size. Input과 같이 `sm`/`md`/`lg`만 받는다. */
4
4
  type TextareaSize = Extract<Size, "sm" | "md" | "lg">;
5
- export interface TextareaProps extends ComponentProps<"textarea"> {
5
+ export interface TextareaOwnProps {
6
6
  /** 글자 크기와 padding. 글자 크기는 같은 size의 Input과 같다(14/14/16px). 기본값은 `md`다. */
7
7
  size?: TextareaSize;
8
8
  /** 오류 상태. `aria-invalid="true"`와 `data-invalid`가 붙는다. Field 값보다 여기 준 값이 이긴다. */
9
9
  invalid?: boolean;
10
10
  }
11
+ export interface TextareaProps extends TextareaOwnProps, Omit<ComponentProps<"textarea">, keyof TextareaOwnProps> {}
11
12
  /**
12
13
  * 여러 줄 텍스트를 입력하는 네이티브 `<textarea>`. 기본 3줄 높이이고 세로로만 크기를 바꿀 수 있다.
13
14
  * Field 안에 두면 label, 설명, 오류 메시지가 자동으로 연결된다.
15
+ * Tide props: `size`, `invalid` ({@link TextareaOwnProps}). 나머지는 `<textarea>` 속성.
14
16
  */
15
17
  export declare function Textarea({ size, invalid, id, disabled, required, rows, className, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }: TextareaProps): ReactElement;
16
18
  export {};
@@ -14,6 +14,7 @@ const sizeClass = {
14
14
  /**
15
15
  * 여러 줄 텍스트를 입력하는 네이티브 `<textarea>`. 기본 3줄 높이이고 세로로만 크기를 바꿀 수 있다.
16
16
  * Field 안에 두면 label, 설명, 오류 메시지가 자동으로 연결된다.
17
+ * Tide props: `size`, `invalid` ({@link TextareaOwnProps}). 나머지는 `<textarea>` 속성.
17
18
  */
18
19
  function Textarea({ size = "md", invalid, id, disabled, required, rows = 3, className, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, ...props }) {
19
20
  const control = useFieldControl({
@@ -1,2 +1,2 @@
1
- import { Textarea, TextareaProps } from "./Textarea.js";
2
- export { Textarea, type TextareaProps };
1
+ import { Textarea, TextareaOwnProps, TextareaProps } from "./Textarea.js";
2
+ export { Textarea, type TextareaOwnProps, type TextareaProps };
@@ -1,13 +1,15 @@
1
1
  import { ToastQueue } from "./libs/toastQueue.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
- export interface ToastRegionProps extends Omit<ComponentProps<"div">, "children" | "role"> {
3
+ export interface ToastRegionOwnProps {
4
4
  /** 그릴 큐(`new ToastQueue()`) */
5
5
  queue: ToastQueue;
6
6
  /** 영역(랜드마크) 이름. 기본값은 React Aria 번역 「N개 알림.」(locale을 따른다). */
7
7
  "aria-label"?: string;
8
8
  }
9
+ export interface ToastRegionProps extends ToastRegionOwnProps, Omit<ComponentProps<"div">, keyof ToastRegionOwnProps | "children" | "role"> {}
9
10
  /**
10
11
  * `ToastQueue`의 Toast를 그리는 영역. 앱에 하나 둔다(보통 레이아웃의 client Component 안).
11
12
  * Toast가 있을 때만 `document.body`에 portal한다.
13
+ * Tide props: `queue`, `aria-label` ({@link ToastRegionOwnProps}). 나머지는 `<div>` 속성.
12
14
  */
13
15
  export declare function ToastRegion({ queue, ...props }: ToastRegionProps): ReactElement | null;
@@ -12,6 +12,7 @@ import { useToastQueue } from "react-stately";
12
12
  /**
13
13
  * `ToastQueue`의 Toast를 그리는 영역. 앱에 하나 둔다(보통 레이아웃의 client Component 안).
14
14
  * Toast가 있을 때만 `document.body`에 portal한다.
15
+ * Tide props: `queue`, `aria-label` ({@link ToastRegionOwnProps}). 나머지는 `<div>` 속성.
15
16
  */
16
17
  function ToastRegion({ queue, ...props }) {
17
18
  const state = useToastQueue(queueOf(queue));
@@ -1,4 +1,4 @@
1
- import { ToastRegion, ToastRegionProps } from "./Toast.js";
1
+ import { ToastRegion, ToastRegionOwnProps, ToastRegionProps } from "./Toast.js";
2
2
  import { ToastQueue } from "./libs/toastQueue.js";
3
3
  import { ToastAction, ToastOptions, ToastQueueOptions } from "./types.js";
4
- export { type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionProps };
4
+ export { type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionOwnProps, type ToastRegionProps };
@@ -1,13 +1,15 @@
1
1
  import { TooltipPlacement } from "../types.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
- export interface TooltipContentProps extends Omit<ComponentProps<"div">, "id" | "role"> {
3
+ export interface TooltipContentOwnProps {
4
4
  /** 트리거 기준 위치. 기본값은 `top`(위, 가운데 맞춤)이다. 공간이 모자라면 반대쪽으로 뒤집힌다. */
5
5
  placement?: TooltipPlacement;
6
6
  /** 트리거와의 간격(px). 기본값은 `4`다. */
7
7
  offset?: number;
8
8
  }
9
+ export interface TooltipContentProps extends TooltipContentOwnProps, Omit<ComponentProps<"div">, keyof TooltipContentOwnProps | "id" | "role"> {}
9
10
  /**
10
11
  * 트리거에 붙는 설명(`role="tooltip"`). 열릴 때만 `document.body`에 portal한다. 조작 요소(버튼, 링크)는 넣지 않는다.
11
12
  * 열려 있으면 `data-open`이, 트리거 기준 방향이 `data-placement`(`top`/`bottom`/`left`/`right`)로 붙는다.
13
+ * Tide props: `placement`, `offset` ({@link TooltipContentOwnProps}). 나머지는 `<div>` 속성.
12
14
  */
13
15
  export declare function TooltipContent(props: TooltipContentProps): ReactElement | null;
@@ -11,6 +11,7 @@ import { useRef } from "react";
11
11
  /**
12
12
  * 트리거에 붙는 설명(`role="tooltip"`). 열릴 때만 `document.body`에 portal한다. 조작 요소(버튼, 링크)는 넣지 않는다.
13
13
  * 열려 있으면 `data-open`이, 트리거 기준 방향이 `data-placement`(`top`/`bottom`/`left`/`right`)로 붙는다.
14
+ * Tide props: `placement`, `offset` ({@link TooltipContentOwnProps}). 나머지는 `<div>` 속성.
14
15
  */
15
16
  function TooltipContent(props) {
16
17
  const context = useTooltipContext("TooltipContent");
@@ -1,13 +1,15 @@
1
1
  import { ComponentProps, ReactElement } from "react";
2
- export interface TooltipTriggerProps extends ComponentProps<"button"> {
2
+ export interface TooltipTriggerOwnProps {
3
3
  /**
4
4
  * 다른 요소로 렌더하고 props·ref·이벤트 핸들러를 병합한다(예: `render={<IconButton aria-label="복사" />}`).
5
5
  * 기본은 class 없는 `<button type="button">`. 포커스를 받을 수 있는 요소여야 키보드 사용자도 설명을 본다.
6
6
  */
7
7
  render?: ReactElement;
8
8
  }
9
+ export interface TooltipTriggerProps extends TooltipTriggerOwnProps, Omit<ComponentProps<"button">, keyof TooltipTriggerOwnProps> {}
9
10
  /**
10
11
  * Tooltip을 여는 요소. 마우스를 올리면 `delay` 뒤에, 키보드로 포커스하면 바로 열린다.
11
12
  * 누르면(마우스, 터치, 키) 닫힌다. 열린 동안 `aria-describedby`에 설명 id가 더해진다.
13
+ * Tide props: `render` ({@link TooltipTriggerOwnProps}). 나머지는 `<button>` 속성.
12
14
  */
13
15
  export declare function TooltipTrigger({ render, ref, className, "aria-describedby": describedBy, ...props }: TooltipTriggerProps): ReactElement;