@pantoia/ui 0.3.0 → 0.4.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.
Files changed (62) hide show
  1. package/accordion/index.module.css +4 -4
  2. package/accordion/index.tsx +21 -51
  3. package/alert-dialog/index.tsx +36 -42
  4. package/badge/index.tsx +1 -1
  5. package/button/index.tsx +31 -30
  6. package/callout/index.tsx +4 -4
  7. package/checkbox/index.tsx +20 -85
  8. package/combobox/index.tsx +122 -316
  9. package/command-palette/index.tsx +51 -32
  10. package/dialog/index.tsx +28 -24
  11. package/dist/index.js +5 -5
  12. package/drawer/index.module.css +2 -2
  13. package/drawer/index.tsx +52 -130
  14. package/dropdown-menu/index.tsx +87 -95
  15. package/field/index.tsx +27 -86
  16. package/input/index.tsx +7 -3
  17. package/kbd/index.tsx +2 -2
  18. package/label/index.tsx +6 -8
  19. package/number-field/index.tsx +122 -173
  20. package/package.json +2 -6
  21. package/popover/index.tsx +61 -32
  22. package/radio-group/index.tsx +35 -38
  23. package/registry.json +64 -154
  24. package/select/index.tsx +141 -70
  25. package/switch/index.tsx +13 -6
  26. package/table/index.tsx +1 -2
  27. package/tabs/index.module.css +3 -3
  28. package/tabs/index.tsx +22 -76
  29. package/textarea/index.tsx +19 -7
  30. package/toast/index.module.css +187 -0
  31. package/toast/index.tsx +141 -46
  32. package/toggle/index.tsx +4 -3
  33. package/tokens.css +7 -1
  34. package/tooltip/index.tsx +61 -30
  35. package/utilities.css +11 -6
  36. package/accordion/AGENTS.md +0 -60
  37. package/alert-dialog/AGENTS.md +0 -78
  38. package/badge/AGENTS.md +0 -35
  39. package/button/AGENTS.md +0 -39
  40. package/callout/AGENTS.md +0 -37
  41. package/checkbox/AGENTS.md +0 -54
  42. package/combobox/AGENTS.md +0 -150
  43. package/command-palette/AGENTS.md +0 -41
  44. package/dialog/AGENTS.md +0 -81
  45. package/drawer/AGENTS.md +0 -66
  46. package/dropdown-menu/AGENTS.md +0 -133
  47. package/field/AGENTS.md +0 -92
  48. package/input/AGENTS.md +0 -35
  49. package/kbd/AGENTS.md +0 -17
  50. package/label/AGENTS.md +0 -21
  51. package/number-field/AGENTS.md +0 -49
  52. package/popover/AGENTS.md +0 -64
  53. package/radio-group/AGENTS.md +0 -81
  54. package/select/AGENTS.md +0 -90
  55. package/switch/AGENTS.md +0 -37
  56. package/table/AGENTS.md +0 -82
  57. package/tabs/AGENTS.md +0 -61
  58. package/test-utils.ts +0 -10
  59. package/textarea/AGENTS.md +0 -35
  60. package/toast/AGENTS.md +0 -34
  61. package/toggle/AGENTS.md +0 -37
  62. package/tooltip/AGENTS.md +0 -50
package/field/AGENTS.md DELETED
@@ -1,92 +0,0 @@
1
- # Field
2
-
3
- ```
4
- 받기 npx @pantoia/ui add field
5
- 층 ui
6
- 파일 field/index.tsx, field/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Field` | `FieldProps` |
14
- | `FieldLabel` | - |
15
- | `FieldHelp` | - |
16
- | `FieldError` | `FieldErrorProps` |
17
- | `FieldPending` | - |
18
- | `FieldSuccess` | - |
19
-
20
- ### `FieldLabel`
21
-
22
- | 이름 | 타입 | 필수 |
23
- |---|---|---|
24
- | `className` | `string` | |
25
- | `children` | `ReactNode` | |
26
-
27
- ### `FieldHelp`
28
-
29
- | 이름 | 타입 | 필수 |
30
- |---|---|---|
31
- | `className` | `string` | |
32
- | `children` | `ReactNode` | |
33
-
34
- ### `FieldPending`
35
-
36
- | 이름 | 타입 | 필수 |
37
- |---|---|---|
38
- | `className` | `string` | |
39
- | `children` | `ReactNode` | |
40
-
41
- ### `FieldSuccess`
42
-
43
- | 이름 | 타입 | 필수 |
44
- |---|---|---|
45
- | `className` | `string` | |
46
- | `children` | `ReactNode` | |
47
-
48
- ## props
49
-
50
- ### `FieldContext`
51
-
52
- | 이름 | 타입 | 필수 |
53
- |---|---|---|
54
- | `id` | `string` | 예 |
55
- | `labelId` | `string` | 예 |
56
- | `messageId` | `string` | 예 |
57
-
58
- ### `FieldControl`
59
-
60
- | 이름 | 타입 | 필수 |
61
- |---|---|---|
62
- | `id` | `string` | 예 |
63
- | `aria-labelledby` | `string` | 예 |
64
- | `aria-invalid` | `'true' \| undefined` | 예 |
65
- | `aria-describedby` | `string` | 예 |
66
-
67
- ### `FieldProps`
68
-
69
- | 이름 | 타입 | 필수 |
70
- |---|---|---|
71
- | `invalid` | `boolean` | |
72
- | `layout` | `'stack' \| 'inline' \| 'split'` | |
73
- | `className` | `string` | |
74
- | `children` | `ReactNode \| ((args: { control: FieldControl }) => ReactNode)` | |
75
-
76
- ### `FieldErrorProps`
77
-
78
- | 이름 | 타입 | 필수 |
79
- |---|---|---|
80
- | `items` | `string \| string[]` | |
81
- | `className` | `string` | |
82
- | `children` | `ReactNode` | |
83
-
84
- ## 변형 - `field`
85
-
86
- | 축 | 값 | 기본 |
87
- |---|---|---|
88
- | `layout` | `stack`, `inline`, `split` | `stack` |
89
-
90
- ## 함께 받는 것
91
-
92
- `label`, `tv`
package/input/AGENTS.md DELETED
@@ -1,35 +0,0 @@
1
- # Input
2
-
3
- ```
4
- 받기 npx @pantoia/ui add input
5
- 층 ui
6
- 파일 input/index.tsx, input/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Input` | `InputProps` |
14
-
15
- ## props
16
-
17
- ### `InputProps`
18
-
19
- `Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `surface` | `'bare' \| 'well'` | |
24
- | `size` | `'sm' \| 'md' \| 'lg'` | |
25
-
26
- ## 변형 - `input`
27
-
28
- | 축 | 값 | 기본 |
29
- |---|---|---|
30
- | `surface` | `bare`, `well` | `bare` |
31
- | `size` | `sm`, `md`, `lg` | `md` |
32
-
33
- ## 함께 받는 것
34
-
35
- `tv`
package/kbd/AGENTS.md DELETED
@@ -1,17 +0,0 @@
1
- # Kbd
2
-
3
- ```
4
- 받기 npx @pantoia/ui add kbd
5
- 층 ui
6
- 파일 kbd/index.tsx, kbd/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Kbd` | `HTMLAttributes<HTMLElement>` |
14
-
15
- ## 함께 받는 것
16
-
17
- `tv`
package/label/AGENTS.md DELETED
@@ -1,21 +0,0 @@
1
- # Label
2
-
3
- ```
4
- 받기 npx @pantoia/ui add label
5
- 층 ui
6
- 파일 label/index.tsx, label/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Label` | `ComponentProps<typeof LabelPrimitive.Root>` |
14
-
15
- ## 함께 받는 것
16
-
17
- `tv`
18
-
19
- ## npm 의존
20
-
21
- `radix-ui`
@@ -1,49 +0,0 @@
1
- # NumberField
2
-
3
- ```
4
- 받기 npx @pantoia/ui add number-field
5
- 층 ui
6
- 파일 number-field/index.tsx, number-field/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `NumberField` | `NumberFieldProps` |
14
-
15
- ## props
16
-
17
- ### `NumberFieldProps`
18
-
19
- `Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'min' | 'max' | 'step'>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `value` | `number \| undefined` | |
24
- | `defaultValue` | `number` | |
25
- | `onValueChange` | `(value: number \| undefined) => void` | |
26
- | `decrementLabel` | `string` | 예 |
27
- | `incrementLabel` | `string` | 예 |
28
- | `min` | `number` | |
29
- | `max` | `number` | |
30
- | `step` | `number` | |
31
- | `surface` | `'bare' \| 'well'` | |
32
- | `size` | `'sm' \| 'md' \| 'lg'` | |
33
- | `disabled` | `boolean` | |
34
- | `readOnly` | `boolean` | |
35
- | `className` | `string` | |
36
-
37
- ## 변형 - `numberField`
38
-
39
- 슬롯 `root`, `step`, `input`
40
-
41
- | 축 | 값 | 기본 |
42
- |---|---|---|
43
- | `surface` | `bare`, `well` | `bare` |
44
- | `size` | `sm`, `md`, `lg` | `md` |
45
- | `readonly` | `true` | - |
46
-
47
- ## 함께 받는 것
48
-
49
- `tv`
package/popover/AGENTS.md DELETED
@@ -1,64 +0,0 @@
1
- # Popover
2
-
3
- ```
4
- 받기 npx @pantoia/ui add popover
5
- 층 ui
6
- 파일 popover/index.tsx, popover/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Popover` | `PopoverProps` |
14
- | `PopoverTrigger` | - |
15
- | `PopoverAnchor` | - |
16
- | `PopoverClose` | - |
17
- | `PopoverContent` | `PopoverContentProps` |
18
-
19
- ### `PopoverTrigger`
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `children` | `ReactNode` | 예 |
24
-
25
- ### `PopoverAnchor`
26
-
27
- | 이름 | 타입 | 필수 |
28
- |---|---|---|
29
- | `children` | `ReactNode` | 예 |
30
-
31
- ### `PopoverClose`
32
-
33
- | 이름 | 타입 | 필수 |
34
- |---|---|---|
35
- | `children` | `ReactNode` | 예 |
36
-
37
- ## props
38
-
39
- ### `PopoverProps`
40
-
41
- | 이름 | 타입 | 필수 |
42
- |---|---|---|
43
- | `open` | `boolean` | |
44
- | `defaultOpen` | `boolean` | |
45
- | `onOpenChange` | `(open: boolean) => void` | |
46
- | `children` | `ReactNode` | |
47
-
48
- ### `PopoverContentProps`
49
-
50
- `Omit<ComponentProps<typeof PopoverPrimitive.Content>, 'side' | 'align'>` 를 확장한다.
51
-
52
- | 이름 | 타입 | 필수 |
53
- |---|---|---|
54
- | `side` | `'top' \| 'right' \| 'bottom' \| 'left'` | |
55
- | `align` | `'start' \| 'center' \| 'end'` | |
56
- | `arrow` | `boolean` | |
57
-
58
- ## 함께 받는 것
59
-
60
- `tv`
61
-
62
- ## npm 의존
63
-
64
- `radix-ui`
@@ -1,81 +0,0 @@
1
- # RadioGroup
2
-
3
- ```
4
- 받기 npx @pantoia/ui add radio-group
5
- 층 ui
6
- 파일 radio-group/index.tsx, radio-group/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `RadioGroup` | `RadioGroupProps` |
14
- | `RadioGroupItem` | `RadioGroupItemProps` |
15
- | `RadioGroupItemLabel` | - |
16
- | `RadioGroupItemDescription` | - |
17
-
18
- ### `RadioGroupItemLabel`
19
-
20
- | 이름 | 타입 | 필수 |
21
- |---|---|---|
22
- | `className` | `string` | |
23
- | `children` | `ReactNode` | |
24
-
25
- ### `RadioGroupItemDescription`
26
-
27
- | 이름 | 타입 | 필수 |
28
- |---|---|---|
29
- | `className` | `string` | |
30
- | `children` | `ReactNode` | |
31
-
32
- ## props
33
-
34
- ### `RadioColor`
35
-
36
- `'neutral' | 'info' | 'success' | 'warning' | 'danger'`
37
-
38
- ### `RadioItemContext`
39
-
40
- | 이름 | 타입 | 필수 |
41
- |---|---|---|
42
- | `id` | `string` | 예 |
43
- | `labelId` | `string` | 예 |
44
- | `descriptionId` | `string` | 예 |
45
-
46
- ### `RadioGroupProps`
47
-
48
- | 이름 | 타입 | 필수 |
49
- |---|---|---|
50
- | `value` | `string` | |
51
- | `defaultValue` | `string` | |
52
- | `onValueChange` | `(value: string) => void` | |
53
- | `color` | `RadioColor` | |
54
- | `disabled` | `boolean` | |
55
- | `className` | `string` | |
56
- | `children` | `ReactNode` | |
57
-
58
- ### `RadioGroupItemProps`
59
-
60
- | 이름 | 타입 | 필수 |
61
- |---|---|---|
62
- | `value` | `string` | 예 |
63
- | `disabled` | `boolean` | |
64
- | `className` | `string` | |
65
- | `children` | `ReactNode` | |
66
-
67
- ## 변형 - `radioGroupItem`
68
-
69
- 슬롯 `root`, `control`
70
-
71
- | 축 | 값 | 기본 |
72
- |---|---|---|
73
- | `color` | `neutral`, `info`, `success`, `warning`, `danger` | `neutral` |
74
-
75
- ## 함께 받는 것
76
-
77
- `label`, `tv`
78
-
79
- ## npm 의존
80
-
81
- `radix-ui`
package/select/AGENTS.md DELETED
@@ -1,90 +0,0 @@
1
- # Select
2
-
3
- ```
4
- 받기 npx @pantoia/ui add select
5
- 층 ui
6
- 파일 select/index.tsx, select/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Select` | `SelectProps` |
14
- | `SelectGroup` | - |
15
- | `SelectItem` | - |
16
- | `SelectItemText` | - |
17
- | `SelectItemDescription` | - |
18
- | `SelectSeparator` | - |
19
-
20
- ### `SelectGroup`
21
-
22
- | 이름 | 타입 | 필수 |
23
- |---|---|---|
24
- | `label` | `string` | |
25
- | `className` | `string` | |
26
- | `children` | `ReactNode` | |
27
-
28
- ### `SelectItem`
29
-
30
- | 이름 | 타입 | 필수 |
31
- |---|---|---|
32
- | `value` | `string` | 예 |
33
- | `disabled` | `boolean` | |
34
- | `className` | `string` | |
35
- | `children` | `ReactNode` | |
36
-
37
- ### `SelectItemText`
38
-
39
- | 이름 | 타입 | 필수 |
40
- |---|---|---|
41
- | `className` | `string` | |
42
- | `children` | `ReactNode` | |
43
-
44
- ### `SelectItemDescription`
45
-
46
- | 이름 | 타입 | 필수 |
47
- |---|---|---|
48
- | `className` | `string` | |
49
- | `children` | `ReactNode` | |
50
-
51
- ### `SelectSeparator`
52
-
53
- | 이름 | 타입 | 필수 |
54
- |---|---|---|
55
- | `className` | `string` | |
56
-
57
- ## props
58
-
59
- ### `SelectProps`
60
-
61
- `Omit<ComponentProps<typeof SelectPrimitive.Trigger>, 'value' | 'defaultValue' | 'dir'>` 를 확장한다.
62
-
63
- | 이름 | 타입 | 필수 |
64
- |---|---|---|
65
- | `value` | `string` | |
66
- | `defaultValue` | `string` | |
67
- | `onValueChange` | `(value: string) => void` | |
68
- | `open` | `boolean` | |
69
- | `defaultOpen` | `boolean` | |
70
- | `onOpenChange` | `(open: boolean) => void` | |
71
- | `placeholder` | `string` | |
72
- | `surface` | `'bare' \| 'well'` | |
73
- | `size` | `'sm' \| 'md' \| 'lg'` | |
74
- | `arrow` | `boolean` | |
75
- | `children` | `ReactNode` | |
76
-
77
- ## 변형 - `selectTrigger`
78
-
79
- | 축 | 값 | 기본 |
80
- |---|---|---|
81
- | `surface` | `bare`, `well` | `bare` |
82
- | `size` | `sm`, `md`, `lg` | `md` |
83
-
84
- ## 함께 받는 것
85
-
86
- `tv`
87
-
88
- ## npm 의존
89
-
90
- `radix-ui`
package/switch/AGENTS.md DELETED
@@ -1,37 +0,0 @@
1
- # Switch
2
-
3
- ```
4
- 받기 npx @pantoia/ui add switch
5
- 층 ui
6
- 파일 switch/index.tsx, switch/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Switch` | `SwitchProps` |
14
-
15
- ## props
16
-
17
- ### `SwitchProps`
18
-
19
- `ComponentProps<typeof SwitchPrimitive.Root>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `color` | `'neutral' \| 'info' \| 'success' \| 'warning' \| 'danger'` | |
24
-
25
- ## 변형 - `uiSwitch`
26
-
27
- | 축 | 값 | 기본 |
28
- |---|---|---|
29
- | `color` | `neutral`, `info`, `success`, `warning`, `danger` | `neutral` |
30
-
31
- ## 함께 받는 것
32
-
33
- `tv`
34
-
35
- ## npm 의존
36
-
37
- `radix-ui`
package/table/AGENTS.md DELETED
@@ -1,82 +0,0 @@
1
- # Table
2
-
3
- ```
4
- 받기 npx @pantoia/ui add table
5
- 층 ui
6
- 파일 table/index.tsx, table/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Table` | `TableProps` |
14
- | `TableHeader` | - |
15
- | `TableHeadCell` | - |
16
- | `TableBody` | - |
17
- | `TableRow` | - |
18
- | `TableCell` | `TableCellProps` |
19
-
20
- ### `TableHeader`
21
-
22
- | 이름 | 타입 | 필수 |
23
- |---|---|---|
24
- | `className` | `string` | |
25
- | `children` | `ReactNode` | |
26
-
27
- ### `TableHeadCell`
28
-
29
- | 이름 | 타입 | 필수 |
30
- |---|---|---|
31
- | `className` | `string` | |
32
- | `children` | `ReactNode` | |
33
-
34
- ### `TableBody`
35
-
36
- | 이름 | 타입 | 필수 |
37
- |---|---|---|
38
- | `className` | `string` | |
39
- | `children` | `ReactNode` | |
40
-
41
- ### `TableRow`
42
-
43
- | 이름 | 타입 | 필수 |
44
- |---|---|---|
45
- | `className` | `string` | |
46
- | `children` | `ReactNode` | |
47
-
48
- ## props
49
-
50
- ### `TableProps`
51
-
52
- | 이름 | 타입 | 필수 |
53
- |---|---|---|
54
- | `label` | `string` | 예 |
55
- | `fixed` | `boolean` | |
56
- | `className` | `string` | |
57
- | `children` | `ReactNode` | |
58
-
59
- ### `TableCellProps`
60
-
61
- `TdHTMLAttributes<HTMLTableCellElement>` 를 확장한다.
62
-
63
- | 이름 | 타입 | 필수 |
64
- |---|---|---|
65
- | `mono` | `boolean` | |
66
- | `clamp` | `boolean` | |
67
-
68
- ## 변형 - `table`
69
-
70
- | 축 | 값 | 기본 |
71
- |---|---|---|
72
- | `fixed` | `true` | - |
73
-
74
- ## 변형 - `tableCell`
75
-
76
- | 축 | 값 | 기본 |
77
- |---|---|---|
78
- | `mono` | `true`, `false` | `false` |
79
-
80
- ## 함께 받는 것
81
-
82
- `tv`
package/tabs/AGENTS.md DELETED
@@ -1,61 +0,0 @@
1
- # Tabs
2
-
3
- ```
4
- 받기 npx @pantoia/ui add tabs
5
- 층 ui
6
- 파일 tabs/index.tsx, tabs/index.module.css, tabs/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Tabs` | `TabsProps` |
14
- | `TabsList` | - |
15
- | `TabsTrigger` | - |
16
- | `TabsContent` | - |
17
-
18
- ### `TabsList`
19
-
20
- | 이름 | 타입 | 필수 |
21
- |---|---|---|
22
- | `className` | `string` | |
23
- | `children` | `ReactNode` | |
24
-
25
- ### `TabsTrigger`
26
-
27
- | 이름 | 타입 | 필수 |
28
- |---|---|---|
29
- | `value` | `string` | 예 |
30
- | `disabled` | `boolean` | |
31
- | `className` | `string` | |
32
- | `children` | `ReactNode` | |
33
-
34
- ### `TabsContent`
35
-
36
- | 이름 | 타입 | 필수 |
37
- |---|---|---|
38
- | `value` | `string` | 예 |
39
- | `forceMount` | `boolean` | |
40
- | `className` | `string` | |
41
- | `children` | `ReactNode` | |
42
-
43
- ## props
44
-
45
- ### `TabsProps`
46
-
47
- | 이름 | 타입 | 필수 |
48
- |---|---|---|
49
- | `value` | `string` | |
50
- | `defaultValue` | `string` | |
51
- | `onValueChange` | `(value: string) => void` | |
52
- | `className` | `string` | |
53
- | `children` | `ReactNode` | |
54
-
55
- ## 함께 받는 것
56
-
57
- `tv`
58
-
59
- ## npm 의존
60
-
61
- `radix-ui`
package/test-utils.ts DELETED
@@ -1,10 +0,0 @@
1
- export { act, cleanup, fireEvent, render, renderHook, screen, waitFor, within } from '@testing-library/react'
2
- export { default as userEvent } from '@testing-library/user-event'
3
-
4
- export function cls(el: Element | null): string[] {
5
- return (el?.getAttribute('class') ?? '').split(/\s+/).filter(Boolean)
6
- }
7
-
8
- export function has(el: Element | null, needle: string): boolean {
9
- return cls(el).some(part => part.includes(needle))
10
- }
@@ -1,35 +0,0 @@
1
- # Textarea
2
-
3
- ```
4
- 받기 npx @pantoia/ui add textarea
5
- 층 ui
6
- 파일 textarea/index.tsx, textarea/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Textarea` | `TextareaProps` |
14
-
15
- ## props
16
-
17
- ### `TextareaProps`
18
-
19
- `TextareaHTMLAttributes<HTMLTextAreaElement>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `surface` | `'bare' \| 'well'` | |
24
- | `size` | `'sm' \| 'md' \| 'lg'` | |
25
-
26
- ## 변형 - `textarea`
27
-
28
- | 축 | 값 | 기본 |
29
- |---|---|---|
30
- | `surface` | `bare`, `well` | `bare` |
31
- | `size` | `sm`, `md`, `lg` | `md` |
32
-
33
- ## 함께 받는 것
34
-
35
- `tv`
package/toast/AGENTS.md DELETED
@@ -1,34 +0,0 @@
1
- # Toast
2
-
3
- ```
4
- 받기 npx @pantoia/ui add toast
5
- 층 ui
6
- 파일 toast/index.tsx, toast/AGENTS.md
7
- ```
8
-
9
- ## 부위
10
-
11
- | 이름 | props |
12
- |---|---|
13
- | `Toast` | `ToastProps` |
14
-
15
- ## props
16
-
17
- ### `ToastProps`
18
-
19
- `Omit<ComponentProps<typeof SonnerToaster>, 'id' | 'position' | 'duration' | 'expand'>` 를 확장한다.
20
-
21
- | 이름 | 타입 | 필수 |
22
- |---|---|---|
23
- | `toasterId` | `string` | |
24
- | `position` | `'top-left' \| 'top-center' \| 'top-right' \| 'bottom-left' \| 'bottom-center' \| 'bottom-right'` | |
25
- | `duration` | `number` | |
26
- | `expand` | `boolean` | |
27
-
28
- ## 함께 받는 것
29
-
30
- `tv`
31
-
32
- ## npm 의존
33
-
34
- `sonner`