@serendie/ui 2.5.1 → 3.0.0-dev.202602191126
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/README.md +63 -8
- package/dist/client.js +135 -119
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Badge/Badge.d.ts +6 -6
- package/dist/components/Badge/Badge.js +21 -21
- package/dist/components/Banner/Banner.d.ts +1 -4
- package/dist/components/Banner/Banner.js +8 -11
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.js +10 -11
- package/dist/components/CheckBox/CheckBox.js +4 -4
- package/dist/components/DataTable/table/BodyCell.d.ts +4 -2
- package/dist/components/DataTable/table/BodyCell.js +30 -24
- package/dist/components/DataTable/table/HeaderCell.d.ts +5 -2
- package/dist/components/DataTable/table/HeaderCell.js +69 -59
- package/dist/components/DataTable/table/HeaderRow.d.ts +6 -3
- package/dist/components/DataTable/table/HeaderRow.js +38 -35
- package/dist/components/DataTable/table/Root.d.ts +3 -3
- package/dist/components/DataTable/table/Root.js +8 -11
- package/dist/components/DataTable/table/Row.d.ts +8 -3
- package/dist/components/DataTable/table/Row.js +44 -32
- package/dist/components/DataTable/table/Tbody.d.ts +2 -1
- package/dist/components/DataTable/table/Tbody.js +4 -5
- package/dist/components/DataTable/table/Thead.d.ts +2 -1
- package/dist/components/DataTable/table/Thead.js +4 -5
- package/dist/components/DataTable/table/Tr.d.ts +2 -1
- package/dist/components/DataTable/table/Tr.js +20 -24
- package/dist/components/DatePicker/styles.js +1 -1
- package/dist/components/Divider/Divider.d.ts +2 -2
- package/dist/components/Divider/Divider.js +11 -11
- package/dist/components/Drawer/Drawer.js +3 -3
- package/dist/components/DropdownMenu/DropdownMenu.js +5 -5
- package/dist/components/IconButton/IconButton.d.ts +0 -1
- package/dist/components/IconButton/IconButton.js +0 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +9 -9
- package/dist/components/Search/Search.js +5 -5
- package/dist/components/Select/Select.js +14 -14
- package/dist/components/Switch/Switch.js +5 -5
- package/dist/components/Toast/Toast.d.ts +3 -5
- package/dist/components/Toast/Toast.js +8 -10
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/provider.d.ts +29 -4
- package/dist/i18n/provider.js +31 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.js +135 -119
- package/dist/node_modules/@serendie/design-token/dist/panda-tokens.js +310 -0
- package/dist/node_modules/@serendie/design-token/dist/tokens.js +126 -0
- package/dist/preset.d.ts +310 -0
- package/dist/styled-system/css/conditions.js +1 -1
- package/dist/styled-system/jsx/is-valid-prop.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/ThemeContext.d.ts +55 -0
- package/dist/theme/ThemeContext.js +15 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.js +11 -0
- package/dist/theme/initColorScheme.d.ts +74 -0
- package/dist/theme/initColorScheme.js +32 -0
- package/dist/theme/useSystemColorScheme.d.ts +15 -0
- package/dist/theme/useSystemColorScheme.js +19 -0
- package/dist/tokens/getToken.d.ts +126 -0
- package/dist/tokens/index.d.ts +310 -0
- package/package.json +2 -2
- package/styled-system/css/conditions.js +1 -1
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/themes/index.d.ts +6 -1
- package/styled-system/themes/theme-konjo-dark.json +5 -0
- package/styled-system/types/conditions.d.ts +2 -0
|
@@ -40,9 +40,9 @@ const v = {
|
|
|
40
40
|
}, N = {
|
|
41
41
|
width: 24,
|
|
42
42
|
height: 24,
|
|
43
|
-
color: "sd.system.color.component.
|
|
43
|
+
color: "sd.system.color.component.outlineDim",
|
|
44
44
|
_disabled: {
|
|
45
|
-
color: "color-mix(in srgb, {colors.sd.system.color.component.
|
|
45
|
+
color: "color-mix(in srgb, {colors.sd.system.color.component.outlineDim}, {colors.sd.system.color.interaction.hoveredOnPrimary});"
|
|
46
46
|
}
|
|
47
47
|
}, n = b({
|
|
48
48
|
slots: [
|
|
@@ -93,7 +93,7 @@ const v = {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
96
|
+
}), F = ({
|
|
97
97
|
value: m,
|
|
98
98
|
label: l,
|
|
99
99
|
helperText: s,
|
|
@@ -122,7 +122,7 @@ const v = {
|
|
|
122
122
|
);
|
|
123
123
|
};
|
|
124
124
|
export {
|
|
125
|
-
|
|
125
|
+
F as CheckBox,
|
|
126
126
|
n as CheckBoxStyle,
|
|
127
127
|
_ as checkboxCheckedIconCss,
|
|
128
128
|
v as checkboxIconCss,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { RecipeVariantProps } from '../../../../styled-system/css';
|
|
2
3
|
declare const cellStyle: import('../../../../styled-system/types').RecipeRuntimeFn<{
|
|
3
4
|
type: {
|
|
@@ -46,10 +47,11 @@ type ExtractVariantProperty<T, K extends string> = NonNullable<T> extends infer
|
|
|
46
47
|
export type CellType = ExtractVariantProperty<CellStyleVariants, "type">;
|
|
47
48
|
type CellState = ExtractVariantProperty<CellStyleVariants, "state">;
|
|
48
49
|
type CellSize = ExtractVariantProperty<CellStyleVariants, "size">;
|
|
49
|
-
export declare const BodyCell: React.
|
|
50
|
+
export declare const BodyCell: React.ForwardRefExoticComponent<Omit<{
|
|
50
51
|
children: React.ReactNode;
|
|
51
52
|
size?: CellSize;
|
|
52
53
|
type?: CellType | string;
|
|
53
54
|
state?: CellState;
|
|
54
|
-
|
|
55
|
+
className?: string;
|
|
56
|
+
} & React.ClassAttributes<HTMLTableDataCellElement> & React.TdHTMLAttributes<HTMLTableDataCellElement>, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
55
57
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { cx as m } from "../../../styled-system/css/cx.js";
|
|
4
|
+
import { cva as d } from "../../../styled-system/css/cva.js";
|
|
5
|
+
const p = d({
|
|
4
6
|
base: {
|
|
5
7
|
borderBottom: "1px solid",
|
|
6
8
|
borderColor: "sd.system.color.component.outline",
|
|
@@ -100,26 +102,30 @@ const a = i({
|
|
|
100
102
|
type: "default",
|
|
101
103
|
state: "enabled"
|
|
102
104
|
}
|
|
103
|
-
}),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
}), y = ["default", "success", "notice", "error"], u = (o) => y.includes(o) ? o : "default", x = l.forwardRef(
|
|
106
|
+
({
|
|
107
|
+
children: o,
|
|
108
|
+
size: t = "medium",
|
|
109
|
+
type: r = "default",
|
|
110
|
+
state: e = "enabled",
|
|
111
|
+
className: n,
|
|
112
|
+
...c
|
|
113
|
+
}, i) => {
|
|
114
|
+
const s = u(r);
|
|
115
|
+
return /* @__PURE__ */ a(
|
|
116
|
+
"td",
|
|
117
|
+
{
|
|
118
|
+
ref: i,
|
|
119
|
+
role: "cell",
|
|
120
|
+
"data-type": s,
|
|
121
|
+
"data-state": e,
|
|
122
|
+
className: m(p({ size: t, type: s, state: e }), n),
|
|
123
|
+
...c,
|
|
124
|
+
children: o
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
);
|
|
123
129
|
export {
|
|
124
|
-
|
|
130
|
+
x as BodyCell
|
|
125
131
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const HeaderCell: React.ForwardRefExoticComponent<Omit<{
|
|
2
3
|
size?: "small" | "medium" | "large";
|
|
3
4
|
state?: "enabled" | "hovered";
|
|
4
5
|
sortable?: boolean;
|
|
5
6
|
sortDirection?: "asc" | "desc" | false;
|
|
6
7
|
onSort?: () => void;
|
|
7
8
|
className?: string;
|
|
8
|
-
}
|
|
9
|
+
} & {
|
|
10
|
+
children?: React.ReactNode | undefined;
|
|
11
|
+
} & React.ClassAttributes<HTMLTableHeaderCellElement> & React.ThHTMLAttributes<HTMLTableHeaderCellElement>, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as l, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { SerendieSymbol as s } from "@serendie/symbols";
|
|
4
|
+
import { cx as y } from "../../../styled-system/css/cx.js";
|
|
5
|
+
import { css as u } from "../../../styled-system/css/css.js";
|
|
6
|
+
import { cva as g } from "../../../styled-system/css/cva.js";
|
|
7
|
+
const h = g({
|
|
7
8
|
base: {
|
|
8
9
|
borderBottom: "1px solid",
|
|
9
10
|
borderColor: "sd.system.color.component.outline",
|
|
@@ -20,59 +21,68 @@ const u = y({
|
|
|
20
21
|
whiteSpace: "nowrap"
|
|
21
22
|
},
|
|
22
23
|
defaultVariants: {}
|
|
23
|
-
}),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
e
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
24
|
+
}), A = f.forwardRef(
|
|
25
|
+
({
|
|
26
|
+
children: i,
|
|
27
|
+
size: r = "medium",
|
|
28
|
+
state: d = "enabled",
|
|
29
|
+
sortable: e = !1,
|
|
30
|
+
sortDirection: n,
|
|
31
|
+
onSort: o,
|
|
32
|
+
className: t,
|
|
33
|
+
...m
|
|
34
|
+
}, c) => /* @__PURE__ */ l(
|
|
35
|
+
"th",
|
|
36
|
+
{
|
|
37
|
+
ref: c,
|
|
38
|
+
role: "columnheader",
|
|
39
|
+
"aria-sort": n === "asc" ? "ascending" : n === "desc" ? "descending" : e ? "none" : void 0,
|
|
40
|
+
tabIndex: e ? 0 : void 0,
|
|
41
|
+
onClick: e ? o : void 0,
|
|
42
|
+
onKeyDown: (a) => {
|
|
43
|
+
e && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), o == null || o());
|
|
44
|
+
},
|
|
45
|
+
className: y(h({ size: r, state: d }), t),
|
|
46
|
+
style: {
|
|
47
|
+
cursor: e ? "pointer" : "default",
|
|
48
|
+
userSelect: "none"
|
|
49
|
+
},
|
|
50
|
+
...m,
|
|
51
|
+
children: /* @__PURE__ */ p(
|
|
52
|
+
"span",
|
|
53
|
+
{
|
|
54
|
+
className: u({
|
|
55
|
+
display: "inline-flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
verticalAlign: "middle"
|
|
58
|
+
}),
|
|
59
|
+
children: [
|
|
60
|
+
i,
|
|
61
|
+
e && (n === "asc" ? /* @__PURE__ */ l(
|
|
62
|
+
s,
|
|
63
|
+
{
|
|
64
|
+
name: "chevron-double-up",
|
|
65
|
+
style: { marginLeft: 4 }
|
|
66
|
+
}
|
|
67
|
+
) : n === "desc" ? /* @__PURE__ */ l(
|
|
68
|
+
s,
|
|
69
|
+
{
|
|
70
|
+
name: "chevron-double-down",
|
|
71
|
+
style: { marginLeft: 4 }
|
|
72
|
+
}
|
|
73
|
+
) : /* @__PURE__ */ l(
|
|
74
|
+
s,
|
|
75
|
+
{
|
|
76
|
+
name: "chevron-up-down",
|
|
77
|
+
style: { marginLeft: 4 }
|
|
78
|
+
}
|
|
79
|
+
))
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
)
|
|
75
85
|
);
|
|
76
86
|
export {
|
|
77
|
-
|
|
87
|
+
A as HeaderCell
|
|
78
88
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { HeaderGroup } from '@tanstack/react-table';
|
|
2
3
|
export interface HeaderRowProps<TData> {
|
|
3
|
-
headerGroup
|
|
4
|
+
headerGroup?: HeaderGroup<TData>;
|
|
4
5
|
enableRowSelection?: boolean;
|
|
5
|
-
table
|
|
6
|
+
table?: {
|
|
6
7
|
getIsAllRowsSelected: () => boolean;
|
|
7
8
|
getIsSomeRowsSelected: () => boolean;
|
|
8
9
|
getToggleAllRowsSelectedHandler: () => (event: unknown) => void;
|
|
9
10
|
};
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
10
13
|
}
|
|
11
|
-
export declare
|
|
14
|
+
export declare const HeaderRow: <TData>(props: HeaderRowProps<TData> & React.RefAttributes<HTMLTableRowElement>) => JSX.Element | null;
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { flexRender as u } from "../../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
3
4
|
import { DataTable as t } from "../index.js";
|
|
4
|
-
import { css as
|
|
5
|
-
|
|
6
|
-
headerGroup:
|
|
7
|
-
enableRowSelection:
|
|
8
|
-
table: o
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { css as R } from "../../../styled-system/css/css.js";
|
|
6
|
+
const w = ({
|
|
7
|
+
headerGroup: r,
|
|
8
|
+
enableRowSelection: d,
|
|
9
|
+
table: o,
|
|
10
|
+
children: l,
|
|
11
|
+
className: c
|
|
12
|
+
}, s) => l ? /* @__PURE__ */ n(t.Tr, { ref: s, className: c, children: l }) : !r || !o ? null : /* @__PURE__ */ g(t.Tr, { ref: s, className: c, children: [
|
|
13
|
+
d && /* @__PURE__ */ n(
|
|
14
|
+
t.HeaderCheckbox,
|
|
15
|
+
{
|
|
16
|
+
checked: o.getIsSomeRowsSelected() ? "indeterminate" : !!o.getIsAllRowsSelected(),
|
|
17
|
+
onChange: o.getToggleAllRowsSelectedHandler(),
|
|
18
|
+
value: "select-all",
|
|
19
|
+
className: R({
|
|
20
|
+
verticalAlign: "middle"
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
r.headers.map((e) => {
|
|
25
|
+
const i = e.column.getCanSort(), a = e.column.getIsSorted();
|
|
26
|
+
return /* @__PURE__ */ n(
|
|
27
|
+
t.HeaderCell,
|
|
13
28
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
t.HeaderCell,
|
|
26
|
-
{
|
|
27
|
-
sortable: c,
|
|
28
|
-
sortDirection: s,
|
|
29
|
-
onSort: () => e.column.toggleSorting(),
|
|
30
|
-
children: i(e.column.columnDef.header, e.getContext())
|
|
31
|
-
},
|
|
32
|
-
e.id
|
|
33
|
-
);
|
|
34
|
-
})
|
|
35
|
-
] }, l.id);
|
|
36
|
-
}
|
|
29
|
+
sortable: i,
|
|
30
|
+
sortDirection: a,
|
|
31
|
+
onSort: () => e.column.toggleSorting(),
|
|
32
|
+
children: u(e.column.columnDef.header, e.getContext())
|
|
33
|
+
},
|
|
34
|
+
e.id
|
|
35
|
+
);
|
|
36
|
+
})
|
|
37
|
+
] }, r.id), m = f.forwardRef(w);
|
|
38
|
+
m.displayName = "HeaderRow";
|
|
39
|
+
const T = m;
|
|
37
40
|
export {
|
|
38
|
-
|
|
41
|
+
T as HeaderRow
|
|
39
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<{
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
className?: string;
|
|
5
|
-
}
|
|
5
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "className">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import l from "react";
|
|
3
|
+
import { sva as c } from "../../../styled-system/css/sva.js";
|
|
4
|
+
import { cx as n } from "../../../styled-system/css/cx.js";
|
|
5
|
+
const d = c({
|
|
5
6
|
slots: ["container", "table"],
|
|
6
7
|
base: {
|
|
7
8
|
container: {
|
|
@@ -19,14 +20,10 @@ const l = s({
|
|
|
19
20
|
borderSpacing: 0
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
}), f = l.forwardRef(({ children: r, className: t, ...a }, s) => {
|
|
24
|
+
const o = d();
|
|
25
|
+
return /* @__PURE__ */ e("div", { ref: s, className: n(o.container, t), ...a, children: /* @__PURE__ */ e("table", { role: "table", className: o.table, children: r }) });
|
|
22
26
|
});
|
|
23
|
-
function b({
|
|
24
|
-
children: r,
|
|
25
|
-
className: t
|
|
26
|
-
}) {
|
|
27
|
-
const o = l();
|
|
28
|
-
return /* @__PURE__ */ e("div", { className: a(o.container, t), children: /* @__PURE__ */ e("table", { role: "table", className: o.table, children: r }) });
|
|
29
|
-
}
|
|
30
27
|
export {
|
|
31
|
-
|
|
28
|
+
f as Root
|
|
32
29
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Row as TanstackRow } from '@tanstack/react-table';
|
|
2
|
-
export
|
|
3
|
-
row
|
|
3
|
+
export interface RowProps<TData> {
|
|
4
|
+
row?: TanstackRow<TData>;
|
|
4
5
|
enableRowSelection?: boolean;
|
|
5
|
-
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Row: <TData>(props: RowProps<TData> & React.RefAttributes<HTMLTableRowElement>) => JSX.Element | null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { flexRender as y } from "../../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
3
4
|
import { DataTable as o } from "../index.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
5
|
+
import { cx as l } from "../../../styled-system/css/cx.js";
|
|
6
|
+
import { cva as g } from "../../../styled-system/css/cva.js";
|
|
7
|
+
const m = g({
|
|
6
8
|
base: {
|
|
7
9
|
_hover: {
|
|
8
10
|
_after: {
|
|
@@ -52,37 +54,47 @@ const c = m({
|
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
}), v = ({ row: e, enableRowSelection: c, children: r, selected: d, className: s }, i) => r ? /* @__PURE__ */ n(
|
|
58
|
+
o.Tr,
|
|
59
|
+
{
|
|
60
|
+
ref: i,
|
|
61
|
+
className: l(
|
|
62
|
+
m({ state: d ? "selected" : void 0 }),
|
|
63
|
+
s
|
|
64
|
+
),
|
|
65
|
+
children: r
|
|
66
|
+
}
|
|
67
|
+
) : e ? /* @__PURE__ */ f(
|
|
68
|
+
o.Tr,
|
|
69
|
+
{
|
|
70
|
+
ref: i,
|
|
71
|
+
className: l(
|
|
72
|
+
m({
|
|
64
73
|
state: e.getIsSelected() ? "selected" : void 0
|
|
65
74
|
}),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
75
|
+
s
|
|
76
|
+
),
|
|
77
|
+
children: [
|
|
78
|
+
c && /* @__PURE__ */ n(
|
|
79
|
+
o.BodyCheckbox,
|
|
80
|
+
{
|
|
81
|
+
checked: e.getIsSelected(),
|
|
82
|
+
onChange: e.getToggleSelectedHandler(),
|
|
83
|
+
value: e.id
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
e.getVisibleCells().map((t) => {
|
|
87
|
+
const p = x(t);
|
|
88
|
+
return /* @__PURE__ */ n(o.BodyCell, { type: p, children: y(t.column.columnDef.cell, t.getContext()) }, t.id);
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
) : null, a = u.forwardRef(v);
|
|
93
|
+
a.displayName = "Row";
|
|
94
|
+
const w = a;
|
|
95
|
+
function x(e) {
|
|
84
96
|
return e.column.columnDef.meta && "getType" in e.column.columnDef.meta && typeof e.column.columnDef.meta.getType == "function" ? e.column.columnDef.meta.getType(e.row.original) : "default";
|
|
85
97
|
}
|
|
86
98
|
export {
|
|
87
|
-
|
|
99
|
+
w as Row
|
|
88
100
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Tbody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
const a = f.forwardRef(({ children: o, ...r }, t) => /* @__PURE__ */ e("tbody", { ref: t, ...r, children: o }));
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
a as Tbody
|
|
7
6
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Thead: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
const m = a.forwardRef(({ children: r, ...t }, e) => /* @__PURE__ */ o("thead", { ref: e, ...t, children: r }));
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
m as Thead
|
|
7
6
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const Tr: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
children: r
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { cx as i } from "../../../styled-system/css/cx.js";
|
|
4
|
+
import { css as s } from "../../../styled-system/css/css.js";
|
|
5
|
+
const n = f.forwardRef(({ children: r, className: o, ...t }, e) => /* @__PURE__ */ m(
|
|
6
|
+
"tr",
|
|
7
|
+
{
|
|
8
|
+
ref: e,
|
|
9
|
+
role: "row",
|
|
10
|
+
className: i(
|
|
11
|
+
s({
|
|
12
|
+
position: "relative"
|
|
13
|
+
}),
|
|
14
|
+
o
|
|
15
|
+
),
|
|
16
|
+
...t,
|
|
17
|
+
children: r
|
|
18
|
+
}
|
|
19
|
+
));
|
|
24
20
|
export {
|
|
25
|
-
|
|
21
|
+
n as Tr
|
|
26
22
|
};
|
|
@@ -21,7 +21,7 @@ const o = e({
|
|
|
21
21
|
zIndex: "sd.system.elevation.zIndex.dropdown"
|
|
22
22
|
},
|
|
23
23
|
content: {
|
|
24
|
-
background: "sd.system.color.component.
|
|
24
|
+
background: "sd.system.color.component.surfaceContainerBright",
|
|
25
25
|
borderRadius: "sd.system.dimension.radius.medium",
|
|
26
26
|
boxShadow: "sd.system.elevation.shadow.level1",
|
|
27
27
|
flexDirection: "column",
|
|
@@ -3,10 +3,10 @@ import { RecipeVariantProps } from '../../../styled-system/css';
|
|
|
3
3
|
export declare const DividerStyle: import('../../../styled-system/types').RecipeRuntimeFn<{
|
|
4
4
|
color: {
|
|
5
5
|
light: {
|
|
6
|
-
borderColor: "sd.
|
|
6
|
+
borderColor: "sd.system.color.component.outlineBright";
|
|
7
7
|
};
|
|
8
8
|
normal: {
|
|
9
|
-
borderColor: "sd.
|
|
9
|
+
borderColor: "sd.system.color.component.outline";
|
|
10
10
|
};
|
|
11
11
|
dark: {
|
|
12
12
|
borderColor: "sd.system.color.component.outlineDim";
|