fone-design-system_v2 1.0.209 → 1.0.210

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.
@@ -0,0 +1,11 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import * as React from "react";
3
+ export interface ImageProps extends Omit<BoxProps, "component"> {
4
+ src: string;
5
+ alt?: string;
6
+ width?: string | number;
7
+ height?: string | number;
8
+ component?: React.ElementType;
9
+ }
10
+ declare const Image: ({ src, alt, component: Component, width, height, ...props }: ImageProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default Image;
@@ -0,0 +1,2 @@
1
+ import { default as Image, ImageProps } from './Image';
2
+ export { Image, ImageProps };
@@ -7,6 +7,11 @@ export interface RadioGroupProps<T extends FieldValues> extends MuiRadioGroupPro
7
7
  name: string;
8
8
  label?: React.ReactNode;
9
9
  row?: boolean;
10
+ /**
11
+ * `FormControlLabel` 내부에서 라디오와 라벨 사이 간격.
12
+ * (기본값: "6px")
13
+ */
14
+ optionGap?: string | number;
10
15
  children?: React.ReactNode;
11
16
  options?: Array<Omit<FormControlLabelProps, "control"> & RadioProps>;
12
17
  formName?: FieldPath<T>;
@@ -16,5 +21,5 @@ export interface RadioGroupProps<T extends FieldValues> extends MuiRadioGroupPro
16
21
  field?: any;
17
22
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
18
23
  }
19
- declare const RadioGroup: ({ name, label, row, children, options, formName, control, field, value, onChange, sx, defaultValue, ...props }: RadioGroupProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
24
+ declare const RadioGroup: ({ name, label, row, optionGap, children, options, formName, control, field, value, onChange, sx, defaultValue, ...props }: RadioGroupProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
20
25
  export default RadioGroup;
@@ -29,6 +29,32 @@ export type ColumnDef<T extends object> = TanstackColumnDef<T> & {
29
29
  visible?: boolean;
30
30
  simpleSelect?: boolean;
31
31
  showEditIcon?: boolean;
32
+ /** 바디 셀의 내용을 컬럼 단위로 커스텀 렌더링합니다. */
33
+ renderCell?: (params: {
34
+ rowData: T;
35
+ rowIndex: number;
36
+ column: ColumnDef<T>;
37
+ columnId: string;
38
+ value: unknown;
39
+ }) => React.ReactNode;
40
+ /** 바디 td 요소에 추가 속성이나 스타일을 주입합니다. */
41
+ getCellProps?: (params: {
42
+ rowData: T;
43
+ rowIndex: number;
44
+ column: ColumnDef<T>;
45
+ columnId: string;
46
+ value: unknown;
47
+ }) => React.TdHTMLAttributes<HTMLTableCellElement>;
48
+ /** 헤더 셀의 내용을 컬럼 단위로 커스텀 렌더링합니다. */
49
+ renderHeaderCell?: (params: {
50
+ column: ColumnDef<T>;
51
+ columnId: string;
52
+ }) => React.ReactNode;
53
+ /** 헤더 th 요소에 추가 속성이나 스타일을 주입합니다. */
54
+ getHeaderCellProps?: (params: {
55
+ column: ColumnDef<T>;
56
+ columnId: string;
57
+ }) => React.ThHTMLAttributes<HTMLTableCellElement>;
32
58
  };
33
59
  export interface Table2Props {
34
60
  /** Cell 클릭 시 해당 Cell Border 스타일 변경 여부를 설정합니다. */