@x-plat/design-system 0.1.4 → 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 +21 -9
- package/dist/components/Select/index.css +38 -18
- package/dist/components/Select/index.d.cts +5 -0
- package/dist/components/Select/index.d.ts +5 -0
- package/dist/components/Select/index.js +21 -9
- 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 +3 -1
- package/dist/components/Switch/index.css +41 -751
- package/dist/components/Switch/index.d.cts +4 -118
- package/dist/components/Switch/index.d.ts +4 -118
- package/dist/components/Switch/index.js +3 -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 +456 -350
- package/dist/components/index.css +1278 -12612
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +454 -349
- package/dist/index.cjs +481 -374
- package/dist/index.css +1281 -12615
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +481 -373
- 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
|
@@ -1,130 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { a as ColorNamespace, b as ColorName, e as ColorProps } from '../../colors-DmMsWD7G.js';
|
|
4
4
|
|
|
5
|
+
type TagSize = "sm" | "md" | "lg";
|
|
5
6
|
interface TagProps<N extends ColorNamespace, C extends ColorName<N> = ColorName<N>> extends ColorProps<N, C> {
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
onClose?: () => void;
|
|
9
|
+
size?: TagSize;
|
|
8
10
|
className?: string;
|
|
9
11
|
}
|
|
10
12
|
declare const Tag: {
|
|
11
|
-
<N extends ColorNamespace = "xplat", C extends ColorName<N> =
|
|
12
|
-
readonly xplat: {
|
|
13
|
-
readonly red: {
|
|
14
|
-
readonly 50: "#FFF0F0";
|
|
15
|
-
readonly 100: "#FFDDDE";
|
|
16
|
-
readonly 200: "#FFC1C2";
|
|
17
|
-
readonly 300: "#FF9698";
|
|
18
|
-
readonly 400: "#FF5A5D";
|
|
19
|
-
readonly 500: "#FF272B";
|
|
20
|
-
readonly 600: "#F80409";
|
|
21
|
-
readonly 700: "#D40105";
|
|
22
|
-
readonly 800: "#AE0609";
|
|
23
|
-
readonly 900: "#900C0F";
|
|
24
|
-
};
|
|
25
|
-
readonly green: {
|
|
26
|
-
readonly 50: "#E5F6EA";
|
|
27
|
-
readonly 100: "#C1E7CC";
|
|
28
|
-
readonly 200: "#98D8AC";
|
|
29
|
-
readonly 300: "#6CCA8B";
|
|
30
|
-
readonly 400: "#47BE72";
|
|
31
|
-
readonly 500: "#10B259";
|
|
32
|
-
readonly 600: "#00A34F";
|
|
33
|
-
readonly 700: "#009143";
|
|
34
|
-
readonly 800: "#007F38";
|
|
35
|
-
readonly 900: "#006024";
|
|
36
|
-
};
|
|
37
|
-
readonly orange: {
|
|
38
|
-
readonly 50: "#FFF8EC";
|
|
39
|
-
readonly 100: "#FFF0D3";
|
|
40
|
-
readonly 200: "#FFDDA5";
|
|
41
|
-
readonly 300: "#FFC46D";
|
|
42
|
-
readonly 400: "#FF9F32";
|
|
43
|
-
readonly 500: "#FF820A";
|
|
44
|
-
readonly 600: "#FF6900";
|
|
45
|
-
readonly 700: "#CC4B02";
|
|
46
|
-
readonly 800: "#A13A0B";
|
|
47
|
-
readonly 900: "#82320C";
|
|
48
|
-
};
|
|
49
|
-
readonly yellow: {
|
|
50
|
-
readonly 50: "#FFFDE7";
|
|
51
|
-
readonly 100: "#FFFAC1";
|
|
52
|
-
readonly 200: "#FFF186";
|
|
53
|
-
readonly 300: "#FFE041";
|
|
54
|
-
readonly 400: "#FFCC0D";
|
|
55
|
-
readonly 500: "#F0B100";
|
|
56
|
-
readonly 600: "#D18800";
|
|
57
|
-
readonly 700: "#A66002";
|
|
58
|
-
readonly 800: "#894B0A";
|
|
59
|
-
readonly 900: "#743D0F";
|
|
60
|
-
};
|
|
61
|
-
readonly blue: {
|
|
62
|
-
readonly 50: "#F1F4FD";
|
|
63
|
-
readonly 100: "#DFE7FA";
|
|
64
|
-
readonly 200: "#C5D4F8";
|
|
65
|
-
readonly 300: "#9EB8F2";
|
|
66
|
-
readonly 400: "#7093EA";
|
|
67
|
-
readonly 500: "#4D6DE3";
|
|
68
|
-
readonly 600: "#3950D7";
|
|
69
|
-
readonly 700: "#303EC5";
|
|
70
|
-
readonly 800: "#2D35A0";
|
|
71
|
-
readonly 900: "#29317F";
|
|
72
|
-
};
|
|
73
|
-
readonly lightblue: {
|
|
74
|
-
readonly 50: "#EEFAFF";
|
|
75
|
-
readonly 100: "#D9F4FF";
|
|
76
|
-
readonly 200: "#BBEDFF";
|
|
77
|
-
readonly 300: "#8DE3FF";
|
|
78
|
-
readonly 400: "#57D0FF";
|
|
79
|
-
readonly 500: "#30B6FF";
|
|
80
|
-
readonly 600: "#1999F7";
|
|
81
|
-
readonly 700: "#1280E3";
|
|
82
|
-
readonly 800: "#1566B8";
|
|
83
|
-
readonly 900: "#175791";
|
|
84
|
-
};
|
|
85
|
-
readonly purple: {
|
|
86
|
-
readonly 50: "#FBF6FE";
|
|
87
|
-
readonly 100: "#F5EAFD";
|
|
88
|
-
readonly 200: "#EDD8FC";
|
|
89
|
-
readonly 300: "#E0BAF8";
|
|
90
|
-
readonly 400: "#CD8DF3";
|
|
91
|
-
readonly 500: "#B961EB";
|
|
92
|
-
readonly 600: "#A541DC";
|
|
93
|
-
readonly 700: "#9230C5";
|
|
94
|
-
readonly 800: "#782B9E";
|
|
95
|
-
readonly 900: "#62247F";
|
|
96
|
-
};
|
|
97
|
-
readonly pink: {
|
|
98
|
-
readonly 50: "#FFF4FE";
|
|
99
|
-
readonly 100: "#FFE7FD";
|
|
100
|
-
readonly 200: "#FFCFFA";
|
|
101
|
-
readonly 300: "#FEA9F1";
|
|
102
|
-
readonly 400: "#FD75E7";
|
|
103
|
-
readonly 500: "#F553DA";
|
|
104
|
-
readonly 600: "#D821B6";
|
|
105
|
-
readonly 700: "#B31892";
|
|
106
|
-
readonly 800: "#921676";
|
|
107
|
-
readonly 900: "#781761";
|
|
108
|
-
};
|
|
109
|
-
readonly neutral: {
|
|
110
|
-
readonly 50: "#FAFAFA";
|
|
111
|
-
readonly 100: "#F5F5F5";
|
|
112
|
-
readonly 200: "#E5E5E5";
|
|
113
|
-
readonly 300: "#D4D4D4";
|
|
114
|
-
readonly 400: "#A1A1A1";
|
|
115
|
-
readonly 500: "#737373";
|
|
116
|
-
readonly 600: "#525252";
|
|
117
|
-
readonly 700: "#404040";
|
|
118
|
-
readonly 800: "#262626";
|
|
119
|
-
readonly 900: "#171717";
|
|
120
|
-
};
|
|
121
|
-
readonly black: "#000000";
|
|
122
|
-
readonly white: "#FFFFFF";
|
|
123
|
-
};
|
|
124
|
-
readonly test: {
|
|
125
|
-
readonly default: "#ffffff";
|
|
126
|
-
};
|
|
127
|
-
}[N]>(props: TagProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
<N extends ColorNamespace = "xplat", C extends ColorName<N> = ColorName<N>>(props: TagProps<N, C>): react_jsx_runtime.JSX.Element;
|
|
128
14
|
displayName: string;
|
|
129
15
|
};
|
|
130
16
|
|
|
@@ -1019,7 +1019,7 @@ import { jsx as jsx293, jsxs as jsxs188 } from "react/jsx-runtime";
|
|
|
1019
1019
|
// src/tokens/svg/validation/SuccessIcon.tsx
|
|
1020
1020
|
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
1021
1021
|
|
|
1022
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
1022
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
1023
1023
|
function r(e) {
|
|
1024
1024
|
var t, f, n = "";
|
|
1025
1025
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -1041,6 +1041,7 @@ var Tag = (props) => {
|
|
|
1041
1041
|
const {
|
|
1042
1042
|
children,
|
|
1043
1043
|
onClose,
|
|
1044
|
+
size = "md",
|
|
1044
1045
|
colorNamespace = "xplat",
|
|
1045
1046
|
color = "neutral",
|
|
1046
1047
|
colorDepth,
|
|
@@ -1051,7 +1052,7 @@ var Tag = (props) => {
|
|
|
1051
1052
|
color,
|
|
1052
1053
|
colorDepth ?? 500
|
|
1053
1054
|
);
|
|
1054
|
-
return /* @__PURE__ */ jsxs189("span", { className: clsx_default("lib-xplat-tag", colorClass, className), children: [
|
|
1055
|
+
return /* @__PURE__ */ jsxs189("span", { className: clsx_default("lib-xplat-tag", size, colorClass, className), children: [
|
|
1055
1056
|
/* @__PURE__ */ jsx295("span", { className: "tag-label", children }),
|
|
1056
1057
|
onClose && /* @__PURE__ */ jsx295("button", { className: "tag-close", onClick: onClose, "aria-label": "\uC0AD\uC81C", children: /* @__PURE__ */ jsx295(XIcon_default, {}) })
|
|
1057
1058
|
] });
|
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(TextArea_exports);
|
|
|
37
37
|
// src/components/TextArea/TextArea.tsx
|
|
38
38
|
var import_react = __toESM(require("react"), 1);
|
|
39
39
|
|
|
40
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
40
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
41
41
|
function r(e) {
|
|
42
42
|
var t, f, n = "";
|
|
43
43
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea {
|
|
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
12
|
min-height: 2.5rem;
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
background-color:
|
|
14
|
+
background-color: var(--xplat-white);
|
|
15
15
|
width: 100%;
|
|
16
16
|
}
|
|
17
17
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
|
|
18
|
-
background-color:
|
|
18
|
+
background-color: var(--xplat-neutral-100);
|
|
19
19
|
cursor: not-allowed;
|
|
20
20
|
}
|
|
21
21
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
padding-left: 1rem;
|
|
26
26
|
padding-right: 1rem;
|
|
27
27
|
width: 100%;
|
|
28
|
-
color:
|
|
28
|
+
color: var(--xplat-neutral-700);
|
|
29
29
|
resize: none;
|
|
30
30
|
height: 1.5em;
|
|
31
31
|
}
|
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(Toast_exports);
|
|
|
39
39
|
var import_react = __toESM(require("react"), 1);
|
|
40
40
|
var import_react_dom = require("react-dom");
|
|
41
41
|
|
|
42
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
42
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
43
43
|
function r(e) {
|
|
44
44
|
var t, f, n = "";
|
|
45
45
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -84,20 +84,20 @@
|
|
|
84
84
|
opacity: 1;
|
|
85
85
|
}
|
|
86
86
|
.lib-xplat-toast.info {
|
|
87
|
-
background-color:
|
|
88
|
-
color:
|
|
87
|
+
background-color: var(--xplat-lightblue-600);
|
|
88
|
+
color: var(--xplat-white);
|
|
89
89
|
}
|
|
90
90
|
.lib-xplat-toast.success {
|
|
91
|
-
background-color:
|
|
92
|
-
color:
|
|
91
|
+
background-color: var(--xplat-green-600);
|
|
92
|
+
color: var(--xplat-white);
|
|
93
93
|
}
|
|
94
94
|
.lib-xplat-toast.warning {
|
|
95
|
-
background-color:
|
|
96
|
-
color:
|
|
95
|
+
background-color: var(--xplat-yellow-500);
|
|
96
|
+
color: var(--xplat-white);
|
|
97
97
|
}
|
|
98
98
|
.lib-xplat-toast.error {
|
|
99
|
-
background-color:
|
|
100
|
-
color:
|
|
99
|
+
background-color: var(--xplat-red-600);
|
|
100
|
+
color: var(--xplat-white);
|
|
101
101
|
}
|
|
102
102
|
@keyframes lib-xplat-toast-enter {
|
|
103
103
|
from {
|
|
@@ -164,7 +164,7 @@ var getColorClass = (namespace, palette, shade) => {
|
|
|
164
164
|
return `${String(namespace)}-${String(palette)}${hasShade ? `-${String(shade)}` : ""}`;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
// node_modules/clsx/dist/clsx.mjs
|
|
167
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
168
168
|
function r(e) {
|
|
169
169
|
var t, f, n = "";
|
|
170
170
|
if ("string" == typeof e || "number" == typeof e) n += e;
|