@yuno-payments/dashboard-design-system 0.0.138-beta.2 → 0.0.139
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/atoms/filter-dropdown/filter-dropdown.js +75 -72
- package/dist/components/atoms/icon/aida-logo.d.ts +3 -0
- package/dist/components/atoms/icon/aida-logo.js +64 -0
- package/dist/components/atoms/icon/icon-list.d.ts +3 -0
- package/dist/components/atoms/icon/icon-list.js +398 -392
- package/dist/components/organisms/data-table/data-table.d.ts +24 -1
- package/dist/components/organisms/data-table/data-table.js +129 -105
- package/dist/components/organisms/data-table/data-table.types.d.ts +20 -0
- package/dist/components/organisms/data-table/hooks/use-data-table-columns.js +55 -39
- package/dist/components/organisms/data-table/hooks/use-data-table-state.d.ts +7 -2
- package/dist/components/organisms/data-table/hooks/use-data-table-state.js +80 -46
- package/dist/components/organisms/data-table/utils/data-table-constants.d.ts +6 -0
- package/dist/components/organisms/data-table/utils/data-table-constants.js +14 -8
- package/dist/components/organisms/data-table/utils/data-table-styles.d.ts +1652 -0
- package/dist/components/organisms/data-table/utils/data-table-styles.js +29 -14
- package/dist/node_modules/@phosphor-icons/react/dist/csr/File.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/csr/Table.es.js +8 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/File.es.js +30 -0
- package/dist/node_modules/@phosphor-icons/react/dist/defs/Table.es.js +30 -0
- package/dist/vendor/shadcn/table.js +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,38 @@
|
|
|
1
1
|
import { cn as o } from "../../../../lib/utils.js";
|
|
2
|
-
import { getPinnedStyles as
|
|
3
|
-
import { PINNED_SHADOW_CLASS as
|
|
4
|
-
function
|
|
5
|
-
const
|
|
2
|
+
import { getPinnedStyles as p } from "./data-table-utils.js";
|
|
3
|
+
import { PINNED_SHADOW_CLASS as l } from "./data-table-constants.js";
|
|
4
|
+
function f(t, r, d) {
|
|
5
|
+
const s = t.getIsPinned(), e = t.getSize(), i = t.id === "_spacer", a = t.columnDef.enableResizing === !1 && !i;
|
|
6
6
|
return {
|
|
7
7
|
style: {
|
|
8
|
-
width
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
// Spacer column should not have a fixed width, let it absorb remaining space
|
|
9
|
+
...i ? {
|
|
10
|
+
width: "auto",
|
|
11
|
+
minWidth: 0
|
|
12
|
+
} : a ? {
|
|
13
|
+
width: `${e}px`,
|
|
14
|
+
minWidth: `${e}px`,
|
|
15
|
+
maxWidth: `${e}px`
|
|
16
|
+
} : {
|
|
17
|
+
width: `${e}px`
|
|
18
|
+
},
|
|
19
|
+
...p(
|
|
20
|
+
s,
|
|
21
|
+
(n) => t.getStart(n),
|
|
22
|
+
(n) => t.getAfter(n),
|
|
23
|
+
d
|
|
16
24
|
)
|
|
17
25
|
},
|
|
18
|
-
className: o(
|
|
26
|
+
className: o(
|
|
27
|
+
r,
|
|
28
|
+
s && l,
|
|
29
|
+
// Add a class to identify fixed-size columns
|
|
30
|
+
a && "data-table-fixed-column",
|
|
31
|
+
// Hide spacer column visually
|
|
32
|
+
i && "data-table-spacer"
|
|
33
|
+
)
|
|
19
34
|
};
|
|
20
35
|
}
|
|
21
36
|
export {
|
|
22
|
-
|
|
37
|
+
f as getCellStyles
|
|
23
38
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import a from "../lib/IconBase.es.js";
|
|
3
|
+
import m from "../defs/File.es.js";
|
|
4
|
+
const t = o.forwardRef((e, r) => /* @__PURE__ */ o.createElement(a, { ref: r, ...e, weights: m }));
|
|
5
|
+
t.displayName = "FileIcon";
|
|
6
|
+
export {
|
|
7
|
+
t as FileIcon
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import a from "../lib/IconBase.es.js";
|
|
3
|
+
import m from "../defs/Table.es.js";
|
|
4
|
+
const t = o.forwardRef((e, r) => /* @__PURE__ */ o.createElement(a, { ref: r, ...e, weights: m }));
|
|
5
|
+
t.displayName = "TableIcon";
|
|
6
|
+
export {
|
|
7
|
+
t as TableIcon
|
|
8
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const a = /* @__PURE__ */ new Map([
|
|
3
|
+
[
|
|
4
|
+
"bold",
|
|
5
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z" }))
|
|
6
|
+
],
|
|
7
|
+
[
|
|
8
|
+
"duotone",
|
|
9
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M208,88H152V32Z", opacity: "0.2" }), /* @__PURE__ */ e.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
|
|
10
|
+
],
|
|
11
|
+
[
|
|
12
|
+
"fill",
|
|
13
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z" }))
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
"light",
|
|
17
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z" }))
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
"regular",
|
|
21
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z" }))
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"thin",
|
|
25
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z" }))
|
|
26
|
+
]
|
|
27
|
+
]);
|
|
28
|
+
export {
|
|
29
|
+
a as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as H from "react";
|
|
2
|
+
const e = /* @__PURE__ */ new Map([
|
|
3
|
+
[
|
|
4
|
+
"bold",
|
|
5
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM44,116H76v24H44Zm56,0H212v24H100ZM212,68V92H44V68ZM44,164H76v24H44Zm56,24V164H212v24Z" }))
|
|
6
|
+
],
|
|
7
|
+
[
|
|
8
|
+
"duotone",
|
|
9
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M88,104v96H32V104Z", opacity: "0.2" }), /* @__PURE__ */ H.createElement("path", { d: "M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z" }))
|
|
10
|
+
],
|
|
11
|
+
[
|
|
12
|
+
"fill",
|
|
13
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM40,160H80v32H40Zm176,32H96V160H216v32Z" }))
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
"light",
|
|
17
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM38,110H82v36H38Zm56,0H218v36H94ZM218,62V98H38V62ZM38,192V158H82v36H40A2,2,0,0,1,38,192Zm178,2H94V158H218v34A2,2,0,0,1,216,194Z" }))
|
|
18
|
+
],
|
|
19
|
+
[
|
|
20
|
+
"regular",
|
|
21
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z" }))
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"thin",
|
|
25
|
+
/* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("path", { d: "M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52ZM36,108H84v40H36Zm56,0H220v40H92ZM220,60v40H36V60ZM36,192V156H84v40H40A4,4,0,0,1,36,192Zm180,4H92V156H220v36A4,4,0,0,1,216,196Z" }))
|
|
26
|
+
]
|
|
27
|
+
]);
|
|
28
|
+
export {
|
|
29
|
+
e as default
|
|
30
|
+
};
|
|
@@ -62,7 +62,7 @@ const f = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t.jsx(
|
|
|
62
62
|
{
|
|
63
63
|
ref: o,
|
|
64
64
|
className: r(
|
|
65
|
-
"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
65
|
+
"p-2 align-middle overflow-x-hidden [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
66
66
|
e
|
|
67
67
|
),
|
|
68
68
|
...a
|