@1d1s/design-system 2.2.5 → 2.3.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/dist/components/CheckList/CheckList.d.ts +7 -1
- package/dist/index.es.js +147 -147
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export type CheckListSize = "sm" | "md" | "lg";
|
|
3
|
+
export type CheckListVariant = "flat" | "card";
|
|
3
4
|
export interface CheckListOption {
|
|
4
5
|
id: string;
|
|
5
6
|
label: React.ReactNode;
|
|
@@ -14,6 +15,11 @@ export interface CheckListProps {
|
|
|
14
15
|
onValueChange: (value: string[]) => void;
|
|
15
16
|
/** 사이즈 — `sm`·`md`(default)·`lg` */
|
|
16
17
|
size?: CheckListSize;
|
|
18
|
+
/**
|
|
19
|
+
* 스타일 변형 — `flat`(default): 여백만 있는 플랫 행(읽기 전용 표시용),
|
|
20
|
+
* `card`: 행마다 보더 박스(체크 인터랙션용)
|
|
21
|
+
*/
|
|
22
|
+
variant?: CheckListVariant;
|
|
17
23
|
/** 추가 클래스 */
|
|
18
24
|
className?: string;
|
|
19
25
|
/** 읽기 전용 여부 (시각 변화 없이 토글만 비활성화) */
|
|
@@ -37,4 +43,4 @@ export interface CheckListProps {
|
|
|
37
43
|
* />
|
|
38
44
|
* ```
|
|
39
45
|
*/
|
|
40
|
-
export declare function CheckList({ options, value, onValueChange, size, className, readOnly, disabled, }: CheckListProps): React.ReactElement;
|
|
46
|
+
export declare function CheckList({ options, value, onValueChange, size, variant, className, readOnly, disabled, }: CheckListProps): React.ReactElement;
|