@cerberus-design/data-grid 0.25.3 → 1.0.0-rc.6
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/column-helpers.cjs +55 -21
- package/dist/column-helpers.js +55 -17
- package/dist/components/cerby-data-grid.client.cjs +12 -11
- package/dist/components/cerby-data-grid.client.js +12 -7
- package/dist/components/count-menu.client.cjs +46 -49
- package/dist/components/count-menu.client.js +46 -45
- package/dist/components/data-grid.client.cjs +89 -82
- package/dist/components/data-grid.client.js +89 -78
- package/dist/components/features.client.cjs +72 -76
- package/dist/components/features.client.js +72 -72
- package/dist/components/grid.client.cjs +280 -309
- package/dist/components/grid.client.js +281 -303
- package/dist/components/pagination.client.cjs +90 -113
- package/dist/components/pagination.client.js +90 -109
- package/dist/components/pinned-items.client.cjs +60 -59
- package/dist/components/pinned-items.client.js +60 -55
- package/dist/components/sort-items.client.cjs +44 -49
- package/dist/components/sort-items.client.js +44 -45
- package/dist/const.cjs +32 -43
- package/dist/const.js +33 -31
- package/dist/context.client.cjs +12 -12
- package/dist/context.client.js +12 -8
- package/dist/hooks.client.cjs +13 -20
- package/dist/hooks.client.js +13 -16
- package/dist/index.cjs +9 -15
- package/dist/index.js +5 -4
- package/dist/panda.buildinfo.json +23 -0
- package/dist/store.cjs +241 -284
- package/dist/store.js +241 -280
- package/dist/utils.cjs +23 -45
- package/dist/utils.js +23 -41
- package/dist/virtualizer.client.cjs +63 -53
- package/dist/virtualizer.client.js +63 -49
- package/package.json +33 -27
|
@@ -1,116 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const countMenu_client = require('./count-menu.client.cjs');
|
|
11
|
-
const signals = require('@cerberus-design/signals');
|
|
12
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
const require_context_client = require("../context.client.cjs");
|
|
4
|
+
const require_count_menu_client = require("./count-menu.client.cjs");
|
|
5
|
+
let _cerberus_design_react = require("@cerberus-design/react");
|
|
6
|
+
let _cerberus_design_signals = require("@cerberus-design/signals");
|
|
7
|
+
let styled_system_jsx = require("styled-system/jsx");
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
//#region src/components/pagination.client.tsx
|
|
13
10
|
function GridPagination() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
as: "small",
|
|
96
|
-
color: "page.text.200",
|
|
97
|
-
lineHeight: "inherit",
|
|
98
|
-
textStyle: "label-sm",
|
|
99
|
-
userSelect: "none",
|
|
100
|
-
children: [
|
|
101
|
-
pagination.page,
|
|
102
|
-
" of ",
|
|
103
|
-
pagination.totalPages
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.NextTrigger, { size: "sm" })
|
|
108
|
-
] })
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
) })
|
|
112
|
-
}
|
|
113
|
-
) });
|
|
11
|
+
const store = require_context_client.useDataGridContext();
|
|
12
|
+
const pageIndex = (0, _cerberus_design_signals.useRead)(store.pageIndex);
|
|
13
|
+
const pageSize = (0, _cerberus_design_signals.useRead)(store.pageSize);
|
|
14
|
+
const rowCount = (0, _cerberus_design_signals.useRead)(store.rowCount);
|
|
15
|
+
function handlePageChange(details) {
|
|
16
|
+
store.setPage(details);
|
|
17
|
+
}
|
|
18
|
+
function handlePageSizeChange(details) {
|
|
19
|
+
store.setPageSize(details.pageSize);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
|
|
22
|
+
when: pageSize,
|
|
23
|
+
children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.PaginationParts.Root, {
|
|
24
|
+
defaultPage: pageIndex ? pageIndex : 1,
|
|
25
|
+
count: rowCount,
|
|
26
|
+
onPageChange: handlePageChange,
|
|
27
|
+
onPageSizeChange: handlePageSizeChange,
|
|
28
|
+
page: pageIndex,
|
|
29
|
+
pageSize,
|
|
30
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.PaginationParts.Context, { children: (pagination) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
31
|
+
bgColor: "page.surface.100",
|
|
32
|
+
borderTop: "1px solid",
|
|
33
|
+
borderTopColor: "page.border.initial",
|
|
34
|
+
justify: "space-between",
|
|
35
|
+
px: "md",
|
|
36
|
+
py: "sm",
|
|
37
|
+
w: "full",
|
|
38
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
39
|
+
gap: "sm",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_cerberus_design_react.Text, {
|
|
42
|
+
as: "small",
|
|
43
|
+
color: "page.text.100",
|
|
44
|
+
textStyle: "label-sm",
|
|
45
|
+
userSelect: "none",
|
|
46
|
+
children: [
|
|
47
|
+
pagination.pageRange.start,
|
|
48
|
+
"-",
|
|
49
|
+
pagination.pageRange.end,
|
|
50
|
+
" of",
|
|
51
|
+
" ",
|
|
52
|
+
pagination.count
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.Divider, {
|
|
56
|
+
color: "page.border.200",
|
|
57
|
+
orientation: "vertical",
|
|
58
|
+
h: "1rem",
|
|
59
|
+
thickness: "1px"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Text, {
|
|
62
|
+
as: "small",
|
|
63
|
+
color: "page.text.initial",
|
|
64
|
+
textStyle: "label-sm",
|
|
65
|
+
userSelect: "none",
|
|
66
|
+
children: "Rows per page:"
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_count_menu_client.CountMenu, { onValueChange: (details) => {
|
|
69
|
+
pagination.setPageSize(Number(details.value));
|
|
70
|
+
} })
|
|
71
|
+
]
|
|
72
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_cerberus_design_react.Group, { children: [
|
|
73
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.PrevTrigger, { size: "sm" }),
|
|
74
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_cerberus_design_react.Text, {
|
|
75
|
+
as: "small",
|
|
76
|
+
color: "page.text.200",
|
|
77
|
+
lineHeight: "inherit",
|
|
78
|
+
textStyle: "label-sm",
|
|
79
|
+
userSelect: "none",
|
|
80
|
+
children: [
|
|
81
|
+
pagination.page,
|
|
82
|
+
" of ",
|
|
83
|
+
pagination.totalPages
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.NextTrigger, { size: "sm" })
|
|
87
|
+
] })]
|
|
88
|
+
}) })
|
|
89
|
+
})
|
|
90
|
+
});
|
|
114
91
|
}
|
|
115
|
-
|
|
92
|
+
//#endregion
|
|
116
93
|
exports.GridPagination = GridPagination;
|
|
@@ -1,112 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useDataGridContext } from "../context.client.js";
|
|
4
|
+
import { CountMenu } from "./count-menu.client.js";
|
|
5
|
+
import { Group, NextTrigger, PaginationParts, PrevTrigger, Show, Text } from "@cerberus-design/react";
|
|
6
|
+
import { useRead } from "@cerberus-design/signals";
|
|
7
|
+
import { Divider, HStack } from "styled-system/jsx";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/pagination.client.tsx
|
|
9
10
|
function GridPagination() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
as: "small",
|
|
92
|
-
color: "page.text.200",
|
|
93
|
-
lineHeight: "inherit",
|
|
94
|
-
textStyle: "label-sm",
|
|
95
|
-
userSelect: "none",
|
|
96
|
-
children: [
|
|
97
|
-
pagination.page,
|
|
98
|
-
" of ",
|
|
99
|
-
pagination.totalPages
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
/* @__PURE__ */ jsx(NextTrigger, { size: "sm" })
|
|
104
|
-
] })
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
) })
|
|
108
|
-
}
|
|
109
|
-
) });
|
|
11
|
+
const store = useDataGridContext();
|
|
12
|
+
const pageIndex = useRead(store.pageIndex);
|
|
13
|
+
const pageSize = useRead(store.pageSize);
|
|
14
|
+
const rowCount = useRead(store.rowCount);
|
|
15
|
+
function handlePageChange(details) {
|
|
16
|
+
store.setPage(details);
|
|
17
|
+
}
|
|
18
|
+
function handlePageSizeChange(details) {
|
|
19
|
+
store.setPageSize(details.pageSize);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(Show, {
|
|
22
|
+
when: pageSize,
|
|
23
|
+
children: () => /* @__PURE__ */ jsx(PaginationParts.Root, {
|
|
24
|
+
defaultPage: pageIndex ? pageIndex : 1,
|
|
25
|
+
count: rowCount,
|
|
26
|
+
onPageChange: handlePageChange,
|
|
27
|
+
onPageSizeChange: handlePageSizeChange,
|
|
28
|
+
page: pageIndex,
|
|
29
|
+
pageSize,
|
|
30
|
+
children: /* @__PURE__ */ jsx(PaginationParts.Context, { children: (pagination) => /* @__PURE__ */ jsxs(HStack, {
|
|
31
|
+
bgColor: "page.surface.100",
|
|
32
|
+
borderTop: "1px solid",
|
|
33
|
+
borderTopColor: "page.border.initial",
|
|
34
|
+
justify: "space-between",
|
|
35
|
+
px: "md",
|
|
36
|
+
py: "sm",
|
|
37
|
+
w: "full",
|
|
38
|
+
children: [/* @__PURE__ */ jsxs(HStack, {
|
|
39
|
+
gap: "sm",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
42
|
+
as: "small",
|
|
43
|
+
color: "page.text.100",
|
|
44
|
+
textStyle: "label-sm",
|
|
45
|
+
userSelect: "none",
|
|
46
|
+
children: [
|
|
47
|
+
pagination.pageRange.start,
|
|
48
|
+
"-",
|
|
49
|
+
pagination.pageRange.end,
|
|
50
|
+
" of",
|
|
51
|
+
" ",
|
|
52
|
+
pagination.count
|
|
53
|
+
]
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsx(Divider, {
|
|
56
|
+
color: "page.border.200",
|
|
57
|
+
orientation: "vertical",
|
|
58
|
+
h: "1rem",
|
|
59
|
+
thickness: "1px"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ jsx(Text, {
|
|
62
|
+
as: "small",
|
|
63
|
+
color: "page.text.initial",
|
|
64
|
+
textStyle: "label-sm",
|
|
65
|
+
userSelect: "none",
|
|
66
|
+
children: "Rows per page:"
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ jsx(CountMenu, { onValueChange: (details) => {
|
|
69
|
+
pagination.setPageSize(Number(details.value));
|
|
70
|
+
} })
|
|
71
|
+
]
|
|
72
|
+
}), /* @__PURE__ */ jsxs(Group, { children: [
|
|
73
|
+
/* @__PURE__ */ jsx(PrevTrigger, { size: "sm" }),
|
|
74
|
+
/* @__PURE__ */ jsxs(Text, {
|
|
75
|
+
as: "small",
|
|
76
|
+
color: "page.text.200",
|
|
77
|
+
lineHeight: "inherit",
|
|
78
|
+
textStyle: "label-sm",
|
|
79
|
+
userSelect: "none",
|
|
80
|
+
children: [
|
|
81
|
+
pagination.page,
|
|
82
|
+
" of ",
|
|
83
|
+
pagination.totalPages
|
|
84
|
+
]
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx(NextTrigger, { size: "sm" })
|
|
87
|
+
] })]
|
|
88
|
+
}) })
|
|
89
|
+
})
|
|
90
|
+
});
|
|
110
91
|
}
|
|
111
|
-
|
|
92
|
+
//#endregion
|
|
112
93
|
export { GridPagination };
|
|
@@ -1,70 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const signals = require('@cerberus-design/signals');
|
|
9
|
-
const jsx = require('styled-system/jsx');
|
|
10
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
let _cerberus_design_react = require("@cerberus-design/react");
|
|
4
|
+
let _cerberus_design_signals = require("@cerberus-design/signals");
|
|
5
|
+
let styled_system_jsx = require("styled-system/jsx");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
//#region src/components/pinned-items.client.tsx
|
|
11
8
|
function MatchPinnedItems(props) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
] });
|
|
25
|
-
case "left":
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx(MenuItems.right, {}),
|
|
28
|
-
/* @__PURE__ */ jsxRuntime.jsx(MenuItems.unpinLeft, {})
|
|
29
|
-
] });
|
|
30
|
-
default:
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx(MenuItems.right, {}),
|
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsx(MenuItems.left, {})
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
9
|
+
const pinned = (0, _cerberus_design_signals.useRead)(props.pinned);
|
|
10
|
+
const MenuItems = {
|
|
11
|
+
right: PinRightItem,
|
|
12
|
+
left: PinLeftItem,
|
|
13
|
+
unpinRight: UnpinRightItem,
|
|
14
|
+
unpinLeft: UnpinLeftItem
|
|
15
|
+
};
|
|
16
|
+
switch (pinned) {
|
|
17
|
+
case "right": return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.unpinRight, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.left, {})] });
|
|
18
|
+
case "left": return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.right, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.unpinLeft, {})] });
|
|
19
|
+
default: return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.right, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuItems.left, {})] });
|
|
20
|
+
}
|
|
36
21
|
}
|
|
37
22
|
function UnpinRightItem() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
23
|
+
const { icons } = (0, _cerberus_design_react.useCerberusContext)();
|
|
24
|
+
const Icon = icons.pinRightFilled;
|
|
25
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.MenuItem, {
|
|
26
|
+
value: "unpin_right",
|
|
27
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
28
|
+
gap: "sm",
|
|
29
|
+
w: "full",
|
|
30
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}), "Unpin Right"]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
44
33
|
}
|
|
45
34
|
function UnpinLeftItem() {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
35
|
+
const { icons } = (0, _cerberus_design_react.useCerberusContext)();
|
|
36
|
+
const Icon = icons.pinLeftFilled;
|
|
37
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.MenuItem, {
|
|
38
|
+
value: "unpin_left",
|
|
39
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
40
|
+
gap: "sm",
|
|
41
|
+
w: "full",
|
|
42
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}), "Unpin Left"]
|
|
43
|
+
})
|
|
44
|
+
});
|
|
52
45
|
}
|
|
53
46
|
function PinRightItem() {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
const { icons } = (0, _cerberus_design_react.useCerberusContext)();
|
|
48
|
+
const Icon = icons.pinRight;
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.MenuItem, {
|
|
50
|
+
value: "pin_right",
|
|
51
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
52
|
+
gap: "sm",
|
|
53
|
+
w: "full",
|
|
54
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}), "Pin Right"]
|
|
55
|
+
})
|
|
56
|
+
});
|
|
60
57
|
}
|
|
61
58
|
function PinLeftItem() {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
const { icons } = (0, _cerberus_design_react.useCerberusContext)();
|
|
60
|
+
const Icon = icons.pinLeft;
|
|
61
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.MenuItem, {
|
|
62
|
+
value: "pin_left",
|
|
63
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
|
|
64
|
+
gap: "sm",
|
|
65
|
+
w: "full",
|
|
66
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {}), "Pin Left"]
|
|
67
|
+
})
|
|
68
|
+
});
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
//#endregion
|
|
70
71
|
exports.MatchPinnedItems = MatchPinnedItems;
|