@worknice/whiteboard 0.52.1 → 0.53.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.
Files changed (75) hide show
  1. package/dist/{presentation/TableColumnFilterModal.d.ts → controls/FilterModal.d.ts} +10 -3
  2. package/dist/{presentation/TableColumnFilterModal.js → controls/FilterModal.js} +32 -32
  3. package/dist/controls/FilterModal.module.js +13 -0
  4. package/dist/controls/FilterModal_module.css +60 -0
  5. package/dist/controls/MenuButton.js +1 -1
  6. package/dist/icons/MessagesIcon.d.ts +3 -0
  7. package/dist/icons/MessagesIcon.js +11 -0
  8. package/dist/icons/SlidersIcon.d.ts +3 -0
  9. package/dist/icons/SlidersIcon.js +12 -0
  10. package/dist/icons/WarningIcon.js +3 -3
  11. package/dist/icons/index.d.ts +2 -0
  12. package/dist/icons/index.js +3 -1
  13. package/dist/presentation/CustomizableTable/CustomizableTable.d.ts +1 -1
  14. package/dist/presentation/CustomizableTable/CustomizableTable.js +3 -3
  15. package/dist/presentation/RichList/RichList.d.ts +150 -0
  16. package/dist/presentation/RichList/RichList.js +507 -0
  17. package/dist/presentation/RichList/RichList.module.js +12 -0
  18. package/dist/presentation/RichList/RichList.stories.d.ts +24 -0
  19. package/dist/presentation/RichList/RichList.stories.js +334 -0
  20. package/dist/presentation/RichList/RichListBulkActionBar.d.ts +21 -0
  21. package/dist/presentation/RichList/RichListBulkActionBar.js +112 -0
  22. package/dist/presentation/RichList/RichListBulkActionBar.module.js +7 -0
  23. package/dist/presentation/RichList/RichListBulkActionBar_module.css +18 -0
  24. package/dist/presentation/RichList/RichListDisplayModal.d.ts +33 -0
  25. package/dist/presentation/RichList/RichListDisplayModal.js +198 -0
  26. package/dist/presentation/RichList/RichListRow.d.ts +39 -0
  27. package/dist/presentation/RichList/RichListRow.js +278 -0
  28. package/dist/presentation/RichList/RichListRow.module.js +34 -0
  29. package/dist/presentation/RichList/RichListRow_module.css +313 -0
  30. package/dist/presentation/RichList/RichListToolbar.d.ts +21 -0
  31. package/dist/presentation/RichList/RichListToolbar.js +104 -0
  32. package/dist/presentation/RichList/RichListToolbar.module.js +12 -0
  33. package/dist/presentation/RichList/RichListToolbar_module.css +100 -0
  34. package/dist/presentation/RichList/RichList_module.css +77 -0
  35. package/dist/presentation/RichList/helpers.d.ts +77 -0
  36. package/dist/presentation/RichList/helpers.js +121 -0
  37. package/dist/presentation/RichList/stories/ComplianceGroups.d.ts +9 -0
  38. package/dist/presentation/RichList/stories/ComplianceGroups.js +141 -0
  39. package/dist/presentation/RichList/stories/CustomFields.d.ts +13 -0
  40. package/dist/presentation/RichList/stories/CustomFields.js +80 -0
  41. package/dist/presentation/RichList/stories/EmployeeCompliance.d.ts +15 -0
  42. package/dist/presentation/RichList/stories/EmployeeCompliance.js +300 -0
  43. package/dist/presentation/RichList/stories/EmployeePaperwork.d.ts +21 -0
  44. package/dist/presentation/RichList/stories/EmployeePaperwork.js +225 -0
  45. package/dist/presentation/RichList/stories/EmployeePeople.d.ts +10 -0
  46. package/dist/presentation/RichList/stories/EmployeePeople.js +170 -0
  47. package/dist/presentation/RichList/stories/Leave.d.ts +21 -0
  48. package/dist/presentation/RichList/stories/Leave.js +332 -0
  49. package/dist/presentation/RichList/stories/Paperwork.d.ts +22 -0
  50. package/dist/presentation/RichList/stories/Paperwork.js +446 -0
  51. package/dist/presentation/RichList/stories/PaperworkApprovals.d.ts +23 -0
  52. package/dist/presentation/RichList/stories/PaperworkApprovals.js +342 -0
  53. package/dist/presentation/RichList/stories/PeopleList.d.ts +19 -0
  54. package/dist/presentation/RichList/stories/PeopleList.js +391 -0
  55. package/dist/presentation/RichList/stories/PeopleTags.d.ts +14 -0
  56. package/dist/presentation/RichList/stories/PeopleTags.js +106 -0
  57. package/dist/presentation/RichList/stories/Positions.d.ts +22 -0
  58. package/dist/presentation/RichList/stories/Positions.js +519 -0
  59. package/dist/presentation/RichList/stories/SavedQuestions.d.ts +13 -0
  60. package/dist/presentation/RichList/stories/SavedQuestions.js +152 -0
  61. package/dist/presentation/RichList/stories/Tables.d.ts +9 -0
  62. package/dist/presentation/RichList/stories/Tables.js +85 -0
  63. package/dist/presentation/RichList/stories/Tasks.d.ts +16 -0
  64. package/dist/presentation/RichList/stories/Tasks.js +340 -0
  65. package/dist/presentation/RichList/stories/shared/bulkActionStubs.d.ts +9 -0
  66. package/dist/presentation/RichList/stories/shared/bulkActionStubs.js +122 -0
  67. package/dist/presentation/RichList/stories/shared.d.ts +8 -0
  68. package/dist/presentation/RichList/stories/shared.js +2 -0
  69. package/dist/presentation/RichList/types.d.ts +342 -0
  70. package/dist/presentation/RichList/types.js +0 -0
  71. package/dist/presentation/Table.d.ts +1 -1
  72. package/dist/presentation/Table.js +2 -2
  73. package/dist/presentation/Table.module.js +0 -10
  74. package/dist/presentation/Table_module.css +1 -61
  75. package/package.json +2 -2
@@ -0,0 +1,391 @@
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__PersonAvatar_js_0117b3ba__ from "../../PersonAvatar.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
+ import * as __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__ from "./shared.js";
8
+ const people = [
9
+ {
10
+ id: "p1",
11
+ name: "Andy Samson",
12
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(12),
13
+ position: "COO",
14
+ department: "Head Office",
15
+ badgeNames: [
16
+ {
17
+ id: "b1",
18
+ text: "Birthday in 4 days 🎂",
19
+ color: "blue"
20
+ }
21
+ ],
22
+ tags: [
23
+ "Fire warden",
24
+ "Project sushi"
25
+ ]
26
+ },
27
+ {
28
+ id: "p2",
29
+ name: "Badai Khan",
30
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(5),
31
+ position: "Accounts Payable",
32
+ department: "Remote",
33
+ badgeNames: [
34
+ {
35
+ id: "b1",
36
+ text: "Onboarding🧑‍💻",
37
+ color: "orange"
38
+ }
39
+ ],
40
+ tags: [
41
+ "Probation"
42
+ ]
43
+ },
44
+ {
45
+ id: "p3",
46
+ name: "Caity Dewer",
47
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(7),
48
+ position: "Located",
49
+ department: "Factory",
50
+ badgeNames: [
51
+ {
52
+ id: "b1",
53
+ text: "Starts in 4 days 🎒",
54
+ color: "orange"
55
+ }
56
+ ],
57
+ tags: [
58
+ "Intern"
59
+ ]
60
+ },
61
+ {
62
+ id: "p4",
63
+ name: "Candice Berry",
64
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(3),
65
+ position: "CMO",
66
+ department: "Head Office",
67
+ badgeNames: [
68
+ {
69
+ id: "b1",
70
+ text: "Non compliant❗️",
71
+ color: "red"
72
+ }
73
+ ],
74
+ tags: [
75
+ "Probation",
76
+ "Project sushi"
77
+ ]
78
+ },
79
+ {
80
+ id: "p5",
81
+ name: "Daisy Smith",
82
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(1),
83
+ position: "CFO",
84
+ department: "Head Office",
85
+ badgeNames: [],
86
+ tags: [
87
+ "Probation"
88
+ ]
89
+ },
90
+ {
91
+ id: "p6",
92
+ name: "Daniel Turner",
93
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(9),
94
+ position: "Accounts Receivable",
95
+ department: "Head Office",
96
+ badgeNames: [
97
+ {
98
+ id: "b1",
99
+ text: "3rd anniversary in 3 days 🎉",
100
+ color: "yellow"
101
+ }
102
+ ],
103
+ tags: [
104
+ "Fire warden"
105
+ ]
106
+ },
107
+ {
108
+ id: "p7",
109
+ name: "Ernie White",
110
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(22),
111
+ position: "Truck Driver",
112
+ department: "Head Office",
113
+ badgeNames: [
114
+ {
115
+ id: "b1",
116
+ text: "New hire 👋",
117
+ color: "orange"
118
+ },
119
+ {
120
+ id: "b2",
121
+ text: "At Risk⚠️",
122
+ color: "yellow"
123
+ }
124
+ ],
125
+ tags: [
126
+ "Probation"
127
+ ]
128
+ },
129
+ {
130
+ id: "p8",
131
+ name: "Evan Baker",
132
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(2),
133
+ position: "Digital Brand Marketer",
134
+ department: "Head Office",
135
+ badgeNames: [],
136
+ tags: [
137
+ "Probation",
138
+ "Project sushi"
139
+ ]
140
+ },
141
+ {
142
+ id: "p9",
143
+ name: "Fiona Gallagher",
144
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(23),
145
+ position: "Product Manager",
146
+ department: "Remote",
147
+ badgeNames: [],
148
+ tags: [
149
+ "First aid"
150
+ ]
151
+ },
152
+ {
153
+ id: "p10",
154
+ name: "George Lin",
155
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(24),
156
+ position: "Software Engineer",
157
+ department: "Head Office",
158
+ badgeNames: [
159
+ {
160
+ id: "b1",
161
+ text: "Onboarding🧑‍💻",
162
+ color: "orange"
163
+ }
164
+ ],
165
+ tags: [
166
+ "Probation"
167
+ ]
168
+ },
169
+ {
170
+ id: "p11",
171
+ name: "Hannah Abbott",
172
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(8),
173
+ position: "HR Specialist",
174
+ department: "Head Office",
175
+ badgeNames: [
176
+ {
177
+ id: "b1",
178
+ text: "At Risk⚠️",
179
+ color: "yellow"
180
+ }
181
+ ],
182
+ tags: [
183
+ "Fire warden",
184
+ "First aid"
185
+ ]
186
+ },
187
+ {
188
+ id: "p12",
189
+ name: "Ian MacLeod",
190
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(11),
191
+ position: "Operations Manager",
192
+ department: "Factory",
193
+ badgeNames: [
194
+ {
195
+ id: "b1",
196
+ text: "10th anniversary today 🎉",
197
+ color: "yellow"
198
+ }
199
+ ],
200
+ tags: []
201
+ },
202
+ {
203
+ id: "p13",
204
+ name: "Jasmine Kaur",
205
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(25),
206
+ position: "UX Designer",
207
+ department: "Remote",
208
+ badgeNames: [],
209
+ tags: [
210
+ "Project sushi"
211
+ ]
212
+ },
213
+ {
214
+ id: "p14",
215
+ name: "Kevin O'Connor",
216
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(15),
217
+ position: "Sales Representative",
218
+ department: "Remote",
219
+ badgeNames: [
220
+ {
221
+ id: "b1",
222
+ text: "Onboarding🧑‍💻",
223
+ color: "orange"
224
+ },
225
+ {
226
+ id: "b2",
227
+ text: "Non compliant❗️",
228
+ color: "red"
229
+ }
230
+ ],
231
+ tags: [
232
+ "Probation"
233
+ ]
234
+ },
235
+ {
236
+ id: "p15",
237
+ name: "Liam Neeson",
238
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(26),
239
+ position: "Customer Support",
240
+ department: "Head Office",
241
+ badgeNames: [
242
+ {
243
+ id: "b1",
244
+ text: "New hire 👋",
245
+ color: "orange"
246
+ }
247
+ ],
248
+ tags: [
249
+ "Intern"
250
+ ]
251
+ },
252
+ {
253
+ id: "p16",
254
+ name: "Mia Wong",
255
+ imageUrl: (0, __WEBPACK_EXTERNAL_MODULE__shared_js_cc7b7cda__.avatarUrl)(27),
256
+ position: "Marketing Associate",
257
+ department: "Head Office",
258
+ badgeNames: [],
259
+ tags: [
260
+ "Probation"
261
+ ]
262
+ }
263
+ ];
264
+ const PeopleList = ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight })=>{
265
+ const titleField = {
266
+ label: "Name",
267
+ value: (r)=>r.name,
268
+ globalFiltering: true,
269
+ csvExport: true,
270
+ render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
271
+ font: "h6",
272
+ children: r.name
273
+ }),
274
+ suffixOnWide: (r)=>r.badgeNames.length > 0 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__["default"], {
275
+ spacing: "n2",
276
+ align: "center",
277
+ children: r.badgeNames.map((b)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__["default"], {
278
+ id: `${r.id}-${b.id}`,
279
+ color: b.color,
280
+ children: b.text
281
+ }, b.id))
282
+ }) : null
283
+ };
284
+ const subtitleField = {
285
+ label: "Position",
286
+ value: (r)=>r.position,
287
+ globalFiltering: true,
288
+ csvExport: true,
289
+ render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
290
+ font: "small",
291
+ tone: "muted",
292
+ children: r.position && r.department ? `${r.position} in ${r.department}` : r.position
293
+ })
294
+ };
295
+ const avatarSlot = {
296
+ id: "av",
297
+ render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PersonAvatar_js_0117b3ba__["default"], {
298
+ id: r.id,
299
+ name: r.name,
300
+ imageUrl: r.imageUrl,
301
+ size: "small",
302
+ hue: "200"
303
+ }),
304
+ size: 48
305
+ };
306
+ const contentSlots = [
307
+ {
308
+ id: "empId",
309
+ label: "Employee ID",
310
+ hiddenByDefault: true,
311
+ value: (r)=>r.id,
312
+ render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
313
+ font: "small",
314
+ children: r.id
315
+ }),
316
+ size: 20,
317
+ csvExport: true,
318
+ globalFiltering: true
319
+ },
320
+ {
321
+ id: "dept",
322
+ label: "Department",
323
+ hiddenByDefault: true,
324
+ value: (r)=>r.department,
325
+ render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
326
+ font: "small",
327
+ children: r.department
328
+ }),
329
+ csvExport: true,
330
+ globalFiltering: true,
331
+ filter: {
332
+ label: "Department",
333
+ isMulti: true,
334
+ options: people.flatMap((r)=>r.department).filter((d, i, arr)=>arr.indexOf(d) === i).map((d)=>({
335
+ id: d,
336
+ label: d,
337
+ predicate: (r)=>r.department === d
338
+ }))
339
+ }
340
+ }
341
+ ];
342
+ const trailingSlot = {
343
+ id: "tags",
344
+ label: "Tags",
345
+ value: (r)=>r.tags.join(" "),
346
+ render: (r)=>r.tags.map((t)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
347
+ style: {
348
+ padding: "4px"
349
+ },
350
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__["default"], {
351
+ color: "grey",
352
+ children: t
353
+ }, t)
354
+ }, t)),
355
+ align: "end",
356
+ size: 200,
357
+ compactSize: 90,
358
+ globalFiltering: true,
359
+ csvExport: true,
360
+ filter: {
361
+ label: "Tags",
362
+ isMulti: true,
363
+ options: people.flatMap((r)=>r.tags).filter((t, i, arr)=>arr.indexOf(t) === i).map((t)=>({
364
+ id: t,
365
+ label: t,
366
+ predicate: (r)=>r.tags.includes(t)
367
+ }))
368
+ }
369
+ };
370
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__["default"], {
371
+ data: people,
372
+ getRowId: (r)=>r.id,
373
+ fillContainerHeight: true,
374
+ compactBreakpoint: compactBreakpoint,
375
+ contentAlignment: contentAlignment,
376
+ enableSorting: enableSorting,
377
+ rowHeight: rowHeight,
378
+ href: ()=>"#",
379
+ csvFilename: "people-directory.csv",
380
+ leadingSlot: avatarSlot,
381
+ mainSlot: {
382
+ size: 320,
383
+ primary: titleField,
384
+ secondary: subtitleField
385
+ },
386
+ contentSlots: contentSlots,
387
+ trailingSlot: trailingSlot
388
+ });
389
+ };
390
+ const PeopleList_rslib_entry_ = PeopleList;
391
+ export { PeopleList_rslib_entry_ as default };
@@ -0,0 +1,14 @@
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 PeopleTagsRow = {
6
+ id: string;
7
+ label: string;
8
+ tagColor: BadgeColor;
9
+ /** `null` when the row has no sub-line. */
10
+ description: string | null;
11
+ peopleCount: number;
12
+ };
13
+ declare const PeopleTagsList: ({ compactBreakpoint, contentAlignment, rowHeight }: CommonProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default PeopleTagsList;
@@ -0,0 +1,106 @@
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 tags = [
8
+ {
9
+ id: "pt1",
10
+ label: "Chill Level 1",
11
+ tagColor: "blue",
12
+ description: "This means",
13
+ peopleCount: 0
14
+ },
15
+ {
16
+ id: "pt2",
17
+ label: "Project sushi",
18
+ tagColor: "teal",
19
+ description: "Part of the special project sushi team",
20
+ peopleCount: 5
21
+ },
22
+ {
23
+ id: "pt3",
24
+ label: "Probation",
25
+ tagColor: "yellow",
26
+ description: "Currently on probation",
27
+ peopleCount: 9
28
+ },
29
+ {
30
+ id: "pt4",
31
+ label: "Project Saphire",
32
+ tagColor: "orange",
33
+ description: null,
34
+ peopleCount: 2
35
+ },
36
+ {
37
+ id: "pt5",
38
+ label: "Fire warden",
39
+ tagColor: "red",
40
+ description: "Allocated to be a fire warden for their location",
41
+ peopleCount: 2
42
+ },
43
+ {
44
+ id: "pt6",
45
+ label: "Intern",
46
+ tagColor: "green",
47
+ description: "Currently doing an internship",
48
+ peopleCount: 2
49
+ }
50
+ ];
51
+ function peopleLabel(n) {
52
+ return 1 === n ? "1 person" : `${n} people`;
53
+ }
54
+ const rowActions = ()=>[
55
+ {
56
+ id: "more",
57
+ label: "Tag actions",
58
+ icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__["default"], {
59
+ symbol: "Edit"
60
+ }),
61
+ alwaysVisible: false,
62
+ onClick: ()=>void 0
63
+ }
64
+ ];
65
+ const PeopleTagsList = ({ compactBreakpoint, contentAlignment, rowHeight })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__["default"], {
66
+ compactBreakpoint: compactBreakpoint,
67
+ contentAlignment: contentAlignment,
68
+ data: tags,
69
+ enableSorting: false,
70
+ fillContainerHeight: true,
71
+ getRowId: (r)=>r.id,
72
+ rowActions: rowActions,
73
+ rowHeight: rowHeight,
74
+ mainSlot: {
75
+ primary: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__["default"], {
76
+ id: `${r.id}-tag`,
77
+ color: r.tagColor,
78
+ children: r.label
79
+ }),
80
+ secondary: (r)=>r.description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
81
+ font: "small",
82
+ tone: "muted",
83
+ children: r.description
84
+ }) : null
85
+ },
86
+ trailingSlot: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__["default"], {
87
+ spacing: "n2",
88
+ align: "center",
89
+ justify: "end",
90
+ tagName: "div",
91
+ children: [
92
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__["default"], {
93
+ symbol: "People",
94
+ size: "small",
95
+ tone: "muted"
96
+ }),
97
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
98
+ font: "small",
99
+ tone: "muted",
100
+ children: peopleLabel(r.peopleCount)
101
+ })
102
+ ]
103
+ })
104
+ });
105
+ const PeopleTags_rslib_entry_ = PeopleTagsList;
106
+ export { PeopleTags_rslib_entry_ as default };
@@ -0,0 +1,22 @@
1
+ import { type CommonProps } from "./shared";
2
+ type PersonRef = {
3
+ name: string;
4
+ imageUrl: string | null;
5
+ };
6
+ export type PositionsRow = {
7
+ id: string;
8
+ title: string;
9
+ positionCode: string;
10
+ directReports: number;
11
+ /** Function or business area (for display and filters). */
12
+ department: string;
13
+ /** Filled role or **vacant**. */
14
+ assignee: PersonRef | "vacant";
15
+ /**
16
+ * **null** — top of org (no “reports to”); **vacant** — open manager slot; otherwise
17
+ * the person (or placeholder) in that org role.
18
+ */
19
+ manager: PersonRef | "vacant" | null;
20
+ };
21
+ declare const PositionsList: ({ compactBreakpoint, contentAlignment, enableSorting, rowHeight, }: CommonProps) => import("react/jsx-runtime").JSX.Element;
22
+ export default PositionsList;