@sth87/shadcn-design-system 0.2.0 → 0.2.2
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/AI_CONTEXT.md +4 -0
- package/dist/cjs/components/Select/Select.cjs +1 -1
- package/dist/cjs/components/Table/data-table-column-header.cjs +1 -1
- package/dist/cjs/components/Table/data-table.cjs +1 -1
- package/dist/cjs/packages/ui/src/components/combobox.cjs +1 -1
- package/dist/cjs/packages/ui/src/components/select.cjs +1 -1
- package/dist/cjs/packages/ui/src/components/table.cjs +1 -1
- package/dist/cjs/styles/index.css +1 -1
- package/dist/esm/components/Select/Select.js +138 -115
- package/dist/esm/components/Table/data-table-column-header.js +50 -25
- package/dist/esm/components/Table/data-table.js +77 -55
- package/dist/esm/packages/ui/src/components/combobox.js +57 -43
- package/dist/esm/packages/ui/src/components/select.js +163 -148
- package/dist/esm/packages/ui/src/components/table.js +23 -14
- package/dist/esm/styles/index.css +1 -1
- package/dist/types/components/Select/Select.d.ts +8 -0
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/Table/data-table-column-header.d.ts.map +1 -1
- package/dist/types/components/Table/data-table.d.ts +5 -0
- package/dist/types/components/Table/data-table.d.ts.map +1 -1
- package/dist/types/packages/ui/src/components/combobox.d.ts +5 -1
- package/dist/types/packages/ui/src/components/combobox.d.ts.map +1 -1
- package/dist/types/packages/ui/src/components/select.d.ts +4 -1
- package/dist/types/packages/ui/src/components/select.d.ts.map +1 -1
- package/dist/types/packages/ui/src/components/table.d.ts +4 -1
- package/dist/types/packages/ui/src/components/table.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { cn as d } from "../lib/utils.js";
|
|
3
|
-
function
|
|
3
|
+
function n({
|
|
4
|
+
className: t,
|
|
5
|
+
containerClassName: e,
|
|
6
|
+
containerStyle: s,
|
|
7
|
+
...l
|
|
8
|
+
}) {
|
|
4
9
|
return /* @__PURE__ */ a(
|
|
5
10
|
"div",
|
|
6
11
|
{
|
|
7
12
|
"data-slot": "table-container",
|
|
8
|
-
className:
|
|
13
|
+
className: d(
|
|
14
|
+
"ds:relative ds:w-full ds:overflow-x-auto",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
style: s,
|
|
9
18
|
children: /* @__PURE__ */ a(
|
|
10
19
|
"table",
|
|
11
20
|
{
|
|
12
21
|
"data-slot": "table",
|
|
13
22
|
className: d("ds:w-full ds:caption-bottom ds:text-sm", t),
|
|
14
|
-
...
|
|
23
|
+
...l
|
|
15
24
|
}
|
|
16
25
|
)
|
|
17
26
|
}
|
|
18
27
|
);
|
|
19
28
|
}
|
|
20
|
-
function
|
|
29
|
+
function b({ className: t, ...e }) {
|
|
21
30
|
return /* @__PURE__ */ a(
|
|
22
31
|
"thead",
|
|
23
32
|
{
|
|
@@ -27,7 +36,7 @@ function r({ className: t, ...e }) {
|
|
|
27
36
|
}
|
|
28
37
|
);
|
|
29
38
|
}
|
|
30
|
-
function
|
|
39
|
+
function c({ className: t, ...e }) {
|
|
31
40
|
return /* @__PURE__ */ a(
|
|
32
41
|
"tbody",
|
|
33
42
|
{
|
|
@@ -37,7 +46,7 @@ function n({ className: t, ...e }) {
|
|
|
37
46
|
}
|
|
38
47
|
);
|
|
39
48
|
}
|
|
40
|
-
function
|
|
49
|
+
function i({ className: t, ...e }) {
|
|
41
50
|
return /* @__PURE__ */ a(
|
|
42
51
|
"tr",
|
|
43
52
|
{
|
|
@@ -50,7 +59,7 @@ function b({ className: t, ...e }) {
|
|
|
50
59
|
}
|
|
51
60
|
);
|
|
52
61
|
}
|
|
53
|
-
function
|
|
62
|
+
function m({ className: t, ...e }) {
|
|
54
63
|
return /* @__PURE__ */ a(
|
|
55
64
|
"th",
|
|
56
65
|
{
|
|
@@ -63,7 +72,7 @@ function c({ className: t, ...e }) {
|
|
|
63
72
|
}
|
|
64
73
|
);
|
|
65
74
|
}
|
|
66
|
-
function
|
|
75
|
+
function u({ className: t, ...e }) {
|
|
67
76
|
return /* @__PURE__ */ a(
|
|
68
77
|
"td",
|
|
69
78
|
{
|
|
@@ -77,10 +86,10 @@ function i({ className: t, ...e }) {
|
|
|
77
86
|
);
|
|
78
87
|
}
|
|
79
88
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
89
|
+
n as Table,
|
|
90
|
+
c as TableBody,
|
|
91
|
+
u as TableCell,
|
|
92
|
+
m as TableHead,
|
|
93
|
+
b as TableHeader,
|
|
94
|
+
i as TableRow
|
|
86
95
|
};
|