@worknice/whiteboard 0.52.1 → 0.54.0
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/{presentation/TableColumnFilterModal.d.ts → controls/FilterModal.d.ts} +10 -3
- package/dist/{presentation/TableColumnFilterModal.js → controls/FilterModal.js} +32 -32
- package/dist/controls/FilterModal.module.js +13 -0
- package/dist/controls/FilterModal_module.css +60 -0
- package/dist/controls/MenuButton.js +1 -1
- package/dist/icons/MessagesIcon.d.ts +3 -0
- package/dist/icons/MessagesIcon.js +11 -0
- package/dist/icons/SlidersIcon.d.ts +3 -0
- package/dist/icons/SlidersIcon.js +12 -0
- package/dist/icons/WarningIcon.js +3 -3
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +3 -1
- package/dist/presentation/CustomizableTable/CustomizableTable.d.ts +1 -1
- package/dist/presentation/CustomizableTable/CustomizableTable.js +3 -3
- package/dist/presentation/RichList/RichList.d.ts +153 -0
- package/dist/presentation/RichList/RichList.js +605 -0
- package/dist/presentation/RichList/RichList.module.js +12 -0
- package/dist/presentation/RichList/RichList.stories.d.ts +26 -0
- package/dist/presentation/RichList/RichList.stories.js +348 -0
- package/dist/presentation/RichList/RichListBulkActionBar.d.ts +21 -0
- package/dist/presentation/RichList/RichListBulkActionBar.js +112 -0
- package/dist/presentation/RichList/RichListBulkActionBar.module.js +7 -0
- package/dist/presentation/RichList/RichListBulkActionBar_module.css +18 -0
- package/dist/presentation/RichList/RichListDisplayModal.d.ts +33 -0
- package/dist/presentation/RichList/RichListDisplayModal.js +198 -0
- package/dist/presentation/RichList/RichListRow.d.ts +39 -0
- package/dist/presentation/RichList/RichListRow.js +278 -0
- package/dist/presentation/RichList/RichListRow.module.js +34 -0
- package/dist/presentation/RichList/RichListRow_module.css +313 -0
- package/dist/presentation/RichList/RichListToolbar.d.ts +36 -0
- package/dist/presentation/RichList/RichListToolbar.js +134 -0
- package/dist/presentation/RichList/RichListToolbar.module.js +12 -0
- package/dist/presentation/RichList/RichListToolbar_module.css +100 -0
- package/dist/presentation/RichList/RichList_module.css +77 -0
- package/dist/presentation/RichList/helpers.d.ts +77 -0
- package/dist/presentation/RichList/helpers.js +121 -0
- package/dist/presentation/RichList/stories/ComplianceGroups.d.ts +9 -0
- package/dist/presentation/RichList/stories/ComplianceGroups.js +141 -0
- package/dist/presentation/RichList/stories/CustomFields.d.ts +13 -0
- package/dist/presentation/RichList/stories/CustomFields.js +80 -0
- package/dist/presentation/RichList/stories/EmployeeCompliance.d.ts +15 -0
- package/dist/presentation/RichList/stories/EmployeeCompliance.js +300 -0
- package/dist/presentation/RichList/stories/EmployeePaperwork.d.ts +21 -0
- package/dist/presentation/RichList/stories/EmployeePaperwork.js +225 -0
- package/dist/presentation/RichList/stories/EmployeePeople.d.ts +10 -0
- package/dist/presentation/RichList/stories/EmployeePeople.js +170 -0
- package/dist/presentation/RichList/stories/Leave.d.ts +21 -0
- package/dist/presentation/RichList/stories/Leave.js +332 -0
- package/dist/presentation/RichList/stories/Paperwork.d.ts +22 -0
- package/dist/presentation/RichList/stories/Paperwork.js +446 -0
- package/dist/presentation/RichList/stories/PaperworkApprovals.d.ts +23 -0
- package/dist/presentation/RichList/stories/PaperworkApprovals.js +342 -0
- package/dist/presentation/RichList/stories/PeopleList.d.ts +19 -0
- package/dist/presentation/RichList/stories/PeopleList.js +391 -0
- package/dist/presentation/RichList/stories/PeopleTags.d.ts +14 -0
- package/dist/presentation/RichList/stories/PeopleTags.js +106 -0
- package/dist/presentation/RichList/stories/Positions.d.ts +22 -0
- package/dist/presentation/RichList/stories/Positions.js +519 -0
- package/dist/presentation/RichList/stories/Reviews.d.ts +19 -0
- package/dist/presentation/RichList/stories/Reviews.js +215 -0
- package/dist/presentation/RichList/stories/SavedQuestions.d.ts +13 -0
- package/dist/presentation/RichList/stories/SavedQuestions.js +152 -0
- package/dist/presentation/RichList/stories/Tables.d.ts +9 -0
- package/dist/presentation/RichList/stories/Tables.js +85 -0
- package/dist/presentation/RichList/stories/Tasks.d.ts +16 -0
- package/dist/presentation/RichList/stories/Tasks.js +340 -0
- package/dist/presentation/RichList/stories/shared/bulkActionStubs.d.ts +9 -0
- package/dist/presentation/RichList/stories/shared/bulkActionStubs.js +122 -0
- package/dist/presentation/RichList/stories/shared.d.ts +8 -0
- package/dist/presentation/RichList/stories/shared.js +2 -0
- package/dist/presentation/RichList/types.d.ts +347 -0
- package/dist/presentation/RichList/types.js +0 -0
- package/dist/presentation/Table.d.ts +1 -1
- package/dist/presentation/Table.js +2 -2
- package/dist/presentation/Table.module.js +0 -10
- package/dist/presentation/Table_module.css +1 -61
- package/package.json +2 -2
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__PersonAvatar_js_0117b3ba__ from "../../PersonAvatar.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__ from "./shared.js";
|
|
6
|
+
const formatListDate = (isoDate)=>{
|
|
7
|
+
const d = new Date(`${isoDate}T12:00:00`);
|
|
8
|
+
return new Intl.DateTimeFormat("en-GB", {
|
|
9
|
+
day: "numeric",
|
|
10
|
+
month: "short",
|
|
11
|
+
year: "numeric"
|
|
12
|
+
}).format(d);
|
|
13
|
+
};
|
|
14
|
+
const reviewRows = [
|
|
15
|
+
{
|
|
16
|
+
id: "pr-1",
|
|
17
|
+
cycleName: "2026 Q1 Check-ins",
|
|
18
|
+
reviewBadging: "self",
|
|
19
|
+
reviewStatus: "assigned",
|
|
20
|
+
dueDate: "2026-03-01",
|
|
21
|
+
submittedAt: null,
|
|
22
|
+
personName: "Alex Chen",
|
|
23
|
+
personHue: "220",
|
|
24
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(11)
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "pr-2",
|
|
28
|
+
cycleName: "2026 Q1 Check-ins",
|
|
29
|
+
reviewBadging: "peer",
|
|
30
|
+
reviewStatus: "assigned",
|
|
31
|
+
dueDate: "2026-03-08",
|
|
32
|
+
submittedAt: null,
|
|
33
|
+
personName: "Jordan Lee",
|
|
34
|
+
personHue: "280",
|
|
35
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(22)
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "pr-3",
|
|
39
|
+
cycleName: "2026 Mid-year Review",
|
|
40
|
+
reviewBadging: "self",
|
|
41
|
+
reviewStatus: "assigned",
|
|
42
|
+
dueDate: "2026-06-30",
|
|
43
|
+
submittedAt: null,
|
|
44
|
+
personName: "Sam Rivera",
|
|
45
|
+
personHue: "40",
|
|
46
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(33)
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "pr-4",
|
|
50
|
+
cycleName: "2026 Q1 Check-ins",
|
|
51
|
+
reviewBadging: "self",
|
|
52
|
+
reviewStatus: "submitted",
|
|
53
|
+
dueDate: "2026-03-15",
|
|
54
|
+
submittedAt: "2026-03-10T09:00:00.000Z",
|
|
55
|
+
personName: "Riley Nguyen",
|
|
56
|
+
personHue: "160",
|
|
57
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(11)
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "pr-5",
|
|
61
|
+
cycleName: "2026 Q1 Check-ins",
|
|
62
|
+
reviewBadging: "peer",
|
|
63
|
+
reviewStatus: "submitted",
|
|
64
|
+
dueDate: "2026-03-20",
|
|
65
|
+
submittedAt: "2026-03-18T14:30:00.000Z",
|
|
66
|
+
personName: "Morgan Blake",
|
|
67
|
+
personHue: "300",
|
|
68
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(22)
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "pr-6",
|
|
72
|
+
cycleName: "2026 Mid-year Review",
|
|
73
|
+
reviewBadging: "peer",
|
|
74
|
+
reviewStatus: "submitted",
|
|
75
|
+
dueDate: "2026-07-05",
|
|
76
|
+
submittedAt: "2026-06-28T11:15:00.000Z",
|
|
77
|
+
personName: "Casey Park",
|
|
78
|
+
personHue: "100",
|
|
79
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(33)
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "pr-7",
|
|
83
|
+
cycleName: "2026 End of year",
|
|
84
|
+
reviewBadging: "self",
|
|
85
|
+
reviewStatus: "submitted",
|
|
86
|
+
dueDate: "2026-11-30",
|
|
87
|
+
submittedAt: "2026-11-24T16:45:00.000Z",
|
|
88
|
+
personName: "Taylor Brooks",
|
|
89
|
+
personHue: "20",
|
|
90
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(11)
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "pr-8",
|
|
94
|
+
cycleName: "2026 End of year",
|
|
95
|
+
reviewBadging: "peer",
|
|
96
|
+
reviewStatus: "submitted",
|
|
97
|
+
dueDate: "2026-11-30",
|
|
98
|
+
submittedAt: "2026-11-29T08:20:00.000Z",
|
|
99
|
+
personName: "Jamie Patel",
|
|
100
|
+
personHue: "200",
|
|
101
|
+
personImageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(22)
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
const renderDueLine = (row)=>{
|
|
105
|
+
switch(row.reviewStatus){
|
|
106
|
+
case "assigned":
|
|
107
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
108
|
+
font: "small",
|
|
109
|
+
tone: "muted",
|
|
110
|
+
children: [
|
|
111
|
+
"Due ",
|
|
112
|
+
formatListDate(row.dueDate)
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
case "submitted":
|
|
116
|
+
if (!row.submittedAt) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
117
|
+
font: "small",
|
|
118
|
+
tone: "muted",
|
|
119
|
+
children: "Submitted"
|
|
120
|
+
});
|
|
121
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
122
|
+
font: "small",
|
|
123
|
+
tone: "muted",
|
|
124
|
+
children: [
|
|
125
|
+
"Submitted ",
|
|
126
|
+
formatListDate(row.submittedAt.slice(0, 10))
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
case "incomplete":
|
|
130
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
131
|
+
font: "small",
|
|
132
|
+
tone: "muted",
|
|
133
|
+
children: [
|
|
134
|
+
"Was due ",
|
|
135
|
+
formatListDate(row.dueDate)
|
|
136
|
+
]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const avatarSlot = {
|
|
141
|
+
id: "reviewee",
|
|
142
|
+
render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PersonAvatar_js_0117b3ba__["default"], {
|
|
143
|
+
hue: r.personHue,
|
|
144
|
+
id: r.id,
|
|
145
|
+
imageUrl: r.personImageUrl,
|
|
146
|
+
name: r.personName,
|
|
147
|
+
size: "small"
|
|
148
|
+
}),
|
|
149
|
+
size: 48
|
|
150
|
+
};
|
|
151
|
+
const primaryField = {
|
|
152
|
+
label: "Review",
|
|
153
|
+
value: (r)=>`${r.cycleName} ${r.personName}`,
|
|
154
|
+
globalFiltering: true,
|
|
155
|
+
render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
156
|
+
font: "regular-bold",
|
|
157
|
+
children: r.cycleName
|
|
158
|
+
})
|
|
159
|
+
};
|
|
160
|
+
const secondaryTypeField = {
|
|
161
|
+
render: (r)=>renderDueLine(r)
|
|
162
|
+
};
|
|
163
|
+
const statusFilterSlot = {
|
|
164
|
+
id: "reviewStatus",
|
|
165
|
+
label: "",
|
|
166
|
+
hiddenByDefault: true,
|
|
167
|
+
value: (r)=>r.reviewStatus,
|
|
168
|
+
globalFiltering: false,
|
|
169
|
+
render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
170
|
+
font: "small",
|
|
171
|
+
tone: "muted",
|
|
172
|
+
children: r.reviewStatus
|
|
173
|
+
}),
|
|
174
|
+
filter: {
|
|
175
|
+
label: "Status",
|
|
176
|
+
options: [
|
|
177
|
+
{
|
|
178
|
+
id: "assigned",
|
|
179
|
+
label: "Assigned",
|
|
180
|
+
predicate: (r)=>"assigned" === r.reviewStatus
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "submitted",
|
|
184
|
+
label: "Submitted",
|
|
185
|
+
predicate: (r)=>"submitted" === r.reviewStatus
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: "incomplete",
|
|
189
|
+
label: "Incomplete",
|
|
190
|
+
predicate: (r)=>"incomplete" === r.reviewStatus
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
const ReviewsList = ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__["default"], {
|
|
196
|
+
data: reviewRows,
|
|
197
|
+
getRowId: (r)=>r.id,
|
|
198
|
+
fillContainerHeight: true,
|
|
199
|
+
compactBreakpoint: compactBreakpoint,
|
|
200
|
+
contentAlignment: contentAlignment,
|
|
201
|
+
enableSorting: enableSorting,
|
|
202
|
+
rowHeight: rowHeight,
|
|
203
|
+
leadingSlot: avatarSlot,
|
|
204
|
+
mainSlot: {
|
|
205
|
+
size: 380,
|
|
206
|
+
primary: primaryField,
|
|
207
|
+
secondary: secondaryTypeField
|
|
208
|
+
},
|
|
209
|
+
contentSlots: [
|
|
210
|
+
statusFilterSlot
|
|
211
|
+
],
|
|
212
|
+
href: (r)=>`#review-${r.id}`
|
|
213
|
+
});
|
|
214
|
+
const Reviews_rslib_entry_ = ReviewsList;
|
|
215
|
+
export { Reviews_rslib_entry_ as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import Badge from "../../Badge";
|
|
3
|
+
import { type CommonProps } from "./shared";
|
|
4
|
+
type BadgeColor = NonNullable<ComponentProps<typeof Badge>["color"]>;
|
|
5
|
+
export type SavedQuestionsRow = {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
responseCount: number;
|
|
9
|
+
questionTypeLabel: string;
|
|
10
|
+
questionTypeColor: BadgeColor;
|
|
11
|
+
};
|
|
12
|
+
declare const SavedQuestionsList: ({ compactBreakpoint, contentAlignment, rowHeight }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default SavedQuestionsList;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__ from "../../Badge.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__ from "../../HStack.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__ from "../../Icon.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
7
|
+
const questions = [
|
|
8
|
+
{
|
|
9
|
+
id: "sq1",
|
|
10
|
+
title: "Communication",
|
|
11
|
+
responseCount: 4,
|
|
12
|
+
questionTypeLabel: "Likert scale",
|
|
13
|
+
questionTypeColor: "blue"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "sq2",
|
|
17
|
+
title: "Customer centricity",
|
|
18
|
+
responseCount: 4,
|
|
19
|
+
questionTypeLabel: "Multiple choice",
|
|
20
|
+
questionTypeColor: "purple"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "sq3",
|
|
24
|
+
title: "Development planning",
|
|
25
|
+
responseCount: 4,
|
|
26
|
+
questionTypeLabel: "Text",
|
|
27
|
+
questionTypeColor: "green"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "sq4",
|
|
31
|
+
title: "Goals for the next period",
|
|
32
|
+
responseCount: 4,
|
|
33
|
+
questionTypeLabel: "Text",
|
|
34
|
+
questionTypeColor: "green"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "sq5",
|
|
38
|
+
title: "Leadership",
|
|
39
|
+
responseCount: 4,
|
|
40
|
+
questionTypeLabel: "Likert scale",
|
|
41
|
+
questionTypeColor: "blue"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "sq6",
|
|
45
|
+
title: "Operational excellence",
|
|
46
|
+
responseCount: 4,
|
|
47
|
+
questionTypeLabel: "Multiple choice",
|
|
48
|
+
questionTypeColor: "purple"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "sq7",
|
|
52
|
+
title: "Problem solving",
|
|
53
|
+
responseCount: 4,
|
|
54
|
+
questionTypeLabel: "Likert scale",
|
|
55
|
+
questionTypeColor: "blue"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "sq8",
|
|
59
|
+
title: "Suggested areas of improvement",
|
|
60
|
+
responseCount: 4,
|
|
61
|
+
questionTypeLabel: "Text",
|
|
62
|
+
questionTypeColor: "green"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "sq9",
|
|
66
|
+
title: "Teamwork",
|
|
67
|
+
responseCount: 4,
|
|
68
|
+
questionTypeLabel: "Multiple choice",
|
|
69
|
+
questionTypeColor: "purple"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "sq10",
|
|
73
|
+
title: "Additional Comments",
|
|
74
|
+
responseCount: 3,
|
|
75
|
+
questionTypeLabel: "Text",
|
|
76
|
+
questionTypeColor: "green"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "sq11",
|
|
80
|
+
title: "Any other feedback on your on-boarding experience?",
|
|
81
|
+
responseCount: 3,
|
|
82
|
+
questionTypeLabel: "Text",
|
|
83
|
+
questionTypeColor: "green"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: "sq12",
|
|
87
|
+
title: "I had the resources necessary to quickly get up to speed",
|
|
88
|
+
responseCount: 3,
|
|
89
|
+
questionTypeLabel: "Likert scale",
|
|
90
|
+
questionTypeColor: "blue"
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
function responsesLabel(n) {
|
|
94
|
+
return 1 === n ? "1 response" : `${n} responses`;
|
|
95
|
+
}
|
|
96
|
+
const rowActions = ()=>[
|
|
97
|
+
{
|
|
98
|
+
id: "more",
|
|
99
|
+
label: "Question actions",
|
|
100
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__["default"], {
|
|
101
|
+
symbol: "Edit"
|
|
102
|
+
}),
|
|
103
|
+
alwaysVisible: false,
|
|
104
|
+
onClick: ()=>void 0
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
const SavedQuestionsList = ({ compactBreakpoint, contentAlignment, rowHeight })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__["default"], {
|
|
108
|
+
compactBreakpoint: compactBreakpoint,
|
|
109
|
+
contentAlignment: contentAlignment,
|
|
110
|
+
data: questions,
|
|
111
|
+
enableSorting: false,
|
|
112
|
+
fillContainerHeight: true,
|
|
113
|
+
getRowId: (r)=>r.id,
|
|
114
|
+
rowActions: rowActions,
|
|
115
|
+
rowHeight: rowHeight,
|
|
116
|
+
mainSlot: {
|
|
117
|
+
primary: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
118
|
+
font: "regular-bold",
|
|
119
|
+
children: r.title
|
|
120
|
+
}),
|
|
121
|
+
secondary: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__["default"], {
|
|
122
|
+
spacing: "n2",
|
|
123
|
+
align: "center",
|
|
124
|
+
tagName: "div",
|
|
125
|
+
children: [
|
|
126
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__["default"], {
|
|
127
|
+
symbol: "Comment",
|
|
128
|
+
size: "small",
|
|
129
|
+
tone: "muted"
|
|
130
|
+
}),
|
|
131
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
132
|
+
font: "small",
|
|
133
|
+
tone: "muted",
|
|
134
|
+
children: responsesLabel(r.responseCount)
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
})
|
|
138
|
+
},
|
|
139
|
+
trailingSlot: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
140
|
+
style: {
|
|
141
|
+
display: "flex",
|
|
142
|
+
justifyContent: "flex-end"
|
|
143
|
+
},
|
|
144
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__["default"], {
|
|
145
|
+
id: `${r.id}-qtype`,
|
|
146
|
+
color: r.questionTypeColor,
|
|
147
|
+
children: r.questionTypeLabel
|
|
148
|
+
})
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
const SavedQuestions_rslib_entry_ = SavedQuestionsList;
|
|
152
|
+
export { SavedQuestions_rslib_entry_ as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CommonProps } from "./shared";
|
|
2
|
+
export type TablesRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
columnCount: number;
|
|
7
|
+
};
|
|
8
|
+
declare const TablesList: ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight, }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default TablesList;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__ from "../../HStack.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__ from "../../Icon.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
6
|
+
const tables = [
|
|
7
|
+
{
|
|
8
|
+
id: "t1",
|
|
9
|
+
title: "Emergency contact information",
|
|
10
|
+
description: "A table capturing employee emergency contact details",
|
|
11
|
+
columnCount: 5
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "t2",
|
|
15
|
+
title: "Employment details",
|
|
16
|
+
description: "A structured overview of each employee's role and reporting line.",
|
|
17
|
+
columnCount: 8
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "t3",
|
|
21
|
+
title: "Compensation overview",
|
|
22
|
+
description: "A real-time view of compensation data synced from your payroll system",
|
|
23
|
+
columnCount: 7
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "t4",
|
|
27
|
+
title: "Payroll report",
|
|
28
|
+
description: "A centralised view of employee payroll-related information.",
|
|
29
|
+
columnCount: 6
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "t5",
|
|
33
|
+
title: "Current onboarders",
|
|
34
|
+
description: "Track employees who are currently onboarding",
|
|
35
|
+
columnCount: 4
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "t6",
|
|
39
|
+
title: "Probation tracker",
|
|
40
|
+
description: "All employees currently under probation",
|
|
41
|
+
columnCount: 5
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
const TablesList = ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__["default"], {
|
|
45
|
+
data: tables,
|
|
46
|
+
fillContainerHeight: true,
|
|
47
|
+
compactBreakpoint: compactBreakpoint,
|
|
48
|
+
contentAlignment: contentAlignment,
|
|
49
|
+
enableSorting: enableSorting,
|
|
50
|
+
getRowId: (r)=>r.id,
|
|
51
|
+
href: ()=>"#",
|
|
52
|
+
rowHeight: rowHeight,
|
|
53
|
+
mainSlot: {
|
|
54
|
+
primary: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
55
|
+
font: "regular-bold",
|
|
56
|
+
children: r.title
|
|
57
|
+
}),
|
|
58
|
+
secondary: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
59
|
+
font: "small",
|
|
60
|
+
tone: "muted",
|
|
61
|
+
children: r.description
|
|
62
|
+
})
|
|
63
|
+
},
|
|
64
|
+
trailingSlot: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__["default"], {
|
|
65
|
+
align: "center",
|
|
66
|
+
spacing: "n2",
|
|
67
|
+
children: [
|
|
68
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__["default"], {
|
|
69
|
+
symbol: "Columns",
|
|
70
|
+
size: "small",
|
|
71
|
+
tone: "muted"
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
74
|
+
font: "small",
|
|
75
|
+
tone: "muted",
|
|
76
|
+
children: [
|
|
77
|
+
r.columnCount,
|
|
78
|
+
" columns"
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
const Tables_rslib_entry_ = TablesList;
|
|
85
|
+
export { Tables_rslib_entry_ as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type CommonProps } from "./shared";
|
|
2
|
+
type DueStyle = "soon" | "overdue" | "later";
|
|
3
|
+
export type TasksRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
/** Row 11: Draft badge on the title. */
|
|
7
|
+
isDraft: boolean;
|
|
8
|
+
dueText: string;
|
|
9
|
+
dueStyle: DueStyle;
|
|
10
|
+
assigneeName: string;
|
|
11
|
+
assigneeImageUrl: string;
|
|
12
|
+
/** Far-right “secondary” person. */
|
|
13
|
+
secondaryImageUrl: string;
|
|
14
|
+
};
|
|
15
|
+
declare const TasksList: ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight, }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default TasksList;
|