@x-plat/design-system 0.2.2 → 0.2.3

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.
Files changed (73) hide show
  1. package/dist/{colors-DmMsWD7G.d.cts → colors-BNxEsOY3.d.cts} +13 -4
  2. package/dist/{colors-DmMsWD7G.d.ts → colors-BNxEsOY3.d.ts} +13 -4
  3. package/dist/components/Avatar/index.cjs +1 -123
  4. package/dist/components/Avatar/index.d.cts +234 -2
  5. package/dist/components/Avatar/index.d.ts +234 -2
  6. package/dist/components/Avatar/index.js +1 -123
  7. package/dist/components/Badge/index.cjs +1 -123
  8. package/dist/components/Badge/index.d.cts +234 -2
  9. package/dist/components/Badge/index.d.ts +234 -2
  10. package/dist/components/Badge/index.js +1 -123
  11. package/dist/components/Button/index.cjs +1 -123
  12. package/dist/components/Button/index.d.cts +234 -2
  13. package/dist/components/Button/index.d.ts +234 -2
  14. package/dist/components/Button/index.js +1 -123
  15. package/dist/components/CheckBox/index.cjs +1 -123
  16. package/dist/components/CheckBox/index.d.cts +234 -2
  17. package/dist/components/CheckBox/index.d.ts +234 -2
  18. package/dist/components/CheckBox/index.js +1 -123
  19. package/dist/components/Chip/index.cjs +1 -123
  20. package/dist/components/Chip/index.d.cts +234 -2
  21. package/dist/components/Chip/index.d.ts +234 -2
  22. package/dist/components/Chip/index.js +1 -123
  23. package/dist/components/DatePicker/index.cjs +83 -86
  24. package/dist/components/DatePicker/index.d.cts +467 -3
  25. package/dist/components/DatePicker/index.d.ts +467 -3
  26. package/dist/components/DatePicker/index.js +83 -86
  27. package/dist/components/Pagination/index.cjs +1 -123
  28. package/dist/components/Pagination/index.d.cts +234 -2
  29. package/dist/components/Pagination/index.d.ts +234 -2
  30. package/dist/components/Pagination/index.js +1 -123
  31. package/dist/components/Progress/index.cjs +1 -123
  32. package/dist/components/Progress/index.d.cts +234 -2
  33. package/dist/components/Progress/index.d.ts +234 -2
  34. package/dist/components/Progress/index.js +1 -123
  35. package/dist/components/Radio/index.cjs +1 -123
  36. package/dist/components/Radio/index.d.cts +234 -2
  37. package/dist/components/Radio/index.d.ts +234 -2
  38. package/dist/components/Radio/index.js +1 -123
  39. package/dist/components/Spinner/index.cjs +1 -123
  40. package/dist/components/Spinner/index.d.cts +234 -2
  41. package/dist/components/Spinner/index.d.ts +234 -2
  42. package/dist/components/Spinner/index.js +1 -123
  43. package/dist/components/Steps/index.cjs +1 -123
  44. package/dist/components/Steps/index.d.cts +234 -2
  45. package/dist/components/Steps/index.d.ts +234 -2
  46. package/dist/components/Steps/index.js +1 -123
  47. package/dist/components/Switch/index.cjs +1 -123
  48. package/dist/components/Switch/index.d.cts +234 -2
  49. package/dist/components/Switch/index.d.ts +234 -2
  50. package/dist/components/Switch/index.js +1 -123
  51. package/dist/components/Table/index.cjs +1 -123
  52. package/dist/components/Table/index.d.cts +234 -2
  53. package/dist/components/Table/index.d.ts +234 -2
  54. package/dist/components/Table/index.js +1 -123
  55. package/dist/components/Tag/index.cjs +1 -123
  56. package/dist/components/Tag/index.d.cts +234 -2
  57. package/dist/components/Tag/index.d.ts +234 -2
  58. package/dist/components/Tag/index.js +1 -123
  59. package/dist/components/Tooltip/index.cjs +1 -123
  60. package/dist/components/Tooltip/index.d.cts +234 -2
  61. package/dist/components/Tooltip/index.d.ts +234 -2
  62. package/dist/components/Tooltip/index.js +1 -123
  63. package/dist/components/index.cjs +120 -123
  64. package/dist/components/index.d.cts +1 -1
  65. package/dist/components/index.d.ts +1 -1
  66. package/dist/components/index.js +120 -123
  67. package/dist/index.cjs +120 -123
  68. package/dist/index.d.cts +1 -1
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +120 -123
  71. package/dist/tokens/index.d.cts +1 -1
  72. package/dist/tokens/index.d.ts +1 -1
  73. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
3
+ import { b as ColorNamespace, d as ColorName, a as CustomNamespaces, C as CustomColors, f as ColorProps } from '../../colors-BNxEsOY3.js';
4
4
 
5
5
  interface InputDatePickerProps {
6
6
  value: Date;
@@ -46,7 +46,239 @@ interface RangePickerProps<N extends ColorNamespace = "xplat", C extends ColorNa
46
46
  maxDate?: Date;
47
47
  }
48
48
  declare const RangePicker: {
49
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: RangePickerProps<N, C>): react_jsx_runtime.JSX.Element;
49
+ <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof (N extends "xplat" | "test" ? N extends never ? {
50
+ readonly xplat: {
51
+ readonly red: {
52
+ readonly 50: "#FFF0F0";
53
+ readonly 100: "#FFDDDE";
54
+ readonly 200: "#FFC1C2";
55
+ readonly 300: "#FF9698";
56
+ readonly 400: "#FF5A5D";
57
+ readonly 500: "#FF272B";
58
+ readonly 600: "#F80409";
59
+ readonly 700: "#D40105";
60
+ readonly 800: "#AE0609";
61
+ readonly 900: "#900C0F";
62
+ };
63
+ readonly green: {
64
+ readonly 50: "#E5F6EA";
65
+ readonly 100: "#C1E7CC";
66
+ readonly 200: "#98D8AC";
67
+ readonly 300: "#6CCA8B";
68
+ readonly 400: "#47BE72";
69
+ readonly 500: "#10B259";
70
+ readonly 600: "#00A34F";
71
+ readonly 700: "#009143";
72
+ readonly 800: "#007F38";
73
+ readonly 900: "#006024";
74
+ };
75
+ readonly orange: {
76
+ readonly 50: "#FFF8EC";
77
+ readonly 100: "#FFF0D3";
78
+ readonly 200: "#FFDDA5";
79
+ readonly 300: "#FFC46D";
80
+ readonly 400: "#FF9F32";
81
+ readonly 500: "#FF820A";
82
+ readonly 600: "#FF6900";
83
+ readonly 700: "#CC4B02";
84
+ readonly 800: "#A13A0B";
85
+ readonly 900: "#82320C";
86
+ };
87
+ readonly yellow: {
88
+ readonly 50: "#FFFDE7";
89
+ readonly 100: "#FFFAC1";
90
+ readonly 200: "#FFF186";
91
+ readonly 300: "#FFE041";
92
+ readonly 400: "#FFCC0D";
93
+ readonly 500: "#F0B100";
94
+ readonly 600: "#D18800";
95
+ readonly 700: "#A66002";
96
+ readonly 800: "#894B0A";
97
+ readonly 900: "#743D0F";
98
+ };
99
+ readonly blue: {
100
+ readonly 50: "#F1F4FD";
101
+ readonly 100: "#DFE7FA";
102
+ readonly 200: "#C5D4F8";
103
+ readonly 300: "#9EB8F2";
104
+ readonly 400: "#7093EA";
105
+ readonly 500: "#4D6DE3";
106
+ readonly 600: "#3950D7";
107
+ readonly 700: "#303EC5";
108
+ readonly 800: "#2D35A0";
109
+ readonly 900: "#29317F";
110
+ };
111
+ readonly lightblue: {
112
+ readonly 50: "#EEFAFF";
113
+ readonly 100: "#D9F4FF";
114
+ readonly 200: "#BBEDFF";
115
+ readonly 300: "#8DE3FF";
116
+ readonly 400: "#57D0FF";
117
+ readonly 500: "#30B6FF";
118
+ readonly 600: "#1999F7";
119
+ readonly 700: "#1280E3";
120
+ readonly 800: "#1566B8";
121
+ readonly 900: "#175791";
122
+ };
123
+ readonly purple: {
124
+ readonly 50: "#FBF6FE";
125
+ readonly 100: "#F5EAFD";
126
+ readonly 200: "#EDD8FC";
127
+ readonly 300: "#E0BAF8";
128
+ readonly 400: "#CD8DF3";
129
+ readonly 500: "#B961EB";
130
+ readonly 600: "#A541DC";
131
+ readonly 700: "#9230C5";
132
+ readonly 800: "#782B9E";
133
+ readonly 900: "#62247F";
134
+ };
135
+ readonly pink: {
136
+ readonly 50: "#FFF4FE";
137
+ readonly 100: "#FFE7FD";
138
+ readonly 200: "#FFCFFA";
139
+ readonly 300: "#FEA9F1";
140
+ readonly 400: "#FD75E7";
141
+ readonly 500: "#F553DA";
142
+ readonly 600: "#D821B6";
143
+ readonly 700: "#B31892";
144
+ readonly 800: "#921676";
145
+ readonly 900: "#781761";
146
+ };
147
+ readonly neutral: {
148
+ readonly 50: "#FAFAFA";
149
+ readonly 100: "#F5F5F5";
150
+ readonly 200: "#E5E5E5";
151
+ readonly 300: "#D4D4D4";
152
+ readonly 400: "#A1A1A1";
153
+ readonly 500: "#737373";
154
+ readonly 600: "#525252";
155
+ readonly 700: "#404040";
156
+ readonly 800: "#262626";
157
+ readonly 900: "#171717";
158
+ };
159
+ readonly black: "#000000";
160
+ readonly white: "#FFFFFF";
161
+ };
162
+ readonly test: {
163
+ readonly default: "#ffffff";
164
+ };
165
+ }[N] & CustomNamespaces[N] & (N extends "xplat" ? CustomColors : {}) : {
166
+ readonly xplat: {
167
+ readonly red: {
168
+ readonly 50: "#FFF0F0";
169
+ readonly 100: "#FFDDDE";
170
+ readonly 200: "#FFC1C2";
171
+ readonly 300: "#FF9698";
172
+ readonly 400: "#FF5A5D";
173
+ readonly 500: "#FF272B";
174
+ readonly 600: "#F80409";
175
+ readonly 700: "#D40105";
176
+ readonly 800: "#AE0609";
177
+ readonly 900: "#900C0F";
178
+ };
179
+ readonly green: {
180
+ readonly 50: "#E5F6EA";
181
+ readonly 100: "#C1E7CC";
182
+ readonly 200: "#98D8AC";
183
+ readonly 300: "#6CCA8B";
184
+ readonly 400: "#47BE72";
185
+ readonly 500: "#10B259";
186
+ readonly 600: "#00A34F";
187
+ readonly 700: "#009143";
188
+ readonly 800: "#007F38";
189
+ readonly 900: "#006024";
190
+ };
191
+ readonly orange: {
192
+ readonly 50: "#FFF8EC";
193
+ readonly 100: "#FFF0D3";
194
+ readonly 200: "#FFDDA5";
195
+ readonly 300: "#FFC46D";
196
+ readonly 400: "#FF9F32";
197
+ readonly 500: "#FF820A";
198
+ readonly 600: "#FF6900";
199
+ readonly 700: "#CC4B02";
200
+ readonly 800: "#A13A0B";
201
+ readonly 900: "#82320C";
202
+ };
203
+ readonly yellow: {
204
+ readonly 50: "#FFFDE7";
205
+ readonly 100: "#FFFAC1";
206
+ readonly 200: "#FFF186";
207
+ readonly 300: "#FFE041";
208
+ readonly 400: "#FFCC0D";
209
+ readonly 500: "#F0B100";
210
+ readonly 600: "#D18800";
211
+ readonly 700: "#A66002";
212
+ readonly 800: "#894B0A";
213
+ readonly 900: "#743D0F";
214
+ };
215
+ readonly blue: {
216
+ readonly 50: "#F1F4FD";
217
+ readonly 100: "#DFE7FA";
218
+ readonly 200: "#C5D4F8";
219
+ readonly 300: "#9EB8F2";
220
+ readonly 400: "#7093EA";
221
+ readonly 500: "#4D6DE3";
222
+ readonly 600: "#3950D7";
223
+ readonly 700: "#303EC5";
224
+ readonly 800: "#2D35A0";
225
+ readonly 900: "#29317F";
226
+ };
227
+ readonly lightblue: {
228
+ readonly 50: "#EEFAFF";
229
+ readonly 100: "#D9F4FF";
230
+ readonly 200: "#BBEDFF";
231
+ readonly 300: "#8DE3FF";
232
+ readonly 400: "#57D0FF";
233
+ readonly 500: "#30B6FF";
234
+ readonly 600: "#1999F7";
235
+ readonly 700: "#1280E3";
236
+ readonly 800: "#1566B8";
237
+ readonly 900: "#175791";
238
+ };
239
+ readonly purple: {
240
+ readonly 50: "#FBF6FE";
241
+ readonly 100: "#F5EAFD";
242
+ readonly 200: "#EDD8FC";
243
+ readonly 300: "#E0BAF8";
244
+ readonly 400: "#CD8DF3";
245
+ readonly 500: "#B961EB";
246
+ readonly 600: "#A541DC";
247
+ readonly 700: "#9230C5";
248
+ readonly 800: "#782B9E";
249
+ readonly 900: "#62247F";
250
+ };
251
+ readonly pink: {
252
+ readonly 50: "#FFF4FE";
253
+ readonly 100: "#FFE7FD";
254
+ readonly 200: "#FFCFFA";
255
+ readonly 300: "#FEA9F1";
256
+ readonly 400: "#FD75E7";
257
+ readonly 500: "#F553DA";
258
+ readonly 600: "#D821B6";
259
+ readonly 700: "#B31892";
260
+ readonly 800: "#921676";
261
+ readonly 900: "#781761";
262
+ };
263
+ readonly neutral: {
264
+ readonly 50: "#FAFAFA";
265
+ readonly 100: "#F5F5F5";
266
+ readonly 200: "#E5E5E5";
267
+ readonly 300: "#D4D4D4";
268
+ readonly 400: "#A1A1A1";
269
+ readonly 500: "#737373";
270
+ readonly 600: "#525252";
271
+ readonly 700: "#404040";
272
+ readonly 800: "#262626";
273
+ readonly 900: "#171717";
274
+ };
275
+ readonly black: "#000000";
276
+ readonly white: "#FFFFFF";
277
+ };
278
+ readonly test: {
279
+ readonly default: "#ffffff";
280
+ };
281
+ }[N] & (N extends "xplat" ? CustomColors : {}) : N extends never ? CustomNamespaces[N] : {})>(props: RangePickerProps<N, C>): react_jsx_runtime.JSX.Element;
50
282
  displayName: string;
51
283
  };
52
284
 
@@ -58,7 +290,239 @@ interface SingleDatePickerProps<N extends ColorNamespace = "xplat", C extends Co
58
290
  highlightDates?: Date[];
59
291
  }
60
292
  declare const SingleDatePicker: {
61
- <N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: SingleDatePickerProps<N, C>): react_jsx_runtime.JSX.Element;
293
+ <N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof (N extends "xplat" | "test" ? N extends never ? {
294
+ readonly xplat: {
295
+ readonly red: {
296
+ readonly 50: "#FFF0F0";
297
+ readonly 100: "#FFDDDE";
298
+ readonly 200: "#FFC1C2";
299
+ readonly 300: "#FF9698";
300
+ readonly 400: "#FF5A5D";
301
+ readonly 500: "#FF272B";
302
+ readonly 600: "#F80409";
303
+ readonly 700: "#D40105";
304
+ readonly 800: "#AE0609";
305
+ readonly 900: "#900C0F";
306
+ };
307
+ readonly green: {
308
+ readonly 50: "#E5F6EA";
309
+ readonly 100: "#C1E7CC";
310
+ readonly 200: "#98D8AC";
311
+ readonly 300: "#6CCA8B";
312
+ readonly 400: "#47BE72";
313
+ readonly 500: "#10B259";
314
+ readonly 600: "#00A34F";
315
+ readonly 700: "#009143";
316
+ readonly 800: "#007F38";
317
+ readonly 900: "#006024";
318
+ };
319
+ readonly orange: {
320
+ readonly 50: "#FFF8EC";
321
+ readonly 100: "#FFF0D3";
322
+ readonly 200: "#FFDDA5";
323
+ readonly 300: "#FFC46D";
324
+ readonly 400: "#FF9F32";
325
+ readonly 500: "#FF820A";
326
+ readonly 600: "#FF6900";
327
+ readonly 700: "#CC4B02";
328
+ readonly 800: "#A13A0B";
329
+ readonly 900: "#82320C";
330
+ };
331
+ readonly yellow: {
332
+ readonly 50: "#FFFDE7";
333
+ readonly 100: "#FFFAC1";
334
+ readonly 200: "#FFF186";
335
+ readonly 300: "#FFE041";
336
+ readonly 400: "#FFCC0D";
337
+ readonly 500: "#F0B100";
338
+ readonly 600: "#D18800";
339
+ readonly 700: "#A66002";
340
+ readonly 800: "#894B0A";
341
+ readonly 900: "#743D0F";
342
+ };
343
+ readonly blue: {
344
+ readonly 50: "#F1F4FD";
345
+ readonly 100: "#DFE7FA";
346
+ readonly 200: "#C5D4F8";
347
+ readonly 300: "#9EB8F2";
348
+ readonly 400: "#7093EA";
349
+ readonly 500: "#4D6DE3";
350
+ readonly 600: "#3950D7";
351
+ readonly 700: "#303EC5";
352
+ readonly 800: "#2D35A0";
353
+ readonly 900: "#29317F";
354
+ };
355
+ readonly lightblue: {
356
+ readonly 50: "#EEFAFF";
357
+ readonly 100: "#D9F4FF";
358
+ readonly 200: "#BBEDFF";
359
+ readonly 300: "#8DE3FF";
360
+ readonly 400: "#57D0FF";
361
+ readonly 500: "#30B6FF";
362
+ readonly 600: "#1999F7";
363
+ readonly 700: "#1280E3";
364
+ readonly 800: "#1566B8";
365
+ readonly 900: "#175791";
366
+ };
367
+ readonly purple: {
368
+ readonly 50: "#FBF6FE";
369
+ readonly 100: "#F5EAFD";
370
+ readonly 200: "#EDD8FC";
371
+ readonly 300: "#E0BAF8";
372
+ readonly 400: "#CD8DF3";
373
+ readonly 500: "#B961EB";
374
+ readonly 600: "#A541DC";
375
+ readonly 700: "#9230C5";
376
+ readonly 800: "#782B9E";
377
+ readonly 900: "#62247F";
378
+ };
379
+ readonly pink: {
380
+ readonly 50: "#FFF4FE";
381
+ readonly 100: "#FFE7FD";
382
+ readonly 200: "#FFCFFA";
383
+ readonly 300: "#FEA9F1";
384
+ readonly 400: "#FD75E7";
385
+ readonly 500: "#F553DA";
386
+ readonly 600: "#D821B6";
387
+ readonly 700: "#B31892";
388
+ readonly 800: "#921676";
389
+ readonly 900: "#781761";
390
+ };
391
+ readonly neutral: {
392
+ readonly 50: "#FAFAFA";
393
+ readonly 100: "#F5F5F5";
394
+ readonly 200: "#E5E5E5";
395
+ readonly 300: "#D4D4D4";
396
+ readonly 400: "#A1A1A1";
397
+ readonly 500: "#737373";
398
+ readonly 600: "#525252";
399
+ readonly 700: "#404040";
400
+ readonly 800: "#262626";
401
+ readonly 900: "#171717";
402
+ };
403
+ readonly black: "#000000";
404
+ readonly white: "#FFFFFF";
405
+ };
406
+ readonly test: {
407
+ readonly default: "#ffffff";
408
+ };
409
+ }[N] & CustomNamespaces[N] & (N extends "xplat" ? CustomColors : {}) : {
410
+ readonly xplat: {
411
+ readonly red: {
412
+ readonly 50: "#FFF0F0";
413
+ readonly 100: "#FFDDDE";
414
+ readonly 200: "#FFC1C2";
415
+ readonly 300: "#FF9698";
416
+ readonly 400: "#FF5A5D";
417
+ readonly 500: "#FF272B";
418
+ readonly 600: "#F80409";
419
+ readonly 700: "#D40105";
420
+ readonly 800: "#AE0609";
421
+ readonly 900: "#900C0F";
422
+ };
423
+ readonly green: {
424
+ readonly 50: "#E5F6EA";
425
+ readonly 100: "#C1E7CC";
426
+ readonly 200: "#98D8AC";
427
+ readonly 300: "#6CCA8B";
428
+ readonly 400: "#47BE72";
429
+ readonly 500: "#10B259";
430
+ readonly 600: "#00A34F";
431
+ readonly 700: "#009143";
432
+ readonly 800: "#007F38";
433
+ readonly 900: "#006024";
434
+ };
435
+ readonly orange: {
436
+ readonly 50: "#FFF8EC";
437
+ readonly 100: "#FFF0D3";
438
+ readonly 200: "#FFDDA5";
439
+ readonly 300: "#FFC46D";
440
+ readonly 400: "#FF9F32";
441
+ readonly 500: "#FF820A";
442
+ readonly 600: "#FF6900";
443
+ readonly 700: "#CC4B02";
444
+ readonly 800: "#A13A0B";
445
+ readonly 900: "#82320C";
446
+ };
447
+ readonly yellow: {
448
+ readonly 50: "#FFFDE7";
449
+ readonly 100: "#FFFAC1";
450
+ readonly 200: "#FFF186";
451
+ readonly 300: "#FFE041";
452
+ readonly 400: "#FFCC0D";
453
+ readonly 500: "#F0B100";
454
+ readonly 600: "#D18800";
455
+ readonly 700: "#A66002";
456
+ readonly 800: "#894B0A";
457
+ readonly 900: "#743D0F";
458
+ };
459
+ readonly blue: {
460
+ readonly 50: "#F1F4FD";
461
+ readonly 100: "#DFE7FA";
462
+ readonly 200: "#C5D4F8";
463
+ readonly 300: "#9EB8F2";
464
+ readonly 400: "#7093EA";
465
+ readonly 500: "#4D6DE3";
466
+ readonly 600: "#3950D7";
467
+ readonly 700: "#303EC5";
468
+ readonly 800: "#2D35A0";
469
+ readonly 900: "#29317F";
470
+ };
471
+ readonly lightblue: {
472
+ readonly 50: "#EEFAFF";
473
+ readonly 100: "#D9F4FF";
474
+ readonly 200: "#BBEDFF";
475
+ readonly 300: "#8DE3FF";
476
+ readonly 400: "#57D0FF";
477
+ readonly 500: "#30B6FF";
478
+ readonly 600: "#1999F7";
479
+ readonly 700: "#1280E3";
480
+ readonly 800: "#1566B8";
481
+ readonly 900: "#175791";
482
+ };
483
+ readonly purple: {
484
+ readonly 50: "#FBF6FE";
485
+ readonly 100: "#F5EAFD";
486
+ readonly 200: "#EDD8FC";
487
+ readonly 300: "#E0BAF8";
488
+ readonly 400: "#CD8DF3";
489
+ readonly 500: "#B961EB";
490
+ readonly 600: "#A541DC";
491
+ readonly 700: "#9230C5";
492
+ readonly 800: "#782B9E";
493
+ readonly 900: "#62247F";
494
+ };
495
+ readonly pink: {
496
+ readonly 50: "#FFF4FE";
497
+ readonly 100: "#FFE7FD";
498
+ readonly 200: "#FFCFFA";
499
+ readonly 300: "#FEA9F1";
500
+ readonly 400: "#FD75E7";
501
+ readonly 500: "#F553DA";
502
+ readonly 600: "#D821B6";
503
+ readonly 700: "#B31892";
504
+ readonly 800: "#921676";
505
+ readonly 900: "#781761";
506
+ };
507
+ readonly neutral: {
508
+ readonly 50: "#FAFAFA";
509
+ readonly 100: "#F5F5F5";
510
+ readonly 200: "#E5E5E5";
511
+ readonly 300: "#D4D4D4";
512
+ readonly 400: "#A1A1A1";
513
+ readonly 500: "#737373";
514
+ readonly 600: "#525252";
515
+ readonly 700: "#404040";
516
+ readonly 800: "#262626";
517
+ readonly 900: "#171717";
518
+ };
519
+ readonly black: "#000000";
520
+ readonly white: "#FFFFFF";
521
+ };
522
+ readonly test: {
523
+ readonly default: "#ffffff";
524
+ };
525
+ }[N] & (N extends "xplat" ? CustomColors : {}) : N extends never ? CustomNamespaces[N] : {})>(props: SingleDatePickerProps<N, C>): react_jsx_runtime.JSX.Element;
62
526
  displayName: string;
63
527
  };
64
528
 
@@ -12016,6 +12016,89 @@ var InputDatePicker_default = InputDatePicker;
12016
12016
  // src/components/DatePicker/PopupPicker/index.tsx
12017
12017
  import React9 from "react";
12018
12018
 
12019
+ // src/util/getColor.ts
12020
+ var getColorClass = (namespace, palette, shade) => {
12021
+ return `${String(namespace)}-${String(palette)}${shade !== void 0 ? `-${String(shade)}` : ""}`;
12022
+ };
12023
+
12024
+ // src/components/Button/Button.tsx
12025
+ import { jsx as jsx300 } from "react/jsx-runtime";
12026
+ var Button = (props) => {
12027
+ const {
12028
+ children,
12029
+ type = "primary",
12030
+ size: size4 = "md",
12031
+ colorNamespace = "xplat",
12032
+ color = "black",
12033
+ colorDepth,
12034
+ disabled,
12035
+ className,
12036
+ ...rest
12037
+ } = props;
12038
+ const colorClass = getColorClass(
12039
+ colorNamespace,
12040
+ color,
12041
+ colorDepth ?? 500
12042
+ );
12043
+ return /* @__PURE__ */ jsx300(
12044
+ "button",
12045
+ {
12046
+ className: clsx_default("lib-xplat-button", type, size4, colorClass, className),
12047
+ disabled,
12048
+ ...rest,
12049
+ children
12050
+ }
12051
+ );
12052
+ };
12053
+ Button.displayName = "Button";
12054
+ var Button_default = Button;
12055
+
12056
+ // src/components/Modal/Modal.tsx
12057
+ import React8 from "react";
12058
+ import { createPortal as createPortal2 } from "react-dom";
12059
+ import { jsx as jsx301 } from "react/jsx-runtime";
12060
+ var ANIMATION_DURATION_MS = 200;
12061
+ var Modal = (props) => {
12062
+ const { isOpen, onClose, children } = props;
12063
+ const [mounted, setMounted] = React8.useState(false);
12064
+ const [visible, setVisible] = React8.useState(false);
12065
+ React8.useEffect(() => {
12066
+ if (isOpen) {
12067
+ setMounted(true);
12068
+ const t2 = setTimeout(() => setVisible(true), 1);
12069
+ return () => clearTimeout(t2);
12070
+ }
12071
+ setVisible(false);
12072
+ const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS);
12073
+ return () => clearTimeout(t);
12074
+ }, [isOpen]);
12075
+ if (typeof document === "undefined") return null;
12076
+ if (!mounted) return null;
12077
+ const stateClass = visible ? "enter" : "exit";
12078
+ return createPortal2(
12079
+ /* @__PURE__ */ jsx301(
12080
+ "div",
12081
+ {
12082
+ className: clsx_default("lib-xplat-modal", "dim", stateClass),
12083
+ onClick: onClose,
12084
+ children: /* @__PURE__ */ jsx301(
12085
+ "div",
12086
+ {
12087
+ className: clsx_default("lib-xplat-modal", "modal-box", stateClass),
12088
+ role: "dialog",
12089
+ "aria-modal": "true",
12090
+ onClick: (e) => e.stopPropagation(),
12091
+ children
12092
+ }
12093
+ )
12094
+ }
12095
+ ),
12096
+ document.body
12097
+ );
12098
+ };
12099
+ Modal.displayName = "Modal";
12100
+ var Modal_default = Modal;
12101
+
12019
12102
  // src/tokens/colors.ts
12020
12103
  var colors = {
12021
12104
  xplat: {
@@ -12135,92 +12218,6 @@ var colors = {
12135
12218
  }
12136
12219
  };
12137
12220
 
12138
- // src/util/getColor.ts
12139
- var getColorClass = (namespace, palette, shade) => {
12140
- const namespaceMap = colors[namespace];
12141
- const paletteMap = namespaceMap[palette];
12142
- const hasShade = paletteMap && typeof paletteMap === "object" && shade !== void 0 && shade in paletteMap;
12143
- return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
12144
- };
12145
-
12146
- // src/components/Button/Button.tsx
12147
- import { jsx as jsx300 } from "react/jsx-runtime";
12148
- var Button = (props) => {
12149
- const {
12150
- children,
12151
- type = "primary",
12152
- size: size4 = "md",
12153
- colorNamespace = "xplat",
12154
- color = "black",
12155
- colorDepth,
12156
- disabled,
12157
- className,
12158
- ...rest
12159
- } = props;
12160
- const colorClass = getColorClass(
12161
- colorNamespace,
12162
- color,
12163
- colorDepth ?? 500
12164
- );
12165
- return /* @__PURE__ */ jsx300(
12166
- "button",
12167
- {
12168
- className: clsx_default("lib-xplat-button", type, size4, colorClass, className),
12169
- disabled,
12170
- ...rest,
12171
- children
12172
- }
12173
- );
12174
- };
12175
- Button.displayName = "Button";
12176
- var Button_default = Button;
12177
-
12178
- // src/components/Modal/Modal.tsx
12179
- import React8 from "react";
12180
- import { createPortal as createPortal2 } from "react-dom";
12181
- import { jsx as jsx301 } from "react/jsx-runtime";
12182
- var ANIMATION_DURATION_MS = 200;
12183
- var Modal = (props) => {
12184
- const { isOpen, onClose, children } = props;
12185
- const [mounted, setMounted] = React8.useState(false);
12186
- const [visible, setVisible] = React8.useState(false);
12187
- React8.useEffect(() => {
12188
- if (isOpen) {
12189
- setMounted(true);
12190
- const t2 = setTimeout(() => setVisible(true), 1);
12191
- return () => clearTimeout(t2);
12192
- }
12193
- setVisible(false);
12194
- const t = setTimeout(() => setMounted(false), ANIMATION_DURATION_MS);
12195
- return () => clearTimeout(t);
12196
- }, [isOpen]);
12197
- if (typeof document === "undefined") return null;
12198
- if (!mounted) return null;
12199
- const stateClass = visible ? "enter" : "exit";
12200
- return createPortal2(
12201
- /* @__PURE__ */ jsx301(
12202
- "div",
12203
- {
12204
- className: clsx_default("lib-xplat-modal", "dim", stateClass),
12205
- onClick: onClose,
12206
- children: /* @__PURE__ */ jsx301(
12207
- "div",
12208
- {
12209
- className: clsx_default("lib-xplat-modal", "modal-box", stateClass),
12210
- role: "dialog",
12211
- "aria-modal": "true",
12212
- onClick: (e) => e.stopPropagation(),
12213
- children
12214
- }
12215
- )
12216
- }
12217
- ),
12218
- document.body
12219
- );
12220
- };
12221
- Modal.displayName = "Modal";
12222
- var Modal_default = Modal;
12223
-
12224
12221
  // src/components/DatePicker/SingleDatePicker/index.tsx
12225
12222
  import { jsx as jsx302 } from "react/jsx-runtime";
12226
12223
  function getColorValue(ns, color, depth) {