@x-plat/design-system 0.4.5 → 0.5.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/components/Accordion/index.cjs +294 -294
- package/dist/components/Accordion/index.css +11 -11
- package/dist/components/Accordion/index.d.cts +0 -1
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/index.js +491 -491
- package/dist/components/Alert/index.cjs +2 -2
- package/dist/components/Alert/index.css +19 -19
- package/dist/components/Alert/index.d.cts +0 -1
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/Avatar/index.cjs +11 -6
- package/dist/components/Avatar/index.css +41 -11
- package/dist/components/Avatar/index.d.cts +1 -3
- package/dist/components/Avatar/index.d.ts +1 -3
- package/dist/components/Avatar/index.js +11 -6
- package/dist/components/Badge/index.cjs +4 -6
- package/dist/components/Badge/index.css +32 -19
- package/dist/components/Badge/index.d.cts +3 -3
- package/dist/components/Badge/index.d.ts +3 -3
- package/dist/components/Badge/index.js +4 -6
- package/dist/components/Breadcrumb/index.cjs +2 -18
- package/dist/components/Breadcrumb/index.css +6 -6
- package/dist/components/Breadcrumb/index.d.cts +0 -1
- package/dist/components/Breadcrumb/index.d.ts +0 -1
- package/dist/components/Breadcrumb/index.js +2 -18
- package/dist/components/Button/index.cjs +1 -4
- package/dist/components/Button/index.css +67 -23
- package/dist/components/Button/index.d.cts +2 -3
- package/dist/components/Button/index.d.ts +2 -3
- package/dist/components/Button/index.js +1 -4
- package/dist/components/Calendar/index.cjs +306 -307
- package/dist/components/Calendar/index.css +51 -52
- package/dist/components/Calendar/index.d.cts +3 -4
- package/dist/components/Calendar/index.d.ts +3 -4
- package/dist/components/Calendar/index.js +503 -504
- package/dist/components/Card/index.cjs +2 -18
- package/dist/components/Card/index.css +6 -6
- package/dist/components/Card/index.d.cts +0 -4
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/index.js +2 -18
- package/dist/components/CardTab/index.cjs +4 -5
- package/dist/components/CardTab/index.css +28 -28
- package/dist/components/CardTab/index.d.cts +0 -2
- package/dist/components/CardTab/index.d.ts +0 -2
- package/dist/components/CardTab/index.js +4 -5
- package/dist/components/Chart/index.cjs +228 -14548
- package/dist/components/Chart/index.css +57 -0
- package/dist/components/Chart/index.d.cts +3 -2
- package/dist/components/Chart/index.d.ts +3 -2
- package/dist/components/Chart/index.js +219 -14541
- package/dist/components/CheckBox/index.cjs +301 -297
- package/dist/components/CheckBox/index.css +50 -27
- package/dist/components/CheckBox/index.d.cts +3 -3
- package/dist/components/CheckBox/index.d.ts +3 -3
- package/dist/components/CheckBox/index.js +486 -482
- package/dist/components/Chip/index.cjs +2 -5
- package/dist/components/Chip/index.css +35 -23
- package/dist/components/Chip/index.d.cts +2 -4
- package/dist/components/Chip/index.d.ts +2 -4
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/DatePicker/index.cjs +348 -359
- package/dist/components/DatePicker/index.css +175 -122
- package/dist/components/DatePicker/index.d.cts +2 -3
- package/dist/components/DatePicker/index.d.ts +2 -3
- package/dist/components/DatePicker/index.js +525 -536
- package/dist/components/Divider/index.cjs +2 -2
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Divider/index.d.cts +0 -1
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/index.css +7 -7
- package/dist/components/Dropdown/index.cjs +2 -2
- package/dist/components/Dropdown/index.css +10 -10
- package/dist/components/Dropdown/index.d.cts +0 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/EmptyState/index.cjs +2 -18
- package/dist/components/EmptyState/index.css +8 -9
- package/dist/components/EmptyState/index.d.cts +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -1
- package/dist/components/EmptyState/index.js +2 -18
- package/dist/components/FileUpload/index.cjs +280 -281
- package/dist/components/FileUpload/index.css +13 -14
- package/dist/components/FileUpload/index.d.cts +0 -1
- package/dist/components/FileUpload/index.d.ts +0 -1
- package/dist/components/FileUpload/index.js +476 -477
- package/dist/components/HtmlTypeWriter/index.cjs +10 -10
- package/dist/components/HtmlTypeWriter/index.css +3 -3
- package/dist/components/HtmlTypeWriter/index.js +10 -10
- package/dist/components/ImageSelector/index.cjs +309 -309
- package/dist/components/ImageSelector/index.css +15 -15
- package/dist/components/ImageSelector/index.js +477 -477
- package/dist/components/Input/index.cjs +6 -7
- package/dist/components/Input/index.css +37 -26
- package/dist/components/Input/index.d.cts +2 -2
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +6 -7
- package/dist/components/Modal/index.css +5 -4
- package/dist/components/Pagination/index.cjs +303 -305
- package/dist/components/Pagination/index.css +37 -26
- package/dist/components/Pagination/index.d.cts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.js +500 -502
- package/dist/components/PopOver/index.css +3 -3
- package/dist/components/Progress/index.cjs +4 -6
- package/dist/components/Progress/index.css +23 -9
- package/dist/components/Progress/index.d.cts +3 -3
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/index.js +4 -6
- package/dist/components/Radio/index.cjs +4 -7
- package/dist/components/Radio/index.css +61 -29
- package/dist/components/Radio/index.d.cts +3 -3
- package/dist/components/Radio/index.d.ts +3 -3
- package/dist/components/Radio/index.js +4 -7
- package/dist/components/Select/index.cjs +294 -294
- package/dist/components/Select/index.css +46 -40
- package/dist/components/Select/index.d.cts +0 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +491 -491
- package/dist/components/Skeleton/index.cjs +2 -2
- package/dist/components/Skeleton/index.css +3 -3
- package/dist/components/Skeleton/index.d.cts +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -1
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Spinner/index.cjs +2 -4
- package/dist/components/Spinner/index.css +22 -8
- package/dist/components/Spinner/index.d.cts +3 -3
- package/dist/components/Spinner/index.d.ts +3 -3
- package/dist/components/Spinner/index.js +2 -4
- package/dist/components/Steps/index.cjs +296 -298
- package/dist/components/Steps/index.css +77 -22
- package/dist/components/Steps/index.d.cts +3 -3
- package/dist/components/Steps/index.d.ts +3 -3
- package/dist/components/Steps/index.js +481 -483
- package/dist/components/Swiper/index.cjs +2 -3
- package/dist/components/Swiper/index.css +10 -10
- package/dist/components/Swiper/index.d.cts +0 -1
- package/dist/components/Swiper/index.d.ts +0 -1
- package/dist/components/Swiper/index.js +2 -3
- package/dist/components/Switch/index.cjs +4 -7
- package/dist/components/Switch/index.css +58 -26
- package/dist/components/Switch/index.d.cts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/index.js +4 -7
- package/dist/components/Tab/index.css +15 -15
- package/dist/components/Table/index.cjs +22 -31
- package/dist/components/Table/index.css +15 -15
- package/dist/components/Table/index.d.cts +2 -8
- package/dist/components/Table/index.d.ts +2 -8
- package/dist/components/Table/index.js +22 -31
- package/dist/components/Tag/index.cjs +305 -293
- package/dist/components/Tag/index.css +58 -17
- package/dist/components/Tag/index.d.cts +5 -3
- package/dist/components/Tag/index.d.ts +5 -3
- package/dist/components/Tag/index.js +492 -480
- package/dist/components/TextArea/index.cjs +2 -2
- package/dist/components/TextArea/index.css +20 -9
- package/dist/components/TextArea/index.d.cts +2 -1
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/Toast/index.css +22 -22
- package/dist/components/Tooltip/index.cjs +1 -3
- package/dist/components/Tooltip/index.css +6 -6
- package/dist/components/Tooltip/index.d.cts +1 -2
- package/dist/components/Tooltip/index.d.ts +1 -2
- package/dist/components/Tooltip/index.js +1 -3
- package/dist/components/Video/index.cjs +1 -3
- package/dist/components/Video/index.css +5 -5
- package/dist/components/Video/index.d.cts +0 -2
- package/dist/components/Video/index.d.ts +0 -2
- package/dist/components/Video/index.js +1 -3
- package/dist/components/index.cjs +1604 -15950
- package/dist/components/index.css +2167 -1061
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1478 -15826
- package/dist/index.cjs +2941 -17269
- package/dist/index.css +2164 -1058
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2837 -17169
- package/dist/layout/Grid/FullGrid/index.cjs +9 -18
- package/dist/layout/Grid/FullGrid/index.d.cts +1 -1
- package/dist/layout/Grid/FullGrid/index.d.ts +1 -1
- package/dist/layout/Grid/FullGrid/index.js +9 -18
- package/dist/layout/Grid/FullScreen/index.cjs +9 -18
- package/dist/layout/Grid/FullScreen/index.d.cts +3 -3
- package/dist/layout/Grid/FullScreen/index.d.ts +3 -3
- package/dist/layout/Grid/FullScreen/index.js +9 -18
- package/dist/layout/Grid/index.cjs +34 -20
- package/dist/layout/Grid/index.js +34 -20
- package/dist/layout/index.cjs +34 -20
- package/dist/layout/index.css +1000 -295
- package/dist/layout/index.js +34 -20
- package/dist/tokens/index.cjs +1861 -1970
- package/dist/tokens/index.d.cts +209 -192
- package/dist/tokens/index.d.ts +209 -192
- package/dist/tokens/index.js +2048 -2159
- package/package.json +2 -4
- package/dist/colors-CY4JXVHj.d.cts +0 -137
- package/dist/colors-CY4JXVHj.d.ts +0 -137
- package/dist/layout/Grid/GapGrid/index.cjs +0 -32
- package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
- package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
- package/dist/layout/Grid/GapGrid/index.js +0 -11
|
@@ -54,7 +54,7 @@ function clsx() {
|
|
|
54
54
|
}
|
|
55
55
|
var clsx_default = clsx;
|
|
56
56
|
|
|
57
|
-
// src/tokens/svg/
|
|
57
|
+
// src/tokens/svg/status/ErrorIcon.tsx
|
|
58
58
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
59
|
var ErrorIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
60
60
|
"svg",
|
|
@@ -89,7 +89,7 @@ var ErrorIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
|
89
89
|
);
|
|
90
90
|
var ErrorIcon_default = ErrorIcon;
|
|
91
91
|
|
|
92
|
-
// src/tokens/svg/
|
|
92
|
+
// src/tokens/svg/status/InfoIcon.tsx
|
|
93
93
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
94
94
|
var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
95
95
|
"svg",
|
|
@@ -131,7 +131,7 @@ var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
|
131
131
|
);
|
|
132
132
|
var InfoIcon_default = InfoIcon;
|
|
133
133
|
|
|
134
|
-
// src/tokens/svg/
|
|
134
|
+
// src/tokens/svg/status/SuccessIcon.tsx
|
|
135
135
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
136
136
|
var SuccessIcon = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
137
137
|
"svg",
|
|
@@ -260,7 +260,6 @@ var Input = import_react.default.forwardRef((props, ref) => {
|
|
|
260
260
|
type = "text",
|
|
261
261
|
size = "md",
|
|
262
262
|
suffix,
|
|
263
|
-
className,
|
|
264
263
|
disabled,
|
|
265
264
|
validations,
|
|
266
265
|
...inputProps
|
|
@@ -280,7 +279,7 @@ var Input = import_react.default.forwardRef((props, ref) => {
|
|
|
280
279
|
onChange(event);
|
|
281
280
|
}
|
|
282
281
|
};
|
|
283
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className:
|
|
282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "lib-xplat-input-wrap", children: [
|
|
284
283
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
285
284
|
"div",
|
|
286
285
|
{
|
|
@@ -316,7 +315,7 @@ var Input_default = Input;
|
|
|
316
315
|
// src/components/Input/PasswordInput/PasswordInput.tsx
|
|
317
316
|
var import_react3 = __toESM(require("react"), 1);
|
|
318
317
|
|
|
319
|
-
// src/tokens/svg/
|
|
318
|
+
// src/tokens/svg/form/CloseEyeIcon.tsx
|
|
320
319
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
321
320
|
var CloseEyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
322
321
|
"svg",
|
|
@@ -348,7 +347,7 @@ var CloseEyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
|
348
347
|
);
|
|
349
348
|
var CloseEyeIcon_default = CloseEyeIcon;
|
|
350
349
|
|
|
351
|
-
// src/tokens/svg/
|
|
350
|
+
// src/tokens/svg/form/OpenEyeIcon.tsx
|
|
352
351
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
353
352
|
var OpenEyeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
354
353
|
"svg",
|
|
@@ -2,42 +2,53 @@
|
|
|
2
2
|
.lib-xplat-input-wrap {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
gap:
|
|
5
|
+
gap: var(--spacing-space-2);
|
|
6
6
|
}
|
|
7
7
|
.lib-xplat-input-wrap .lib-xplat-input {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border: 1px solid var(--
|
|
11
|
-
border-radius:
|
|
10
|
+
border: 1px solid var(--semantic-border-default);
|
|
11
|
+
border-radius: var(--spacing-radius-md);
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
background-color: var(--
|
|
14
|
-
padding-right:
|
|
13
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
14
|
+
padding-right: var(--spacing-space-2);
|
|
15
15
|
width: 100%;
|
|
16
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
17
|
+
}
|
|
18
|
+
.lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
|
|
19
|
+
border-color: var(--semantic-border-strong);
|
|
20
|
+
}
|
|
21
|
+
.lib-xplat-input-wrap .lib-xplat-input:focus-within {
|
|
22
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
23
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
24
|
+
}
|
|
25
|
+
.lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
|
|
26
|
+
border-color: var(--semantic-border-strong);
|
|
16
27
|
}
|
|
17
28
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
18
|
-
height:
|
|
19
|
-
font-size:
|
|
29
|
+
height: var(--spacing-control-height-sm);
|
|
30
|
+
font-size: 14px;
|
|
20
31
|
}
|
|
21
32
|
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
22
|
-
height:
|
|
23
|
-
font-size:
|
|
33
|
+
height: var(--spacing-control-height-md);
|
|
34
|
+
font-size: 16px;
|
|
24
35
|
}
|
|
25
36
|
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
26
|
-
height:
|
|
27
|
-
font-size:
|
|
37
|
+
height: var(--spacing-control-height-lg);
|
|
38
|
+
font-size: 18px;
|
|
28
39
|
}
|
|
29
40
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
30
|
-
background-color: var(--
|
|
41
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
31
42
|
cursor: not-allowed;
|
|
32
43
|
}
|
|
33
44
|
.lib-xplat-input-wrap .lib-xplat-input > input {
|
|
34
45
|
border: none;
|
|
35
46
|
outline: none;
|
|
36
47
|
flex: 1;
|
|
37
|
-
padding-left:
|
|
38
|
-
padding-right:
|
|
48
|
+
padding-left: var(--spacing-space-4);
|
|
49
|
+
padding-right: var(--spacing-space-2);
|
|
39
50
|
width: 100%;
|
|
40
|
-
color: var(--
|
|
51
|
+
color: var(--semantic-text-subtle);
|
|
41
52
|
}
|
|
42
53
|
.lib-xplat-input-wrap .lib-xplat-input > input :disabled {
|
|
43
54
|
cursor: not-allowed;
|
|
@@ -47,8 +58,8 @@
|
|
|
47
58
|
align-items: center;
|
|
48
59
|
justify-content: center;
|
|
49
60
|
height: 100%;
|
|
50
|
-
color: var(--
|
|
51
|
-
padding-right:
|
|
61
|
+
color: var(--semantic-icon-subtle);
|
|
62
|
+
padding-right: var(--spacing-space-2);
|
|
52
63
|
}
|
|
53
64
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper {
|
|
54
65
|
font: 500;
|
|
@@ -58,28 +69,28 @@
|
|
|
58
69
|
}
|
|
59
70
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap {
|
|
60
71
|
display: flex;
|
|
61
|
-
gap:
|
|
62
|
-
margin-left:
|
|
72
|
+
gap: var(--spacing-space-2);
|
|
73
|
+
margin-left: var(--spacing-space-1);
|
|
63
74
|
}
|
|
64
75
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
65
76
|
display: flex;
|
|
66
|
-
gap:
|
|
67
|
-
font-size:
|
|
77
|
+
gap: var(--spacing-space-1);
|
|
78
|
+
font-size: 12px;
|
|
68
79
|
align-items: center;
|
|
69
80
|
user-select: none;
|
|
70
81
|
}
|
|
71
82
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
72
|
-
color: var(--
|
|
83
|
+
color: var(--semantic-icon-subtle);
|
|
73
84
|
}
|
|
74
85
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
75
|
-
color: var(--
|
|
86
|
+
color: var(--semantic-text-success);
|
|
76
87
|
}
|
|
77
88
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
|
|
78
|
-
color: var(--
|
|
89
|
+
color: var(--semantic-text-warning);
|
|
79
90
|
}
|
|
80
91
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
|
|
81
|
-
color: var(--
|
|
92
|
+
color: var(--semantic-text-error);
|
|
82
93
|
}
|
|
83
94
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
84
|
-
font-size:
|
|
95
|
+
font-size: 16px;
|
|
85
96
|
}
|
|
@@ -2,7 +2,7 @@ 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
|
+
interface InputProps extends Omit<InputAttributes, "size" | "className"> {
|
|
6
6
|
type?: "text" | "number" | "email" | "password" | "tel";
|
|
7
7
|
size?: InputSize$1;
|
|
8
8
|
validations?: {
|
|
@@ -14,7 +14,7 @@ interface InputProps extends Omit<InputAttributes, "size"> {
|
|
|
14
14
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
|
|
16
16
|
type InputSize = "sm" | "md" | "lg";
|
|
17
|
-
interface PasswordInputProps extends Omit<InputAttributes, "size"> {
|
|
17
|
+
interface PasswordInputProps extends Omit<InputAttributes, "size" | "className"> {
|
|
18
18
|
validations?: {
|
|
19
19
|
status: "error" | "warning" | "success" | "default";
|
|
20
20
|
message: string;
|
|
@@ -2,7 +2,7 @@ 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
|
+
interface InputProps extends Omit<InputAttributes, "size" | "className"> {
|
|
6
6
|
type?: "text" | "number" | "email" | "password" | "tel";
|
|
7
7
|
size?: InputSize$1;
|
|
8
8
|
validations?: {
|
|
@@ -14,7 +14,7 @@ interface InputProps extends Omit<InputAttributes, "size"> {
|
|
|
14
14
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
15
|
|
|
16
16
|
type InputSize = "sm" | "md" | "lg";
|
|
17
|
-
interface PasswordInputProps extends Omit<InputAttributes, "size"> {
|
|
17
|
+
interface PasswordInputProps extends Omit<InputAttributes, "size" | "className"> {
|
|
18
18
|
validations?: {
|
|
19
19
|
status: "error" | "warning" | "success" | "default";
|
|
20
20
|
message: string;
|
|
@@ -17,7 +17,7 @@ function clsx() {
|
|
|
17
17
|
}
|
|
18
18
|
var clsx_default = clsx;
|
|
19
19
|
|
|
20
|
-
// src/tokens/svg/
|
|
20
|
+
// src/tokens/svg/status/ErrorIcon.tsx
|
|
21
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
var ErrorIcon = () => /* @__PURE__ */ jsxs(
|
|
23
23
|
"svg",
|
|
@@ -52,7 +52,7 @@ var ErrorIcon = () => /* @__PURE__ */ jsxs(
|
|
|
52
52
|
);
|
|
53
53
|
var ErrorIcon_default = ErrorIcon;
|
|
54
54
|
|
|
55
|
-
// src/tokens/svg/
|
|
55
|
+
// src/tokens/svg/status/InfoIcon.tsx
|
|
56
56
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
57
57
|
var InfoIcon = () => /* @__PURE__ */ jsxs2(
|
|
58
58
|
"svg",
|
|
@@ -94,7 +94,7 @@ var InfoIcon = () => /* @__PURE__ */ jsxs2(
|
|
|
94
94
|
);
|
|
95
95
|
var InfoIcon_default = InfoIcon;
|
|
96
96
|
|
|
97
|
-
// src/tokens/svg/
|
|
97
|
+
// src/tokens/svg/status/SuccessIcon.tsx
|
|
98
98
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
99
99
|
var SuccessIcon = () => /* @__PURE__ */ jsx3(
|
|
100
100
|
"svg",
|
|
@@ -223,7 +223,6 @@ var Input = React.forwardRef((props, ref) => {
|
|
|
223
223
|
type = "text",
|
|
224
224
|
size = "md",
|
|
225
225
|
suffix,
|
|
226
|
-
className,
|
|
227
226
|
disabled,
|
|
228
227
|
validations,
|
|
229
228
|
...inputProps
|
|
@@ -243,7 +242,7 @@ var Input = React.forwardRef((props, ref) => {
|
|
|
243
242
|
onChange(event);
|
|
244
243
|
}
|
|
245
244
|
};
|
|
246
|
-
return /* @__PURE__ */ jsxs4("div", { className:
|
|
245
|
+
return /* @__PURE__ */ jsxs4("div", { className: "lib-xplat-input-wrap", children: [
|
|
247
246
|
/* @__PURE__ */ jsxs4(
|
|
248
247
|
"div",
|
|
249
248
|
{
|
|
@@ -279,7 +278,7 @@ var Input_default = Input;
|
|
|
279
278
|
// src/components/Input/PasswordInput/PasswordInput.tsx
|
|
280
279
|
import React2 from "react";
|
|
281
280
|
|
|
282
|
-
// src/tokens/svg/
|
|
281
|
+
// src/tokens/svg/form/CloseEyeIcon.tsx
|
|
283
282
|
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
284
283
|
var CloseEyeIcon = () => /* @__PURE__ */ jsxs5(
|
|
285
284
|
"svg",
|
|
@@ -311,7 +310,7 @@ var CloseEyeIcon = () => /* @__PURE__ */ jsxs5(
|
|
|
311
310
|
);
|
|
312
311
|
var CloseEyeIcon_default = CloseEyeIcon;
|
|
313
312
|
|
|
314
|
-
// src/tokens/svg/
|
|
313
|
+
// src/tokens/svg/form/OpenEyeIcon.tsx
|
|
315
314
|
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
316
315
|
var OpenEyeIcon = () => /* @__PURE__ */ jsxs6(
|
|
317
316
|
"svg",
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
z-index: 11;
|
|
4
4
|
}
|
|
5
5
|
.lib-xplat-modal.modal-box {
|
|
6
|
-
border-radius:
|
|
6
|
+
border-radius: var(--spacing-radius-lg);
|
|
7
7
|
background-color: #fff;
|
|
8
|
-
padding:
|
|
9
|
-
|
|
10
|
-
max-
|
|
8
|
+
padding: var(--spacing-space-6);
|
|
9
|
+
min-width: min-content;
|
|
10
|
+
max-width: calc(100vw - 32px);
|
|
11
|
+
max-height: calc(100vh - 32px);
|
|
11
12
|
overflow: visible;
|
|
12
13
|
transform: scale(0.9);
|
|
13
14
|
opacity: 0;
|