@x-plat/design-system 0.1.5 → 0.2.1
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/{colors-BG91q_uV.d.cts → colors-DmMsWD7G.d.cts} +20 -4
- package/dist/{colors-BG91q_uV.d.ts → colors-DmMsWD7G.d.ts} +20 -4
- package/dist/components/Accordion/index.cjs +25 -14
- package/dist/components/Accordion/index.css +6 -6
- package/dist/components/Accordion/index.d.cts +16 -3
- package/dist/components/Accordion/index.d.ts +16 -3
- package/dist/components/Accordion/index.js +25 -14
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/index.css +16 -16
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Avatar/index.cjs +1 -1
- package/dist/components/Avatar/index.css +3 -279
- package/dist/components/Avatar/index.d.cts +2 -118
- package/dist/components/Avatar/index.d.ts +2 -118
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Badge/index.cjs +3 -2
- package/dist/components/Badge/index.css +23 -279
- package/dist/components/Badge/index.d.cts +4 -118
- package/dist/components/Badge/index.d.ts +4 -118
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Breadcrumb/index.cjs +1 -1
- package/dist/components/Breadcrumb/index.css +4 -4
- package/dist/components/Breadcrumb/index.js +1 -1
- package/dist/components/Button/index.cjs +3 -2
- package/dist/components/Button/index.css +26 -1214
- package/dist/components/Button/index.d.cts +4 -118
- package/dist/components/Button/index.d.ts +4 -118
- package/dist/components/Button/index.js +3 -2
- package/dist/components/Card/index.cjs +1 -1
- package/dist/components/Card/index.css +3 -3
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CardTab/index.cjs +124 -0
- package/dist/components/CardTab/index.css +78 -0
- package/dist/components/CardTab/index.d.cts +44 -0
- package/dist/components/CardTab/index.d.ts +44 -0
- package/dist/components/CardTab/index.js +87 -0
- package/dist/components/Chart/index.cjs +14230 -37
- package/dist/components/Chart/index.js +14217 -33
- package/dist/components/CheckBox/index.cjs +3 -2
- package/dist/components/CheckBox/index.css +27 -563
- package/dist/components/CheckBox/index.d.cts +5 -119
- package/dist/components/CheckBox/index.d.ts +5 -119
- package/dist/components/CheckBox/index.js +3 -2
- package/dist/components/Chip/index.cjs +3 -2
- package/dist/components/Chip/index.css +21 -1209
- package/dist/components/Chip/index.d.cts +4 -118
- package/dist/components/Chip/index.d.ts +4 -118
- package/dist/components/Chip/index.js +3 -2
- package/dist/components/DatePicker/index.cjs +10772 -56
- package/dist/components/DatePicker/index.css +802 -1231
- package/dist/components/DatePicker/index.d.cts +3 -235
- package/dist/components/DatePicker/index.d.ts +3 -235
- package/dist/components/DatePicker/index.js +11004 -280
- package/dist/components/Divider/index.cjs +1 -1
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/index.cjs +1 -1
- package/dist/components/Drawer/index.css +5 -5
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Dropdown/index.cjs +1 -1
- package/dist/components/Dropdown/index.css +7 -7
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/EmptyState/index.cjs +1 -1
- package/dist/components/EmptyState/index.css +3 -3
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/FileUpload/index.cjs +1 -1
- package/dist/components/FileUpload/index.css +8 -8
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/HtmlTypeWriter/index.css +1 -1
- package/dist/components/ImageSelector/index.css +9 -9
- package/dist/components/Input/index.cjs +3 -2
- package/dist/components/Input/index.css +21 -10
- package/dist/components/Input/index.d.cts +6 -2
- package/dist/components/Input/index.d.ts +6 -2
- package/dist/components/Input/index.js +3 -2
- package/dist/components/Modal/index.cjs +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Pagination/index.cjs +3 -2
- package/dist/components/Pagination/index.css +33 -283
- package/dist/components/Pagination/index.d.cts +4 -118
- package/dist/components/Pagination/index.d.ts +4 -118
- package/dist/components/Pagination/index.js +3 -2
- package/dist/components/PopOver/index.cjs +1 -1
- package/dist/components/PopOver/index.js +1 -1
- package/dist/components/Progress/index.cjs +1 -1
- package/dist/components/Progress/index.css +3 -281
- package/dist/components/Progress/index.d.cts +2 -118
- package/dist/components/Progress/index.d.ts +2 -118
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/Radio/index.cjs +4 -1
- package/dist/components/Radio/index.css +36 -747
- package/dist/components/Radio/index.d.cts +6 -119
- package/dist/components/Radio/index.d.ts +6 -119
- package/dist/components/Radio/index.js +4 -1
- package/dist/components/Select/index.cjs +4 -2
- package/dist/components/Select/index.css +38 -18
- package/dist/components/Select/index.d.cts +3 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.js +4 -2
- package/dist/components/Skeleton/index.cjs +1 -1
- package/dist/components/Skeleton/index.css +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Spinner/index.cjs +1 -1
- package/dist/components/Spinner/index.css +2 -280
- package/dist/components/Spinner/index.d.cts +2 -118
- package/dist/components/Spinner/index.d.ts +2 -118
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Steps/index.cjs +1 -1
- package/dist/components/Steps/index.css +14 -846
- package/dist/components/Steps/index.d.cts +2 -118
- package/dist/components/Steps/index.d.ts +2 -118
- package/dist/components/Steps/index.js +1 -1
- package/dist/components/Swiper/index.cjs +5874 -18
- package/dist/components/Swiper/index.css +229 -0
- package/dist/components/Swiper/index.js +5863 -17
- package/dist/components/Switch/index.cjs +1 -1
- package/dist/components/Switch/index.css +9 -745
- package/dist/components/Switch/index.d.cts +2 -118
- package/dist/components/Switch/index.d.ts +2 -118
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.cjs +3 -3
- package/dist/components/Tab/index.css +20 -9
- package/dist/components/Tab/index.d.cts +2 -0
- package/dist/components/Tab/index.d.ts +2 -0
- package/dist/components/Tab/index.js +3 -3
- package/dist/components/Table/index.cjs +1 -1
- package/dist/components/Table/index.css +47 -4003
- package/dist/components/Table/index.d.cts +2 -118
- package/dist/components/Table/index.d.ts +2 -118
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/index.cjs +3 -2
- package/dist/components/Tag/index.css +27 -467
- package/dist/components/Tag/index.d.cts +4 -118
- package/dist/components/Tag/index.d.ts +4 -118
- package/dist/components/Tag/index.js +3 -2
- package/dist/components/TextArea/index.cjs +1 -1
- package/dist/components/TextArea/index.css +4 -4
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/Toast/index.cjs +1 -1
- package/dist/components/Toast/index.css +8 -8
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/index.cjs +1 -1
- package/dist/components/Tooltip/index.css +4 -560
- package/dist/components/Tooltip/index.d.cts +2 -118
- package/dist/components/Tooltip/index.d.ts +2 -118
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Video/index.cjs +1 -1
- package/dist/components/Video/index.css +3 -3
- package/dist/components/Video/index.js +1 -1
- package/dist/components/index.cjs +25841 -842
- package/dist/components/index.css +1929 -12543
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +25836 -841
- package/dist/index.cjs +25875 -876
- package/dist/index.css +2358 -12598
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +25878 -883
- package/dist/layout/Grid/FullGrid/index.cjs +1 -1
- package/dist/layout/Grid/FullGrid/index.js +1 -1
- package/dist/layout/Grid/FullScreen/index.cjs +1 -1
- package/dist/layout/Grid/FullScreen/index.js +1 -1
- package/dist/layout/Grid/Item/index.cjs +1 -1
- package/dist/layout/Grid/Item/index.js +1 -1
- package/dist/layout/Grid/index.cjs +1 -1
- package/dist/layout/Grid/index.js +1 -1
- package/dist/layout/Header/index.css +2 -2
- package/dist/layout/Layout/index.css +1 -1
- package/dist/layout/SideBar/index.cjs +1 -1
- package/dist/layout/SideBar/index.js +1 -1
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.css +3 -3
- package/dist/layout/index.js +1 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +13 -12
- package/README.md +0 -123
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { I as InputAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.cjs';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type RadioSize = "sm" | "md" | "lg";
|
|
7
|
+
interface RadioProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends Omit<InputAttributes, "size">, ColorProps<N, C> {
|
|
7
8
|
label?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
/**
|
|
@@ -11,129 +12,14 @@ interface RadioProps<N extends ColorNamespace, C extends ColorName<N> = ColorNam
|
|
|
11
12
|
*/
|
|
12
13
|
name?: string;
|
|
13
14
|
value: string | number;
|
|
15
|
+
size?: RadioSize;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* 그룹모드 check 조건 : RadioGroup value === radio value
|
|
17
19
|
* 단일모드 check 조건 : props 중 checked = true
|
|
18
20
|
*/
|
|
19
21
|
declare const Radio: {
|
|
20
|
-
<N extends ColorNamespace = "xplat", C extends ColorName<N> =
|
|
21
|
-
readonly xplat: {
|
|
22
|
-
readonly red: {
|
|
23
|
-
readonly 50: "#FFF0F0";
|
|
24
|
-
readonly 100: "#FFDDDE";
|
|
25
|
-
readonly 200: "#FFC1C2";
|
|
26
|
-
readonly 300: "#FF9698";
|
|
27
|
-
readonly 400: "#FF5A5D";
|
|
28
|
-
readonly 500: "#FF272B";
|
|
29
|
-
readonly 600: "#F80409";
|
|
30
|
-
readonly 700: "#D40105";
|
|
31
|
-
readonly 800: "#AE0609";
|
|
32
|
-
readonly 900: "#900C0F";
|
|
33
|
-
};
|
|
34
|
-
readonly green: {
|
|
35
|
-
readonly 50: "#E5F6EA";
|
|
36
|
-
readonly 100: "#C1E7CC";
|
|
37
|
-
readonly 200: "#98D8AC";
|
|
38
|
-
readonly 300: "#6CCA8B";
|
|
39
|
-
readonly 400: "#47BE72";
|
|
40
|
-
readonly 500: "#10B259";
|
|
41
|
-
readonly 600: "#00A34F";
|
|
42
|
-
readonly 700: "#009143";
|
|
43
|
-
readonly 800: "#007F38";
|
|
44
|
-
readonly 900: "#006024";
|
|
45
|
-
};
|
|
46
|
-
readonly orange: {
|
|
47
|
-
readonly 50: "#FFF8EC";
|
|
48
|
-
readonly 100: "#FFF0D3";
|
|
49
|
-
readonly 200: "#FFDDA5";
|
|
50
|
-
readonly 300: "#FFC46D";
|
|
51
|
-
readonly 400: "#FF9F32";
|
|
52
|
-
readonly 500: "#FF820A";
|
|
53
|
-
readonly 600: "#FF6900";
|
|
54
|
-
readonly 700: "#CC4B02";
|
|
55
|
-
readonly 800: "#A13A0B";
|
|
56
|
-
readonly 900: "#82320C";
|
|
57
|
-
};
|
|
58
|
-
readonly yellow: {
|
|
59
|
-
readonly 50: "#FFFDE7";
|
|
60
|
-
readonly 100: "#FFFAC1";
|
|
61
|
-
readonly 200: "#FFF186";
|
|
62
|
-
readonly 300: "#FFE041";
|
|
63
|
-
readonly 400: "#FFCC0D";
|
|
64
|
-
readonly 500: "#F0B100";
|
|
65
|
-
readonly 600: "#D18800";
|
|
66
|
-
readonly 700: "#A66002";
|
|
67
|
-
readonly 800: "#894B0A";
|
|
68
|
-
readonly 900: "#743D0F";
|
|
69
|
-
};
|
|
70
|
-
readonly blue: {
|
|
71
|
-
readonly 50: "#F1F4FD";
|
|
72
|
-
readonly 100: "#DFE7FA";
|
|
73
|
-
readonly 200: "#C5D4F8";
|
|
74
|
-
readonly 300: "#9EB8F2";
|
|
75
|
-
readonly 400: "#7093EA";
|
|
76
|
-
readonly 500: "#4D6DE3";
|
|
77
|
-
readonly 600: "#3950D7";
|
|
78
|
-
readonly 700: "#303EC5";
|
|
79
|
-
readonly 800: "#2D35A0";
|
|
80
|
-
readonly 900: "#29317F";
|
|
81
|
-
};
|
|
82
|
-
readonly lightblue: {
|
|
83
|
-
readonly 50: "#EEFAFF";
|
|
84
|
-
readonly 100: "#D9F4FF";
|
|
85
|
-
readonly 200: "#BBEDFF";
|
|
86
|
-
readonly 300: "#8DE3FF";
|
|
87
|
-
readonly 400: "#57D0FF";
|
|
88
|
-
readonly 500: "#30B6FF";
|
|
89
|
-
readonly 600: "#1999F7";
|
|
90
|
-
readonly 700: "#1280E3";
|
|
91
|
-
readonly 800: "#1566B8";
|
|
92
|
-
readonly 900: "#175791";
|
|
93
|
-
};
|
|
94
|
-
readonly purple: {
|
|
95
|
-
readonly 50: "#FBF6FE";
|
|
96
|
-
readonly 100: "#F5EAFD";
|
|
97
|
-
readonly 200: "#EDD8FC";
|
|
98
|
-
readonly 300: "#E0BAF8";
|
|
99
|
-
readonly 400: "#CD8DF3";
|
|
100
|
-
readonly 500: "#B961EB";
|
|
101
|
-
readonly 600: "#A541DC";
|
|
102
|
-
readonly 700: "#9230C5";
|
|
103
|
-
readonly 800: "#782B9E";
|
|
104
|
-
readonly 900: "#62247F";
|
|
105
|
-
};
|
|
106
|
-
readonly pink: {
|
|
107
|
-
readonly 50: "#FFF4FE";
|
|
108
|
-
readonly 100: "#FFE7FD";
|
|
109
|
-
readonly 200: "#FFCFFA";
|
|
110
|
-
readonly 300: "#FEA9F1";
|
|
111
|
-
readonly 400: "#FD75E7";
|
|
112
|
-
readonly 500: "#F553DA";
|
|
113
|
-
readonly 600: "#D821B6";
|
|
114
|
-
readonly 700: "#B31892";
|
|
115
|
-
readonly 800: "#921676";
|
|
116
|
-
readonly 900: "#781761";
|
|
117
|
-
};
|
|
118
|
-
readonly neutral: {
|
|
119
|
-
readonly 50: "#FAFAFA";
|
|
120
|
-
readonly 100: "#F5F5F5";
|
|
121
|
-
readonly 200: "#E5E5E5";
|
|
122
|
-
readonly 300: "#D4D4D4";
|
|
123
|
-
readonly 400: "#A1A1A1";
|
|
124
|
-
readonly 500: "#737373";
|
|
125
|
-
readonly 600: "#525252";
|
|
126
|
-
readonly 700: "#404040";
|
|
127
|
-
readonly 800: "#262626";
|
|
128
|
-
readonly 900: "#171717";
|
|
129
|
-
};
|
|
130
|
-
readonly black: "#000000";
|
|
131
|
-
readonly white: "#FFFFFF";
|
|
132
|
-
};
|
|
133
|
-
readonly test: {
|
|
134
|
-
readonly default: "#ffffff";
|
|
135
|
-
};
|
|
136
|
-
}[N]>(props: RadioProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: RadioProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
137
23
|
displayName: string;
|
|
138
24
|
};
|
|
139
25
|
|
|
@@ -141,6 +27,7 @@ interface RadioGroupContextProps {
|
|
|
141
27
|
value?: string | number;
|
|
142
28
|
name: string;
|
|
143
29
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
30
|
+
size?: "sm" | "md" | "lg";
|
|
144
31
|
}
|
|
145
32
|
|
|
146
33
|
interface RadioGroupProps extends RadioGroupContextProps {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { I as InputAttributes } from '../../attributes-DJIWir_0.js';
|
|
3
|
-
import {
|
|
3
|
+
import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type RadioSize = "sm" | "md" | "lg";
|
|
7
|
+
interface RadioProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends Omit<InputAttributes, "size">, ColorProps<N, C> {
|
|
7
8
|
label?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
/**
|
|
@@ -11,129 +12,14 @@ interface RadioProps<N extends ColorNamespace, C extends ColorName<N> = ColorNam
|
|
|
11
12
|
*/
|
|
12
13
|
name?: string;
|
|
13
14
|
value: string | number;
|
|
15
|
+
size?: RadioSize;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* 그룹모드 check 조건 : RadioGroup value === radio value
|
|
17
19
|
* 단일모드 check 조건 : props 중 checked = true
|
|
18
20
|
*/
|
|
19
21
|
declare const Radio: {
|
|
20
|
-
<N extends ColorNamespace = "xplat", C extends ColorName<N> =
|
|
21
|
-
readonly xplat: {
|
|
22
|
-
readonly red: {
|
|
23
|
-
readonly 50: "#FFF0F0";
|
|
24
|
-
readonly 100: "#FFDDDE";
|
|
25
|
-
readonly 200: "#FFC1C2";
|
|
26
|
-
readonly 300: "#FF9698";
|
|
27
|
-
readonly 400: "#FF5A5D";
|
|
28
|
-
readonly 500: "#FF272B";
|
|
29
|
-
readonly 600: "#F80409";
|
|
30
|
-
readonly 700: "#D40105";
|
|
31
|
-
readonly 800: "#AE0609";
|
|
32
|
-
readonly 900: "#900C0F";
|
|
33
|
-
};
|
|
34
|
-
readonly green: {
|
|
35
|
-
readonly 50: "#E5F6EA";
|
|
36
|
-
readonly 100: "#C1E7CC";
|
|
37
|
-
readonly 200: "#98D8AC";
|
|
38
|
-
readonly 300: "#6CCA8B";
|
|
39
|
-
readonly 400: "#47BE72";
|
|
40
|
-
readonly 500: "#10B259";
|
|
41
|
-
readonly 600: "#00A34F";
|
|
42
|
-
readonly 700: "#009143";
|
|
43
|
-
readonly 800: "#007F38";
|
|
44
|
-
readonly 900: "#006024";
|
|
45
|
-
};
|
|
46
|
-
readonly orange: {
|
|
47
|
-
readonly 50: "#FFF8EC";
|
|
48
|
-
readonly 100: "#FFF0D3";
|
|
49
|
-
readonly 200: "#FFDDA5";
|
|
50
|
-
readonly 300: "#FFC46D";
|
|
51
|
-
readonly 400: "#FF9F32";
|
|
52
|
-
readonly 500: "#FF820A";
|
|
53
|
-
readonly 600: "#FF6900";
|
|
54
|
-
readonly 700: "#CC4B02";
|
|
55
|
-
readonly 800: "#A13A0B";
|
|
56
|
-
readonly 900: "#82320C";
|
|
57
|
-
};
|
|
58
|
-
readonly yellow: {
|
|
59
|
-
readonly 50: "#FFFDE7";
|
|
60
|
-
readonly 100: "#FFFAC1";
|
|
61
|
-
readonly 200: "#FFF186";
|
|
62
|
-
readonly 300: "#FFE041";
|
|
63
|
-
readonly 400: "#FFCC0D";
|
|
64
|
-
readonly 500: "#F0B100";
|
|
65
|
-
readonly 600: "#D18800";
|
|
66
|
-
readonly 700: "#A66002";
|
|
67
|
-
readonly 800: "#894B0A";
|
|
68
|
-
readonly 900: "#743D0F";
|
|
69
|
-
};
|
|
70
|
-
readonly blue: {
|
|
71
|
-
readonly 50: "#F1F4FD";
|
|
72
|
-
readonly 100: "#DFE7FA";
|
|
73
|
-
readonly 200: "#C5D4F8";
|
|
74
|
-
readonly 300: "#9EB8F2";
|
|
75
|
-
readonly 400: "#7093EA";
|
|
76
|
-
readonly 500: "#4D6DE3";
|
|
77
|
-
readonly 600: "#3950D7";
|
|
78
|
-
readonly 700: "#303EC5";
|
|
79
|
-
readonly 800: "#2D35A0";
|
|
80
|
-
readonly 900: "#29317F";
|
|
81
|
-
};
|
|
82
|
-
readonly lightblue: {
|
|
83
|
-
readonly 50: "#EEFAFF";
|
|
84
|
-
readonly 100: "#D9F4FF";
|
|
85
|
-
readonly 200: "#BBEDFF";
|
|
86
|
-
readonly 300: "#8DE3FF";
|
|
87
|
-
readonly 400: "#57D0FF";
|
|
88
|
-
readonly 500: "#30B6FF";
|
|
89
|
-
readonly 600: "#1999F7";
|
|
90
|
-
readonly 700: "#1280E3";
|
|
91
|
-
readonly 800: "#1566B8";
|
|
92
|
-
readonly 900: "#175791";
|
|
93
|
-
};
|
|
94
|
-
readonly purple: {
|
|
95
|
-
readonly 50: "#FBF6FE";
|
|
96
|
-
readonly 100: "#F5EAFD";
|
|
97
|
-
readonly 200: "#EDD8FC";
|
|
98
|
-
readonly 300: "#E0BAF8";
|
|
99
|
-
readonly 400: "#CD8DF3";
|
|
100
|
-
readonly 500: "#B961EB";
|
|
101
|
-
readonly 600: "#A541DC";
|
|
102
|
-
readonly 700: "#9230C5";
|
|
103
|
-
readonly 800: "#782B9E";
|
|
104
|
-
readonly 900: "#62247F";
|
|
105
|
-
};
|
|
106
|
-
readonly pink: {
|
|
107
|
-
readonly 50: "#FFF4FE";
|
|
108
|
-
readonly 100: "#FFE7FD";
|
|
109
|
-
readonly 200: "#FFCFFA";
|
|
110
|
-
readonly 300: "#FEA9F1";
|
|
111
|
-
readonly 400: "#FD75E7";
|
|
112
|
-
readonly 500: "#F553DA";
|
|
113
|
-
readonly 600: "#D821B6";
|
|
114
|
-
readonly 700: "#B31892";
|
|
115
|
-
readonly 800: "#921676";
|
|
116
|
-
readonly 900: "#781761";
|
|
117
|
-
};
|
|
118
|
-
readonly neutral: {
|
|
119
|
-
readonly 50: "#FAFAFA";
|
|
120
|
-
readonly 100: "#F5F5F5";
|
|
121
|
-
readonly 200: "#E5E5E5";
|
|
122
|
-
readonly 300: "#D4D4D4";
|
|
123
|
-
readonly 400: "#A1A1A1";
|
|
124
|
-
readonly 500: "#737373";
|
|
125
|
-
readonly 600: "#525252";
|
|
126
|
-
readonly 700: "#404040";
|
|
127
|
-
readonly 800: "#262626";
|
|
128
|
-
readonly 900: "#171717";
|
|
129
|
-
};
|
|
130
|
-
readonly black: "#000000";
|
|
131
|
-
readonly white: "#FFFFFF";
|
|
132
|
-
};
|
|
133
|
-
readonly test: {
|
|
134
|
-
readonly default: "#ffffff";
|
|
135
|
-
};
|
|
136
|
-
}[N]>(props: RadioProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: RadioProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
137
23
|
displayName: string;
|
|
138
24
|
};
|
|
139
25
|
|
|
@@ -141,6 +27,7 @@ interface RadioGroupContextProps {
|
|
|
141
27
|
value?: string | number;
|
|
142
28
|
name: string;
|
|
143
29
|
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
30
|
+
size?: "sm" | "md" | "lg";
|
|
144
31
|
}
|
|
145
32
|
|
|
146
33
|
interface RadioGroupProps extends RadioGroupContextProps {
|
|
@@ -125,7 +125,7 @@ var getColorClass = (namespace, palette, shade) => {
|
|
|
125
125
|
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
128
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
129
129
|
function r(e) {
|
|
130
130
|
var t, f, n = "";
|
|
131
131
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -161,9 +161,11 @@ var Radio = (props) => {
|
|
|
161
161
|
colorNamespace = "xplat",
|
|
162
162
|
color = "blue",
|
|
163
163
|
colorDepth,
|
|
164
|
+
size: sizeProp,
|
|
164
165
|
...rest
|
|
165
166
|
} = props;
|
|
166
167
|
const context = useRadioGroupContext();
|
|
168
|
+
const size = sizeProp ?? context?.size ?? "md";
|
|
167
169
|
const isGroup = !!context;
|
|
168
170
|
const localChecked = isGroup ? context.value === value : rest.checked ?? false;
|
|
169
171
|
const inputProps = context ? { name: context.name, value, onChange: context.onChange } : {
|
|
@@ -181,6 +183,7 @@ var Radio = (props) => {
|
|
|
181
183
|
{
|
|
182
184
|
className: clsx_default(
|
|
183
185
|
"lib-xplat-radio",
|
|
186
|
+
size,
|
|
184
187
|
localChecked ? "checked" : void 0,
|
|
185
188
|
className
|
|
186
189
|
),
|
|
@@ -1001,7 +1001,7 @@ var import_jsx_runtime293 = require("react/jsx-runtime");
|
|
|
1001
1001
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
1002
1002
|
var import_jsx_runtime294 = require("react/jsx-runtime");
|
|
1003
1003
|
|
|
1004
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
1004
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
1005
1005
|
function r(e) {
|
|
1006
1006
|
var t, f, n = "";
|
|
1007
1007
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -1066,7 +1066,8 @@ var SelectRoot = (props) => {
|
|
|
1066
1066
|
onChange,
|
|
1067
1067
|
children,
|
|
1068
1068
|
disabled = false,
|
|
1069
|
-
error = false
|
|
1069
|
+
error = false,
|
|
1070
|
+
size = "md"
|
|
1070
1071
|
} = props;
|
|
1071
1072
|
const itemChildren = import_react5.default.Children.toArray(children).filter(
|
|
1072
1073
|
(child) => import_react5.default.isValidElement(child) && child.type === SelectItem_default
|
|
@@ -1137,6 +1138,7 @@ var SelectRoot = (props) => {
|
|
|
1137
1138
|
{
|
|
1138
1139
|
className: clsx_default(
|
|
1139
1140
|
"lib-xplat-select",
|
|
1141
|
+
size,
|
|
1140
1142
|
disabled && "disabled",
|
|
1141
1143
|
error && "error",
|
|
1142
1144
|
mounted && "is-open"
|
|
@@ -7,6 +7,29 @@
|
|
|
7
7
|
.lib-xplat-select.is-open {
|
|
8
8
|
z-index: 1;
|
|
9
9
|
}
|
|
10
|
+
.lib-xplat-select.sm .select-trigger {
|
|
11
|
+
min-height: 32px;
|
|
12
|
+
padding: 4px 10px;
|
|
13
|
+
font-size: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
.lib-xplat-select.md .select-trigger {
|
|
16
|
+
min-height: 40px;
|
|
17
|
+
padding: 8px 12px;
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
}
|
|
20
|
+
.lib-xplat-select.lg .select-trigger {
|
|
21
|
+
min-height: 48px;
|
|
22
|
+
padding: 10px 14px;
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
}
|
|
25
|
+
.lib-xplat-select.sm .select-content .select-item {
|
|
26
|
+
padding: 6px 10px;
|
|
27
|
+
font-size: 0.75rem;
|
|
28
|
+
}
|
|
29
|
+
.lib-xplat-select.lg .select-content .select-item {
|
|
30
|
+
padding: 10px 14px;
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
}
|
|
10
33
|
.lib-xplat-select .select-trigger {
|
|
11
34
|
cursor: pointer;
|
|
12
35
|
user-select: none;
|
|
@@ -15,36 +38,33 @@
|
|
|
15
38
|
align-items: center;
|
|
16
39
|
justify-content: space-between;
|
|
17
40
|
gap: 8px;
|
|
18
|
-
|
|
19
|
-
padding: 8px 12px;
|
|
20
|
-
border: 1px solid #D4D4D4;
|
|
41
|
+
border: 1px solid var(--xplat-neutral-300);
|
|
21
42
|
border-radius: 8px;
|
|
22
43
|
background-color: #fff;
|
|
23
|
-
|
|
24
|
-
color: #171717;
|
|
44
|
+
color: var(--xplat-neutral-900);
|
|
25
45
|
}
|
|
26
46
|
.lib-xplat-select .select-trigger:focus-visible {
|
|
27
|
-
outline: 2px solid
|
|
47
|
+
outline: 2px solid var(--xplat-blue-500);
|
|
28
48
|
outline-offset: 2px;
|
|
29
49
|
}
|
|
30
50
|
.lib-xplat-select .select-trigger.disabled {
|
|
31
51
|
cursor: not-allowed;
|
|
32
52
|
pointer-events: none;
|
|
33
|
-
background-color:
|
|
34
|
-
border-color:
|
|
35
|
-
color:
|
|
53
|
+
background-color: var(--xplat-neutral-100);
|
|
54
|
+
border-color: var(--xplat-neutral-300);
|
|
55
|
+
color: var(--xplat-neutral-400);
|
|
36
56
|
}
|
|
37
57
|
.lib-xplat-select .select-trigger.disabled .select-trigger-value.placeholder {
|
|
38
|
-
color:
|
|
58
|
+
color: var(--xplat-neutral-400);
|
|
39
59
|
}
|
|
40
60
|
.lib-xplat-select .select-trigger.disabled .select-trigger-icon {
|
|
41
|
-
color:
|
|
61
|
+
color: var(--xplat-neutral-400);
|
|
42
62
|
}
|
|
43
63
|
.lib-xplat-select .select-trigger.error:not(.disabled) {
|
|
44
|
-
border-color:
|
|
64
|
+
border-color: var(--xplat-red-500);
|
|
45
65
|
}
|
|
46
66
|
.lib-xplat-select .select-trigger.error:not(.disabled):focus-visible {
|
|
47
|
-
outline-color:
|
|
67
|
+
outline-color: var(--xplat-red-500);
|
|
48
68
|
}
|
|
49
69
|
.lib-xplat-select .select-trigger .select-trigger-value {
|
|
50
70
|
flex: 1;
|
|
@@ -55,14 +75,14 @@
|
|
|
55
75
|
white-space: nowrap;
|
|
56
76
|
}
|
|
57
77
|
.lib-xplat-select .select-trigger .select-trigger-value.placeholder {
|
|
58
|
-
color:
|
|
78
|
+
color: var(--xplat-neutral-400);
|
|
59
79
|
}
|
|
60
80
|
.lib-xplat-select .select-trigger .select-trigger-icon {
|
|
61
81
|
flex-shrink: 0;
|
|
62
82
|
display: flex;
|
|
63
83
|
align-items: center;
|
|
64
84
|
justify-content: center;
|
|
65
|
-
color:
|
|
85
|
+
color: var(--xplat-neutral-500);
|
|
66
86
|
transition: transform 0.2s ease;
|
|
67
87
|
}
|
|
68
88
|
.lib-xplat-select .select-trigger .select-trigger-icon.open {
|
|
@@ -125,12 +145,12 @@
|
|
|
125
145
|
outline: none;
|
|
126
146
|
}
|
|
127
147
|
.lib-xplat-select .select-item:hover:not(.disabled) {
|
|
128
|
-
background-color:
|
|
148
|
+
background-color: var(--xplat-neutral-100);
|
|
129
149
|
}
|
|
130
150
|
.lib-xplat-select .select-item:focus-visible:not(.disabled) {
|
|
131
|
-
background-color:
|
|
151
|
+
background-color: var(--xplat-neutral-100);
|
|
132
152
|
}
|
|
133
153
|
.lib-xplat-select .select-item.disabled {
|
|
134
154
|
cursor: not-allowed;
|
|
135
|
-
color:
|
|
155
|
+
color: var(--xplat-neutral-400);
|
|
136
156
|
}
|
|
@@ -19,6 +19,7 @@ declare const SelectItem: {
|
|
|
19
19
|
type SelectItemElement = React.ReactElement<SelectItemProps, typeof SelectItem>;
|
|
20
20
|
/** 값 변경 시 호출 (value: 아이템 value, label: 표시 텍스트) */
|
|
21
21
|
type SelectChangeHandler = (value: string | number | undefined, label: React.ReactNode) => void;
|
|
22
|
+
type SelectSize = "sm" | "md" | "lg";
|
|
22
23
|
interface SelectProps {
|
|
23
24
|
/** 선택 전 표시할 문구 */
|
|
24
25
|
placeholder?: string;
|
|
@@ -32,6 +33,8 @@ interface SelectProps {
|
|
|
32
33
|
disabled?: boolean;
|
|
33
34
|
/** 에러 상태 */
|
|
34
35
|
error?: boolean;
|
|
36
|
+
/** 사이즈 */
|
|
37
|
+
size?: SelectSize;
|
|
35
38
|
}
|
|
36
39
|
declare const Select: {
|
|
37
40
|
(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -19,6 +19,7 @@ declare const SelectItem: {
|
|
|
19
19
|
type SelectItemElement = React.ReactElement<SelectItemProps, typeof SelectItem>;
|
|
20
20
|
/** 값 변경 시 호출 (value: 아이템 value, label: 표시 텍스트) */
|
|
21
21
|
type SelectChangeHandler = (value: string | number | undefined, label: React.ReactNode) => void;
|
|
22
|
+
type SelectSize = "sm" | "md" | "lg";
|
|
22
23
|
interface SelectProps {
|
|
23
24
|
/** 선택 전 표시할 문구 */
|
|
24
25
|
placeholder?: string;
|
|
@@ -32,6 +33,8 @@ interface SelectProps {
|
|
|
32
33
|
disabled?: boolean;
|
|
33
34
|
/** 에러 상태 */
|
|
34
35
|
error?: boolean;
|
|
36
|
+
/** 사이즈 */
|
|
37
|
+
size?: SelectSize;
|
|
35
38
|
}
|
|
36
39
|
declare const Select: {
|
|
37
40
|
(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
@@ -964,7 +964,7 @@ import { jsx as jsx293, jsxs as jsxs188 } from "react/jsx-runtime";
|
|
|
964
964
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
965
965
|
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
966
966
|
|
|
967
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
967
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
968
968
|
function r(e) {
|
|
969
969
|
var t, f, n = "";
|
|
970
970
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -1029,7 +1029,8 @@ var SelectRoot = (props) => {
|
|
|
1029
1029
|
onChange,
|
|
1030
1030
|
children,
|
|
1031
1031
|
disabled = false,
|
|
1032
|
-
error = false
|
|
1032
|
+
error = false,
|
|
1033
|
+
size = "md"
|
|
1033
1034
|
} = props;
|
|
1034
1035
|
const itemChildren = React5.Children.toArray(children).filter(
|
|
1035
1036
|
(child) => React5.isValidElement(child) && child.type === SelectItem_default
|
|
@@ -1100,6 +1101,7 @@ var SelectRoot = (props) => {
|
|
|
1100
1101
|
{
|
|
1101
1102
|
className: clsx_default(
|
|
1102
1103
|
"lib-xplat-select",
|
|
1104
|
+
size,
|
|
1103
1105
|
disabled && "disabled",
|
|
1104
1106
|
error && "error",
|
|
1105
1107
|
mounted && "is-open"
|
|
@@ -24,7 +24,7 @@ __export(Skeleton_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(Skeleton_exports);
|
|
26
26
|
|
|
27
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
27
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
28
28
|
function r(e) {
|
|
29
29
|
var t, f, n = "";
|
|
30
30
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -151,7 +151,7 @@ var getColorClass = (namespace, palette, shade) => {
|
|
|
151
151
|
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
154
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
155
155
|
function r(e) {
|
|
156
156
|
var t, f, n = "";
|
|
157
157
|
if ("string" == typeof e || "number" == typeof e) n += e;
|