@idbrnd/design-system 3.0.4 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -75
- package/dist/components/Button/Tertiary/TertiaryButton.d.ts +15 -0
- package/dist/components/Textarea/Textarea.d.ts +21 -0
- package/dist/components/Textarea/Textarea.types.d.ts +133 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2759 -2554
- package/dist/style.css +1 -1
- package/dist/utils/normalizeHelperContent.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 안내/에러 문구로 실제 의미가 있는 내용인지 판별한다.
|
|
4
|
+
* - 빈 문자열, 공백 문자열, `<span>{''}</span>`처럼 내용이 없는 JSX 래퍼는 문구가 없는 것으로 간주
|
|
5
|
+
* - 숫자, 의미 있는 문자열, 실제 내용을 포함한 노드만 유지
|
|
6
|
+
*/
|
|
7
|
+
export declare function normalizeHelperContent(content: ReactNode): ReactNode | undefined;
|
|
8
|
+
export default normalizeHelperContent;
|