@x-plat/design-system 0.1.5 → 0.2.0
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/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 +5 -3
- package/dist/components/DatePicker/index.css +62 -1239
- package/dist/components/DatePicker/index.d.cts +3 -235
- package/dist/components/DatePicker/index.d.ts +3 -235
- package/dist/components/DatePicker/index.js +5 -3
- 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/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 +441 -347
- package/dist/components/index.css +1278 -12638
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +439 -346
- package/dist/index.cjs +466 -371
- package/dist/index.css +1281 -12641
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +466 -370
- 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 +12 -12
- package/README.md +0 -123
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
position: absolute;
|
|
11
11
|
z-index: 100;
|
|
12
12
|
min-width: 160px;
|
|
13
|
-
background:
|
|
14
|
-
border: 1px solid
|
|
13
|
+
background: var(--xplat-white);
|
|
14
|
+
border: 1px solid var(--xplat-neutral-200);
|
|
15
15
|
border-radius: 0.5rem;
|
|
16
16
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
17
17
|
padding: 4px 0;
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
border: none;
|
|
35
35
|
background: none;
|
|
36
36
|
font-size: 14px;
|
|
37
|
-
color:
|
|
37
|
+
color: var(--xplat-neutral-800);
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
text-align: left;
|
|
40
40
|
transition: background-color 0.15s;
|
|
41
41
|
}
|
|
42
42
|
.lib-xplat-dropdown .dropdown-item:hover:not(:disabled) {
|
|
43
|
-
background-color:
|
|
43
|
+
background-color: var(--xplat-neutral-50);
|
|
44
44
|
}
|
|
45
45
|
.lib-xplat-dropdown .dropdown-item.danger {
|
|
46
|
-
color:
|
|
46
|
+
color: var(--xplat-red-600);
|
|
47
47
|
}
|
|
48
48
|
.lib-xplat-dropdown .dropdown-item.danger:hover:not(:disabled) {
|
|
49
|
-
background-color:
|
|
49
|
+
background-color: var(--xplat-red-50);
|
|
50
50
|
}
|
|
51
51
|
.lib-xplat-dropdown .dropdown-item:disabled {
|
|
52
|
-
color:
|
|
52
|
+
color: var(--xplat-neutral-400);
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
@@ -64,7 +64,7 @@ var useClickOutside = (refs, handler, enabled = true) => {
|
|
|
64
64
|
};
|
|
65
65
|
var useClickOutside_default = useClickOutside;
|
|
66
66
|
|
|
67
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
67
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
68
68
|
function r(e) {
|
|
69
69
|
var t, f, n = "";
|
|
70
70
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -24,7 +24,7 @@ __export(EmptyState_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(EmptyState_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;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
text-align: center;
|
|
9
9
|
}
|
|
10
10
|
.lib-xplat-empty-state .empty-icon {
|
|
11
|
-
color:
|
|
11
|
+
color: var(--xplat-neutral-300);
|
|
12
12
|
margin-bottom: 1rem;
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-empty-state .empty-icon svg {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
.lib-xplat-empty-state .empty-title {
|
|
19
19
|
font-size: 15px;
|
|
20
20
|
font-weight: 500;
|
|
21
|
-
color:
|
|
21
|
+
color: var(--xplat-neutral-600);
|
|
22
22
|
margin: 0;
|
|
23
23
|
}
|
|
24
24
|
.lib-xplat-empty-state .empty-description {
|
|
25
25
|
font-size: 13px;
|
|
26
|
-
color:
|
|
26
|
+
color: var(--xplat-neutral-400);
|
|
27
27
|
margin: 0.375rem 0 0;
|
|
28
28
|
max-width: 320px;
|
|
29
29
|
}
|
|
@@ -946,7 +946,7 @@ var import_jsx_runtime293 = require("react/jsx-runtime");
|
|
|
946
946
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
947
947
|
var import_jsx_runtime294 = require("react/jsx-runtime");
|
|
948
948
|
|
|
949
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
949
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
950
950
|
function r(e) {
|
|
951
951
|
var t, f, n = "";
|
|
952
952
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
padding: 2rem 1.5rem;
|
|
8
|
-
border: 2px dashed
|
|
8
|
+
border: 2px dashed var(--xplat-neutral-300);
|
|
9
9
|
border-radius: 0.5rem;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
transition: border-color 0.2s, background-color 0.2s;
|
|
12
12
|
}
|
|
13
13
|
.lib-xplat-file-upload:hover {
|
|
14
|
-
border-color:
|
|
15
|
-
background-color:
|
|
14
|
+
border-color: var(--xplat-blue-400);
|
|
15
|
+
background-color: var(--xplat-blue-50);
|
|
16
16
|
}
|
|
17
17
|
.lib-xplat-file-upload.drag-over {
|
|
18
|
-
border-color:
|
|
19
|
-
background-color:
|
|
18
|
+
border-color: var(--xplat-blue-500);
|
|
19
|
+
background-color: var(--xplat-blue-50);
|
|
20
20
|
}
|
|
21
21
|
.lib-xplat-file-upload input[type=file] {
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
.lib-xplat-file-upload .upload-icon {
|
|
25
|
-
color:
|
|
25
|
+
color: var(--xplat-neutral-400);
|
|
26
26
|
margin-bottom: 0.75rem;
|
|
27
27
|
}
|
|
28
28
|
.lib-xplat-file-upload .upload-icon svg {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
.lib-xplat-file-upload .upload-label {
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
font-weight: 500;
|
|
35
|
-
color:
|
|
35
|
+
color: var(--xplat-neutral-600);
|
|
36
36
|
margin: 0;
|
|
37
37
|
}
|
|
38
38
|
.lib-xplat-file-upload .upload-description {
|
|
39
39
|
font-size: 12px;
|
|
40
|
-
color:
|
|
40
|
+
color: var(--xplat-neutral-400);
|
|
41
41
|
margin: 0.25rem 0 0;
|
|
42
42
|
}
|
|
@@ -910,7 +910,7 @@ import { jsx as jsx293, jsxs as jsxs188 } from "react/jsx-runtime";
|
|
|
910
910
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
911
911
|
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
912
912
|
|
|
913
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
913
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
914
914
|
function r(e) {
|
|
915
915
|
var t, f, n = "";
|
|
916
916
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
position: relative;
|
|
9
|
-
background-color:
|
|
9
|
+
background-color: var(--xplat-white);
|
|
10
10
|
border-radius: 0.25rem;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
display: none;
|
|
15
15
|
}
|
|
16
16
|
.lib-xplat-imageselector.none-value {
|
|
17
|
-
border: 1px dashed
|
|
17
|
+
border: 1px dashed var(--xplat-neutral-500);
|
|
18
18
|
}
|
|
19
19
|
.lib-xplat-imageselector:hover {
|
|
20
|
-
background-color:
|
|
20
|
+
background-color: var(--xplat-neutral-200);
|
|
21
21
|
}
|
|
22
22
|
.lib-xplat-imageselector:hover > .action-bar {
|
|
23
23
|
opacity: 1;
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
}
|
|
48
48
|
.lib-xplat-imageselector > .content .skeleton > .icon-wrapper {
|
|
49
|
-
color:
|
|
49
|
+
color: var(--xplat-neutral-400);
|
|
50
50
|
}
|
|
51
51
|
.lib-xplat-imageselector > .content .skeleton > .label {
|
|
52
52
|
margin-top: 0.25rem;
|
|
53
53
|
font-size: 0.875rem;
|
|
54
|
-
color:
|
|
54
|
+
color: var(--xplat-neutral-400);
|
|
55
55
|
}
|
|
56
56
|
.lib-xplat-imageselector > .content .skeleton:hover > .icon-wrapper {
|
|
57
|
-
color:
|
|
57
|
+
color: var(--xplat-neutral-500);
|
|
58
58
|
}
|
|
59
59
|
.lib-xplat-imageselector > .content .skeleton:hover > .label {
|
|
60
|
-
color:
|
|
60
|
+
color: var(--xplat-neutral-500);
|
|
61
61
|
}
|
|
62
62
|
.lib-xplat-imageselector > .action-bar {
|
|
63
63
|
position: absolute;
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
display: flex;
|
|
68
68
|
gap: 0.5em;
|
|
69
69
|
font-size: 24px;
|
|
70
|
-
background-color:
|
|
70
|
+
background-color: var(--xplat-neutral-900);
|
|
71
71
|
padding: 0.25rem 0.75rem;
|
|
72
72
|
align-items: center;
|
|
73
73
|
opacity: 0;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
border-radius: 4px;
|
|
76
76
|
}
|
|
77
77
|
.lib-xplat-imageselector > .action-bar > .icon-wrapper {
|
|
78
|
-
color:
|
|
78
|
+
color: var(--xplat-white);
|
|
79
79
|
}
|
|
80
80
|
.lib-xplat-imageselector .icon-wrapper {
|
|
81
81
|
display: flex;
|
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(Input_exports);
|
|
|
38
38
|
// src/components/Input/Input.tsx
|
|
39
39
|
var import_react = __toESM(require("react"), 1);
|
|
40
40
|
|
|
41
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
41
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
42
42
|
function r(e) {
|
|
43
43
|
var t, f, n = "";
|
|
44
44
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -258,6 +258,7 @@ var Input = import_react.default.forwardRef((props, ref) => {
|
|
|
258
258
|
value,
|
|
259
259
|
onChange,
|
|
260
260
|
type = "text",
|
|
261
|
+
size = "md",
|
|
261
262
|
suffix,
|
|
262
263
|
className,
|
|
263
264
|
disabled,
|
|
@@ -283,7 +284,7 @@ var Input = import_react.default.forwardRef((props, ref) => {
|
|
|
283
284
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
284
285
|
"div",
|
|
285
286
|
{
|
|
286
|
-
className: clsx_default("lib-xplat-input", disabled ? "disabled" : void 0),
|
|
287
|
+
className: clsx_default("lib-xplat-input", size, disabled ? "disabled" : void 0),
|
|
287
288
|
children: [
|
|
288
289
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
289
290
|
"input",
|
|
@@ -7,16 +7,27 @@
|
|
|
7
7
|
.lib-xplat-input-wrap .lib-xplat-input {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid var(--xplat-neutral-300);
|
|
11
11
|
border-radius: 0.5rem;
|
|
12
|
-
height: 2.5rem;
|
|
13
12
|
overflow: hidden;
|
|
14
|
-
background-color:
|
|
13
|
+
background-color: var(--xplat-white);
|
|
15
14
|
padding-right: 0.5rem;
|
|
16
15
|
width: 100%;
|
|
17
16
|
}
|
|
17
|
+
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
18
|
+
height: 2rem;
|
|
19
|
+
font-size: 0.875rem;
|
|
20
|
+
}
|
|
21
|
+
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
22
|
+
height: 2.5rem;
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
}
|
|
25
|
+
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
26
|
+
height: 3rem;
|
|
27
|
+
font-size: 1.125rem;
|
|
28
|
+
}
|
|
18
29
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
19
|
-
background-color:
|
|
30
|
+
background-color: var(--xplat-neutral-100);
|
|
20
31
|
cursor: not-allowed;
|
|
21
32
|
}
|
|
22
33
|
.lib-xplat-input-wrap .lib-xplat-input > input {
|
|
@@ -26,7 +37,7 @@
|
|
|
26
37
|
padding-left: 1rem;
|
|
27
38
|
padding-right: 0.5rem;
|
|
28
39
|
width: 100%;
|
|
29
|
-
color:
|
|
40
|
+
color: var(--xplat-neutral-700);
|
|
30
41
|
}
|
|
31
42
|
.lib-xplat-input-wrap .lib-xplat-input > input :disabled {
|
|
32
43
|
cursor: not-allowed;
|
|
@@ -36,7 +47,7 @@
|
|
|
36
47
|
align-items: center;
|
|
37
48
|
justify-content: center;
|
|
38
49
|
height: 100%;
|
|
39
|
-
color:
|
|
50
|
+
color: var(--xplat-neutral-400);
|
|
40
51
|
padding-right: 0.5rem;
|
|
41
52
|
}
|
|
42
53
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper {
|
|
@@ -58,16 +69,16 @@
|
|
|
58
69
|
user-select: none;
|
|
59
70
|
}
|
|
60
71
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
61
|
-
color:
|
|
72
|
+
color: var(--xplat-neutral-400);
|
|
62
73
|
}
|
|
63
74
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
64
|
-
color:
|
|
75
|
+
color: var(--xplat-green-600);
|
|
65
76
|
}
|
|
66
77
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
|
|
67
|
-
color:
|
|
78
|
+
color: var(--xplat-yellow-600);
|
|
68
79
|
}
|
|
69
80
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
|
|
70
|
-
color:
|
|
81
|
+
color: var(--xplat-red-600);
|
|
71
82
|
}
|
|
72
83
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
73
84
|
font-size: 1rem;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { I as InputAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type InputSize$1 = "sm" | "md" | "lg";
|
|
5
|
+
interface InputProps extends Omit<InputAttributes, "size"> {
|
|
5
6
|
type?: "text" | "number" | "email" | "password" | "tel";
|
|
7
|
+
size?: InputSize$1;
|
|
6
8
|
validations?: {
|
|
7
9
|
status: "error" | "warning" | "success" | "default";
|
|
8
10
|
message: string;
|
|
@@ -11,11 +13,13 @@ interface InputProps extends InputAttributes {
|
|
|
11
13
|
}
|
|
12
14
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
type InputSize = "sm" | "md" | "lg";
|
|
17
|
+
interface PasswordInputProps extends Omit<InputAttributes, "size"> {
|
|
15
18
|
validations?: {
|
|
16
19
|
status: "error" | "warning" | "success" | "default";
|
|
17
20
|
message: string;
|
|
18
21
|
}[];
|
|
22
|
+
size?: InputSize;
|
|
19
23
|
reg?: RegExp;
|
|
20
24
|
}
|
|
21
25
|
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { I as InputAttributes } from '../../attributes-DJIWir_0.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type InputSize$1 = "sm" | "md" | "lg";
|
|
5
|
+
interface InputProps extends Omit<InputAttributes, "size"> {
|
|
5
6
|
type?: "text" | "number" | "email" | "password" | "tel";
|
|
7
|
+
size?: InputSize$1;
|
|
6
8
|
validations?: {
|
|
7
9
|
status: "error" | "warning" | "success" | "default";
|
|
8
10
|
message: string;
|
|
@@ -11,11 +13,13 @@ interface InputProps extends InputAttributes {
|
|
|
11
13
|
}
|
|
12
14
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
type InputSize = "sm" | "md" | "lg";
|
|
17
|
+
interface PasswordInputProps extends Omit<InputAttributes, "size"> {
|
|
15
18
|
validations?: {
|
|
16
19
|
status: "error" | "warning" | "success" | "default";
|
|
17
20
|
message: string;
|
|
18
21
|
}[];
|
|
22
|
+
size?: InputSize;
|
|
19
23
|
reg?: RegExp;
|
|
20
24
|
}
|
|
21
25
|
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/Input/Input.tsx
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
4
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
5
5
|
function r(e) {
|
|
6
6
|
var t, f, n = "";
|
|
7
7
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -221,6 +221,7 @@ var Input = React.forwardRef((props, ref) => {
|
|
|
221
221
|
value,
|
|
222
222
|
onChange,
|
|
223
223
|
type = "text",
|
|
224
|
+
size = "md",
|
|
224
225
|
suffix,
|
|
225
226
|
className,
|
|
226
227
|
disabled,
|
|
@@ -246,7 +247,7 @@ var Input = React.forwardRef((props, ref) => {
|
|
|
246
247
|
/* @__PURE__ */ jsxs4(
|
|
247
248
|
"div",
|
|
248
249
|
{
|
|
249
|
-
className: clsx_default("lib-xplat-input", disabled ? "disabled" : void 0),
|
|
250
|
+
className: clsx_default("lib-xplat-input", size, disabled ? "disabled" : void 0),
|
|
250
251
|
children: [
|
|
251
252
|
/* @__PURE__ */ jsx5(
|
|
252
253
|
"input",
|
|
@@ -38,7 +38,7 @@ module.exports = __toCommonJS(Modal_exports);
|
|
|
38
38
|
var import_react = __toESM(require("react"), 1);
|
|
39
39
|
var import_react_dom = require("react-dom");
|
|
40
40
|
|
|
41
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
41
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
42
42
|
function r(e) {
|
|
43
43
|
var t, f, n = "";
|
|
44
44
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -1057,7 +1057,7 @@ var import_jsx_runtime293 = require("react/jsx-runtime");
|
|
|
1057
1057
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
1058
1058
|
var import_jsx_runtime294 = require("react/jsx-runtime");
|
|
1059
1059
|
|
|
1060
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
1060
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
1061
1061
|
function r(e) {
|
|
1062
1062
|
var t, f, n = "";
|
|
1063
1063
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -1107,6 +1107,7 @@ var Pagination = (props) => {
|
|
|
1107
1107
|
pageSize = 10,
|
|
1108
1108
|
siblingCount = 1,
|
|
1109
1109
|
onChange,
|
|
1110
|
+
size = "md",
|
|
1110
1111
|
colorNamespace = "xplat",
|
|
1111
1112
|
color = "blue",
|
|
1112
1113
|
colorDepth,
|
|
@@ -1124,7 +1125,7 @@ var Pagination = (props) => {
|
|
|
1124
1125
|
onChange?.(page);
|
|
1125
1126
|
}
|
|
1126
1127
|
};
|
|
1127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("nav", { className: clsx_default("lib-xplat-pagination", className), "aria-label": "\uD398\uC774\uC9C0 \uB124\uBE44\uAC8C\uC774\uC158", children: [
|
|
1128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("nav", { className: clsx_default("lib-xplat-pagination", size, className), "aria-label": "\uD398\uC774\uC9C0 \uB124\uBE44\uAC8C\uC774\uC158", children: [
|
|
1128
1129
|
/* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
|
|
1129
1130
|
"button",
|
|
1130
1131
|
{
|