@activecollab/components 2.0.408 → 2.0.410
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/cjs/components/BreakPoints.js +12 -1
- package/dist/cjs/components/BreakPoints.js.map +1 -1
- package/dist/cjs/components/Columns/Columns.js +42 -0
- package/dist/cjs/components/Columns/Columns.js.map +1 -0
- package/dist/cjs/components/Columns/Styles.js +25 -0
- package/dist/cjs/components/Columns/Styles.js.map +1 -0
- package/dist/cjs/components/Columns/index.js +17 -0
- package/dist/cjs/components/Columns/index.js.map +1 -0
- package/dist/cjs/components/Icons/collection/Project.js +98 -0
- package/dist/cjs/components/Icons/collection/Project.js.map +1 -0
- package/dist/cjs/components/Icons/collection/Task.js +61 -0
- package/dist/cjs/components/Icons/collection/Task.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +14 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/LayoutTokens.js +21 -0
- package/dist/cjs/components/LayoutTokens.js.map +1 -0
- package/dist/cjs/components/Media/Media.js +39 -0
- package/dist/cjs/components/Media/Media.js.map +1 -0
- package/dist/cjs/components/Media/Styles.js +18 -0
- package/dist/cjs/components/Media/Styles.js.map +1 -0
- package/dist/cjs/components/Media/index.js +17 -0
- package/dist/cjs/components/Media/index.js.map +1 -0
- package/dist/cjs/components/PortableText/PortableText.js +125 -0
- package/dist/cjs/components/PortableText/PortableText.js.map +1 -0
- package/dist/cjs/components/PortableText/Styles.js +33 -0
- package/dist/cjs/components/PortableText/Styles.js.map +1 -0
- package/dist/cjs/components/PortableText/index.js +39 -0
- package/dist/cjs/components/PortableText/index.js.map +1 -0
- package/dist/cjs/components/PortableText/renderers.js +116 -0
- package/dist/cjs/components/PortableText/renderers.js.map +1 -0
- package/dist/cjs/components/PortableText/types.js +122 -0
- package/dist/cjs/components/PortableText/types.js.map +1 -0
- package/dist/cjs/components/PortableText/types.test.js +183 -0
- package/dist/cjs/components/PortableText/types.test.js.map +1 -0
- package/dist/cjs/components/Row/Row.js +30 -0
- package/dist/cjs/components/Row/Row.js.map +1 -0
- package/dist/cjs/components/Row/Styles.js +25 -0
- package/dist/cjs/components/Row/Styles.js.map +1 -0
- package/dist/cjs/components/Row/index.js +17 -0
- package/dist/cjs/components/Row/index.js.map +1 -0
- package/dist/cjs/components/Stack/Stack.js +27 -0
- package/dist/cjs/components/Stack/Stack.js.map +1 -0
- package/dist/cjs/components/Stack/Styles.js +21 -0
- package/dist/cjs/components/Stack/Styles.js.map +1 -0
- package/dist/cjs/components/Stack/index.js +17 -0
- package/dist/cjs/components/Stack/index.js.map +1 -0
- package/dist/cjs/components/Tiles/Styles.js +25 -0
- package/dist/cjs/components/Tiles/Styles.js.map +1 -0
- package/dist/cjs/components/Tiles/Tiles.js +29 -0
- package/dist/cjs/components/Tiles/Tiles.js.map +1 -0
- package/dist/cjs/components/Tiles/index.js +17 -0
- package/dist/cjs/components/Tiles/index.js.map +1 -0
- package/dist/cjs/components/TitledText/Styles.js +15 -0
- package/dist/cjs/components/TitledText/Styles.js.map +1 -0
- package/dist/cjs/components/TitledText/TitledText.js +50 -0
- package/dist/cjs/components/TitledText/TitledText.js.map +1 -0
- package/dist/cjs/components/TitledText/index.js +17 -0
- package/dist/cjs/components/TitledText/index.js.map +1 -0
- package/dist/cjs/components/index.js +88 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/presentation/shared/MessageDialog.js +351 -0
- package/dist/cjs/presentation/shared/MessageDialog.js.map +1 -0
- package/dist/cjs/presentation/shared/index.js +22 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/NoteCard.js +7 -3
- package/dist/cjs/presentation/stackedCard/content/NoteCard.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/ProjectCard.js +136 -0
- package/dist/cjs/presentation/stackedCard/content/ProjectCard.js.map +1 -0
- package/dist/cjs/presentation/stackedCard/content/TaskCard.js +183 -56
- package/dist/cjs/presentation/stackedCard/content/TaskCard.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/index.js +11 -0
- package/dist/cjs/presentation/stackedCard/content/index.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/shared.js +66 -19
- package/dist/cjs/presentation/stackedCard/content/shared.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/bottomDock.js +95 -32
- package/dist/cjs/presentation/whiteboard/bottomDock.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/canvasElements.js +196 -8
- package/dist/cjs/presentation/whiteboard/canvasElements.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/inspector.js +149 -47
- package/dist/cjs/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/outline.js +91 -18
- package/dist/cjs/presentation/whiteboard/outline.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/projectElements.js +883 -0
- package/dist/cjs/presentation/whiteboard/projectElements.js.map +1 -0
- package/dist/esm/components/BreakPoints.d.ts +2 -0
- package/dist/esm/components/BreakPoints.d.ts.map +1 -1
- package/dist/esm/components/BreakPoints.js +9 -0
- package/dist/esm/components/BreakPoints.js.map +1 -1
- package/dist/esm/components/Columns/Columns.d.ts +11 -0
- package/dist/esm/components/Columns/Columns.d.ts.map +1 -0
- package/dist/esm/components/Columns/Columns.js +34 -0
- package/dist/esm/components/Columns/Columns.js.map +1 -0
- package/dist/esm/components/Columns/Styles.d.ts +8 -0
- package/dist/esm/components/Columns/Styles.d.ts.map +1 -0
- package/dist/esm/components/Columns/Styles.js +18 -0
- package/dist/esm/components/Columns/Styles.js.map +1 -0
- package/dist/esm/components/Columns/index.d.ts +2 -0
- package/dist/esm/components/Columns/index.d.ts.map +1 -0
- package/dist/esm/components/Columns/index.js +2 -0
- package/dist/esm/components/Columns/index.js.map +1 -0
- package/dist/esm/components/Icons/collection/Project.d.ts +36 -0
- package/dist/esm/components/Icons/collection/Project.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Project.js +91 -0
- package/dist/esm/components/Icons/collection/Project.js.map +1 -0
- package/dist/esm/components/Icons/collection/Task.d.ts +32 -0
- package/dist/esm/components/Icons/collection/Task.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Task.js +54 -0
- package/dist/esm/components/Icons/collection/Task.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +2 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +2 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/LayoutTokens.d.ts +6 -0
- package/dist/esm/components/LayoutTokens.d.ts.map +1 -0
- package/dist/esm/components/LayoutTokens.js +15 -0
- package/dist/esm/components/LayoutTokens.js.map +1 -0
- package/dist/esm/components/Media/Media.d.ts +10 -0
- package/dist/esm/components/Media/Media.d.ts.map +1 -0
- package/dist/esm/components/Media/Media.js +31 -0
- package/dist/esm/components/Media/Media.js.map +1 -0
- package/dist/esm/components/Media/Styles.d.ts +4 -0
- package/dist/esm/components/Media/Styles.d.ts.map +1 -0
- package/dist/esm/components/Media/Styles.js +11 -0
- package/dist/esm/components/Media/Styles.js.map +1 -0
- package/dist/esm/components/Media/index.d.ts +2 -0
- package/dist/esm/components/Media/index.d.ts.map +1 -0
- package/dist/esm/components/Media/index.js +2 -0
- package/dist/esm/components/Media/index.js.map +1 -0
- package/dist/esm/components/PortableText/PortableText.d.ts +24 -0
- package/dist/esm/components/PortableText/PortableText.d.ts.map +1 -0
- package/dist/esm/components/PortableText/PortableText.js +111 -0
- package/dist/esm/components/PortableText/PortableText.js.map +1 -0
- package/dist/esm/components/PortableText/Styles.d.ts +9 -0
- package/dist/esm/components/PortableText/Styles.d.ts.map +1 -0
- package/dist/esm/components/PortableText/Styles.js +27 -0
- package/dist/esm/components/PortableText/Styles.js.map +1 -0
- package/dist/esm/components/PortableText/index.d.ts +4 -0
- package/dist/esm/components/PortableText/index.d.ts.map +1 -0
- package/dist/esm/components/PortableText/index.js +4 -0
- package/dist/esm/components/PortableText/index.js.map +1 -0
- package/dist/esm/components/PortableText/renderers.d.ts +9 -0
- package/dist/esm/components/PortableText/renderers.d.ts.map +1 -0
- package/dist/esm/components/PortableText/renderers.js +110 -0
- package/dist/esm/components/PortableText/renderers.js.map +1 -0
- package/dist/esm/components/PortableText/types.d.ts +141 -0
- package/dist/esm/components/PortableText/types.d.ts.map +1 -0
- package/dist/esm/components/PortableText/types.js +106 -0
- package/dist/esm/components/PortableText/types.js.map +1 -0
- package/dist/esm/components/PortableText/types.test.d.ts +2 -0
- package/dist/esm/components/PortableText/types.test.d.ts.map +1 -0
- package/dist/esm/components/PortableText/types.test.js +181 -0
- package/dist/esm/components/PortableText/types.test.js.map +1 -0
- package/dist/esm/components/Row/Row.d.ts +10 -0
- package/dist/esm/components/Row/Row.d.ts.map +1 -0
- package/dist/esm/components/Row/Row.js +22 -0
- package/dist/esm/components/Row/Row.js.map +1 -0
- package/dist/esm/components/Row/Styles.d.ts +8 -0
- package/dist/esm/components/Row/Styles.d.ts.map +1 -0
- package/dist/esm/components/Row/Styles.js +18 -0
- package/dist/esm/components/Row/Styles.js.map +1 -0
- package/dist/esm/components/Row/index.d.ts +2 -0
- package/dist/esm/components/Row/index.d.ts.map +1 -0
- package/dist/esm/components/Row/index.js +2 -0
- package/dist/esm/components/Row/index.js.map +1 -0
- package/dist/esm/components/Stack/Stack.d.ts +8 -0
- package/dist/esm/components/Stack/Stack.d.ts.map +1 -0
- package/dist/esm/components/Stack/Stack.js +19 -0
- package/dist/esm/components/Stack/Stack.js.map +1 -0
- package/dist/esm/components/Stack/Styles.d.ts +6 -0
- package/dist/esm/components/Stack/Styles.d.ts.map +1 -0
- package/dist/esm/components/Stack/Styles.js +14 -0
- package/dist/esm/components/Stack/Styles.js.map +1 -0
- package/dist/esm/components/Stack/index.d.ts +2 -0
- package/dist/esm/components/Stack/index.d.ts.map +1 -0
- package/dist/esm/components/Stack/index.js +2 -0
- package/dist/esm/components/Stack/index.js.map +1 -0
- package/dist/esm/components/Tiles/Styles.d.ts +8 -0
- package/dist/esm/components/Tiles/Styles.d.ts.map +1 -0
- package/dist/esm/components/Tiles/Styles.js +18 -0
- package/dist/esm/components/Tiles/Styles.js.map +1 -0
- package/dist/esm/components/Tiles/Tiles.d.ts +10 -0
- package/dist/esm/components/Tiles/Tiles.d.ts.map +1 -0
- package/dist/esm/components/Tiles/Tiles.js +21 -0
- package/dist/esm/components/Tiles/Tiles.js.map +1 -0
- package/dist/esm/components/Tiles/index.d.ts +2 -0
- package/dist/esm/components/Tiles/index.d.ts.map +1 -0
- package/dist/esm/components/Tiles/index.js +2 -0
- package/dist/esm/components/Tiles/index.js.map +1 -0
- package/dist/esm/components/TitledText/Styles.d.ts +2 -0
- package/dist/esm/components/TitledText/Styles.d.ts.map +1 -0
- package/dist/esm/components/TitledText/Styles.js +8 -0
- package/dist/esm/components/TitledText/Styles.js.map +1 -0
- package/dist/esm/components/TitledText/TitledText.d.ts +18 -0
- package/dist/esm/components/TitledText/TitledText.d.ts.map +1 -0
- package/dist/esm/components/TitledText/TitledText.js +43 -0
- package/dist/esm/components/TitledText/TitledText.js.map +1 -0
- package/dist/esm/components/TitledText/index.d.ts +2 -0
- package/dist/esm/components/TitledText/index.d.ts.map +1 -0
- package/dist/esm/components/TitledText/index.js +2 -0
- package/dist/esm/components/TitledText/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +8 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +8 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/presentation/shared/MessageDialog.d.ts +35 -0
- package/dist/esm/presentation/shared/MessageDialog.d.ts.map +1 -0
- package/dist/esm/presentation/shared/MessageDialog.js +331 -0
- package/dist/esm/presentation/shared/MessageDialog.js.map +1 -0
- package/dist/esm/presentation/shared/index.d.ts +2 -0
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -0
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts +8 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.js +8 -4
- package/dist/esm/presentation/stackedCard/content/NoteCard.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/ProjectCard.d.ts +64 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.d.ts.map +1 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.js +128 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.js.map +1 -0
- package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts +64 -2
- package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/TaskCard.js +181 -58
- package/dist/esm/presentation/stackedCard/content/TaskCard.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/index.d.ts +1 -0
- package/dist/esm/presentation/stackedCard/content/index.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/index.js +1 -0
- package/dist/esm/presentation/stackedCard/content/index.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/shared.d.ts +30 -0
- package/dist/esm/presentation/stackedCard/content/shared.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/shared.js +66 -19
- package/dist/esm/presentation/stackedCard/content/shared.js.map +1 -1
- package/dist/esm/presentation/whiteboard/bottomDock.d.ts +30 -7
- package/dist/esm/presentation/whiteboard/bottomDock.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/bottomDock.js +79 -32
- package/dist/esm/presentation/whiteboard/bottomDock.js.map +1 -1
- package/dist/esm/presentation/whiteboard/canvasElements.d.ts +4 -1
- package/dist/esm/presentation/whiteboard/canvasElements.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/canvasElements.js +158 -7
- package/dist/esm/presentation/whiteboard/canvasElements.js.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.d.ts +35 -1
- package/dist/esm/presentation/whiteboard/inspector.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.js +170 -68
- package/dist/esm/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.d.ts +23 -3
- package/dist/esm/presentation/whiteboard/outline.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.js +89 -18
- package/dist/esm/presentation/whiteboard/outline.js.map +1 -1
- package/dist/esm/presentation/whiteboard/projectElements.d.ts +267 -0
- package/dist/esm/presentation/whiteboard/projectElements.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/projectElements.js +824 -0
- package/dist/esm/presentation/whiteboard/projectElements.js.map +1 -0
- package/dist/index.js +1490 -738
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,9 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
9
|
var _shared = require("./shared");
|
|
10
10
|
var _Icons = require("../../../components/Icons");
|
|
11
11
|
var _Loaders = require("../../../components/Loaders");
|
|
12
|
+
var _Signifier = require("../../../components/Signifier");
|
|
12
13
|
var _StackedCard = require("../../../components/StackedCard");
|
|
14
|
+
var _Tag = require("../../../components/Tag");
|
|
13
15
|
var _Typography = require("../../../components/Typography");
|
|
14
16
|
var _Typography2 = require("../../../components/Typography/Typography");
|
|
15
17
|
var _shared2 = require("../../shared");
|
|
@@ -30,14 +32,58 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
30
32
|
* project default)
|
|
31
33
|
* - inline assignee affordance (avatar, or an add-assignee placeholder)
|
|
32
34
|
* - completed (teal tint, no "…" menu, no overdue colour)
|
|
35
|
+
* - assignees appear ONCE (in the info line when the card has no
|
|
36
|
+
* date range, in the date row when it
|
|
37
|
+
* has one — never in both)
|
|
33
38
|
*
|
|
34
39
|
* The pending/optimistic and priority states are SHELL states (dimmed +
|
|
35
40
|
* pointer-events off; red left bar), so the card is wrapped in a `<StackedCard
|
|
36
41
|
* pending>` / `<StackedCard priorityColor>` by the host — they are not the
|
|
37
42
|
* card's own concern and live on the shell, not here.
|
|
43
|
+
*
|
|
44
|
+
* Everything is measured against the app: `ColumnCardBody.jsx`,
|
|
45
|
+
* `ColumnCardBodyInfo.jsx`, `ColumnCardDate.jsx` and
|
|
46
|
+
* `view.project_tasks_column_mode.less`.
|
|
38
47
|
*/
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Eight labels, so the default card demonstrates the collapsed form. Colours are
|
|
51
|
+
* the labels' own, which is why they are literals.
|
|
52
|
+
*/
|
|
53
|
+
var DEMO_LABELS = [{
|
|
54
|
+
text: "DESIGN",
|
|
55
|
+
color: "#378ADD"
|
|
56
|
+
}, {
|
|
57
|
+
text: "BLOCKED",
|
|
58
|
+
color: "#D85A30"
|
|
59
|
+
}, {
|
|
60
|
+
text: "READY",
|
|
61
|
+
color: "#639922"
|
|
62
|
+
}, {
|
|
63
|
+
text: "REVIEW",
|
|
64
|
+
color: "#EF9F27"
|
|
65
|
+
}, {
|
|
66
|
+
text: "RESEARCH",
|
|
67
|
+
color: "#7F77DD"
|
|
68
|
+
}, {
|
|
69
|
+
text: "COPY",
|
|
70
|
+
color: "#8C5A2B"
|
|
71
|
+
}, {
|
|
72
|
+
text: "QA",
|
|
73
|
+
color: "#2F5DA8"
|
|
74
|
+
}, {
|
|
75
|
+
text: "RELEASE",
|
|
76
|
+
color: "#8A3E6B"
|
|
77
|
+
}];
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* How many labels read as text before the line has to collapse them, and how
|
|
81
|
+
* many dots stand in for the rest. Two colour-text `Tag`s fit a 260px card; past
|
|
82
|
+
* that the app's own answer (and the design system's mapping) is coloured dots
|
|
83
|
+
* plus an overflow count.
|
|
84
|
+
*/
|
|
85
|
+
var LABELS_AS_TEXT_MAX = 2;
|
|
86
|
+
var LABEL_DOTS_MAX = 5;
|
|
41
87
|
|
|
42
88
|
/* The completed tint fills the card body; the shell keeps the priority bar and
|
|
43
89
|
selection ring on top of it. */
|
|
@@ -48,10 +94,26 @@ var StyledBody = _styledComponents.default.div.withConfig({
|
|
|
48
94
|
var $completed = _ref.$completed;
|
|
49
95
|
return $completed && (0, _styledComponents.css)(["background:var(--sc-completed-tint,rgba(72,201,176,0.16));"]);
|
|
50
96
|
});
|
|
51
|
-
|
|
52
|
-
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The info line — labels, then signifiers, then (only when the card has no date
|
|
100
|
+
* range) the assignees.
|
|
101
|
+
*
|
|
102
|
+
* The separator is the app's, rule for rule: a 2px round dot in
|
|
103
|
+
* `--color-theme-600` with `margin: 0 6px`, drawn by `::before` on every item
|
|
104
|
+
* EXCEPT the first (`view.project_tasks_column_mode.less`:
|
|
105
|
+
* `.c-signifier:not(:first-child):before`, `.label_single_container:not(:first-child)
|
|
106
|
+
* .label_item:before`, `.dot:before`). Because the rule keys off position rather
|
|
107
|
+
* than off "am I a signifier", a line that starts with a signifier — a task with
|
|
108
|
+
* counters but no labels — cannot open with a dangling dot.
|
|
109
|
+
*
|
|
110
|
+
* `font-size: 11px` is the `.labels` block's own; the vertical rhythm the app
|
|
111
|
+
* gets from `margin-top: 10px` comes from the `meta` row's role padding here.
|
|
112
|
+
*/
|
|
113
|
+
var StyledInfoLine = _styledComponents.default.div.withConfig({
|
|
114
|
+
displayName: "TaskCard__StyledInfoLine",
|
|
53
115
|
componentId: "sc-5iuhg8-1"
|
|
54
|
-
})(["display:flex;align-items:center;
|
|
116
|
+
})(["display:flex;flex-wrap:wrap;align-items:center;width:100%;font-size:11px;> *{display:flex;align-items:center;min-height:18px;}> *:not(:first-child):not(.sc-assignees)::before{content:\"\";flex-shrink:0;width:2px;height:2px;margin:0 6px;border-radius:100%;background-color:var(--color-theme-600);}.sc-label{max-width:74px;}.sc-label .c-tag > div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:60px;}.sc-dots{gap:4px;}.sc-assignees{flex:1 1 auto;justify-content:flex-end;}"]);
|
|
55
117
|
var StyledDot = _styledComponents.default.span.withConfig({
|
|
56
118
|
displayName: "TaskCard__StyledDot",
|
|
57
119
|
componentId: "sc-5iuhg8-2"
|
|
@@ -60,28 +122,39 @@ var StyledDot = _styledComponents.default.span.withConfig({
|
|
|
60
122
|
return $color;
|
|
61
123
|
});
|
|
62
124
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
125
|
+
/**
|
|
126
|
+
* The date row's text.
|
|
127
|
+
*
|
|
128
|
+
* A raw `<span>` in this Storybook inherits the browser's serif default at the
|
|
129
|
+
* ancestor's size, which is why the date used to read as huge serif type. The
|
|
130
|
+
* app sets the same four values in CSS on a plain `div` (`.due_date`: 13px,
|
|
131
|
+
* bold, 24px tall, `--color-theme-900`, `--red-alert` when `.overdue`), so the
|
|
132
|
+
* fix is to state them here — plus the font stack the missing reset does not
|
|
133
|
+
* supply.
|
|
134
|
+
*/
|
|
71
135
|
var StyledDate = _styledComponents.default.span.withConfig({
|
|
72
136
|
displayName: "TaskCard__StyledDate",
|
|
73
|
-
componentId: "sc-5iuhg8-
|
|
74
|
-
})(["font-weight:bold;color:", ";"], function (_ref3) {
|
|
137
|
+
componentId: "sc-5iuhg8-3"
|
|
138
|
+
})(["height:24px;font-family:", ";font-size:13px;font-weight:bold;line-height:24px;letter-spacing:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:", ";"], _shared.CARD_FONT, function (_ref3) {
|
|
75
139
|
var $overdue = _ref3.$overdue;
|
|
76
140
|
return $overdue ? "var(--red-alert)" : "var(--color-theme-900)";
|
|
77
141
|
});
|
|
78
142
|
|
|
143
|
+
/* Avatars are limited to 3 and overlap, as MultiAssigneesPicker does. */
|
|
144
|
+
var StyledAssignees = _styledComponents.default.span.withConfig({
|
|
145
|
+
displayName: "TaskCard__StyledAssignees",
|
|
146
|
+
componentId: "sc-5iuhg8-4"
|
|
147
|
+
})(["display:flex;align-items:center;justify-content:flex-end;"]);
|
|
148
|
+
|
|
79
149
|
/* Inline assignee affordance placeholder — a dashed add-assignee target that
|
|
80
150
|
stands in until the real picker is wired at integration. */
|
|
81
151
|
var StyledAddAssignee = _styledComponents.default.button.withConfig({
|
|
82
152
|
displayName: "TaskCard__StyledAddAssignee",
|
|
83
153
|
componentId: "sc-5iuhg8-5"
|
|
84
154
|
})(["display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1.5px dashed var(--color-theme-400);border-radius:50%;background:transparent;color:var(--color-theme-600);cursor:pointer;svg{width:14px;height:14px;display:block;}&:hover{border-color:var(--sc-selection-ring);color:var(--color-theme-800);}"]);
|
|
155
|
+
|
|
156
|
+
/** The app's assignee limit (MultiAssigneesPicker `limit={3}`). */
|
|
157
|
+
var ASSIGNEE_LIMIT = 3;
|
|
85
158
|
var TaskCard = exports.TaskCard = function TaskCard(_ref4) {
|
|
86
159
|
var _ref4$title = _ref4.title,
|
|
87
160
|
title = _ref4$title === void 0 ? "Implement the design from the reference on this page" : _ref4$title,
|
|
@@ -95,6 +168,16 @@ var TaskCard = exports.TaskCard = function TaskCard(_ref4) {
|
|
|
95
168
|
showTaskId = _ref4$showTaskId === void 0 ? false : _ref4$showTaskId,
|
|
96
169
|
_ref4$taskId = _ref4.taskId,
|
|
97
170
|
taskId = _ref4$taskId === void 0 ? 4521 : _ref4$taskId,
|
|
171
|
+
_ref4$showProjectName = _ref4.showProjectName,
|
|
172
|
+
showProjectName = _ref4$showProjectName === void 0 ? false : _ref4$showProjectName,
|
|
173
|
+
_ref4$projectName = _ref4.projectName,
|
|
174
|
+
projectName = _ref4$projectName === void 0 ? "Marketing Site" : _ref4$projectName,
|
|
175
|
+
_ref4$labels = _ref4.labels,
|
|
176
|
+
labels = _ref4$labels === void 0 ? DEMO_LABELS : _ref4$labels,
|
|
177
|
+
_ref4$subtaskCount = _ref4.subtaskCount,
|
|
178
|
+
subtaskCount = _ref4$subtaskCount === void 0 ? 2 : _ref4$subtaskCount,
|
|
179
|
+
_ref4$commentCount = _ref4.commentCount,
|
|
180
|
+
commentCount = _ref4$commentCount === void 0 ? 7 : _ref4$commentCount,
|
|
98
181
|
_ref4$dateLabel = _ref4.dateLabel,
|
|
99
182
|
dateLabel = _ref4$dateLabel === void 0 ? "May 8 – Sep 10" : _ref4$dateLabel,
|
|
100
183
|
_ref4$overdue = _ref4.overdue,
|
|
@@ -109,12 +192,79 @@ var TaskCard = exports.TaskCard = function TaskCard(_ref4) {
|
|
|
109
192
|
projectDefaultHidden = _ref4$projectDefaultH === void 0 ? false : _ref4$projectDefaultH,
|
|
110
193
|
_ref4$assigned = _ref4.assigned,
|
|
111
194
|
assigned = _ref4$assigned === void 0 ? true : _ref4$assigned,
|
|
195
|
+
assignees = _ref4.assignees,
|
|
112
196
|
_ref4$completed = _ref4.completed,
|
|
113
197
|
completed = _ref4$completed === void 0 ? false : _ref4$completed;
|
|
114
198
|
// Signifier appears only when the task's visibility differs from the default.
|
|
115
199
|
var showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;
|
|
116
200
|
// Overdue colour is suppressed on completed tasks.
|
|
117
201
|
var dateIsOverdue = overdue && !completed;
|
|
202
|
+
var hasDate = dateLabel != null && dateLabel !== "";
|
|
203
|
+
var collapseLabels = labels.length > LABELS_AS_TEXT_MAX;
|
|
204
|
+
|
|
205
|
+
/* The assignee slot: the real avatars when the host has them, the demo avatar
|
|
206
|
+
when it only says "assigned", the add affordance when it says nothing is. */
|
|
207
|
+
var assigneeSlot = assigned ? /*#__PURE__*/_react.default.createElement(StyledAssignees, {
|
|
208
|
+
className: "sc-assignees",
|
|
209
|
+
"data-fixed": true
|
|
210
|
+
}, assignees ? assignees.slice(0, ASSIGNEE_LIMIT).map(function (person) {
|
|
211
|
+
return /*#__PURE__*/_react.default.createElement(_shared2.RoundAvatar, {
|
|
212
|
+
key: person.name,
|
|
213
|
+
$bg: person.color,
|
|
214
|
+
$size: 24,
|
|
215
|
+
$overlap: true
|
|
216
|
+
}, person.initials);
|
|
217
|
+
}) : /*#__PURE__*/_react.default.createElement(_shared2.RoundAvatar, {
|
|
218
|
+
$bg: _shared2.AVATAR_COLORS.teal,
|
|
219
|
+
$size: 24,
|
|
220
|
+
$bordered: false
|
|
221
|
+
}, "MS")) : /*#__PURE__*/_react.default.createElement(StyledAssignees, {
|
|
222
|
+
className: "sc-assignees",
|
|
223
|
+
"data-fixed": true
|
|
224
|
+
}, /*#__PURE__*/_react.default.createElement(StyledAddAssignee, {
|
|
225
|
+
type: "button",
|
|
226
|
+
"aria-label": "Assign task"
|
|
227
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.PersonPlusIcon, null)));
|
|
228
|
+
|
|
229
|
+
/* Signifiers in the app's fixed order: subtasks → comments → dependencies →
|
|
230
|
+
hidden-from-clients. Each is one child of the info line, so the line's own
|
|
231
|
+
separator rule spaces them. */
|
|
232
|
+
var signifiers = [];
|
|
233
|
+
if (subtaskCount > 0) {
|
|
234
|
+
signifiers.push(/*#__PURE__*/_react.default.createElement(_Signifier.Signifier, {
|
|
235
|
+
key: "subtasks",
|
|
236
|
+
type: _Icons.ChecklistSmallIcon,
|
|
237
|
+
value: subtaskCount,
|
|
238
|
+
tooltipText: "Subtasks"
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
if (commentCount > 0) {
|
|
242
|
+
signifiers.push(/*#__PURE__*/_react.default.createElement(_Signifier.Signifier, {
|
|
243
|
+
key: "comments",
|
|
244
|
+
type: _Icons.MessageSmallIcon,
|
|
245
|
+
value: commentCount,
|
|
246
|
+
tooltipText: "Comments"
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
if (showDependencies && dependencyCount > 0) {
|
|
250
|
+
signifiers.push(/*#__PURE__*/_react.default.createElement(_Signifier.Signifier, {
|
|
251
|
+
key: "dependencies",
|
|
252
|
+
type: _Icons.DependencySmallIcon,
|
|
253
|
+
value: dependencyCount,
|
|
254
|
+
tooltipText: "Dependencies"
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
if (showHiddenSignifier) {
|
|
258
|
+
signifiers.push(/*#__PURE__*/_react.default.createElement(_Signifier.Signifier, {
|
|
259
|
+
key: "hidden",
|
|
260
|
+
type: _Icons.EyeOffSmallIcon,
|
|
261
|
+
tooltipText: "Hidden from clients"
|
|
262
|
+
}));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* The info line exists when it has something to say — labels, signifiers, or
|
|
266
|
+
the assignees it has to carry because there is no date row. */
|
|
267
|
+
var showInfoLine = labels.length > 0 || signifiers.length > 0 || !hasDate;
|
|
118
268
|
return /*#__PURE__*/_react.default.createElement(StyledBody, {
|
|
119
269
|
$completed: completed
|
|
120
270
|
}, cover ? /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardCover, {
|
|
@@ -129,60 +279,37 @@ var TaskCard = exports.TaskCard = function TaskCard(_ref4) {
|
|
|
129
279
|
}
|
|
130
280
|
})) : null, /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardRow, {
|
|
131
281
|
role: "title"
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement(_shared.StyledClamp, null, showTaskId ? /*#__PURE__*/_react.default.createElement(_Typography2.Typography, {
|
|
282
|
+
}, /*#__PURE__*/_react.default.createElement(_shared.StyledTitleBlock, null, showProjectName ? /*#__PURE__*/_react.default.createElement(_shared.CardProjectLine, null, projectName) : null, /*#__PURE__*/_react.default.createElement(_shared.StyledClamp, null, showTaskId ? /*#__PURE__*/_react.default.createElement(_Typography2.Typography, {
|
|
133
283
|
as: "span",
|
|
134
284
|
variant: "Caption 1",
|
|
135
285
|
color: "tertiary"
|
|
136
|
-
}, "#".concat(taskId, " ")) : null, title), completed ? null : /*#__PURE__*/_react.default.createElement(_shared.EntityDots, {
|
|
286
|
+
}, "#".concat(taskId, " ")) : null, title)), completed ? null : /*#__PURE__*/_react.default.createElement(_shared.EntityDots, {
|
|
137
287
|
"aria-label": "Task options"
|
|
138
|
-
})), /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardRow, {
|
|
288
|
+
})), showInfoLine ? /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardRow, {
|
|
139
289
|
role: "meta"
|
|
140
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
290
|
+
}, /*#__PURE__*/_react.default.createElement(StyledInfoLine, null, collapseLabels ? /*#__PURE__*/_react.default.createElement("span", {
|
|
141
291
|
className: "sc-dots"
|
|
142
|
-
},
|
|
292
|
+
}, labels.slice(0, LABEL_DOTS_MAX).map(function (label) {
|
|
143
293
|
return /*#__PURE__*/_react.default.createElement(StyledDot, {
|
|
144
|
-
key:
|
|
145
|
-
$color: color
|
|
294
|
+
key: label.text,
|
|
295
|
+
$color: label.color
|
|
146
296
|
});
|
|
147
|
-
})
|
|
148
|
-
color: "tertiary"
|
|
149
|
-
}, "+3"), /*#__PURE__*/_react.default.createElement("span", {
|
|
150
|
-
className: "sc-sep"
|
|
151
|
-
}, "\xB7"), /*#__PURE__*/_react.default.createElement("span", {
|
|
152
|
-
className: "sc-count"
|
|
153
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.MessageSmallIcon, null), /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
154
|
-
color: "tertiary"
|
|
155
|
-
}, "7")), /*#__PURE__*/_react.default.createElement("span", {
|
|
156
|
-
className: "sc-sep"
|
|
157
|
-
}, "\xB7"), /*#__PURE__*/_react.default.createElement("span", {
|
|
158
|
-
className: "sc-count"
|
|
159
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.ChecklistSmallIcon, null), /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
297
|
+
}), labels.length > LABEL_DOTS_MAX ? /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
160
298
|
color: "tertiary"
|
|
161
|
-
}, "
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
title: "Hidden from clients"
|
|
172
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.EyeOffIcon, null))) : null)), /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardRow, {
|
|
299
|
+
}, "+".concat(labels.length - LABEL_DOTS_MAX)) : null) : labels.map(function (label) {
|
|
300
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
301
|
+
className: "sc-label",
|
|
302
|
+
key: label.text
|
|
303
|
+
}, /*#__PURE__*/_react.default.createElement(_Tag.Tag, {
|
|
304
|
+
name: label.text,
|
|
305
|
+
color: label.color,
|
|
306
|
+
showDot: false
|
|
307
|
+
}));
|
|
308
|
+
}), signifiers, hasDate ? null : assigneeSlot)) : null, hasDate ? /*#__PURE__*/_react.default.createElement(_StackedCard.StackedCardRow, {
|
|
173
309
|
role: "footer"
|
|
174
310
|
}, /*#__PURE__*/_react.default.createElement(StyledDate, {
|
|
175
311
|
$overdue: dateIsOverdue
|
|
176
|
-
}, dateLabel),
|
|
177
|
-
$bg: _shared2.AVATAR_COLORS.teal,
|
|
178
|
-
$size: 24,
|
|
179
|
-
$bordered: false,
|
|
180
|
-
"data-fixed": true
|
|
181
|
-
}, "MS") : /*#__PURE__*/_react.default.createElement(StyledAddAssignee, {
|
|
182
|
-
type: "button",
|
|
183
|
-
"aria-label": "Assign task",
|
|
184
|
-
"data-fixed": true
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement(_Icons.PersonPlusIcon, null))));
|
|
312
|
+
}, dateLabel), assigneeSlot) : null);
|
|
186
313
|
};
|
|
187
314
|
|
|
188
315
|
/* ---- placeholder + skeleton ---- */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskCard.js","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_shared","_Icons","_Loaders","_StackedCard","_Typography","_Typography2","_shared2","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","LABEL_DOTS","StyledBody","styled","div","withConfig","displayName","componentId","_ref","$completed","css","StyledMetaCluster","StyledDot","span","_ref2","$color","StyledHiddenBadge","StyledDate","_ref3","$overdue","StyledAddAssignee","button","TaskCard","exports","_ref4","_ref4$title","title","_ref4$cover","cover","_ref4$playable","playable","_ref4$coverControls","coverControls","_ref4$showTaskId","showTaskId","_ref4$taskId","taskId","_ref4$dateLabel","dateLabel","_ref4$overdue","overdue","_ref4$showDependencie","showDependencies","_ref4$dependencyCount","dependencyCount","_ref4$hiddenFromClien","hiddenFromClients","_ref4$projectDefaultH","projectDefaultHidden","_ref4$assigned","assigned","_ref4$completed","completed","showHiddenSignifier","dateIsOverdue","createElement","StackedCardCover","aspectRatio","COVER_RATIO","centerSlot","playControl","undefined","topRightSlot","coverManagement","style","width","height","background","StackedCardRow","role","StyledClamp","Typography","as","variant","color","concat","EntityDots","className","map","key","Caption1","MessageSmallIcon","ChecklistSmallIcon","Fragment","InsertLinkIcon","EyeOffIcon","RoundAvatar","$bg","AVATAR_COLORS","teal","$size","$bordered","type","PersonPlusIcon","TaskPlaceholder","props","Placeholder","icon","label","TaskSkeleton","SkeletonLoader","borderRadius"],"sources":["../../../../../src/presentation/stackedCard/content/TaskCard.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled, { css } from \"styled-components\";\n\nimport {\n EntityDots,\n StyledClamp,\n coverManagement,\n playControl,\n Placeholder,\n} from \"./shared\";\nimport {\n ChecklistSmallIcon,\n EyeOffIcon,\n InsertLinkIcon,\n MessageSmallIcon,\n PersonPlusIcon,\n} from \"../../../components/Icons\";\nimport { SkeletonLoader } from \"../../../components/Loaders\";\nimport {\n STACKED_CARD_COVER_RATIO as COVER_RATIO,\n StackedCardCover as Cover,\n StackedCardRow as StackRow,\n} from \"../../../components/StackedCard\";\nimport { Caption1 } from \"../../../components/Typography\";\nimport { Typography } from \"../../../components/Typography/Typography\";\nimport { RoundAvatar, AVATAR_COLORS } from \"../../shared\";\n\n/**\n * TaskCard — the baseline-preservation card.\n *\n * This is the replacement for today's column card, so it must reproduce every\n * behavior that card has (note 52104 §B2) — none of them are optional, each is\n * a silent-regression risk. Every one is a prop here so the story can toggle it:\n *\n * - task-number prefix in the title (config-gated, mirrors `show_task_id`)\n * - overdue date colouring (red ONLY when overdue AND not completed)\n * - dependency counter (behind a feature-flag prop)\n * - hidden-from-clients signifier (shown only when it DIFFERS from the\n * project default)\n * - inline assignee affordance (avatar, or an add-assignee placeholder)\n * - completed (teal tint, no \"…\" menu, no overdue colour)\n *\n * The pending/optimistic and priority states are SHELL states (dimmed +\n * pointer-events off; red left bar), so the card is wrapped in a `<StackedCard\n * pending>` / `<StackedCard priorityColor>` by the host — they are not the\n * card's own concern and live on the shell, not here.\n */\n\nconst LABEL_DOTS = [\"#378ADD\", \"#D85A30\", \"#639922\", \"#EF9F27\", \"#7F77DD\"];\n\n/* The completed tint fills the card body; the shell keeps the priority bar and\n selection ring on top of it. */\nconst StyledBody = styled.div<{ $completed?: boolean }>`\n display: flex;\n flex-direction: column;\n\n ${({ $completed }) =>\n $completed &&\n css`\n background: var(--sc-completed-tint, rgba(72, 201, 176, 0.16));\n `}\n`;\n\nconst StyledMetaCluster = styled.div`\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--color-theme-600);\n\n .sc-dots {\n display: flex;\n gap: 4px;\n }\n\n .sc-sep {\n opacity: 0.6;\n }\n\n .sc-count {\n display: inline-flex;\n align-items: center;\n gap: 3px;\n }\n\n svg {\n width: 14px;\n height: 14px;\n }\n`;\n\nconst StyledDot = styled.span<{ $color: string }>`\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: ${({ $color }) => $color};\n`;\n\n/* Hidden-from-clients signifier — an eye-off badge, shown only when the task's\n visibility differs from the project default. */\nconst StyledHiddenBadge = styled.span`\n display: inline-flex;\n align-items: center;\n gap: 3px;\n color: var(--color-theme-600);\n\n svg {\n width: 14px;\n height: 14px;\n }\n`;\n\n/* Date — bold; turns red only when overdue AND the task is not completed. */\nconst StyledDate = styled.span<{ $overdue?: boolean }>`\n font-weight: bold;\n color: ${({ $overdue }) =>\n $overdue ? \"var(--red-alert)\" : \"var(--color-theme-900)\"};\n`;\n\n/* Inline assignee affordance placeholder — a dashed add-assignee target that\n stands in until the real picker is wired at integration. */\nconst StyledAddAssignee = styled.button`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1.5px dashed var(--color-theme-400);\n border-radius: 50%;\n background: transparent;\n color: var(--color-theme-600);\n cursor: pointer;\n\n svg {\n width: 14px;\n height: 14px;\n display: block;\n }\n\n &:hover {\n border-color: var(--sc-selection-ring);\n color: var(--color-theme-800);\n }\n`;\n\nexport interface TaskCardProps {\n title?: string;\n /** Optional cover — task cards in a column usually have none. */\n cover?: boolean;\n playable?: boolean;\n coverControls?: boolean;\n /** Config-gated task-number prefix (mirrors `show_task_id`). */\n showTaskId?: boolean;\n taskId?: number;\n dateLabel?: string;\n /** Overdue date — colours the date red, but only when NOT completed. */\n overdue?: boolean;\n /** Dependency counter, gated behind a feature flag. */\n showDependencies?: boolean;\n dependencyCount?: number;\n /** The task's hidden-from-clients flag. */\n hiddenFromClients?: boolean;\n /** The project default for client visibility; the signifier shows on a diff. */\n projectDefaultHidden?: boolean;\n /** Whether the task has an assignee (avatar) or shows the add affordance. */\n assigned?: boolean;\n /** Completed — teal tint, no \"…\" menu, no overdue colour. */\n completed?: boolean;\n}\n\nexport const TaskCard = ({\n title = \"Implement the design from the reference on this page\",\n cover = false,\n playable = false,\n coverControls = false,\n showTaskId = false,\n taskId = 4521,\n dateLabel = \"May 8 – Sep 10\",\n overdue = false,\n showDependencies = false,\n dependencyCount = 2,\n hiddenFromClients = false,\n projectDefaultHidden = false,\n assigned = true,\n completed = false,\n}: TaskCardProps): ReactElement => {\n // Signifier appears only when the task's visibility differs from the default.\n const showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;\n // Overdue colour is suppressed on completed tasks.\n const dateIsOverdue = overdue && !completed;\n\n return (\n <StyledBody $completed={completed}>\n {cover ? (\n <Cover\n aspectRatio={COVER_RATIO}\n centerSlot={playable ? playControl : undefined}\n topRightSlot={coverControls ? coverManagement() : undefined}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n background: \"var(--color-theme-300)\",\n }}\n />\n </Cover>\n ) : null}\n\n <StackRow role=\"title\">\n <StyledClamp>\n {showTaskId ? (\n <Typography as=\"span\" variant=\"Caption 1\" color=\"tertiary\">\n {`#${taskId} `}\n </Typography>\n ) : null}\n {title}\n </StyledClamp>\n {/* Completed tasks drop the \"…\" menu. */}\n {completed ? null : <EntityDots aria-label=\"Task options\" />}\n </StackRow>\n\n <StackRow role=\"meta\">\n <StyledMetaCluster>\n <span className=\"sc-dots\">\n {LABEL_DOTS.map((color) => (\n <StyledDot key={color} $color={color} />\n ))}\n </span>\n <Caption1 color=\"tertiary\">+3</Caption1>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\">\n <MessageSmallIcon />\n <Caption1 color=\"tertiary\">7</Caption1>\n </span>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\">\n <ChecklistSmallIcon />\n <Caption1 color=\"tertiary\">2</Caption1>\n </span>\n {showDependencies ? (\n <>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\" title=\"Dependencies\">\n <InsertLinkIcon />\n <Caption1 color=\"tertiary\">{dependencyCount}</Caption1>\n </span>\n </>\n ) : null}\n {showHiddenSignifier ? (\n <>\n <span className=\"sc-sep\">·</span>\n <StyledHiddenBadge title=\"Hidden from clients\">\n <EyeOffIcon />\n </StyledHiddenBadge>\n </>\n ) : null}\n </StyledMetaCluster>\n </StackRow>\n\n <StackRow role=\"footer\">\n <StyledDate $overdue={dateIsOverdue}>{dateLabel}</StyledDate>\n <span />\n {assigned ? (\n <RoundAvatar\n $bg={AVATAR_COLORS.teal}\n $size={24}\n $bordered={false}\n data-fixed\n >\n MS\n </RoundAvatar>\n ) : (\n <StyledAddAssignee type=\"button\" aria-label=\"Assign task\" data-fixed>\n <PersonPlusIcon />\n </StyledAddAssignee>\n )}\n </StackRow>\n </StyledBody>\n );\n};\n\n/* ---- placeholder + skeleton ---- */\n\nexport const TaskPlaceholder = (\n props: React.ButtonHTMLAttributes<HTMLButtonElement>\n): ReactElement => (\n <Placeholder\n icon={<ChecklistSmallIcon />}\n label=\"Name this task\"\n {...props}\n />\n);\n\n/* Skeleton mirrors the task anatomy row for row: title, meta, footer. */\nexport const TaskSkeleton = (): ReactElement => (\n <>\n <StackRow role=\"title\">\n <SkeletonLoader style={{ height: 14, width: \"90%\" }} />\n </StackRow>\n <StackRow role=\"meta\">\n <SkeletonLoader style={{ height: 10, width: \"55%\" }} />\n </StackRow>\n <StackRow role=\"footer\">\n <SkeletonLoader style={{ height: 12, width: 64 }} data-fixed />\n <span />\n <SkeletonLoader\n data-fixed\n style={{ width: 24, height: 24, borderRadius: \"50%\" }}\n />\n </StackRow>\n </>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAOA,IAAAI,MAAA,GAAAJ,OAAA;AAOA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAKA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAA0D,SAAAE,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,wBAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,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KAAK,EAAE;IAAM;EAAE,CAAE,CAC9C,CAAC,eACXtG,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,CAACpF,YAAA,CAAAiG,cAAQ;IAACC,IAAI,EAAC;EAAM,gBACnB1G,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,CAACrF,QAAA,CAAAkI,cAAc;IAACpC,KAAK,EAAE;MAAEE,MAAM,EAAE,EAAE;MAAED,KAAK,EAAE;IAAM;EAAE,CAAE,CAC9C,CAAC,eACXtG,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,CAACpF,YAAA,CAAAiG,cAAQ;IAACC,IAAI,EAAC;EAAQ,gBACrB1G,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,CAACrF,QAAA,CAAAkI,cAAc;IAACpC,KAAK,EAAE;MAAEE,MAAM,EAAE,EAAE;MAAED,KAAK,EAAE;IAAG,CAAE;IAAC;EAAU,CAAE,CAAC,eAC/DtG,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,aAAO,CAAC,eACR5F,MAAA,CAAAsB,OAAA,CAAAsE,aAAA,CAACrF,QAAA,CAAAkI,cAAc;IACb,kBAAU;IACVpC,KAAK,EAAE;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE,EAAE;MAAEmC,YAAY,EAAE;IAAM;EAAE,CACvD,CACO,CACV,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"TaskCard.js","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_shared","_Icons","_Loaders","_Signifier","_StackedCard","_Tag","_Typography","_Typography2","_shared2","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","DEMO_LABELS","text","color","LABELS_AS_TEXT_MAX","LABEL_DOTS_MAX","StyledBody","styled","div","withConfig","displayName","componentId","_ref","$completed","css","StyledInfoLine","StyledDot","span","_ref2","$color","StyledDate","CARD_FONT","_ref3","$overdue","StyledAssignees","StyledAddAssignee","button","ASSIGNEE_LIMIT","TaskCard","exports","_ref4","_ref4$title","title","_ref4$cover","cover","_ref4$playable","playable","_ref4$coverControls","coverControls","_ref4$showTaskId","showTaskId","_ref4$taskId","taskId","_ref4$showProjectName","showProjectName","_ref4$projectName","projectName","_ref4$labels","labels","_ref4$subtaskCount","subtaskCount","_ref4$commentCount","commentCount","_ref4$dateLabel","dateLabel","_ref4$overdue","overdue","_ref4$showDependencie","showDependencies","_ref4$dependencyCount","dependencyCount","_ref4$hiddenFromClien","hiddenFromClients","_ref4$projectDefaultH","projectDefaultHidden","_ref4$assigned","assigned","assignees","_ref4$completed","completed","showHiddenSignifier","dateIsOverdue","hasDate","collapseLabels","assigneeSlot","createElement","className","slice","map","person","RoundAvatar","key","name","$bg","$size","$overlap","initials","AVATAR_COLORS","teal","$bordered","type","PersonPlusIcon","signifiers","push","Signifier","ChecklistSmallIcon","value","tooltipText","MessageSmallIcon","DependencySmallIcon","EyeOffSmallIcon","showInfoLine","StackedCardCover","aspectRatio","COVER_RATIO","centerSlot","playControl","undefined","topRightSlot","coverManagement","style","width","height","background","StackedCardRow","role","StyledTitleBlock","CardProjectLine","StyledClamp","Typography","as","variant","concat","EntityDots","label","Caption1","Tag","showDot","TaskPlaceholder","props","Placeholder","icon","TaskSkeleton","Fragment","SkeletonLoader","borderRadius"],"sources":["../../../../../src/presentation/stackedCard/content/TaskCard.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled, { css } from \"styled-components\";\n\nimport {\n CARD_FONT,\n CardProjectLine,\n EntityDots,\n StyledClamp,\n StyledTitleBlock,\n coverManagement,\n playControl,\n Placeholder,\n} from \"./shared\";\nimport {\n ChecklistSmallIcon,\n DependencySmallIcon,\n EyeOffSmallIcon,\n MessageSmallIcon,\n PersonPlusIcon,\n} from \"../../../components/Icons\";\nimport { SkeletonLoader } from \"../../../components/Loaders\";\nimport { Signifier } from \"../../../components/Signifier\";\nimport {\n STACKED_CARD_COVER_RATIO as COVER_RATIO,\n StackedCardCover as Cover,\n StackedCardRow as StackRow,\n} from \"../../../components/StackedCard\";\nimport { Tag } from \"../../../components/Tag\";\nimport { Caption1 } from \"../../../components/Typography\";\nimport { Typography } from \"../../../components/Typography/Typography\";\nimport { RoundAvatar, AVATAR_COLORS } from \"../../shared\";\n\n/**\n * TaskCard — the baseline-preservation card.\n *\n * This is the replacement for today's column card, so it must reproduce every\n * behavior that card has (note 52104 §B2) — none of them are optional, each is\n * a silent-regression risk. Every one is a prop here so the story can toggle it:\n *\n * - task-number prefix in the title (config-gated, mirrors `show_task_id`)\n * - overdue date colouring (red ONLY when overdue AND not completed)\n * - dependency counter (behind a feature-flag prop)\n * - hidden-from-clients signifier (shown only when it DIFFERS from the\n * project default)\n * - inline assignee affordance (avatar, or an add-assignee placeholder)\n * - completed (teal tint, no \"…\" menu, no overdue colour)\n * - assignees appear ONCE (in the info line when the card has no\n * date range, in the date row when it\n * has one — never in both)\n *\n * The pending/optimistic and priority states are SHELL states (dimmed +\n * pointer-events off; red left bar), so the card is wrapped in a `<StackedCard\n * pending>` / `<StackedCard priorityColor>` by the host — they are not the\n * card's own concern and live on the shell, not here.\n *\n * Everything is measured against the app: `ColumnCardBody.jsx`,\n * `ColumnCardBodyInfo.jsx`, `ColumnCardDate.jsx` and\n * `view.project_tasks_column_mode.less`.\n */\n\nexport interface TaskCardLabel {\n text: string;\n /** The label's own colour — data, not theme. */\n color: string;\n}\n\nexport interface TaskCardPerson {\n name: string;\n initials: string;\n /** Avatar colours stand in for the server-rendered avatar: data, not theme. */\n color: string;\n}\n\n/**\n * Eight labels, so the default card demonstrates the collapsed form. Colours are\n * the labels' own, which is why they are literals.\n */\nconst DEMO_LABELS: TaskCardLabel[] = [\n { text: \"DESIGN\", color: \"#378ADD\" },\n { text: \"BLOCKED\", color: \"#D85A30\" },\n { text: \"READY\", color: \"#639922\" },\n { text: \"REVIEW\", color: \"#EF9F27\" },\n { text: \"RESEARCH\", color: \"#7F77DD\" },\n { text: \"COPY\", color: \"#8C5A2B\" },\n { text: \"QA\", color: \"#2F5DA8\" },\n { text: \"RELEASE\", color: \"#8A3E6B\" },\n];\n\n/**\n * How many labels read as text before the line has to collapse them, and how\n * many dots stand in for the rest. Two colour-text `Tag`s fit a 260px card; past\n * that the app's own answer (and the design system's mapping) is coloured dots\n * plus an overflow count.\n */\nconst LABELS_AS_TEXT_MAX = 2;\nconst LABEL_DOTS_MAX = 5;\n\n/* The completed tint fills the card body; the shell keeps the priority bar and\n selection ring on top of it. */\nconst StyledBody = styled.div<{ $completed?: boolean }>`\n display: flex;\n flex-direction: column;\n\n ${({ $completed }) =>\n $completed &&\n css`\n background: var(--sc-completed-tint, rgba(72, 201, 176, 0.16));\n `}\n`;\n\n/**\n * The info line — labels, then signifiers, then (only when the card has no date\n * range) the assignees.\n *\n * The separator is the app's, rule for rule: a 2px round dot in\n * `--color-theme-600` with `margin: 0 6px`, drawn by `::before` on every item\n * EXCEPT the first (`view.project_tasks_column_mode.less`:\n * `.c-signifier:not(:first-child):before`, `.label_single_container:not(:first-child)\n * .label_item:before`, `.dot:before`). Because the rule keys off position rather\n * than off \"am I a signifier\", a line that starts with a signifier — a task with\n * counters but no labels — cannot open with a dangling dot.\n *\n * `font-size: 11px` is the `.labels` block's own; the vertical rhythm the app\n * gets from `margin-top: 10px` comes from the `meta` row's role padding here.\n */\nconst StyledInfoLine = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n font-size: 11px;\n\n > * {\n display: flex;\n align-items: center;\n min-height: 18px;\n }\n\n /* The assignees are excluded: they end the line rather than continuing the\n enumeration, and the app draws no dot before them either. */\n > *:not(:first-child):not(.sc-assignees)::before {\n content: \"\";\n flex-shrink: 0;\n width: 2px;\n height: 2px;\n margin: 0 6px;\n border-radius: 100%;\n background-color: var(--color-theme-600);\n }\n\n /* Labels truncate rather than push the line wider: 74px for the item, 60px\n for the text inside it — the app's two numbers. */\n .sc-label {\n max-width: 74px;\n }\n\n .sc-label .c-tag > div {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 60px;\n }\n\n .sc-dots {\n gap: 4px;\n }\n\n /* The assignees end the line, right-aligned, when there is no date row to\n carry them. */\n .sc-assignees {\n flex: 1 1 auto;\n justify-content: flex-end;\n }\n`;\n\nconst StyledDot = styled.span<{ $color: string }>`\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: ${({ $color }) => $color};\n`;\n\n/**\n * The date row's text.\n *\n * A raw `<span>` in this Storybook inherits the browser's serif default at the\n * ancestor's size, which is why the date used to read as huge serif type. The\n * app sets the same four values in CSS on a plain `div` (`.due_date`: 13px,\n * bold, 24px tall, `--color-theme-900`, `--red-alert` when `.overdue`), so the\n * fix is to state them here — plus the font stack the missing reset does not\n * supply.\n */\nconst StyledDate = styled.span<{ $overdue?: boolean }>`\n height: 24px;\n font-family: ${CARD_FONT};\n font-size: 13px;\n font-weight: bold;\n line-height: 24px;\n letter-spacing: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n color: ${({ $overdue }) =>\n $overdue ? \"var(--red-alert)\" : \"var(--color-theme-900)\"};\n`;\n\n/* Avatars are limited to 3 and overlap, as MultiAssigneesPicker does. */\nconst StyledAssignees = styled.span`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n`;\n\n/* Inline assignee affordance placeholder — a dashed add-assignee target that\n stands in until the real picker is wired at integration. */\nconst StyledAddAssignee = styled.button`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1.5px dashed var(--color-theme-400);\n border-radius: 50%;\n background: transparent;\n color: var(--color-theme-600);\n cursor: pointer;\n\n svg {\n width: 14px;\n height: 14px;\n display: block;\n }\n\n &:hover {\n border-color: var(--sc-selection-ring);\n color: var(--color-theme-800);\n }\n`;\n\n/** The app's assignee limit (MultiAssigneesPicker `limit={3}`). */\nconst ASSIGNEE_LIMIT = 3;\n\nexport interface TaskCardProps {\n title?: string;\n /** Optional cover — task cards in a column usually have none. */\n cover?: boolean;\n playable?: boolean;\n coverControls?: boolean;\n /** Config-gated task-number prefix (mirrors `show_task_id`). */\n showTaskId?: boolean;\n taskId?: number;\n /**\n * The project the task lives in, above the title. Off by default: in a column\n * the column already says it, and only a surface that mixes projects (a\n * canvas) needs the line.\n */\n showProjectName?: boolean;\n projectName?: string;\n /**\n * The task's labels. Up to two read as colour text (`Tag`, the column card's\n * treatment); more collapse to coloured dots plus an overflow count, which is\n * what the design system maps \">2 labels\" to. An empty array means the card\n * has no labels — and then the info line must not open with a separator.\n */\n labels?: TaskCardLabel[];\n /** Open-subtask and comment counters; each shows only when it is non-zero. */\n subtaskCount?: number;\n commentCount?: number;\n /**\n * The date range. `null` (or empty) means the task has none — the date row\n * disappears and the assignees move up into the info line, so they still\n * appear exactly once.\n */\n dateLabel?: string | null;\n /** Overdue date — colours the date red, but only when NOT completed. */\n overdue?: boolean;\n /** Dependency counter, gated behind a feature flag. */\n showDependencies?: boolean;\n dependencyCount?: number;\n /** The task's hidden-from-clients flag. */\n hiddenFromClients?: boolean;\n /** The project default for client visibility; the signifier shows on a diff. */\n projectDefaultHidden?: boolean;\n /** Whether the task has an assignee (avatar) or shows the add affordance. */\n assigned?: boolean;\n /** The actual assignees, when the host has them. Limited to 3, as in the app. */\n assignees?: TaskCardPerson[];\n /** Completed — teal tint, no \"…\" menu, no overdue colour. */\n completed?: boolean;\n}\n\nexport const TaskCard = ({\n title = \"Implement the design from the reference on this page\",\n cover = false,\n playable = false,\n coverControls = false,\n showTaskId = false,\n taskId = 4521,\n showProjectName = false,\n projectName = \"Marketing Site\",\n labels = DEMO_LABELS,\n subtaskCount = 2,\n commentCount = 7,\n dateLabel = \"May 8 – Sep 10\",\n overdue = false,\n showDependencies = false,\n dependencyCount = 2,\n hiddenFromClients = false,\n projectDefaultHidden = false,\n assigned = true,\n assignees,\n completed = false,\n}: TaskCardProps): ReactElement => {\n // Signifier appears only when the task's visibility differs from the default.\n const showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;\n // Overdue colour is suppressed on completed tasks.\n const dateIsOverdue = overdue && !completed;\n const hasDate = dateLabel != null && dateLabel !== \"\";\n const collapseLabels = labels.length > LABELS_AS_TEXT_MAX;\n\n /* The assignee slot: the real avatars when the host has them, the demo avatar\n when it only says \"assigned\", the add affordance when it says nothing is. */\n const assigneeSlot = assigned ? (\n <StyledAssignees className=\"sc-assignees\" data-fixed>\n {assignees ? (\n assignees.slice(0, ASSIGNEE_LIMIT).map((person) => (\n <RoundAvatar key={person.name} $bg={person.color} $size={24} $overlap>\n {person.initials}\n </RoundAvatar>\n ))\n ) : (\n <RoundAvatar $bg={AVATAR_COLORS.teal} $size={24} $bordered={false}>\n MS\n </RoundAvatar>\n )}\n </StyledAssignees>\n ) : (\n <StyledAssignees className=\"sc-assignees\" data-fixed>\n <StyledAddAssignee type=\"button\" aria-label=\"Assign task\">\n <PersonPlusIcon />\n </StyledAddAssignee>\n </StyledAssignees>\n );\n\n /* Signifiers in the app's fixed order: subtasks → comments → dependencies →\n hidden-from-clients. Each is one child of the info line, so the line's own\n separator rule spaces them. */\n const signifiers: ReactElement[] = [];\n if (subtaskCount > 0) {\n signifiers.push(\n <Signifier\n key=\"subtasks\"\n type={ChecklistSmallIcon}\n value={subtaskCount}\n tooltipText=\"Subtasks\"\n />\n );\n }\n if (commentCount > 0) {\n signifiers.push(\n <Signifier\n key=\"comments\"\n type={MessageSmallIcon}\n value={commentCount}\n tooltipText=\"Comments\"\n />\n );\n }\n if (showDependencies && dependencyCount > 0) {\n signifiers.push(\n <Signifier\n key=\"dependencies\"\n type={DependencySmallIcon}\n value={dependencyCount}\n tooltipText=\"Dependencies\"\n />\n );\n }\n if (showHiddenSignifier) {\n signifiers.push(\n <Signifier\n key=\"hidden\"\n type={EyeOffSmallIcon}\n tooltipText=\"Hidden from clients\"\n />\n );\n }\n\n /* The info line exists when it has something to say — labels, signifiers, or\n the assignees it has to carry because there is no date row. */\n const showInfoLine = labels.length > 0 || signifiers.length > 0 || !hasDate;\n\n return (\n <StyledBody $completed={completed}>\n {cover ? (\n <Cover\n aspectRatio={COVER_RATIO}\n centerSlot={playable ? playControl : undefined}\n topRightSlot={coverControls ? coverManagement() : undefined}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n background: \"var(--color-theme-300)\",\n }}\n />\n </Cover>\n ) : null}\n\n <StackRow role=\"title\">\n <StyledTitleBlock>\n {showProjectName ? (\n <CardProjectLine>{projectName}</CardProjectLine>\n ) : null}\n <StyledClamp>\n {showTaskId ? (\n <Typography as=\"span\" variant=\"Caption 1\" color=\"tertiary\">\n {`#${taskId} `}\n </Typography>\n ) : null}\n {title}\n </StyledClamp>\n </StyledTitleBlock>\n {/* Completed tasks drop the \"…\" menu. */}\n {completed ? null : <EntityDots aria-label=\"Task options\" />}\n </StackRow>\n\n {showInfoLine ? (\n <StackRow role=\"meta\">\n <StyledInfoLine>\n {collapseLabels ? (\n <span className=\"sc-dots\">\n {labels.slice(0, LABEL_DOTS_MAX).map((label) => (\n <StyledDot key={label.text} $color={label.color} />\n ))}\n {labels.length > LABEL_DOTS_MAX ? (\n <Caption1 color=\"tertiary\">{`+${\n labels.length - LABEL_DOTS_MAX\n }`}</Caption1>\n ) : null}\n </span>\n ) : (\n labels.map((label) => (\n <span className=\"sc-label\" key={label.text}>\n <Tag name={label.text} color={label.color} showDot={false} />\n </span>\n ))\n )}\n {signifiers}\n {/* Key invariant: assignees are here ONLY when the card has no date\n row to hold them. */}\n {hasDate ? null : assigneeSlot}\n </StyledInfoLine>\n </StackRow>\n ) : null}\n\n {hasDate ? (\n <StackRow role=\"footer\">\n <StyledDate $overdue={dateIsOverdue}>{dateLabel}</StyledDate>\n {assigneeSlot}\n </StackRow>\n ) : null}\n </StyledBody>\n );\n};\n\n/* ---- placeholder + skeleton ---- */\n\nexport const TaskPlaceholder = (\n props: React.ButtonHTMLAttributes<HTMLButtonElement>\n): ReactElement => (\n <Placeholder\n icon={<ChecklistSmallIcon />}\n label=\"Name this task\"\n {...props}\n />\n);\n\n/* Skeleton mirrors the task anatomy row for row: title, meta, footer. */\nexport const TaskSkeleton = (): ReactElement => (\n <>\n <StackRow role=\"title\">\n <SkeletonLoader style={{ height: 14, width: \"90%\" }} />\n </StackRow>\n <StackRow role=\"meta\">\n <SkeletonLoader style={{ height: 10, width: \"55%\" }} />\n </StackRow>\n <StackRow role=\"footer\">\n <SkeletonLoader style={{ height: 12, width: 64 }} data-fixed />\n <span />\n <SkeletonLoader\n data-fixed\n style={{ width: 24, height: 24, borderRadius: \"50%\" }}\n />\n </StackRow>\n </>\n);\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAUA,IAAAI,MAAA,GAAAJ,OAAA;AAOA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAKA,IAAAQ,IAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AAA0D,SAAAE,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,wBAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAA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,EAAE;IAAM;EAAE,CAAE,CAC9C,CAAC,eACXtJ,MAAA,CAAAwB,OAAA,CAAA0F,aAAA,CAACzG,YAAA,CAAAgJ,cAAQ;IAACC,IAAI,EAAC;EAAQ,gBACrB1J,MAAA,CAAAwB,OAAA,CAAA0F,aAAA,CAAC3G,QAAA,CAAAsK,cAAc;IAACxB,KAAK,EAAE;MAAEE,MAAM,EAAE,EAAE;MAAED,KAAK,EAAE;IAAG,CAAE;IAAC;EAAU,CAAE,CAAC,eAC/DtJ,MAAA,CAAAwB,OAAA,CAAA0F,aAAA,aAAO,CAAC,eACRlH,MAAA,CAAAwB,OAAA,CAAA0F,aAAA,CAAC3G,QAAA,CAAAsK,cAAc;IACb,kBAAU;IACVxB,KAAK,EAAE;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE,EAAE;MAAEuB,YAAY,EAAE;IAAM;EAAE,CACvD,CACO,CACV,CAAC;AAAA,CACJ","ignoreList":[]}
|
|
@@ -25,6 +25,17 @@ Object.keys(_unfurl).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _ProjectCard = require("./ProjectCard");
|
|
29
|
+
Object.keys(_ProjectCard).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _ProjectCard[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _ProjectCard[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
var _TaskCard = require("./TaskCard");
|
|
29
40
|
Object.keys(_TaskCard).forEach(function (key) {
|
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_shared","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_unfurl","_TaskCard","_LinkCard","_ImageCard","_SwatchCard","_NoteCard"],"sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"sourcesContent":["export * from \"./shared\";\nexport * from \"./unfurl\";\nexport * from \"./TaskCard\";\nexport * from \"./LinkCard\";\nexport * from \"./ImageCard\";\nexport * from \"./SwatchCard\";\nexport * from \"./NoteCard\";\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_shared","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_unfurl","_ProjectCard","_TaskCard","_LinkCard","_ImageCard","_SwatchCard","_NoteCard"],"sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"sourcesContent":["export * from \"./shared\";\nexport * from \"./unfurl\";\nexport * from \"./ProjectCard\";\nexport * from \"./TaskCard\";\nexport * from \"./LinkCard\";\nexport * from \"./ImageCard\";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CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAM,WAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,SAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,SAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,SAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAO,SAAA,CAAAX,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.playControl = exports.coverManagement = exports.StyledFavicon = exports.StyledColorCover = exports.StyledClamp = exports.StyledChip = exports.Placeholder = exports.EntityDots = exports.COVER_RATIO_SWATCH = exports.COVER_RATIO_IMAGE = exports.COVER_RATIO_HERO = void 0;
|
|
6
|
+
exports.playControl = exports.coverManagement = exports.StyledTitleBlock = exports.StyledProjectLine = exports.StyledFavicon = exports.StyledColorCover = exports.StyledClamp = exports.StyledChip = exports.Placeholder = exports.EntityDots = exports.CardProjectLine = exports.COVER_RATIO_SWATCH = exports.COVER_RATIO_IMAGE = exports.COVER_RATIO_HERO = exports.CARD_FONT = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _Icons = require("../../../components/Icons");
|
|
@@ -31,6 +31,20 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
31
31
|
* the same words.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
+
/* ------------------------------------------------------------------ */
|
|
35
|
+
/* The font stack for raw text */
|
|
36
|
+
/* ------------------------------------------------------------------ */
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* There is no global CSS reset in this Storybook, so a raw element (a `<span>`
|
|
40
|
+
* holding a date, a `<button>` holding a word) falls back to the browser default
|
|
41
|
+
* — a SERIF face at the UA's own size. Anything that is not a DS `Typography`
|
|
42
|
+
* has to name the font itself. Use a DS Typography where one fits; use this
|
|
43
|
+
* where the app itself sets the size in CSS (the column card's date row is a
|
|
44
|
+
* plain `div` in `view.project_tasks_column_mode.less`, not a Typography).
|
|
45
|
+
*/
|
|
46
|
+
var CARD_FONT = exports.CARD_FONT = "-apple-system, BlinkMacSystemFont, \"Roboto\",\n \"Helvetica Neue\", Arial, sans-serif";
|
|
47
|
+
|
|
34
48
|
/* ------------------------------------------------------------------ */
|
|
35
49
|
/* Per-type cover ratios */
|
|
36
50
|
/* ------------------------------------------------------------------ */
|
|
@@ -101,27 +115,60 @@ var StyledClamp = exports.StyledClamp = (0, _styledComponents.default)(_Typograp
|
|
|
101
115
|
componentId: "sc-1x5md9a-1"
|
|
102
116
|
})(["display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"]);
|
|
103
117
|
|
|
118
|
+
/**
|
|
119
|
+
* The title block — everything the title row stacks to the LEFT of the "…"
|
|
120
|
+
* menu. A card that only has a title puts the clamp straight in the row; a card
|
|
121
|
+
* that puts a line above or below it (the project a task belongs to, the client
|
|
122
|
+
* a project is for) stacks them here so the row keeps its two-child shape:
|
|
123
|
+
* text block, then the fixed-width menu.
|
|
124
|
+
*/
|
|
125
|
+
var StyledTitleBlock = exports.StyledTitleBlock = _styledComponents.default.div.withConfig({
|
|
126
|
+
displayName: "shared__StyledTitleBlock",
|
|
127
|
+
componentId: "sc-1x5md9a-2"
|
|
128
|
+
})(["display:flex;flex-direction:column;min-width:0;"]);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The project a card's entity lives in, above the title.
|
|
132
|
+
*
|
|
133
|
+
* On a canvas a task card has lost the column that used to say which project it
|
|
134
|
+
* came from, so the card says it itself. One line, one treatment, shared by
|
|
135
|
+
* every content type that can carry it (the whiteboard's own task face already
|
|
136
|
+
* wrote it this way: `Caption 2` tertiary, tight above the title, ellipsis on
|
|
137
|
+
* overflow — a project name is a reference, never a second title).
|
|
138
|
+
*/
|
|
139
|
+
var StyledProjectLine = exports.StyledProjectLine = (0, _styledComponents.default)(_Typography.Caption2).withConfig({
|
|
140
|
+
displayName: "shared__StyledProjectLine",
|
|
141
|
+
componentId: "sc-1x5md9a-3"
|
|
142
|
+
})(["display:block;margin-bottom:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
|
|
143
|
+
var CardProjectLine = exports.CardProjectLine = function CardProjectLine(_ref2) {
|
|
144
|
+
var children = _ref2.children;
|
|
145
|
+
return /*#__PURE__*/_react.default.createElement(StyledProjectLine, {
|
|
146
|
+
color: "tertiary",
|
|
147
|
+
className: "sc-project"
|
|
148
|
+
}, children);
|
|
149
|
+
};
|
|
150
|
+
|
|
104
151
|
/** A favicon square — a solid data colour stands in for the real favicon. */
|
|
105
152
|
var StyledFavicon = exports.StyledFavicon = _styledComponents.default.span.withConfig({
|
|
106
153
|
displayName: "shared__StyledFavicon",
|
|
107
|
-
componentId: "sc-1x5md9a-
|
|
108
|
-
})(["display:inline-flex;width:16px;height:16px;border-radius:4px;background:", ";flex-shrink:0;"], function (
|
|
109
|
-
var $bg =
|
|
154
|
+
componentId: "sc-1x5md9a-4"
|
|
155
|
+
})(["display:inline-flex;width:16px;height:16px;border-radius:4px;background:", ";flex-shrink:0;"], function (_ref3) {
|
|
156
|
+
var $bg = _ref3.$bg;
|
|
110
157
|
return $bg;
|
|
111
158
|
});
|
|
112
159
|
|
|
113
160
|
/** A small pill for link metadata (media kind, duration, …). */
|
|
114
161
|
var StyledChip = exports.StyledChip = _styledComponents.default.span.withConfig({
|
|
115
162
|
displayName: "shared__StyledChip",
|
|
116
|
-
componentId: "sc-1x5md9a-
|
|
163
|
+
componentId: "sc-1x5md9a-5"
|
|
117
164
|
})(["display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;background:var(--color-theme-300);color:var(--color-theme-800);font-size:11px;white-space:nowrap;"]);
|
|
118
165
|
|
|
119
166
|
/** A solid-colour cover fill (swatch value, generic link cover, image stand-in). */
|
|
120
167
|
var StyledColorCover = exports.StyledColorCover = _styledComponents.default.div.withConfig({
|
|
121
168
|
displayName: "shared__StyledColorCover",
|
|
122
|
-
componentId: "sc-1x5md9a-
|
|
123
|
-
})(["width:100%;height:100%;background:", ";"], function (
|
|
124
|
-
var $color =
|
|
169
|
+
componentId: "sc-1x5md9a-6"
|
|
170
|
+
})(["width:100%;height:100%;background:", ";"], function (_ref4) {
|
|
171
|
+
var $color = _ref4.$color;
|
|
125
172
|
return $color;
|
|
126
173
|
});
|
|
127
174
|
|
|
@@ -131,12 +178,12 @@ var StyledColorCover = exports.StyledColorCover = _styledComponents.default.div.
|
|
|
131
178
|
|
|
132
179
|
var StyledPlaceholder = _styledComponents.default.button.withConfig({
|
|
133
180
|
displayName: "shared__StyledPlaceholder",
|
|
134
|
-
componentId: "sc-1x5md9a-
|
|
135
|
-
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:", "px;padding:0;border:0;background:transparent;color:var(--color-theme-600);text-align:center;cursor:pointer;", " > svg{width:40px;height:40px;color:var(--color-theme-500);}"], function (
|
|
136
|
-
var $height =
|
|
181
|
+
componentId: "sc-1x5md9a-7"
|
|
182
|
+
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:", "px;padding:0;border:0;background:transparent;color:var(--color-theme-600);text-align:center;cursor:pointer;", " > svg{width:40px;height:40px;color:var(--color-theme-500);}"], function (_ref5) {
|
|
183
|
+
var $height = _ref5.$height;
|
|
137
184
|
return $height !== null && $height !== void 0 ? $height : 150;
|
|
138
|
-
}, function (
|
|
139
|
-
var $dashed =
|
|
185
|
+
}, function (_ref6) {
|
|
186
|
+
var $dashed = _ref6.$dashed;
|
|
140
187
|
return $dashed && (0, _styledComponents.css)(["margin:8px;width:calc(100% - 16px);border:1.5px dashed var(--color-theme-400);border-radius:6px;&:hover{border-color:var(--sc-selection-ring);color:var(--color-theme-700);}"]);
|
|
141
188
|
});
|
|
142
189
|
|
|
@@ -145,12 +192,12 @@ var StyledPlaceholder = _styledComponents.default.button.withConfig({
|
|
|
145
192
|
* sentence-case invitation (ActiveCollab voice). Interactive by design — the
|
|
146
193
|
* whole frame is a button — and distinct from the loading skeleton.
|
|
147
194
|
*/
|
|
148
|
-
var Placeholder = exports.Placeholder = function Placeholder(
|
|
149
|
-
var icon =
|
|
150
|
-
label =
|
|
151
|
-
height =
|
|
152
|
-
dashed =
|
|
153
|
-
rest = _objectWithoutProperties(
|
|
195
|
+
var Placeholder = exports.Placeholder = function Placeholder(_ref7) {
|
|
196
|
+
var icon = _ref7.icon,
|
|
197
|
+
label = _ref7.label,
|
|
198
|
+
height = _ref7.height,
|
|
199
|
+
dashed = _ref7.dashed,
|
|
200
|
+
rest = _objectWithoutProperties(_ref7, _excluded);
|
|
154
201
|
return /*#__PURE__*/_react.default.createElement(StyledPlaceholder, _extends({
|
|
155
202
|
type: "button",
|
|
156
203
|
$height: height,
|