@ceed/ads 1.12.1 → 1.13.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/RadioTileGroup/RadioTileGroup.d.ts +40 -0
- package/dist/components/RadioTileGroup/index.d.ts +3 -0
- package/dist/components/Sheet/Sheet.d.ts +1 -10
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +329 -174
- package/dist/index.d.ts +1 -1
- package/dist/index.js +215 -60
- package/framer/index.js +39 -39
- package/package.json +19 -18
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import type { SxProps } from '@mui/joy/styles/types';
|
|
3
|
+
export interface RadioTileOption<T = string> {
|
|
4
|
+
value: T;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
startDecorator?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface RadioTileGroupProps<T = string> {
|
|
10
|
+
/**
|
|
11
|
+
* @default 'sm'
|
|
12
|
+
*/
|
|
13
|
+
size?: 'sm' | 'md' | 'lg';
|
|
14
|
+
options: RadioTileOption<T>[];
|
|
15
|
+
value?: T;
|
|
16
|
+
defaultValue?: T;
|
|
17
|
+
name?: string;
|
|
18
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
+
sx?: SxProps;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
useIndicator?: boolean;
|
|
23
|
+
flex?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 지정하지 않으면 한 row에 모든 옵션이 렌더링된다.
|
|
26
|
+
* - 특정 rows 이내로 렌더링 하고 싶으면 `columns: Math.ceil(options.length / 원하는 rows)`로 설정할 수 있다.
|
|
27
|
+
* - 수직으로 렌더링 하고 싶으면 `columns: 1`로 설정할 수 있다.
|
|
28
|
+
* - `flex` 옵션과 함께 사용할수 있다.
|
|
29
|
+
*/
|
|
30
|
+
columns?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @default 'center'
|
|
33
|
+
*/
|
|
34
|
+
textAlign?: 'start' | 'center';
|
|
35
|
+
}
|
|
36
|
+
declare function RadioTileGroup<T extends string | number = string>(props: RadioTileGroupProps<T>): React.JSX.Element;
|
|
37
|
+
declare namespace RadioTileGroup {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
40
|
+
export { RadioTileGroup };
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Sheet: import("framer-motion").CustomDomComponent<{
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").SheetPropsColorOverrides> | undefined;
|
|
5
|
-
invertedColors?: boolean | undefined;
|
|
6
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
7
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").SheetPropsVariantOverrides> | undefined;
|
|
8
|
-
} & import("@mui/joy").SheetSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "children" | "color" | "variant" | "sx" | "invertedColors" | keyof import("@mui/joy").SheetSlotsAndSlotProps>>;
|
|
1
|
+
declare const Sheet: import("@mui/types").OverridableComponent<import("@mui/joy").SheetTypeMap<{}, "div">>;
|
|
11
2
|
export { Sheet };
|
|
@@ -46,6 +46,7 @@ export { Pagination } from './Pagination';
|
|
|
46
46
|
export { PercentageInput } from './PercentageInput';
|
|
47
47
|
export { ProfileMenu } from './ProfileMenu';
|
|
48
48
|
export { Radio, RadioGroup } from './Radio';
|
|
49
|
+
export { RadioTileGroup } from './RadioTileGroup';
|
|
49
50
|
export { RadioList } from './RadioList';
|
|
50
51
|
export { Select, Option } from './Select';
|
|
51
52
|
export { Sheet } from './Sheet';
|