@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,131 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
4
|
-
import {
|
|
4
|
+
import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.cjs';
|
|
5
5
|
|
|
6
6
|
type ButtonType = "primary" | "secondary";
|
|
7
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
7
8
|
interface ButtonProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ButtonAttributes, ColorProps<N, C> {
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
type?: ButtonType;
|
|
11
|
+
size?: ButtonSize;
|
|
10
12
|
}
|
|
11
13
|
declare const Button: {
|
|
12
|
-
<N extends ColorNamespace = "xplat", C extends ColorName<N> =
|
|
13
|
-
readonly xplat: {
|
|
14
|
-
readonly red: {
|
|
15
|
-
readonly 50: "#FFF0F0";
|
|
16
|
-
readonly 100: "#FFDDDE";
|
|
17
|
-
readonly 200: "#FFC1C2";
|
|
18
|
-
readonly 300: "#FF9698";
|
|
19
|
-
readonly 400: "#FF5A5D";
|
|
20
|
-
readonly 500: "#FF272B";
|
|
21
|
-
readonly 600: "#F80409";
|
|
22
|
-
readonly 700: "#D40105";
|
|
23
|
-
readonly 800: "#AE0609";
|
|
24
|
-
readonly 900: "#900C0F";
|
|
25
|
-
};
|
|
26
|
-
readonly green: {
|
|
27
|
-
readonly 50: "#E5F6EA";
|
|
28
|
-
readonly 100: "#C1E7CC";
|
|
29
|
-
readonly 200: "#98D8AC";
|
|
30
|
-
readonly 300: "#6CCA8B";
|
|
31
|
-
readonly 400: "#47BE72";
|
|
32
|
-
readonly 500: "#10B259";
|
|
33
|
-
readonly 600: "#00A34F";
|
|
34
|
-
readonly 700: "#009143";
|
|
35
|
-
readonly 800: "#007F38";
|
|
36
|
-
readonly 900: "#006024";
|
|
37
|
-
};
|
|
38
|
-
readonly orange: {
|
|
39
|
-
readonly 50: "#FFF8EC";
|
|
40
|
-
readonly 100: "#FFF0D3";
|
|
41
|
-
readonly 200: "#FFDDA5";
|
|
42
|
-
readonly 300: "#FFC46D";
|
|
43
|
-
readonly 400: "#FF9F32";
|
|
44
|
-
readonly 500: "#FF820A";
|
|
45
|
-
readonly 600: "#FF6900";
|
|
46
|
-
readonly 700: "#CC4B02";
|
|
47
|
-
readonly 800: "#A13A0B";
|
|
48
|
-
readonly 900: "#82320C";
|
|
49
|
-
};
|
|
50
|
-
readonly yellow: {
|
|
51
|
-
readonly 50: "#FFFDE7";
|
|
52
|
-
readonly 100: "#FFFAC1";
|
|
53
|
-
readonly 200: "#FFF186";
|
|
54
|
-
readonly 300: "#FFE041";
|
|
55
|
-
readonly 400: "#FFCC0D";
|
|
56
|
-
readonly 500: "#F0B100";
|
|
57
|
-
readonly 600: "#D18800";
|
|
58
|
-
readonly 700: "#A66002";
|
|
59
|
-
readonly 800: "#894B0A";
|
|
60
|
-
readonly 900: "#743D0F";
|
|
61
|
-
};
|
|
62
|
-
readonly blue: {
|
|
63
|
-
readonly 50: "#F1F4FD";
|
|
64
|
-
readonly 100: "#DFE7FA";
|
|
65
|
-
readonly 200: "#C5D4F8";
|
|
66
|
-
readonly 300: "#9EB8F2";
|
|
67
|
-
readonly 400: "#7093EA";
|
|
68
|
-
readonly 500: "#4D6DE3";
|
|
69
|
-
readonly 600: "#3950D7";
|
|
70
|
-
readonly 700: "#303EC5";
|
|
71
|
-
readonly 800: "#2D35A0";
|
|
72
|
-
readonly 900: "#29317F";
|
|
73
|
-
};
|
|
74
|
-
readonly lightblue: {
|
|
75
|
-
readonly 50: "#EEFAFF";
|
|
76
|
-
readonly 100: "#D9F4FF";
|
|
77
|
-
readonly 200: "#BBEDFF";
|
|
78
|
-
readonly 300: "#8DE3FF";
|
|
79
|
-
readonly 400: "#57D0FF";
|
|
80
|
-
readonly 500: "#30B6FF";
|
|
81
|
-
readonly 600: "#1999F7";
|
|
82
|
-
readonly 700: "#1280E3";
|
|
83
|
-
readonly 800: "#1566B8";
|
|
84
|
-
readonly 900: "#175791";
|
|
85
|
-
};
|
|
86
|
-
readonly purple: {
|
|
87
|
-
readonly 50: "#FBF6FE";
|
|
88
|
-
readonly 100: "#F5EAFD";
|
|
89
|
-
readonly 200: "#EDD8FC";
|
|
90
|
-
readonly 300: "#E0BAF8";
|
|
91
|
-
readonly 400: "#CD8DF3";
|
|
92
|
-
readonly 500: "#B961EB";
|
|
93
|
-
readonly 600: "#A541DC";
|
|
94
|
-
readonly 700: "#9230C5";
|
|
95
|
-
readonly 800: "#782B9E";
|
|
96
|
-
readonly 900: "#62247F";
|
|
97
|
-
};
|
|
98
|
-
readonly pink: {
|
|
99
|
-
readonly 50: "#FFF4FE";
|
|
100
|
-
readonly 100: "#FFE7FD";
|
|
101
|
-
readonly 200: "#FFCFFA";
|
|
102
|
-
readonly 300: "#FEA9F1";
|
|
103
|
-
readonly 400: "#FD75E7";
|
|
104
|
-
readonly 500: "#F553DA";
|
|
105
|
-
readonly 600: "#D821B6";
|
|
106
|
-
readonly 700: "#B31892";
|
|
107
|
-
readonly 800: "#921676";
|
|
108
|
-
readonly 900: "#781761";
|
|
109
|
-
};
|
|
110
|
-
readonly neutral: {
|
|
111
|
-
readonly 50: "#FAFAFA";
|
|
112
|
-
readonly 100: "#F5F5F5";
|
|
113
|
-
readonly 200: "#E5E5E5";
|
|
114
|
-
readonly 300: "#D4D4D4";
|
|
115
|
-
readonly 400: "#A1A1A1";
|
|
116
|
-
readonly 500: "#737373";
|
|
117
|
-
readonly 600: "#525252";
|
|
118
|
-
readonly 700: "#404040";
|
|
119
|
-
readonly 800: "#262626";
|
|
120
|
-
readonly 900: "#171717";
|
|
121
|
-
};
|
|
122
|
-
readonly black: "#000000";
|
|
123
|
-
readonly white: "#FFFFFF";
|
|
124
|
-
};
|
|
125
|
-
readonly test: {
|
|
126
|
-
readonly default: "#ffffff";
|
|
127
|
-
};
|
|
128
|
-
}[N]>(props: ButtonProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: ButtonProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
129
15
|
displayName: string;
|
|
130
16
|
};
|
|
131
17
|
|
|
@@ -1,131 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
|
|
5
5
|
|
|
6
6
|
type ButtonType = "primary" | "secondary";
|
|
7
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
7
8
|
interface ButtonProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ButtonAttributes, ColorProps<N, C> {
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
type?: ButtonType;
|
|
11
|
+
size?: ButtonSize;
|
|
10
12
|
}
|
|
11
13
|
declare const Button: {
|
|
12
|
-
<N extends ColorNamespace = "xplat", C extends ColorName<N> =
|
|
13
|
-
readonly xplat: {
|
|
14
|
-
readonly red: {
|
|
15
|
-
readonly 50: "#FFF0F0";
|
|
16
|
-
readonly 100: "#FFDDDE";
|
|
17
|
-
readonly 200: "#FFC1C2";
|
|
18
|
-
readonly 300: "#FF9698";
|
|
19
|
-
readonly 400: "#FF5A5D";
|
|
20
|
-
readonly 500: "#FF272B";
|
|
21
|
-
readonly 600: "#F80409";
|
|
22
|
-
readonly 700: "#D40105";
|
|
23
|
-
readonly 800: "#AE0609";
|
|
24
|
-
readonly 900: "#900C0F";
|
|
25
|
-
};
|
|
26
|
-
readonly green: {
|
|
27
|
-
readonly 50: "#E5F6EA";
|
|
28
|
-
readonly 100: "#C1E7CC";
|
|
29
|
-
readonly 200: "#98D8AC";
|
|
30
|
-
readonly 300: "#6CCA8B";
|
|
31
|
-
readonly 400: "#47BE72";
|
|
32
|
-
readonly 500: "#10B259";
|
|
33
|
-
readonly 600: "#00A34F";
|
|
34
|
-
readonly 700: "#009143";
|
|
35
|
-
readonly 800: "#007F38";
|
|
36
|
-
readonly 900: "#006024";
|
|
37
|
-
};
|
|
38
|
-
readonly orange: {
|
|
39
|
-
readonly 50: "#FFF8EC";
|
|
40
|
-
readonly 100: "#FFF0D3";
|
|
41
|
-
readonly 200: "#FFDDA5";
|
|
42
|
-
readonly 300: "#FFC46D";
|
|
43
|
-
readonly 400: "#FF9F32";
|
|
44
|
-
readonly 500: "#FF820A";
|
|
45
|
-
readonly 600: "#FF6900";
|
|
46
|
-
readonly 700: "#CC4B02";
|
|
47
|
-
readonly 800: "#A13A0B";
|
|
48
|
-
readonly 900: "#82320C";
|
|
49
|
-
};
|
|
50
|
-
readonly yellow: {
|
|
51
|
-
readonly 50: "#FFFDE7";
|
|
52
|
-
readonly 100: "#FFFAC1";
|
|
53
|
-
readonly 200: "#FFF186";
|
|
54
|
-
readonly 300: "#FFE041";
|
|
55
|
-
readonly 400: "#FFCC0D";
|
|
56
|
-
readonly 500: "#F0B100";
|
|
57
|
-
readonly 600: "#D18800";
|
|
58
|
-
readonly 700: "#A66002";
|
|
59
|
-
readonly 800: "#894B0A";
|
|
60
|
-
readonly 900: "#743D0F";
|
|
61
|
-
};
|
|
62
|
-
readonly blue: {
|
|
63
|
-
readonly 50: "#F1F4FD";
|
|
64
|
-
readonly 100: "#DFE7FA";
|
|
65
|
-
readonly 200: "#C5D4F8";
|
|
66
|
-
readonly 300: "#9EB8F2";
|
|
67
|
-
readonly 400: "#7093EA";
|
|
68
|
-
readonly 500: "#4D6DE3";
|
|
69
|
-
readonly 600: "#3950D7";
|
|
70
|
-
readonly 700: "#303EC5";
|
|
71
|
-
readonly 800: "#2D35A0";
|
|
72
|
-
readonly 900: "#29317F";
|
|
73
|
-
};
|
|
74
|
-
readonly lightblue: {
|
|
75
|
-
readonly 50: "#EEFAFF";
|
|
76
|
-
readonly 100: "#D9F4FF";
|
|
77
|
-
readonly 200: "#BBEDFF";
|
|
78
|
-
readonly 300: "#8DE3FF";
|
|
79
|
-
readonly 400: "#57D0FF";
|
|
80
|
-
readonly 500: "#30B6FF";
|
|
81
|
-
readonly 600: "#1999F7";
|
|
82
|
-
readonly 700: "#1280E3";
|
|
83
|
-
readonly 800: "#1566B8";
|
|
84
|
-
readonly 900: "#175791";
|
|
85
|
-
};
|
|
86
|
-
readonly purple: {
|
|
87
|
-
readonly 50: "#FBF6FE";
|
|
88
|
-
readonly 100: "#F5EAFD";
|
|
89
|
-
readonly 200: "#EDD8FC";
|
|
90
|
-
readonly 300: "#E0BAF8";
|
|
91
|
-
readonly 400: "#CD8DF3";
|
|
92
|
-
readonly 500: "#B961EB";
|
|
93
|
-
readonly 600: "#A541DC";
|
|
94
|
-
readonly 700: "#9230C5";
|
|
95
|
-
readonly 800: "#782B9E";
|
|
96
|
-
readonly 900: "#62247F";
|
|
97
|
-
};
|
|
98
|
-
readonly pink: {
|
|
99
|
-
readonly 50: "#FFF4FE";
|
|
100
|
-
readonly 100: "#FFE7FD";
|
|
101
|
-
readonly 200: "#FFCFFA";
|
|
102
|
-
readonly 300: "#FEA9F1";
|
|
103
|
-
readonly 400: "#FD75E7";
|
|
104
|
-
readonly 500: "#F553DA";
|
|
105
|
-
readonly 600: "#D821B6";
|
|
106
|
-
readonly 700: "#B31892";
|
|
107
|
-
readonly 800: "#921676";
|
|
108
|
-
readonly 900: "#781761";
|
|
109
|
-
};
|
|
110
|
-
readonly neutral: {
|
|
111
|
-
readonly 50: "#FAFAFA";
|
|
112
|
-
readonly 100: "#F5F5F5";
|
|
113
|
-
readonly 200: "#E5E5E5";
|
|
114
|
-
readonly 300: "#D4D4D4";
|
|
115
|
-
readonly 400: "#A1A1A1";
|
|
116
|
-
readonly 500: "#737373";
|
|
117
|
-
readonly 600: "#525252";
|
|
118
|
-
readonly 700: "#404040";
|
|
119
|
-
readonly 800: "#262626";
|
|
120
|
-
readonly 900: "#171717";
|
|
121
|
-
};
|
|
122
|
-
readonly black: "#000000";
|
|
123
|
-
readonly white: "#FFFFFF";
|
|
124
|
-
};
|
|
125
|
-
readonly test: {
|
|
126
|
-
readonly default: "#ffffff";
|
|
127
|
-
};
|
|
128
|
-
}[N]>(props: ButtonProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: ButtonProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
129
15
|
displayName: string;
|
|
130
16
|
};
|
|
131
17
|
|
|
@@ -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;
|
|
@@ -147,6 +147,7 @@ var Button = (props) => {
|
|
|
147
147
|
const {
|
|
148
148
|
children,
|
|
149
149
|
type = "primary",
|
|
150
|
+
size = "md",
|
|
150
151
|
colorNamespace = "xplat",
|
|
151
152
|
color = "black",
|
|
152
153
|
colorDepth,
|
|
@@ -162,7 +163,7 @@ var Button = (props) => {
|
|
|
162
163
|
return /* @__PURE__ */ jsx(
|
|
163
164
|
"button",
|
|
164
165
|
{
|
|
165
|
-
className: clsx_default("lib-xplat-button", type, colorClass, className),
|
|
166
|
+
className: clsx_default("lib-xplat-button", type, size, colorClass, className),
|
|
166
167
|
disabled,
|
|
167
168
|
...rest,
|
|
168
169
|
children
|
|
@@ -24,7 +24,7 @@ __export(Card_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(Card_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;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
height: fit-content;
|
|
9
9
|
border-radius: 1rem;
|
|
10
|
-
border: 1px solid
|
|
11
|
-
background-color:
|
|
10
|
+
border: 1px solid var(--xplat-neutral-400);
|
|
11
|
+
background-color: var(--xplat-white);
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-card > .title {
|
|
15
15
|
font-weight: 600;
|
|
16
|
-
background-color:
|
|
16
|
+
background-color: var(--xplat-neutral-100);
|
|
17
17
|
padding: 0.25rem 0.75rem;
|
|
18
18
|
min-width: 0;
|
|
19
19
|
overflow: hidden;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/components/CardTab/index.ts
|
|
31
|
+
var CardTab_exports = {};
|
|
32
|
+
__export(CardTab_exports, {
|
|
33
|
+
CardTab: () => CardTab_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(CardTab_exports);
|
|
36
|
+
|
|
37
|
+
// src/components/CardTab/CardTab.tsx
|
|
38
|
+
var import_react = __toESM(require("react"), 1);
|
|
39
|
+
|
|
40
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
41
|
+
function r(e) {
|
|
42
|
+
var t, f, n = "";
|
|
43
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
44
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
45
|
+
var o = e.length;
|
|
46
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
47
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function clsx() {
|
|
51
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
var clsx_default = clsx;
|
|
55
|
+
|
|
56
|
+
// src/components/CardTab/CardTabPanel.tsx
|
|
57
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
58
|
+
var CardTabPanel = (props) => {
|
|
59
|
+
const { children, columns = 3, className } = props;
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
className: clsx_default("card-tab-panel", className),
|
|
64
|
+
style: { "--card-tab-columns": columns },
|
|
65
|
+
children
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
CardTabPanel.displayName = "CardTab.Panel";
|
|
70
|
+
var CardTabPanel_default = CardTabPanel;
|
|
71
|
+
|
|
72
|
+
// src/components/CardTab/CardTab.tsx
|
|
73
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
74
|
+
var CardTabRoot = (props) => {
|
|
75
|
+
const {
|
|
76
|
+
tabs,
|
|
77
|
+
activeValue: activeValueProp,
|
|
78
|
+
onChange,
|
|
79
|
+
size = "md",
|
|
80
|
+
children,
|
|
81
|
+
className
|
|
82
|
+
} = props;
|
|
83
|
+
const isControlled = activeValueProp !== void 0;
|
|
84
|
+
const [uncontrolledValue, setUncontrolledValue] = import_react.default.useState(tabs[0]?.value ?? "");
|
|
85
|
+
const activeValue = isControlled ? activeValueProp : uncontrolledValue;
|
|
86
|
+
const handleTabClick = (tab) => {
|
|
87
|
+
if (!isControlled) {
|
|
88
|
+
setUncontrolledValue(tab.value);
|
|
89
|
+
}
|
|
90
|
+
onChange?.(tab);
|
|
91
|
+
};
|
|
92
|
+
const panels = import_react.default.Children.toArray(children).filter(
|
|
93
|
+
(child) => import_react.default.isValidElement(child) && child.type === CardTabPanel_default
|
|
94
|
+
);
|
|
95
|
+
const activePanel = panels.find(
|
|
96
|
+
(panel) => panel.props.value === activeValue
|
|
97
|
+
);
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: clsx_default("lib-xplat-card-tab", size, className), children: [
|
|
99
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "card-tab-bar", children: tabs.map((tab) => {
|
|
100
|
+
const isActive = tab.value === activeValue;
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
102
|
+
"button",
|
|
103
|
+
{
|
|
104
|
+
className: clsx_default("card-tab-trigger", isActive && "active"),
|
|
105
|
+
onClick: () => handleTabClick(tab),
|
|
106
|
+
role: "tab",
|
|
107
|
+
"aria-selected": isActive,
|
|
108
|
+
children: tab.title
|
|
109
|
+
},
|
|
110
|
+
tab.value
|
|
111
|
+
);
|
|
112
|
+
}) }),
|
|
113
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "card-tab-body", children: activePanel })
|
|
114
|
+
] });
|
|
115
|
+
};
|
|
116
|
+
CardTabRoot.displayName = "CardTab";
|
|
117
|
+
var CardTab = Object.assign(CardTabRoot, {
|
|
118
|
+
Panel: CardTabPanel_default
|
|
119
|
+
});
|
|
120
|
+
var CardTab_default = CardTab;
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
CardTab
|
|
124
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* src/components/CardTab/cardTab.scss */
|
|
2
|
+
.lib-xplat-card-tab {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.lib-xplat-card-tab .card-tab-bar {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: flex-end;
|
|
9
|
+
gap: 2px;
|
|
10
|
+
padding-left: 0.5rem;
|
|
11
|
+
}
|
|
12
|
+
.lib-xplat-card-tab .card-tab-trigger {
|
|
13
|
+
position: relative;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
border: 1px solid var(--xplat-neutral-300);
|
|
16
|
+
border-bottom: none;
|
|
17
|
+
border-radius: 0.5rem 0.5rem 0 0;
|
|
18
|
+
background-color: var(--xplat-neutral-100);
|
|
19
|
+
color: var(--xplat-neutral-500);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
transition: background-color 0.2s, color 0.2s;
|
|
22
|
+
}
|
|
23
|
+
.lib-xplat-card-tab .card-tab-trigger:hover:not(.active) {
|
|
24
|
+
background-color: var(--xplat-neutral-200);
|
|
25
|
+
color: var(--xplat-neutral-700);
|
|
26
|
+
}
|
|
27
|
+
.lib-xplat-card-tab .card-tab-trigger.active {
|
|
28
|
+
background-color: var(--xplat-white);
|
|
29
|
+
color: var(--xplat-neutral-900);
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
margin-bottom: -1px;
|
|
33
|
+
padding-bottom: calc(var(--tab-py) + 1px);
|
|
34
|
+
}
|
|
35
|
+
.lib-xplat-card-tab .card-tab-body {
|
|
36
|
+
border: 1px solid var(--xplat-neutral-300);
|
|
37
|
+
border-radius: 0 0.5rem 0.5rem 0.5rem;
|
|
38
|
+
background-color: var(--xplat-white);
|
|
39
|
+
padding: 1.25rem;
|
|
40
|
+
}
|
|
41
|
+
.lib-xplat-card-tab .card-tab-panel {
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: repeat(var(--card-tab-columns, 3), 1fr);
|
|
44
|
+
gap: 1rem;
|
|
45
|
+
}
|
|
46
|
+
.lib-xplat-card-tab.sm .card-tab-trigger {
|
|
47
|
+
--tab-py: 0.25rem;
|
|
48
|
+
padding: 0.25rem 0.75rem;
|
|
49
|
+
font-size: 0.8125rem;
|
|
50
|
+
}
|
|
51
|
+
.lib-xplat-card-tab.sm .card-tab-body {
|
|
52
|
+
padding: 1rem;
|
|
53
|
+
}
|
|
54
|
+
.lib-xplat-card-tab.sm .card-tab-panel {
|
|
55
|
+
gap: 0.75rem;
|
|
56
|
+
}
|
|
57
|
+
.lib-xplat-card-tab.md .card-tab-trigger {
|
|
58
|
+
--tab-py: 0.375rem;
|
|
59
|
+
padding: 0.375rem 1rem;
|
|
60
|
+
font-size: 0.875rem;
|
|
61
|
+
}
|
|
62
|
+
.lib-xplat-card-tab.md .card-tab-body {
|
|
63
|
+
padding: 1.25rem;
|
|
64
|
+
}
|
|
65
|
+
.lib-xplat-card-tab.md .card-tab-panel {
|
|
66
|
+
gap: 1rem;
|
|
67
|
+
}
|
|
68
|
+
.lib-xplat-card-tab.lg .card-tab-trigger {
|
|
69
|
+
--tab-py: 0.5rem;
|
|
70
|
+
padding: 0.5rem 1.25rem;
|
|
71
|
+
font-size: 1rem;
|
|
72
|
+
}
|
|
73
|
+
.lib-xplat-card-tab.lg .card-tab-body {
|
|
74
|
+
padding: 1.5rem;
|
|
75
|
+
}
|
|
76
|
+
.lib-xplat-card-tab.lg .card-tab-panel {
|
|
77
|
+
gap: 1.25rem;
|
|
78
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface CardTabPanelProps {
|
|
5
|
+
/** tabs 배열의 value 와 매칭 */
|
|
6
|
+
value: string | number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** 카드 그리드 열 수 (기본 3) */
|
|
9
|
+
columns?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CardTabPanel: {
|
|
13
|
+
(props: CardTabPanelProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
interface CardTabItem {
|
|
18
|
+
value: string | number;
|
|
19
|
+
title: string;
|
|
20
|
+
}
|
|
21
|
+
type CardTabPanelElement = React.ReactElement<CardTabPanelProps, typeof CardTabPanel>;
|
|
22
|
+
type CardTabSize = "sm" | "md" | "lg";
|
|
23
|
+
interface CardTabProps {
|
|
24
|
+
tabs: CardTabItem[];
|
|
25
|
+
/** controlled: 외부에서 활성 탭 제어 */
|
|
26
|
+
activeValue?: string | number;
|
|
27
|
+
/** 탭 변경 콜백 */
|
|
28
|
+
onChange?: (tab: CardTabItem) => void;
|
|
29
|
+
size?: CardTabSize;
|
|
30
|
+
/** CardTab.Panel 만 허용 */
|
|
31
|
+
children: CardTabPanelElement | CardTabPanelElement[];
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const CardTab: {
|
|
35
|
+
(props: CardTabProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
} & {
|
|
38
|
+
Panel: {
|
|
39
|
+
(props: CardTabPanelProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { CardTab };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
interface CardTabPanelProps {
|
|
5
|
+
/** tabs 배열의 value 와 매칭 */
|
|
6
|
+
value: string | number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** 카드 그리드 열 수 (기본 3) */
|
|
9
|
+
columns?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CardTabPanel: {
|
|
13
|
+
(props: CardTabPanelProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
interface CardTabItem {
|
|
18
|
+
value: string | number;
|
|
19
|
+
title: string;
|
|
20
|
+
}
|
|
21
|
+
type CardTabPanelElement = React.ReactElement<CardTabPanelProps, typeof CardTabPanel>;
|
|
22
|
+
type CardTabSize = "sm" | "md" | "lg";
|
|
23
|
+
interface CardTabProps {
|
|
24
|
+
tabs: CardTabItem[];
|
|
25
|
+
/** controlled: 외부에서 활성 탭 제어 */
|
|
26
|
+
activeValue?: string | number;
|
|
27
|
+
/** 탭 변경 콜백 */
|
|
28
|
+
onChange?: (tab: CardTabItem) => void;
|
|
29
|
+
size?: CardTabSize;
|
|
30
|
+
/** CardTab.Panel 만 허용 */
|
|
31
|
+
children: CardTabPanelElement | CardTabPanelElement[];
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const CardTab: {
|
|
35
|
+
(props: CardTabProps): react_jsx_runtime.JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
} & {
|
|
38
|
+
Panel: {
|
|
39
|
+
(props: CardTabPanelProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { CardTab };
|