@x-plat/design-system 0.2.4 → 0.3.2
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-cxE7RsuF.d.cts → colors-BgzpjYfN.d.cts} +3 -6
- package/dist/{colors-cxE7RsuF.d.ts → colors-BgzpjYfN.d.ts} +3 -6
- package/dist/components/Avatar/index.cjs +2 -14
- package/dist/components/Avatar/index.d.cts +3 -235
- package/dist/components/Avatar/index.d.ts +3 -235
- package/dist/components/Avatar/index.js +2 -14
- package/dist/components/Badge/index.cjs +2 -14
- package/dist/components/Badge/index.d.cts +3 -235
- package/dist/components/Badge/index.d.ts +3 -235
- package/dist/components/Badge/index.js +2 -14
- package/dist/components/Button/index.cjs +2 -14
- package/dist/components/Button/index.d.cts +3 -235
- package/dist/components/Button/index.d.ts +3 -235
- package/dist/components/Button/index.js +2 -14
- package/dist/components/CheckBox/index.cjs +2 -14
- package/dist/components/CheckBox/index.d.cts +3 -235
- package/dist/components/CheckBox/index.d.ts +3 -235
- package/dist/components/CheckBox/index.js +2 -14
- package/dist/components/Chip/index.cjs +2 -14
- package/dist/components/Chip/index.d.cts +3 -235
- package/dist/components/Chip/index.d.ts +3 -235
- package/dist/components/Chip/index.js +2 -14
- package/dist/components/DatePicker/index.cjs +9 -161
- package/dist/components/DatePicker/index.d.cts +5 -469
- package/dist/components/DatePicker/index.d.ts +5 -469
- package/dist/components/DatePicker/index.js +9 -161
- package/dist/components/Pagination/index.cjs +2 -14
- package/dist/components/Pagination/index.d.cts +3 -235
- package/dist/components/Pagination/index.d.ts +3 -235
- package/dist/components/Pagination/index.js +2 -14
- package/dist/components/Progress/index.cjs +2 -14
- package/dist/components/Progress/index.d.cts +3 -235
- package/dist/components/Progress/index.d.ts +3 -235
- package/dist/components/Progress/index.js +2 -14
- package/dist/components/Radio/index.cjs +2 -14
- package/dist/components/Radio/index.d.cts +3 -235
- package/dist/components/Radio/index.d.ts +3 -235
- package/dist/components/Radio/index.js +2 -14
- package/dist/components/Spinner/index.cjs +2 -14
- package/dist/components/Spinner/index.d.cts +3 -235
- package/dist/components/Spinner/index.d.ts +3 -235
- package/dist/components/Spinner/index.js +2 -14
- package/dist/components/Steps/index.cjs +2 -14
- package/dist/components/Steps/index.d.cts +3 -235
- package/dist/components/Steps/index.d.ts +3 -235
- package/dist/components/Steps/index.js +2 -14
- package/dist/components/Swiper/index.cjs +257 -5939
- package/dist/components/Swiper/index.css +52 -211
- package/dist/components/Swiper/index.d.cts +35 -16
- package/dist/components/Swiper/index.d.ts +35 -16
- package/dist/components/Swiper/index.js +251 -5944
- package/dist/components/Switch/index.cjs +2 -14
- package/dist/components/Switch/index.d.cts +3 -235
- package/dist/components/Switch/index.d.ts +3 -235
- package/dist/components/Switch/index.js +2 -14
- package/dist/components/Table/index.cjs +2 -16
- package/dist/components/Table/index.d.cts +3 -235
- package/dist/components/Table/index.d.ts +3 -235
- package/dist/components/Table/index.js +2 -16
- package/dist/components/Tag/index.cjs +2 -14
- package/dist/components/Tag/index.d.cts +3 -235
- package/dist/components/Tag/index.d.ts +3 -235
- package/dist/components/Tag/index.js +2 -14
- package/dist/components/Tooltip/index.cjs +2 -14
- package/dist/components/Tooltip/index.d.cts +3 -238
- package/dist/components/Tooltip/index.d.ts +3 -238
- package/dist/components/Tooltip/index.js +2 -14
- package/dist/components/index.cjs +390 -251
- package/dist/components/index.css +71 -0
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +390 -252
- package/dist/index.cjs +414 -275
- package/dist/index.css +71 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +414 -276
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +3 -9
|
@@ -1,249 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { g as ColorProps } from '../../colors-BgzpjYfN.js';
|
|
3
3
|
|
|
4
4
|
interface StepItem {
|
|
5
5
|
title: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
}
|
|
8
|
-
interface StepsProps
|
|
8
|
+
interface StepsProps extends ColorProps {
|
|
9
9
|
items: StepItem[];
|
|
10
10
|
current: number;
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
13
|
declare const Steps: {
|
|
14
|
-
|
|
15
|
-
readonly xplat: {
|
|
16
|
-
readonly red: {
|
|
17
|
-
readonly 50: "#FFF0F0";
|
|
18
|
-
readonly 100: "#FFDDDE";
|
|
19
|
-
readonly 200: "#FFC1C2";
|
|
20
|
-
readonly 300: "#FF9698";
|
|
21
|
-
readonly 400: "#FF5A5D";
|
|
22
|
-
readonly 500: "#FF272B";
|
|
23
|
-
readonly 600: "#F80409";
|
|
24
|
-
readonly 700: "#D40105";
|
|
25
|
-
readonly 800: "#AE0609";
|
|
26
|
-
readonly 900: "#900C0F";
|
|
27
|
-
};
|
|
28
|
-
readonly green: {
|
|
29
|
-
readonly 50: "#E5F6EA";
|
|
30
|
-
readonly 100: "#C1E7CC";
|
|
31
|
-
readonly 200: "#98D8AC";
|
|
32
|
-
readonly 300: "#6CCA8B";
|
|
33
|
-
readonly 400: "#47BE72";
|
|
34
|
-
readonly 500: "#10B259";
|
|
35
|
-
readonly 600: "#00A34F";
|
|
36
|
-
readonly 700: "#009143";
|
|
37
|
-
readonly 800: "#007F38";
|
|
38
|
-
readonly 900: "#006024";
|
|
39
|
-
};
|
|
40
|
-
readonly orange: {
|
|
41
|
-
readonly 50: "#FFF8EC";
|
|
42
|
-
readonly 100: "#FFF0D3";
|
|
43
|
-
readonly 200: "#FFDDA5";
|
|
44
|
-
readonly 300: "#FFC46D";
|
|
45
|
-
readonly 400: "#FF9F32";
|
|
46
|
-
readonly 500: "#FF820A";
|
|
47
|
-
readonly 600: "#FF6900";
|
|
48
|
-
readonly 700: "#CC4B02";
|
|
49
|
-
readonly 800: "#A13A0B";
|
|
50
|
-
readonly 900: "#82320C";
|
|
51
|
-
};
|
|
52
|
-
readonly yellow: {
|
|
53
|
-
readonly 50: "#FFFDE7";
|
|
54
|
-
readonly 100: "#FFFAC1";
|
|
55
|
-
readonly 200: "#FFF186";
|
|
56
|
-
readonly 300: "#FFE041";
|
|
57
|
-
readonly 400: "#FFCC0D";
|
|
58
|
-
readonly 500: "#F0B100";
|
|
59
|
-
readonly 600: "#D18800";
|
|
60
|
-
readonly 700: "#A66002";
|
|
61
|
-
readonly 800: "#894B0A";
|
|
62
|
-
readonly 900: "#743D0F";
|
|
63
|
-
};
|
|
64
|
-
readonly blue: {
|
|
65
|
-
readonly 50: "#F1F4FD";
|
|
66
|
-
readonly 100: "#DFE7FA";
|
|
67
|
-
readonly 200: "#C5D4F8";
|
|
68
|
-
readonly 300: "#9EB8F2";
|
|
69
|
-
readonly 400: "#7093EA";
|
|
70
|
-
readonly 500: "#4D6DE3";
|
|
71
|
-
readonly 600: "#3950D7";
|
|
72
|
-
readonly 700: "#303EC5";
|
|
73
|
-
readonly 800: "#2D35A0";
|
|
74
|
-
readonly 900: "#29317F";
|
|
75
|
-
};
|
|
76
|
-
readonly lightblue: {
|
|
77
|
-
readonly 50: "#EEFAFF";
|
|
78
|
-
readonly 100: "#D9F4FF";
|
|
79
|
-
readonly 200: "#BBEDFF";
|
|
80
|
-
readonly 300: "#8DE3FF";
|
|
81
|
-
readonly 400: "#57D0FF";
|
|
82
|
-
readonly 500: "#30B6FF";
|
|
83
|
-
readonly 600: "#1999F7";
|
|
84
|
-
readonly 700: "#1280E3";
|
|
85
|
-
readonly 800: "#1566B8";
|
|
86
|
-
readonly 900: "#175791";
|
|
87
|
-
};
|
|
88
|
-
readonly purple: {
|
|
89
|
-
readonly 50: "#FBF6FE";
|
|
90
|
-
readonly 100: "#F5EAFD";
|
|
91
|
-
readonly 200: "#EDD8FC";
|
|
92
|
-
readonly 300: "#E0BAF8";
|
|
93
|
-
readonly 400: "#CD8DF3";
|
|
94
|
-
readonly 500: "#B961EB";
|
|
95
|
-
readonly 600: "#A541DC";
|
|
96
|
-
readonly 700: "#9230C5";
|
|
97
|
-
readonly 800: "#782B9E";
|
|
98
|
-
readonly 900: "#62247F";
|
|
99
|
-
};
|
|
100
|
-
readonly pink: {
|
|
101
|
-
readonly 50: "#FFF4FE";
|
|
102
|
-
readonly 100: "#FFE7FD";
|
|
103
|
-
readonly 200: "#FFCFFA";
|
|
104
|
-
readonly 300: "#FEA9F1";
|
|
105
|
-
readonly 400: "#FD75E7";
|
|
106
|
-
readonly 500: "#F553DA";
|
|
107
|
-
readonly 600: "#D821B6";
|
|
108
|
-
readonly 700: "#B31892";
|
|
109
|
-
readonly 800: "#921676";
|
|
110
|
-
readonly 900: "#781761";
|
|
111
|
-
};
|
|
112
|
-
readonly neutral: {
|
|
113
|
-
readonly 50: "#FAFAFA";
|
|
114
|
-
readonly 100: "#F5F5F5";
|
|
115
|
-
readonly 200: "#E5E5E5";
|
|
116
|
-
readonly 300: "#D4D4D4";
|
|
117
|
-
readonly 400: "#A1A1A1";
|
|
118
|
-
readonly 500: "#737373";
|
|
119
|
-
readonly 600: "#525252";
|
|
120
|
-
readonly 700: "#404040";
|
|
121
|
-
readonly 800: "#262626";
|
|
122
|
-
readonly 900: "#171717";
|
|
123
|
-
};
|
|
124
|
-
readonly black: "#000000";
|
|
125
|
-
readonly white: "#FFFFFF";
|
|
126
|
-
};
|
|
127
|
-
readonly test: {
|
|
128
|
-
readonly default: "#ffffff";
|
|
129
|
-
};
|
|
130
|
-
}[N] & CustomNamespaces[N] & (N extends "xplat" ? CustomColors : {}) : {
|
|
131
|
-
readonly xplat: {
|
|
132
|
-
readonly red: {
|
|
133
|
-
readonly 50: "#FFF0F0";
|
|
134
|
-
readonly 100: "#FFDDDE";
|
|
135
|
-
readonly 200: "#FFC1C2";
|
|
136
|
-
readonly 300: "#FF9698";
|
|
137
|
-
readonly 400: "#FF5A5D";
|
|
138
|
-
readonly 500: "#FF272B";
|
|
139
|
-
readonly 600: "#F80409";
|
|
140
|
-
readonly 700: "#D40105";
|
|
141
|
-
readonly 800: "#AE0609";
|
|
142
|
-
readonly 900: "#900C0F";
|
|
143
|
-
};
|
|
144
|
-
readonly green: {
|
|
145
|
-
readonly 50: "#E5F6EA";
|
|
146
|
-
readonly 100: "#C1E7CC";
|
|
147
|
-
readonly 200: "#98D8AC";
|
|
148
|
-
readonly 300: "#6CCA8B";
|
|
149
|
-
readonly 400: "#47BE72";
|
|
150
|
-
readonly 500: "#10B259";
|
|
151
|
-
readonly 600: "#00A34F";
|
|
152
|
-
readonly 700: "#009143";
|
|
153
|
-
readonly 800: "#007F38";
|
|
154
|
-
readonly 900: "#006024";
|
|
155
|
-
};
|
|
156
|
-
readonly orange: {
|
|
157
|
-
readonly 50: "#FFF8EC";
|
|
158
|
-
readonly 100: "#FFF0D3";
|
|
159
|
-
readonly 200: "#FFDDA5";
|
|
160
|
-
readonly 300: "#FFC46D";
|
|
161
|
-
readonly 400: "#FF9F32";
|
|
162
|
-
readonly 500: "#FF820A";
|
|
163
|
-
readonly 600: "#FF6900";
|
|
164
|
-
readonly 700: "#CC4B02";
|
|
165
|
-
readonly 800: "#A13A0B";
|
|
166
|
-
readonly 900: "#82320C";
|
|
167
|
-
};
|
|
168
|
-
readonly yellow: {
|
|
169
|
-
readonly 50: "#FFFDE7";
|
|
170
|
-
readonly 100: "#FFFAC1";
|
|
171
|
-
readonly 200: "#FFF186";
|
|
172
|
-
readonly 300: "#FFE041";
|
|
173
|
-
readonly 400: "#FFCC0D";
|
|
174
|
-
readonly 500: "#F0B100";
|
|
175
|
-
readonly 600: "#D18800";
|
|
176
|
-
readonly 700: "#A66002";
|
|
177
|
-
readonly 800: "#894B0A";
|
|
178
|
-
readonly 900: "#743D0F";
|
|
179
|
-
};
|
|
180
|
-
readonly blue: {
|
|
181
|
-
readonly 50: "#F1F4FD";
|
|
182
|
-
readonly 100: "#DFE7FA";
|
|
183
|
-
readonly 200: "#C5D4F8";
|
|
184
|
-
readonly 300: "#9EB8F2";
|
|
185
|
-
readonly 400: "#7093EA";
|
|
186
|
-
readonly 500: "#4D6DE3";
|
|
187
|
-
readonly 600: "#3950D7";
|
|
188
|
-
readonly 700: "#303EC5";
|
|
189
|
-
readonly 800: "#2D35A0";
|
|
190
|
-
readonly 900: "#29317F";
|
|
191
|
-
};
|
|
192
|
-
readonly lightblue: {
|
|
193
|
-
readonly 50: "#EEFAFF";
|
|
194
|
-
readonly 100: "#D9F4FF";
|
|
195
|
-
readonly 200: "#BBEDFF";
|
|
196
|
-
readonly 300: "#8DE3FF";
|
|
197
|
-
readonly 400: "#57D0FF";
|
|
198
|
-
readonly 500: "#30B6FF";
|
|
199
|
-
readonly 600: "#1999F7";
|
|
200
|
-
readonly 700: "#1280E3";
|
|
201
|
-
readonly 800: "#1566B8";
|
|
202
|
-
readonly 900: "#175791";
|
|
203
|
-
};
|
|
204
|
-
readonly purple: {
|
|
205
|
-
readonly 50: "#FBF6FE";
|
|
206
|
-
readonly 100: "#F5EAFD";
|
|
207
|
-
readonly 200: "#EDD8FC";
|
|
208
|
-
readonly 300: "#E0BAF8";
|
|
209
|
-
readonly 400: "#CD8DF3";
|
|
210
|
-
readonly 500: "#B961EB";
|
|
211
|
-
readonly 600: "#A541DC";
|
|
212
|
-
readonly 700: "#9230C5";
|
|
213
|
-
readonly 800: "#782B9E";
|
|
214
|
-
readonly 900: "#62247F";
|
|
215
|
-
};
|
|
216
|
-
readonly pink: {
|
|
217
|
-
readonly 50: "#FFF4FE";
|
|
218
|
-
readonly 100: "#FFE7FD";
|
|
219
|
-
readonly 200: "#FFCFFA";
|
|
220
|
-
readonly 300: "#FEA9F1";
|
|
221
|
-
readonly 400: "#FD75E7";
|
|
222
|
-
readonly 500: "#F553DA";
|
|
223
|
-
readonly 600: "#D821B6";
|
|
224
|
-
readonly 700: "#B31892";
|
|
225
|
-
readonly 800: "#921676";
|
|
226
|
-
readonly 900: "#781761";
|
|
227
|
-
};
|
|
228
|
-
readonly neutral: {
|
|
229
|
-
readonly 50: "#FAFAFA";
|
|
230
|
-
readonly 100: "#F5F5F5";
|
|
231
|
-
readonly 200: "#E5E5E5";
|
|
232
|
-
readonly 300: "#D4D4D4";
|
|
233
|
-
readonly 400: "#A1A1A1";
|
|
234
|
-
readonly 500: "#737373";
|
|
235
|
-
readonly 600: "#525252";
|
|
236
|
-
readonly 700: "#404040";
|
|
237
|
-
readonly 800: "#262626";
|
|
238
|
-
readonly 900: "#171717";
|
|
239
|
-
};
|
|
240
|
-
readonly black: "#000000";
|
|
241
|
-
readonly white: "#FFFFFF";
|
|
242
|
-
};
|
|
243
|
-
readonly test: {
|
|
244
|
-
readonly default: "#ffffff";
|
|
245
|
-
};
|
|
246
|
-
}[N] & (N extends "xplat" ? CustomColors : {}) : N extends never ? CustomNamespaces[N] : {})>(props: StepsProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
(props: StepsProps): react_jsx_runtime.JSX.Element;
|
|
247
15
|
displayName: string;
|
|
248
16
|
};
|
|
249
17
|
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// src/util/getColor.ts
|
|
2
|
-
var getColorClass = (namespace, palette, shade) => {
|
|
3
|
-
return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
1
|
// src/tokens/svg/action/CopyIcon.tsx
|
|
7
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
3
|
|
|
@@ -925,17 +920,10 @@ var Steps = (props) => {
|
|
|
925
920
|
const {
|
|
926
921
|
items,
|
|
927
922
|
current,
|
|
928
|
-
|
|
929
|
-
color = "blue",
|
|
930
|
-
colorDepth,
|
|
931
|
-
colorToken,
|
|
923
|
+
color = "xplat-blue-500",
|
|
932
924
|
className
|
|
933
925
|
} = props;
|
|
934
|
-
const colorClass =
|
|
935
|
-
colorNamespace,
|
|
936
|
-
color,
|
|
937
|
-
colorDepth ?? 500
|
|
938
|
-
);
|
|
926
|
+
const colorClass = color;
|
|
939
927
|
return /* @__PURE__ */ jsx295("div", { className: clsx_default("lib-xplat-steps", className), children: items.map((item, index) => {
|
|
940
928
|
const status = index < current ? "completed" : index === current ? "active" : "pending";
|
|
941
929
|
return /* @__PURE__ */ jsxs189("div", { className: clsx_default("step-item", status), children: [
|