@x-plat/design-system 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/index.cjs +1021 -0
- package/dist/components/Accordion/index.css +51 -0
- package/dist/components/Accordion/index.d.cts +16 -0
- package/dist/components/Accordion/index.d.ts +16 -0
- package/dist/components/Accordion/index.js +984 -0
- package/dist/components/Alert/index.cjs +72 -0
- package/dist/components/Alert/index.css +60 -0
- package/dist/components/Alert/index.d.cts +12 -0
- package/dist/components/Alert/index.d.ts +12 -0
- package/dist/components/Alert/index.js +45 -0
- package/dist/components/Avatar/index.cjs +196 -0
- package/dist/components/Avatar/index.css +322 -0
- package/dist/components/Avatar/index.d.cts +133 -0
- package/dist/components/Avatar/index.d.ts +133 -0
- package/dist/components/Avatar/index.js +169 -0
- package/dist/components/Badge/index.cjs +200 -0
- package/dist/components/Badge/index.css +307 -0
- package/dist/components/Badge/index.d.cts +133 -0
- package/dist/components/Badge/index.d.ts +133 -0
- package/dist/components/Badge/index.js +173 -0
- package/dist/components/Breadcrumb/index.cjs +60 -0
- package/dist/components/Breadcrumb/index.css +37 -0
- package/dist/components/Breadcrumb/index.d.cts +15 -0
- package/dist/components/Breadcrumb/index.d.ts +15 -0
- package/dist/components/Breadcrumb/index.js +33 -0
- package/dist/components/Chart/index.cjs +6 -3
- package/dist/components/Chart/index.js +6 -3
- package/dist/components/CheckBox/index.cjs +1 -1
- package/dist/components/CheckBox/index.css +13 -1
- package/dist/components/CheckBox/index.js +1 -1
- package/dist/components/DatePicker/index.cjs +77 -5
- package/dist/components/DatePicker/index.css +20 -2
- package/dist/components/DatePicker/index.d.cts +245 -4
- package/dist/components/DatePicker/index.d.ts +245 -4
- package/dist/components/DatePicker/index.js +77 -5
- package/dist/components/Divider/index.cjs +61 -0
- package/dist/components/Divider/index.css +15 -0
- package/dist/components/Divider/index.d.cts +10 -0
- package/dist/components/Divider/index.d.ts +10 -0
- package/dist/components/Divider/index.js +34 -0
- package/dist/components/Drawer/index.cjs +111 -0
- package/dist/components/Drawer/index.css +70 -0
- package/dist/components/Drawer/index.d.cts +14 -0
- package/dist/components/Drawer/index.d.ts +14 -0
- package/dist/components/Drawer/index.js +74 -0
- package/dist/components/Dropdown/index.cjs +185 -0
- package/dist/components/Dropdown/index.css +54 -0
- package/dist/components/Dropdown/index.d.cts +17 -0
- package/dist/components/Dropdown/index.d.ts +17 -0
- package/dist/components/Dropdown/index.js +148 -0
- package/dist/components/EmptyState/index.cjs +60 -0
- package/dist/components/EmptyState/index.css +32 -0
- package/dist/components/EmptyState/index.d.cts +12 -0
- package/dist/components/EmptyState/index.d.ts +12 -0
- package/dist/components/EmptyState/index.js +33 -0
- package/dist/components/FileUpload/index.cjs +1039 -0
- package/dist/components/FileUpload/index.css +42 -0
- package/dist/components/FileUpload/index.d.cts +14 -0
- package/dist/components/FileUpload/index.d.ts +14 -0
- package/dist/components/FileUpload/index.js +1002 -0
- package/dist/components/ImageSelector/index.cjs +9 -3
- package/dist/components/ImageSelector/index.js +9 -3
- package/dist/components/Modal/index.cjs +2 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Pagination/index.cjs +1167 -0
- package/dist/components/Pagination/index.css +325 -0
- package/dist/components/Pagination/index.d.cts +133 -0
- package/dist/components/Pagination/index.d.ts +133 -0
- package/dist/components/Pagination/index.js +1140 -0
- package/dist/components/Progress/index.cjs +218 -0
- package/dist/components/Progress/index.css +313 -0
- package/dist/components/Progress/index.d.cts +133 -0
- package/dist/components/Progress/index.d.ts +133 -0
- package/dist/components/Progress/index.js +191 -0
- package/dist/components/Radio/index.css +1 -1
- package/dist/components/Skeleton/index.cjs +65 -0
- package/dist/components/Skeleton/index.css +27 -0
- package/dist/components/Skeleton/index.d.cts +12 -0
- package/dist/components/Skeleton/index.d.ts +12 -0
- package/dist/components/Skeleton/index.js +38 -0
- package/dist/components/Spinner/index.cjs +222 -0
- package/dist/components/Spinner/index.css +317 -0
- package/dist/components/Spinner/index.d.cts +130 -0
- package/dist/components/Spinner/index.d.ts +130 -0
- package/dist/components/Spinner/index.js +195 -0
- package/dist/components/Steps/index.cjs +1105 -0
- package/dist/components/Steps/index.css +918 -0
- package/dist/components/Steps/index.d.cts +134 -0
- package/dist/components/Steps/index.d.ts +134 -0
- package/dist/components/Steps/index.js +1078 -0
- package/dist/components/Tag/index.cjs +1090 -0
- package/dist/components/Tag/index.css +498 -0
- package/dist/components/Tag/index.d.cts +131 -0
- package/dist/components/Tag/index.d.ts +131 -0
- package/dist/components/Tag/index.js +1063 -0
- package/dist/components/Toast/index.cjs +150 -0
- package/dist/components/Toast/index.css +111 -0
- package/dist/components/Toast/index.d.cts +15 -0
- package/dist/components/Toast/index.d.ts +15 -0
- package/dist/components/Toast/index.js +112 -0
- package/dist/components/Tooltip/index.css +3 -0
- package/dist/components/index.cjs +1992 -1101
- package/dist/components/index.css +10623 -7074
- package/dist/components/index.d.cts +19 -2
- package/dist/components/index.d.ts +19 -2
- package/dist/components/index.js +1950 -1077
- package/dist/index.cjs +2935 -2080
- package/dist/index.css +10619 -7070
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +2980 -2143
- package/package.json +2 -2
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
20
|
border-radius: 0.25rem;
|
|
21
|
-
transition: border-color 0.
|
|
21
|
+
transition: border-color 0.12s ease-out, background-color 0.12s ease-out;
|
|
22
22
|
}
|
|
23
23
|
.lib-xplat-checkbox > .checkbox.unchecked {
|
|
24
24
|
border: 1px solid #A1A1A1;
|
|
@@ -585,6 +585,18 @@
|
|
|
585
585
|
.lib-xplat-checkbox > .checkbox.checked.test-default:hover {
|
|
586
586
|
background-color: rgb(234.6, 234.6, 234.6);
|
|
587
587
|
}
|
|
588
|
+
.lib-xplat-checkbox > .checkbox .check-icon {
|
|
589
|
+
display: flex;
|
|
590
|
+
align-items: center;
|
|
591
|
+
justify-content: center;
|
|
592
|
+
opacity: 0;
|
|
593
|
+
transform: scale(0.5);
|
|
594
|
+
transition: opacity 0.1s ease-out, transform 0.1s ease-out;
|
|
595
|
+
}
|
|
596
|
+
.lib-xplat-checkbox > .checkbox .check-icon.visible {
|
|
597
|
+
opacity: 1;
|
|
598
|
+
transform: scale(1);
|
|
599
|
+
}
|
|
588
600
|
.lib-xplat-checkbox > .checkbox.disabled {
|
|
589
601
|
cursor: not-allowed;
|
|
590
602
|
background-color: #A1A1A1 !important;
|
|
@@ -1078,7 +1078,7 @@ var CheckBox = (props) => {
|
|
|
1078
1078
|
...rest
|
|
1079
1079
|
}
|
|
1080
1080
|
),
|
|
1081
|
-
/* @__PURE__ */ jsx295("span", { className: clsx_default("checkbox", boxClasses), children: checked
|
|
1081
|
+
/* @__PURE__ */ jsx295("span", { className: clsx_default("checkbox", boxClasses), children: /* @__PURE__ */ jsx295("span", { className: clsx_default("check-icon", { visible: checked }), children: /* @__PURE__ */ jsx295(CheckIcon_default, {}) }) }),
|
|
1082
1082
|
label && /* @__PURE__ */ jsx295("span", { className: "label", children: label })
|
|
1083
1083
|
] });
|
|
1084
1084
|
};
|
|
@@ -1529,6 +1529,8 @@ var Modal = (props) => {
|
|
|
1529
1529
|
"div",
|
|
1530
1530
|
{
|
|
1531
1531
|
className: clsx_default("lib-xplat-modal", "modal-box", stateClass),
|
|
1532
|
+
role: "dialog",
|
|
1533
|
+
"aria-modal": "true",
|
|
1532
1534
|
onClick: (e) => e.stopPropagation(),
|
|
1533
1535
|
children
|
|
1534
1536
|
}
|
|
@@ -1545,13 +1547,48 @@ var Modal_default = Modal;
|
|
|
1545
1547
|
var import_react_datepicker3 = __toESM(require("react-datepicker"), 1);
|
|
1546
1548
|
var import_react_datepicker4 = require("react-datepicker/dist/react-datepicker.css");
|
|
1547
1549
|
var import_jsx_runtime301 = require("react/jsx-runtime");
|
|
1550
|
+
function getColorValue(ns, color, depth) {
|
|
1551
|
+
const nsColors = colors[ns];
|
|
1552
|
+
const colorEntry = nsColors[color];
|
|
1553
|
+
if (typeof colorEntry === "string") return colorEntry;
|
|
1554
|
+
return colorEntry[String(depth)] ?? "";
|
|
1555
|
+
}
|
|
1548
1556
|
var SingleDatePicker = (props) => {
|
|
1549
|
-
const {
|
|
1557
|
+
const {
|
|
1558
|
+
value,
|
|
1559
|
+
onChange,
|
|
1560
|
+
colorNamespace = "xplat",
|
|
1561
|
+
color = "blue",
|
|
1562
|
+
colorDepth,
|
|
1563
|
+
highlightDates,
|
|
1564
|
+
...rest
|
|
1565
|
+
} = props;
|
|
1550
1566
|
const handleChange = (date) => {
|
|
1551
1567
|
if (Array.isArray(date)) return;
|
|
1552
1568
|
onChange?.(date);
|
|
1553
1569
|
};
|
|
1554
|
-
|
|
1570
|
+
const activeColor = getColorValue(
|
|
1571
|
+
colorNamespace,
|
|
1572
|
+
color,
|
|
1573
|
+
colorDepth ?? 500
|
|
1574
|
+
);
|
|
1575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
|
|
1576
|
+
"div",
|
|
1577
|
+
{
|
|
1578
|
+
className: "lib-xplat-datepicker",
|
|
1579
|
+
style: { "--datepicker-active-color": activeColor },
|
|
1580
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
|
|
1581
|
+
import_react_datepicker3.default,
|
|
1582
|
+
{
|
|
1583
|
+
selected: value,
|
|
1584
|
+
onChange: handleChange,
|
|
1585
|
+
inline: true,
|
|
1586
|
+
highlightDates,
|
|
1587
|
+
...rest
|
|
1588
|
+
}
|
|
1589
|
+
)
|
|
1590
|
+
}
|
|
1591
|
+
);
|
|
1555
1592
|
};
|
|
1556
1593
|
SingleDatePicker.displayName = "SingleDatePicker";
|
|
1557
1594
|
var SingleDatePicker_default = SingleDatePicker;
|
|
@@ -1612,9 +1649,40 @@ PopupPicker.displayName = "PopupPicker";
|
|
|
1612
1649
|
var PopupPicker_default = PopupPicker;
|
|
1613
1650
|
|
|
1614
1651
|
// src/components/DatePicker/RangePicker/index.tsx
|
|
1652
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
1615
1653
|
var import_jsx_runtime303 = require("react/jsx-runtime");
|
|
1654
|
+
function getDatesBetween(start, end) {
|
|
1655
|
+
const dates = [];
|
|
1656
|
+
const current = new Date(start);
|
|
1657
|
+
current.setHours(0, 0, 0, 0);
|
|
1658
|
+
const last = new Date(end);
|
|
1659
|
+
last.setHours(0, 0, 0, 0);
|
|
1660
|
+
while (current <= last) {
|
|
1661
|
+
dates.push(new Date(current));
|
|
1662
|
+
current.setDate(current.getDate() + 1);
|
|
1663
|
+
}
|
|
1664
|
+
return dates;
|
|
1665
|
+
}
|
|
1616
1666
|
var RangePicker = (props) => {
|
|
1617
|
-
const {
|
|
1667
|
+
const {
|
|
1668
|
+
startDate,
|
|
1669
|
+
endDate,
|
|
1670
|
+
onChange,
|
|
1671
|
+
minDate,
|
|
1672
|
+
maxDate,
|
|
1673
|
+
colorNamespace,
|
|
1674
|
+
color,
|
|
1675
|
+
colorDepth
|
|
1676
|
+
} = props;
|
|
1677
|
+
const rangeDates = import_react7.default.useMemo(
|
|
1678
|
+
() => getDatesBetween(startDate, endDate),
|
|
1679
|
+
[startDate, endDate]
|
|
1680
|
+
);
|
|
1681
|
+
const colorProps = {
|
|
1682
|
+
...colorNamespace !== void 0 && { colorNamespace },
|
|
1683
|
+
...color !== void 0 && { color },
|
|
1684
|
+
...colorDepth !== void 0 && { colorDepth }
|
|
1685
|
+
};
|
|
1618
1686
|
return /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)("div", { className: "lib-xplat-range-datepicker", children: [
|
|
1619
1687
|
/* @__PURE__ */ (0, import_jsx_runtime303.jsxs)("div", { className: "lib-xplat-range-datepicker-from", children: [
|
|
1620
1688
|
/* @__PURE__ */ (0, import_jsx_runtime303.jsx)("span", { className: "lib-xplat-range-datepicker-label", children: "\uC2DC\uC791" }),
|
|
@@ -1624,7 +1692,9 @@ var RangePicker = (props) => {
|
|
|
1624
1692
|
value: startDate,
|
|
1625
1693
|
onChange: (date) => date != null && onChange?.({ startDate: date, endDate }),
|
|
1626
1694
|
minDate,
|
|
1627
|
-
maxDate: endDate
|
|
1695
|
+
maxDate: endDate,
|
|
1696
|
+
highlightDates: rangeDates,
|
|
1697
|
+
...colorProps
|
|
1628
1698
|
}
|
|
1629
1699
|
)
|
|
1630
1700
|
] }),
|
|
@@ -1636,7 +1706,9 @@ var RangePicker = (props) => {
|
|
|
1636
1706
|
value: endDate,
|
|
1637
1707
|
onChange: (date) => date != null && onChange?.({ startDate, endDate: date }),
|
|
1638
1708
|
minDate: startDate,
|
|
1639
|
-
maxDate
|
|
1709
|
+
maxDate,
|
|
1710
|
+
highlightDates: rangeDates,
|
|
1711
|
+
...colorProps
|
|
1640
1712
|
}
|
|
1641
1713
|
)
|
|
1642
1714
|
] })
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/* src/components/DatePicker/datepicker.scss */
|
|
77
|
+
.lib-xplat-datepicker {
|
|
78
|
+
user-select: none;
|
|
79
|
+
}
|
|
77
80
|
.lib-xplat-datepicker .react-datepicker {
|
|
78
81
|
border: 1px solid #D4D4D4;
|
|
79
82
|
border-radius: 0.375rem;
|
|
@@ -100,12 +103,27 @@
|
|
|
100
103
|
cursor: not-allowed;
|
|
101
104
|
pointer-events: none;
|
|
102
105
|
}
|
|
106
|
+
.lib-xplat-datepicker .react-datepicker__day--highlighted {
|
|
107
|
+
background-color: var(--datepicker-active-color, #4D6DE3) !important;
|
|
108
|
+
color: #FFFFFF !important;
|
|
109
|
+
opacity: 0.4;
|
|
110
|
+
}
|
|
111
|
+
.lib-xplat-datepicker .react-datepicker__day--highlighted.react-datepicker__day--selected,
|
|
112
|
+
.lib-xplat-datepicker .react-datepicker__day--highlighted.react-datepicker__day--keyboard-selected {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
.lib-xplat-datepicker .react-datepicker__day--highlighted.react-datepicker__day--outside-month {
|
|
116
|
+
opacity: 0.25;
|
|
117
|
+
}
|
|
103
118
|
.lib-xplat-datepicker .react-datepicker__day--selected,
|
|
104
119
|
.lib-xplat-datepicker .react-datepicker__day--keyboard-selected {
|
|
105
|
-
background-color: #4D6DE3;
|
|
120
|
+
background-color: var(--datepicker-active-color, #4D6DE3);
|
|
121
|
+
color: #FFFFFF;
|
|
106
122
|
}
|
|
107
123
|
.lib-xplat-datepicker .react-datepicker__day:not(.react-datepicker__day--disabled):hover {
|
|
108
|
-
background-color: #
|
|
124
|
+
background-color: var(--datepicker-active-color, #4D6DE3);
|
|
125
|
+
color: #FFFFFF !important;
|
|
126
|
+
opacity: 0.8;
|
|
109
127
|
}
|
|
110
128
|
.lib-xplat-popup-datepicker-card {
|
|
111
129
|
min-width: 20rem;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { C as ColorNamespace, a as ColorName, d as ColorProps } from '../../colors-BG91q_uV.cjs';
|
|
2
4
|
|
|
3
5
|
interface InputDatePickerProps {
|
|
4
6
|
value: Date;
|
|
@@ -33,7 +35,7 @@ interface PopupPickerBaseProps {
|
|
|
33
35
|
type PopupPickerProps = PopupPickerBaseProps & (SinglePickerProps | RangePickerProps$1);
|
|
34
36
|
declare const PopupPicker: React.FC<PopupPickerProps>;
|
|
35
37
|
|
|
36
|
-
interface RangePickerProps {
|
|
38
|
+
interface RangePickerProps<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>> extends Partial<ColorProps<N, C>> {
|
|
37
39
|
startDate: Date;
|
|
38
40
|
endDate: Date;
|
|
39
41
|
onChange?: (range: {
|
|
@@ -43,14 +45,253 @@ interface RangePickerProps {
|
|
|
43
45
|
minDate?: Date;
|
|
44
46
|
maxDate?: Date;
|
|
45
47
|
}
|
|
46
|
-
declare const RangePicker:
|
|
48
|
+
declare const RangePicker: {
|
|
49
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof {
|
|
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]>(props: RangePickerProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
166
|
+
displayName: string;
|
|
167
|
+
};
|
|
47
168
|
|
|
48
|
-
interface SingleDatePickerProps {
|
|
169
|
+
interface SingleDatePickerProps<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>> extends Partial<ColorProps<N, C>> {
|
|
49
170
|
value: Date | null;
|
|
50
171
|
onChange?: (date: Date | null) => void;
|
|
51
172
|
minDate?: Date;
|
|
52
173
|
maxDate?: Date;
|
|
174
|
+
highlightDates?: Date[];
|
|
53
175
|
}
|
|
54
|
-
declare const SingleDatePicker:
|
|
176
|
+
declare const SingleDatePicker: {
|
|
177
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = keyof {
|
|
178
|
+
readonly xplat: {
|
|
179
|
+
readonly red: {
|
|
180
|
+
readonly 50: "#FFF0F0";
|
|
181
|
+
readonly 100: "#FFDDDE";
|
|
182
|
+
readonly 200: "#FFC1C2";
|
|
183
|
+
readonly 300: "#FF9698";
|
|
184
|
+
readonly 400: "#FF5A5D";
|
|
185
|
+
readonly 500: "#FF272B";
|
|
186
|
+
readonly 600: "#F80409";
|
|
187
|
+
readonly 700: "#D40105";
|
|
188
|
+
readonly 800: "#AE0609";
|
|
189
|
+
readonly 900: "#900C0F";
|
|
190
|
+
};
|
|
191
|
+
readonly green: {
|
|
192
|
+
readonly 50: "#E5F6EA";
|
|
193
|
+
readonly 100: "#C1E7CC";
|
|
194
|
+
readonly 200: "#98D8AC";
|
|
195
|
+
readonly 300: "#6CCA8B";
|
|
196
|
+
readonly 400: "#47BE72";
|
|
197
|
+
readonly 500: "#10B259";
|
|
198
|
+
readonly 600: "#00A34F";
|
|
199
|
+
readonly 700: "#009143";
|
|
200
|
+
readonly 800: "#007F38";
|
|
201
|
+
readonly 900: "#006024";
|
|
202
|
+
};
|
|
203
|
+
readonly orange: {
|
|
204
|
+
readonly 50: "#FFF8EC";
|
|
205
|
+
readonly 100: "#FFF0D3";
|
|
206
|
+
readonly 200: "#FFDDA5";
|
|
207
|
+
readonly 300: "#FFC46D";
|
|
208
|
+
readonly 400: "#FF9F32";
|
|
209
|
+
readonly 500: "#FF820A";
|
|
210
|
+
readonly 600: "#FF6900";
|
|
211
|
+
readonly 700: "#CC4B02";
|
|
212
|
+
readonly 800: "#A13A0B";
|
|
213
|
+
readonly 900: "#82320C";
|
|
214
|
+
};
|
|
215
|
+
readonly yellow: {
|
|
216
|
+
readonly 50: "#FFFDE7";
|
|
217
|
+
readonly 100: "#FFFAC1";
|
|
218
|
+
readonly 200: "#FFF186";
|
|
219
|
+
readonly 300: "#FFE041";
|
|
220
|
+
readonly 400: "#FFCC0D";
|
|
221
|
+
readonly 500: "#F0B100";
|
|
222
|
+
readonly 600: "#D18800";
|
|
223
|
+
readonly 700: "#A66002";
|
|
224
|
+
readonly 800: "#894B0A";
|
|
225
|
+
readonly 900: "#743D0F";
|
|
226
|
+
};
|
|
227
|
+
readonly blue: {
|
|
228
|
+
readonly 50: "#F1F4FD";
|
|
229
|
+
readonly 100: "#DFE7FA";
|
|
230
|
+
readonly 200: "#C5D4F8";
|
|
231
|
+
readonly 300: "#9EB8F2";
|
|
232
|
+
readonly 400: "#7093EA";
|
|
233
|
+
readonly 500: "#4D6DE3";
|
|
234
|
+
readonly 600: "#3950D7";
|
|
235
|
+
readonly 700: "#303EC5";
|
|
236
|
+
readonly 800: "#2D35A0";
|
|
237
|
+
readonly 900: "#29317F";
|
|
238
|
+
};
|
|
239
|
+
readonly lightblue: {
|
|
240
|
+
readonly 50: "#EEFAFF";
|
|
241
|
+
readonly 100: "#D9F4FF";
|
|
242
|
+
readonly 200: "#BBEDFF";
|
|
243
|
+
readonly 300: "#8DE3FF";
|
|
244
|
+
readonly 400: "#57D0FF";
|
|
245
|
+
readonly 500: "#30B6FF";
|
|
246
|
+
readonly 600: "#1999F7";
|
|
247
|
+
readonly 700: "#1280E3";
|
|
248
|
+
readonly 800: "#1566B8";
|
|
249
|
+
readonly 900: "#175791";
|
|
250
|
+
};
|
|
251
|
+
readonly purple: {
|
|
252
|
+
readonly 50: "#FBF6FE";
|
|
253
|
+
readonly 100: "#F5EAFD";
|
|
254
|
+
readonly 200: "#EDD8FC";
|
|
255
|
+
readonly 300: "#E0BAF8";
|
|
256
|
+
readonly 400: "#CD8DF3";
|
|
257
|
+
readonly 500: "#B961EB";
|
|
258
|
+
readonly 600: "#A541DC";
|
|
259
|
+
readonly 700: "#9230C5";
|
|
260
|
+
readonly 800: "#782B9E";
|
|
261
|
+
readonly 900: "#62247F";
|
|
262
|
+
};
|
|
263
|
+
readonly pink: {
|
|
264
|
+
readonly 50: "#FFF4FE";
|
|
265
|
+
readonly 100: "#FFE7FD";
|
|
266
|
+
readonly 200: "#FFCFFA";
|
|
267
|
+
readonly 300: "#FEA9F1";
|
|
268
|
+
readonly 400: "#FD75E7";
|
|
269
|
+
readonly 500: "#F553DA";
|
|
270
|
+
readonly 600: "#D821B6";
|
|
271
|
+
readonly 700: "#B31892";
|
|
272
|
+
readonly 800: "#921676";
|
|
273
|
+
readonly 900: "#781761";
|
|
274
|
+
};
|
|
275
|
+
readonly neutral: {
|
|
276
|
+
readonly 50: "#FAFAFA";
|
|
277
|
+
readonly 100: "#F5F5F5";
|
|
278
|
+
readonly 200: "#E5E5E5";
|
|
279
|
+
readonly 300: "#D4D4D4";
|
|
280
|
+
readonly 400: "#A1A1A1";
|
|
281
|
+
readonly 500: "#737373";
|
|
282
|
+
readonly 600: "#525252";
|
|
283
|
+
readonly 700: "#404040";
|
|
284
|
+
readonly 800: "#262626";
|
|
285
|
+
readonly 900: "#171717";
|
|
286
|
+
};
|
|
287
|
+
readonly black: "#000000";
|
|
288
|
+
readonly white: "#FFFFFF";
|
|
289
|
+
};
|
|
290
|
+
readonly test: {
|
|
291
|
+
readonly default: "#ffffff";
|
|
292
|
+
};
|
|
293
|
+
}[N]>(props: SingleDatePickerProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
294
|
+
displayName: string;
|
|
295
|
+
};
|
|
55
296
|
|
|
56
297
|
export { InputDatePicker, PopupPicker as PopupDatePicker, RangePicker as RangeDatePicker, SingleDatePicker };
|