@t3q-ui/design-system 1.69.4 → 1.69.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.
- package/CHANGELOG.md +8 -0
- package/dist/components/toast.cjs +12 -1
- package/dist/components/toast.cjs.map +1 -1
- package/dist/components/toast.js +12 -1
- package/dist/components/toast.js.map +1 -1
- package/mcp/manifests/components.json +63 -63
- package/package.json +2 -1
- package/skills/tds/reference/components.md +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -49,7 +49,18 @@ const icons = {
|
|
|
49
49
|
};
|
|
50
50
|
const Toaster = React.forwardRef((props, ref) => {
|
|
51
51
|
const theme = themeProvider.useOptionalTheme()?.resolvedTheme;
|
|
52
|
-
|
|
52
|
+
const toastOptions = { closeButtonAriaLabel: "알림 닫기", ...props.toastOptions };
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
54
|
+
sonner.Toaster,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
theme,
|
|
58
|
+
containerAriaLabel: "알림",
|
|
59
|
+
offset: "32px",
|
|
60
|
+
...props,
|
|
61
|
+
toastOptions
|
|
62
|
+
}
|
|
63
|
+
);
|
|
53
64
|
});
|
|
54
65
|
Toaster.displayName = "Toaster";
|
|
55
66
|
exports.Toaster = Toaster;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.cjs","sources":["../../src/components/toast.tsx"],"sourcesContent":["'use client'\n// sonner 공식 문서 : https://sonner.emilkowal.ski/\nimport React from 'react'\nimport { CircleCheck, CircleX, Info, TriangleAlert } from 'lucide-react'\nimport { ExternalToast, toast as sonnerToast, Toaster as SonnerToaster } from 'sonner'\n\nimport { useOptionalTheme } from './themeProvider'\n\n// sonner 기본 toast 사용\n\ntype ToastVariant = 'info' | 'success' | 'error' | 'warning'\n\ninterface ToastProps {\n id: string | number\n title: string\n description?: string | null\n variant?: ToastVariant\n toastOptions?: ExternalToast\n}\n\nfunction toast({ toastOptions, variant = 'info', ...toastData }: Omit<ToastProps, 'id'>) {\n const options = {\n position: 'top-right' as const,\n closeButton: true,\n duration: 10000,\n icon: variant ? icons[variant as keyof typeof icons] : undefined,\n richColors: true,\n classNames: {\n icon: 'self-start !w-[24px] !h-[24px]',\n },\n ...toastOptions,\n }\n\n // variant에 따라 적절한 sonner 메서드 사용\n switch (variant) {\n case 'success':\n return sonnerToast.success(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'error':\n return sonnerToast.error(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'warning':\n return sonnerToast.warning(toastData.title, {\n description: toastData.description,\n ...options,\n })\n default:\n return sonnerToast.info(toastData.title, {\n description: toastData.description,\n ...options,\n })\n }\n}\n\nconst icons = {\n success: <CircleCheck className='text-success30' />,\n info: <Info className='text-primary30' />,\n warning: <TriangleAlert className='text-critical30' />,\n error: <CircleX className='text-danger30' />,\n}\n\n/**\n * 화면 모서리에 잠깐 떴다 사라지는 알림(sonner). 앱 루트에 한 번 두고 `toast()` 로 띄운다.\n *\n * 언제 쓰나: 저장·삭제 완료, 서버 오류처럼 지나가도 되는 결과 알림. 성공은 짧게, 오류는 원인 한 줄.\n * 언제 안 쓰나: 화면에 남아 있어야 하는 안내·오류(→ Alert), 사용자의 확인이 필요한 것(→ AlertDialog), 폼 필드 오류(→ FormMessage).\n * 대신/함께: `ThemeProvider` 안에 두어야 다크 모드를 따라간다.\n */\nconst Toaster = React.forwardRef<\n React.ElementRef<typeof SonnerToaster>,\n React.ComponentPropsWithoutRef<typeof SonnerToaster>\n>((props, ref) => {\n const theme = useOptionalTheme()?.resolvedTheme\n return <SonnerToaster
|
|
1
|
+
{"version":3,"file":"toast.cjs","sources":["../../src/components/toast.tsx"],"sourcesContent":["'use client'\n// sonner 공식 문서 : https://sonner.emilkowal.ski/\nimport React from 'react'\nimport { CircleCheck, CircleX, Info, TriangleAlert } from 'lucide-react'\nimport { ExternalToast, toast as sonnerToast, Toaster as SonnerToaster } from 'sonner'\n\nimport { useOptionalTheme } from './themeProvider'\n\n// sonner 기본 toast 사용\n\ntype ToastVariant = 'info' | 'success' | 'error' | 'warning'\n\ninterface ToastProps {\n id: string | number\n title: string\n description?: string | null\n variant?: ToastVariant\n toastOptions?: ExternalToast\n}\n\nfunction toast({ toastOptions, variant = 'info', ...toastData }: Omit<ToastProps, 'id'>) {\n const options = {\n position: 'top-right' as const,\n closeButton: true,\n duration: 10000,\n icon: variant ? icons[variant as keyof typeof icons] : undefined,\n richColors: true,\n classNames: {\n icon: 'self-start !w-[24px] !h-[24px]',\n },\n ...toastOptions,\n }\n\n // variant에 따라 적절한 sonner 메서드 사용\n switch (variant) {\n case 'success':\n return sonnerToast.success(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'error':\n return sonnerToast.error(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'warning':\n return sonnerToast.warning(toastData.title, {\n description: toastData.description,\n ...options,\n })\n default:\n return sonnerToast.info(toastData.title, {\n description: toastData.description,\n ...options,\n })\n }\n}\n\nconst icons = {\n success: <CircleCheck className='text-success30' />,\n info: <Info className='text-primary30' />,\n warning: <TriangleAlert className='text-critical30' />,\n error: <CircleX className='text-danger30' />,\n}\n\n/**\n * 화면 모서리에 잠깐 떴다 사라지는 알림(sonner). 앱 루트에 한 번 두고 `toast()` 로 띄운다.\n *\n * 언제 쓰나: 저장·삭제 완료, 서버 오류처럼 지나가도 되는 결과 알림. 성공은 짧게, 오류는 원인 한 줄.\n * 언제 안 쓰나: 화면에 남아 있어야 하는 안내·오류(→ Alert), 사용자의 확인이 필요한 것(→ AlertDialog), 폼 필드 오류(→ FormMessage).\n * 대신/함께: `ThemeProvider` 안에 두어야 다크 모드를 따라간다.\n */\nconst Toaster = React.forwardRef<\n React.ElementRef<typeof SonnerToaster>,\n React.ComponentPropsWithoutRef<typeof SonnerToaster>\n>((props, ref) => {\n const theme = useOptionalTheme()?.resolvedTheme\n // sonner 기본 이름 \"Notifications\"·\"Close toast\" 를 한국어로. 소비 앱이 넘긴 값이 이긴다.\n // 닫기 이름은 sonner 2 부터 먹는다(peer 가 허용하는 1.7 은 무시하고 \"Close toast\" 로 읽는다)\n const toastOptions = { closeButtonAriaLabel: '알림 닫기', ...props.toastOptions }\n return (\n <SonnerToaster\n ref={ref}\n theme={theme}\n containerAriaLabel='알림'\n // 화면 가장자리와의 간격 — sonner 2 의 기본값은 24px 이다. 1.7 때의 32px 를 지킨다(2026-11-23 오너 결정 28B)\n offset='32px'\n {...props}\n toastOptions={toastOptions}\n />\n )\n})\nToaster.displayName = 'Toaster'\n\nexport { toast, Toaster }\n"],"names":["sonnerToast","jsx","CircleCheck","Info","TriangleAlert","CircleX","useOptionalTheme","SonnerToaster"],"mappings":";;;;;;;;AAoBA,SAAS,MAAM,EAAE,cAAc,UAAU,QAAQ,GAAG,aAAqC;AACvF,QAAM,UAAU;AAAA,IACd,UAAU;AAAA,IACV,aAAa;AAAA,IACb,UAAU;AAAA,IACV,MAAM,UAAU,MAAM,OAA6B,IAAI;AAAA,IACvD,YAAY;AAAA,IACZ,YAAY;AAAA,MACV,MAAM;AAAA,IAAA;AAAA,IAER,GAAG;AAAA,EAAA;AAIL,UAAQ,SAAA;AAAA,IACN,KAAK;AACH,aAAOA,aAAY,QAAQ,UAAU,OAAO;AAAA,QAC1C,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH,KAAK;AACH,aAAOA,aAAY,MAAM,UAAU,OAAO;AAAA,QACxC,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH,KAAK;AACH,aAAOA,aAAY,QAAQ,UAAU,OAAO;AAAA,QAC1C,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH;AACE,aAAOA,aAAY,KAAK,UAAU,OAAO;AAAA,QACvC,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,EAAA;AAEP;AAEA,MAAM,QAAQ;AAAA,EACZ,SAASC,2BAAAA,IAACC,OAAAA,aAAA,EAAY,WAAU,iBAAA,CAAiB;AAAA,EACjD,MAAMD,2BAAAA,IAACE,OAAAA,MAAA,EAAK,WAAU,iBAAA,CAAiB;AAAA,EACvC,SAASF,2BAAAA,IAACG,OAAAA,eAAA,EAAc,WAAU,kBAAA,CAAkB;AAAA,EACpD,OAAOH,2BAAAA,IAACI,OAAAA,SAAA,EAAQ,WAAU,gBAAA,CAAgB;AAC5C;AASA,MAAM,UAAU,MAAM,WAGpB,CAAC,OAAO,QAAQ;AAChB,QAAM,QAAQC,cAAAA,oBAAoB;AAGlC,QAAM,eAAe,EAAE,sBAAsB,SAAS,GAAG,MAAM,aAAA;AAC/D,SACEL,2BAAAA;AAAAA,IAACM,OAAAA;AAAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,oBAAmB;AAAA,MAEnB,QAAO;AAAA,MACN,GAAG;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;AACD,QAAQ,cAAc;;;"}
|
package/dist/components/toast.js
CHANGED
|
@@ -47,7 +47,18 @@ const icons = {
|
|
|
47
47
|
};
|
|
48
48
|
const Toaster = React__default.forwardRef((props, ref) => {
|
|
49
49
|
const theme = useOptionalTheme()?.resolvedTheme;
|
|
50
|
-
|
|
50
|
+
const toastOptions = { closeButtonAriaLabel: "알림 닫기", ...props.toastOptions };
|
|
51
|
+
return /* @__PURE__ */ jsx(
|
|
52
|
+
Toaster$1,
|
|
53
|
+
{
|
|
54
|
+
ref,
|
|
55
|
+
theme,
|
|
56
|
+
containerAriaLabel: "알림",
|
|
57
|
+
offset: "32px",
|
|
58
|
+
...props,
|
|
59
|
+
toastOptions
|
|
60
|
+
}
|
|
61
|
+
);
|
|
51
62
|
});
|
|
52
63
|
Toaster.displayName = "Toaster";
|
|
53
64
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sources":["../../src/components/toast.tsx"],"sourcesContent":["'use client'\n// sonner 공식 문서 : https://sonner.emilkowal.ski/\nimport React from 'react'\nimport { CircleCheck, CircleX, Info, TriangleAlert } from 'lucide-react'\nimport { ExternalToast, toast as sonnerToast, Toaster as SonnerToaster } from 'sonner'\n\nimport { useOptionalTheme } from './themeProvider'\n\n// sonner 기본 toast 사용\n\ntype ToastVariant = 'info' | 'success' | 'error' | 'warning'\n\ninterface ToastProps {\n id: string | number\n title: string\n description?: string | null\n variant?: ToastVariant\n toastOptions?: ExternalToast\n}\n\nfunction toast({ toastOptions, variant = 'info', ...toastData }: Omit<ToastProps, 'id'>) {\n const options = {\n position: 'top-right' as const,\n closeButton: true,\n duration: 10000,\n icon: variant ? icons[variant as keyof typeof icons] : undefined,\n richColors: true,\n classNames: {\n icon: 'self-start !w-[24px] !h-[24px]',\n },\n ...toastOptions,\n }\n\n // variant에 따라 적절한 sonner 메서드 사용\n switch (variant) {\n case 'success':\n return sonnerToast.success(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'error':\n return sonnerToast.error(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'warning':\n return sonnerToast.warning(toastData.title, {\n description: toastData.description,\n ...options,\n })\n default:\n return sonnerToast.info(toastData.title, {\n description: toastData.description,\n ...options,\n })\n }\n}\n\nconst icons = {\n success: <CircleCheck className='text-success30' />,\n info: <Info className='text-primary30' />,\n warning: <TriangleAlert className='text-critical30' />,\n error: <CircleX className='text-danger30' />,\n}\n\n/**\n * 화면 모서리에 잠깐 떴다 사라지는 알림(sonner). 앱 루트에 한 번 두고 `toast()` 로 띄운다.\n *\n * 언제 쓰나: 저장·삭제 완료, 서버 오류처럼 지나가도 되는 결과 알림. 성공은 짧게, 오류는 원인 한 줄.\n * 언제 안 쓰나: 화면에 남아 있어야 하는 안내·오류(→ Alert), 사용자의 확인이 필요한 것(→ AlertDialog), 폼 필드 오류(→ FormMessage).\n * 대신/함께: `ThemeProvider` 안에 두어야 다크 모드를 따라간다.\n */\nconst Toaster = React.forwardRef<\n React.ElementRef<typeof SonnerToaster>,\n React.ComponentPropsWithoutRef<typeof SonnerToaster>\n>((props, ref) => {\n const theme = useOptionalTheme()?.resolvedTheme\n return <SonnerToaster
|
|
1
|
+
{"version":3,"file":"toast.js","sources":["../../src/components/toast.tsx"],"sourcesContent":["'use client'\n// sonner 공식 문서 : https://sonner.emilkowal.ski/\nimport React from 'react'\nimport { CircleCheck, CircleX, Info, TriangleAlert } from 'lucide-react'\nimport { ExternalToast, toast as sonnerToast, Toaster as SonnerToaster } from 'sonner'\n\nimport { useOptionalTheme } from './themeProvider'\n\n// sonner 기본 toast 사용\n\ntype ToastVariant = 'info' | 'success' | 'error' | 'warning'\n\ninterface ToastProps {\n id: string | number\n title: string\n description?: string | null\n variant?: ToastVariant\n toastOptions?: ExternalToast\n}\n\nfunction toast({ toastOptions, variant = 'info', ...toastData }: Omit<ToastProps, 'id'>) {\n const options = {\n position: 'top-right' as const,\n closeButton: true,\n duration: 10000,\n icon: variant ? icons[variant as keyof typeof icons] : undefined,\n richColors: true,\n classNames: {\n icon: 'self-start !w-[24px] !h-[24px]',\n },\n ...toastOptions,\n }\n\n // variant에 따라 적절한 sonner 메서드 사용\n switch (variant) {\n case 'success':\n return sonnerToast.success(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'error':\n return sonnerToast.error(toastData.title, {\n description: toastData.description,\n ...options,\n })\n case 'warning':\n return sonnerToast.warning(toastData.title, {\n description: toastData.description,\n ...options,\n })\n default:\n return sonnerToast.info(toastData.title, {\n description: toastData.description,\n ...options,\n })\n }\n}\n\nconst icons = {\n success: <CircleCheck className='text-success30' />,\n info: <Info className='text-primary30' />,\n warning: <TriangleAlert className='text-critical30' />,\n error: <CircleX className='text-danger30' />,\n}\n\n/**\n * 화면 모서리에 잠깐 떴다 사라지는 알림(sonner). 앱 루트에 한 번 두고 `toast()` 로 띄운다.\n *\n * 언제 쓰나: 저장·삭제 완료, 서버 오류처럼 지나가도 되는 결과 알림. 성공은 짧게, 오류는 원인 한 줄.\n * 언제 안 쓰나: 화면에 남아 있어야 하는 안내·오류(→ Alert), 사용자의 확인이 필요한 것(→ AlertDialog), 폼 필드 오류(→ FormMessage).\n * 대신/함께: `ThemeProvider` 안에 두어야 다크 모드를 따라간다.\n */\nconst Toaster = React.forwardRef<\n React.ElementRef<typeof SonnerToaster>,\n React.ComponentPropsWithoutRef<typeof SonnerToaster>\n>((props, ref) => {\n const theme = useOptionalTheme()?.resolvedTheme\n // sonner 기본 이름 \"Notifications\"·\"Close toast\" 를 한국어로. 소비 앱이 넘긴 값이 이긴다.\n // 닫기 이름은 sonner 2 부터 먹는다(peer 가 허용하는 1.7 은 무시하고 \"Close toast\" 로 읽는다)\n const toastOptions = { closeButtonAriaLabel: '알림 닫기', ...props.toastOptions }\n return (\n <SonnerToaster\n ref={ref}\n theme={theme}\n containerAriaLabel='알림'\n // 화면 가장자리와의 간격 — sonner 2 의 기본값은 24px 이다. 1.7 때의 32px 를 지킨다(2026-11-23 오너 결정 28B)\n offset='32px'\n {...props}\n toastOptions={toastOptions}\n />\n )\n})\nToaster.displayName = 'Toaster'\n\nexport { toast, Toaster }\n"],"names":["sonnerToast","React","SonnerToaster"],"mappings":";;;;;;AAoBA,SAAS,MAAM,EAAE,cAAc,UAAU,QAAQ,GAAG,aAAqC;AACvF,QAAM,UAAU;AAAA,IACd,UAAU;AAAA,IACV,aAAa;AAAA,IACb,UAAU;AAAA,IACV,MAAM,UAAU,MAAM,OAA6B,IAAI;AAAA,IACvD,YAAY;AAAA,IACZ,YAAY;AAAA,MACV,MAAM;AAAA,IAAA;AAAA,IAER,GAAG;AAAA,EAAA;AAIL,UAAQ,SAAA;AAAA,IACN,KAAK;AACH,aAAOA,QAAY,QAAQ,UAAU,OAAO;AAAA,QAC1C,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH,KAAK;AACH,aAAOA,QAAY,MAAM,UAAU,OAAO;AAAA,QACxC,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH,KAAK;AACH,aAAOA,QAAY,QAAQ,UAAU,OAAO;AAAA,QAC1C,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,IACH;AACE,aAAOA,QAAY,KAAK,UAAU,OAAO;AAAA,QACvC,aAAa,UAAU;AAAA,QACvB,GAAG;AAAA,MAAA,CACJ;AAAA,EAAA;AAEP;AAEA,MAAM,QAAQ;AAAA,EACZ,SAAS,oBAAC,aAAA,EAAY,WAAU,iBAAA,CAAiB;AAAA,EACjD,MAAM,oBAAC,MAAA,EAAK,WAAU,iBAAA,CAAiB;AAAA,EACvC,SAAS,oBAAC,eAAA,EAAc,WAAU,kBAAA,CAAkB;AAAA,EACpD,OAAO,oBAAC,SAAA,EAAQ,WAAU,gBAAA,CAAgB;AAC5C;AASA,MAAM,UAAUC,eAAM,WAGpB,CAAC,OAAO,QAAQ;AAChB,QAAM,QAAQ,oBAAoB;AAGlC,QAAM,eAAe,EAAE,sBAAsB,SAAS,GAAG,MAAM,aAAA;AAC/D,SACE;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,oBAAmB;AAAA,MAEnB,QAAO;AAAA,MACN,GAAG;AAAA,MACJ;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;AACD,QAAQ,cAAc;"}
|
|
@@ -17966,12 +17966,12 @@
|
|
|
17966
17966
|
"description": "",
|
|
17967
17967
|
"name": "className",
|
|
17968
17968
|
"parent": {
|
|
17969
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
17969
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
17970
17970
|
"name": "ToasterProps"
|
|
17971
17971
|
},
|
|
17972
17972
|
"declarations": [
|
|
17973
17973
|
{
|
|
17974
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
17974
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
17975
17975
|
"name": "ToasterProps"
|
|
17976
17976
|
}
|
|
17977
17977
|
],
|
|
@@ -17985,12 +17985,12 @@
|
|
|
17985
17985
|
"description": "",
|
|
17986
17986
|
"name": "dir",
|
|
17987
17987
|
"parent": {
|
|
17988
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
17988
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
17989
17989
|
"name": "ToasterProps"
|
|
17990
17990
|
},
|
|
17991
17991
|
"declarations": [
|
|
17992
17992
|
{
|
|
17993
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
17993
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
17994
17994
|
"name": "ToasterProps"
|
|
17995
17995
|
}
|
|
17996
17996
|
],
|
|
@@ -18011,17 +18011,36 @@
|
|
|
18011
18011
|
]
|
|
18012
18012
|
}
|
|
18013
18013
|
},
|
|
18014
|
+
"id": {
|
|
18015
|
+
"defaultValue": null,
|
|
18016
|
+
"description": "",
|
|
18017
|
+
"name": "id",
|
|
18018
|
+
"parent": {
|
|
18019
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18020
|
+
"name": "ToasterProps"
|
|
18021
|
+
},
|
|
18022
|
+
"declarations": [
|
|
18023
|
+
{
|
|
18024
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18025
|
+
"name": "ToasterProps"
|
|
18026
|
+
}
|
|
18027
|
+
],
|
|
18028
|
+
"required": false,
|
|
18029
|
+
"type": {
|
|
18030
|
+
"name": "string"
|
|
18031
|
+
}
|
|
18032
|
+
},
|
|
18014
18033
|
"style": {
|
|
18015
18034
|
"defaultValue": null,
|
|
18016
18035
|
"description": "",
|
|
18017
18036
|
"name": "style",
|
|
18018
18037
|
"parent": {
|
|
18019
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18038
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18020
18039
|
"name": "ToasterProps"
|
|
18021
18040
|
},
|
|
18022
18041
|
"declarations": [
|
|
18023
18042
|
{
|
|
18024
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18043
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18025
18044
|
"name": "ToasterProps"
|
|
18026
18045
|
}
|
|
18027
18046
|
],
|
|
@@ -18035,12 +18054,12 @@
|
|
|
18035
18054
|
"description": "",
|
|
18036
18055
|
"name": "icons",
|
|
18037
18056
|
"parent": {
|
|
18038
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18057
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18039
18058
|
"name": "ToasterProps"
|
|
18040
18059
|
},
|
|
18041
18060
|
"declarations": [
|
|
18042
18061
|
{
|
|
18043
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18062
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18044
18063
|
"name": "ToasterProps"
|
|
18045
18064
|
}
|
|
18046
18065
|
],
|
|
@@ -18054,12 +18073,12 @@
|
|
|
18054
18073
|
"description": "",
|
|
18055
18074
|
"name": "theme",
|
|
18056
18075
|
"parent": {
|
|
18057
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18076
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18058
18077
|
"name": "ToasterProps"
|
|
18059
18078
|
},
|
|
18060
18079
|
"declarations": [
|
|
18061
18080
|
{
|
|
18062
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18081
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18063
18082
|
"name": "ToasterProps"
|
|
18064
18083
|
}
|
|
18065
18084
|
],
|
|
@@ -18085,12 +18104,12 @@
|
|
|
18085
18104
|
"description": "",
|
|
18086
18105
|
"name": "offset",
|
|
18087
18106
|
"parent": {
|
|
18088
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18107
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18089
18108
|
"name": "ToasterProps"
|
|
18090
18109
|
},
|
|
18091
18110
|
"declarations": [
|
|
18092
18111
|
{
|
|
18093
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18112
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18094
18113
|
"name": "ToasterProps"
|
|
18095
18114
|
}
|
|
18096
18115
|
],
|
|
@@ -18104,12 +18123,12 @@
|
|
|
18104
18123
|
"description": "",
|
|
18105
18124
|
"name": "position",
|
|
18106
18125
|
"parent": {
|
|
18107
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18126
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18108
18127
|
"name": "ToasterProps"
|
|
18109
18128
|
},
|
|
18110
18129
|
"declarations": [
|
|
18111
18130
|
{
|
|
18112
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18131
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18113
18132
|
"name": "ToasterProps"
|
|
18114
18133
|
}
|
|
18115
18134
|
],
|
|
@@ -18144,12 +18163,12 @@
|
|
|
18144
18163
|
"description": "",
|
|
18145
18164
|
"name": "gap",
|
|
18146
18165
|
"parent": {
|
|
18147
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18166
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18148
18167
|
"name": "ToasterProps"
|
|
18149
18168
|
},
|
|
18150
18169
|
"declarations": [
|
|
18151
18170
|
{
|
|
18152
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18171
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18153
18172
|
"name": "ToasterProps"
|
|
18154
18173
|
}
|
|
18155
18174
|
],
|
|
@@ -18163,12 +18182,12 @@
|
|
|
18163
18182
|
"description": "",
|
|
18164
18183
|
"name": "invert",
|
|
18165
18184
|
"parent": {
|
|
18166
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18185
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18167
18186
|
"name": "ToasterProps"
|
|
18168
18187
|
},
|
|
18169
18188
|
"declarations": [
|
|
18170
18189
|
{
|
|
18171
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18190
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18172
18191
|
"name": "ToasterProps"
|
|
18173
18192
|
}
|
|
18174
18193
|
],
|
|
@@ -18182,12 +18201,12 @@
|
|
|
18182
18201
|
"description": "",
|
|
18183
18202
|
"name": "hotkey",
|
|
18184
18203
|
"parent": {
|
|
18185
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18204
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18186
18205
|
"name": "ToasterProps"
|
|
18187
18206
|
},
|
|
18188
18207
|
"declarations": [
|
|
18189
18208
|
{
|
|
18190
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18209
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18191
18210
|
"name": "ToasterProps"
|
|
18192
18211
|
}
|
|
18193
18212
|
],
|
|
@@ -18201,12 +18220,12 @@
|
|
|
18201
18220
|
"description": "",
|
|
18202
18221
|
"name": "richColors",
|
|
18203
18222
|
"parent": {
|
|
18204
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18223
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18205
18224
|
"name": "ToasterProps"
|
|
18206
18225
|
},
|
|
18207
18226
|
"declarations": [
|
|
18208
18227
|
{
|
|
18209
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18228
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18210
18229
|
"name": "ToasterProps"
|
|
18211
18230
|
}
|
|
18212
18231
|
],
|
|
@@ -18220,12 +18239,12 @@
|
|
|
18220
18239
|
"description": "",
|
|
18221
18240
|
"name": "expand",
|
|
18222
18241
|
"parent": {
|
|
18223
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18242
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18224
18243
|
"name": "ToasterProps"
|
|
18225
18244
|
},
|
|
18226
18245
|
"declarations": [
|
|
18227
18246
|
{
|
|
18228
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18247
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18229
18248
|
"name": "ToasterProps"
|
|
18230
18249
|
}
|
|
18231
18250
|
],
|
|
@@ -18239,12 +18258,12 @@
|
|
|
18239
18258
|
"description": "",
|
|
18240
18259
|
"name": "duration",
|
|
18241
18260
|
"parent": {
|
|
18242
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18261
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18243
18262
|
"name": "ToasterProps"
|
|
18244
18263
|
},
|
|
18245
18264
|
"declarations": [
|
|
18246
18265
|
{
|
|
18247
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18266
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18248
18267
|
"name": "ToasterProps"
|
|
18249
18268
|
}
|
|
18250
18269
|
],
|
|
@@ -18258,12 +18277,12 @@
|
|
|
18258
18277
|
"description": "",
|
|
18259
18278
|
"name": "visibleToasts",
|
|
18260
18279
|
"parent": {
|
|
18261
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18280
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18262
18281
|
"name": "ToasterProps"
|
|
18263
18282
|
},
|
|
18264
18283
|
"declarations": [
|
|
18265
18284
|
{
|
|
18266
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18285
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18267
18286
|
"name": "ToasterProps"
|
|
18268
18287
|
}
|
|
18269
18288
|
],
|
|
@@ -18277,12 +18296,12 @@
|
|
|
18277
18296
|
"description": "",
|
|
18278
18297
|
"name": "closeButton",
|
|
18279
18298
|
"parent": {
|
|
18280
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18299
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18281
18300
|
"name": "ToasterProps"
|
|
18282
18301
|
},
|
|
18283
18302
|
"declarations": [
|
|
18284
18303
|
{
|
|
18285
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18304
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18286
18305
|
"name": "ToasterProps"
|
|
18287
18306
|
}
|
|
18288
18307
|
],
|
|
@@ -18296,12 +18315,12 @@
|
|
|
18296
18315
|
"description": "",
|
|
18297
18316
|
"name": "toastOptions",
|
|
18298
18317
|
"parent": {
|
|
18299
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18318
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18300
18319
|
"name": "ToasterProps"
|
|
18301
18320
|
},
|
|
18302
18321
|
"declarations": [
|
|
18303
18322
|
{
|
|
18304
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18323
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18305
18324
|
"name": "ToasterProps"
|
|
18306
18325
|
}
|
|
18307
18326
|
],
|
|
@@ -18315,12 +18334,12 @@
|
|
|
18315
18334
|
"description": "",
|
|
18316
18335
|
"name": "mobileOffset",
|
|
18317
18336
|
"parent": {
|
|
18318
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18337
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18319
18338
|
"name": "ToasterProps"
|
|
18320
18339
|
},
|
|
18321
18340
|
"declarations": [
|
|
18322
18341
|
{
|
|
18323
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18342
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18324
18343
|
"name": "ToasterProps"
|
|
18325
18344
|
}
|
|
18326
18345
|
],
|
|
@@ -18334,12 +18353,12 @@
|
|
|
18334
18353
|
"description": "",
|
|
18335
18354
|
"name": "swipeDirections",
|
|
18336
18355
|
"parent": {
|
|
18337
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18356
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18338
18357
|
"name": "ToasterProps"
|
|
18339
18358
|
},
|
|
18340
18359
|
"declarations": [
|
|
18341
18360
|
{
|
|
18342
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18361
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18343
18362
|
"name": "ToasterProps"
|
|
18344
18363
|
}
|
|
18345
18364
|
],
|
|
@@ -18348,23 +18367,23 @@
|
|
|
18348
18367
|
"name": "SwipeDirection[]"
|
|
18349
18368
|
}
|
|
18350
18369
|
},
|
|
18351
|
-
"
|
|
18370
|
+
"customAriaLabel": {
|
|
18352
18371
|
"defaultValue": null,
|
|
18353
|
-
"description": "
|
|
18354
|
-
"name": "
|
|
18372
|
+
"description": "",
|
|
18373
|
+
"name": "customAriaLabel",
|
|
18355
18374
|
"parent": {
|
|
18356
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18375
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18357
18376
|
"name": "ToasterProps"
|
|
18358
18377
|
},
|
|
18359
18378
|
"declarations": [
|
|
18360
18379
|
{
|
|
18361
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18380
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18362
18381
|
"name": "ToasterProps"
|
|
18363
18382
|
}
|
|
18364
18383
|
],
|
|
18365
18384
|
"required": false,
|
|
18366
18385
|
"type": {
|
|
18367
|
-
"name": "
|
|
18386
|
+
"name": "string"
|
|
18368
18387
|
}
|
|
18369
18388
|
},
|
|
18370
18389
|
"containerAriaLabel": {
|
|
@@ -18372,12 +18391,12 @@
|
|
|
18372
18391
|
"description": "",
|
|
18373
18392
|
"name": "containerAriaLabel",
|
|
18374
18393
|
"parent": {
|
|
18375
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18394
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18376
18395
|
"name": "ToasterProps"
|
|
18377
18396
|
},
|
|
18378
18397
|
"declarations": [
|
|
18379
18398
|
{
|
|
18380
|
-
"fileName": "node_modules/.pnpm/sonner@
|
|
18399
|
+
"fileName": "node_modules/.pnpm/sonner@2.0.8_@types+react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.mts",
|
|
18381
18400
|
"name": "ToasterProps"
|
|
18382
18401
|
}
|
|
18383
18402
|
],
|
|
@@ -18385,25 +18404,6 @@
|
|
|
18385
18404
|
"type": {
|
|
18386
18405
|
"name": "string"
|
|
18387
18406
|
}
|
|
18388
|
-
},
|
|
18389
|
-
"pauseWhenPageIsHidden": {
|
|
18390
|
-
"defaultValue": null,
|
|
18391
|
-
"description": "",
|
|
18392
|
-
"name": "pauseWhenPageIsHidden",
|
|
18393
|
-
"parent": {
|
|
18394
|
-
"fileName": "node_modules/.pnpm/sonner@1.7.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.ts",
|
|
18395
|
-
"name": "ToasterProps"
|
|
18396
|
-
},
|
|
18397
|
-
"declarations": [
|
|
18398
|
-
{
|
|
18399
|
-
"fileName": "node_modules/.pnpm/sonner@1.7.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/sonner/dist/index.d.ts",
|
|
18400
|
-
"name": "ToasterProps"
|
|
18401
|
-
}
|
|
18402
|
-
],
|
|
18403
|
-
"required": false,
|
|
18404
|
-
"type": {
|
|
18405
|
-
"name": "boolean"
|
|
18406
|
-
}
|
|
18407
18407
|
}
|
|
18408
18408
|
},
|
|
18409
18409
|
"exportName": "Toaster"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t3q-ui/design-system",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.5",
|
|
4
4
|
"description": "T3Q Design System - React Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -217,6 +217,7 @@
|
|
|
217
217
|
"prettier": "^3.7.3",
|
|
218
218
|
"react-hook-form": "^7.71.1",
|
|
219
219
|
"semantic-release": "^25.0.3",
|
|
220
|
+
"sonner": "^2.0.8",
|
|
220
221
|
"storybook": "^10.6.1",
|
|
221
222
|
"tailwindcss": "^4.1.3",
|
|
222
223
|
"tsup": "^8.3.5",
|
|
@@ -1630,10 +1630,6 @@ const WithAnchor = () => <AnchorExample />;
|
|
|
1630
1630
|
언제 안 쓰나: 화면에 남아 있어야 하는 안내·오류(→ Alert), 사용자의 확인이 필요한 것(→ AlertDialog), 폼 필드 오류(→ FormMessage).
|
|
1631
1631
|
대신/함께: `ThemeProvider` 안에 두어야 다크 모드를 따라간다.
|
|
1632
1632
|
|
|
1633
|
-
| prop | 타입 | 기본값 | 설명 |
|
|
1634
|
-
|---|---|---|---|
|
|
1635
|
-
| `loadingIcon` | `ReactNode` | | @deprecated Please use the `icons` prop instead: ```jsx <Toaster icons={{ loading: <LoadingIcon /> }} /> ``` |
|
|
1636
|
-
|
|
1637
1633
|
예시 — story "Variants":
|
|
1638
1634
|
|
|
1639
1635
|
```tsx
|