@x-plat/design-system 0.5.25 → 0.5.28
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/ChatInput/index.cjs +59 -39
- package/dist/components/ChatInput/index.css +80 -45
- package/dist/components/ChatInput/index.d.cts +1 -1
- package/dist/components/ChatInput/index.d.ts +1 -1
- package/dist/components/ChatInput/index.js +59 -39
- package/dist/components/IconButton/index.cjs +68 -0
- package/dist/components/IconButton/index.css +77 -0
- package/dist/components/IconButton/index.d.cts +18 -0
- package/dist/components/IconButton/index.d.ts +18 -0
- package/dist/components/IconButton/index.js +41 -0
- package/dist/components/Table/index.css +4 -10
- package/dist/components/index.cjs +329 -305
- package/dist/components/index.css +84 -55
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +272 -249
- package/dist/index.cjs +339 -312
- package/dist/index.css +84 -55
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +280 -254
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// ../../node_modules/clsx/dist/clsx.mjs
|
|
2
|
+
function r(e) {
|
|
3
|
+
var t, f, n = "";
|
|
4
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
+
var o = e.length;
|
|
7
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
+
return n;
|
|
10
|
+
}
|
|
11
|
+
function clsx() {
|
|
12
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
+
return n;
|
|
14
|
+
}
|
|
15
|
+
var clsx_default = clsx;
|
|
16
|
+
|
|
17
|
+
// src/components/IconButton/IconButton.tsx
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var IconButton = (props) => {
|
|
20
|
+
const {
|
|
21
|
+
icon,
|
|
22
|
+
type = "primary",
|
|
23
|
+
size = "md",
|
|
24
|
+
disabled,
|
|
25
|
+
...rest
|
|
26
|
+
} = props;
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
"button",
|
|
29
|
+
{
|
|
30
|
+
className: clsx_default("lib-xplat-icon-button", type, size),
|
|
31
|
+
disabled,
|
|
32
|
+
...rest,
|
|
33
|
+
children: icon
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
IconButton.displayName = "IconButton";
|
|
38
|
+
var IconButton_default = IconButton;
|
|
39
|
+
export {
|
|
40
|
+
IconButton_default as IconButton
|
|
41
|
+
};
|
|
@@ -246,12 +246,6 @@
|
|
|
246
246
|
z-index: 1;
|
|
247
247
|
left: calc(var(--sticky-left) * 1px);
|
|
248
248
|
}
|
|
249
|
-
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.right-shadow,
|
|
250
|
-
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.right-shadow,
|
|
251
|
-
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.right-shadow,
|
|
252
|
-
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th.right-shadow {
|
|
253
|
-
box-shadow: 8px 0 10px -5px rgba(0, 0, 0, 0.3);
|
|
254
|
-
}
|
|
255
249
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.right-shadow::after,
|
|
256
250
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.right-shadow::after,
|
|
257
251
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.right-shadow::after,
|
|
@@ -259,13 +253,13 @@
|
|
|
259
253
|
content: "";
|
|
260
254
|
position: absolute;
|
|
261
255
|
top: 0;
|
|
262
|
-
right:
|
|
263
|
-
width:
|
|
256
|
+
right: -6px;
|
|
257
|
+
width: 6px;
|
|
264
258
|
height: 100%;
|
|
265
259
|
background:
|
|
266
260
|
linear-gradient(
|
|
267
261
|
to right,
|
|
268
|
-
rgba(0, 0, 0, 0.
|
|
269
|
-
|
|
262
|
+
rgba(0, 0, 0, 0.08),
|
|
263
|
+
transparent);
|
|
270
264
|
pointer-events: none;
|
|
271
265
|
}
|