@manakind/manuia-ui 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-item/action-item.css +62 -27
- package/dist/action-item/action-item.d.ts +18 -1
- package/dist/action-item/action-item.d.ts.map +1 -1
- package/dist/action-item/action-item.js +10 -5
- package/dist/action-item/action-item.js.map +1 -1
- package/dist/action-item/index.d.ts +1 -1
- package/dist/action-item/index.d.ts.map +1 -1
- package/dist/action-item/index.js.map +1 -1
- package/dist/action-list/action-list.css +5 -0
- package/dist/action-list/action-list.d.ts +5 -2
- package/dist/action-list/action-list.d.ts.map +1 -1
- package/dist/action-list/action-list.js +4 -1
- package/dist/action-list/action-list.js.map +1 -1
- package/dist/focus-item/focus-item.css +1 -26
- package/dist/focus-item/focus-item.d.ts +1 -0
- package/dist/focus-item/focus-item.d.ts.map +1 -1
- package/dist/focus-item/focus-item.js +2 -1
- package/dist/focus-item/focus-item.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/leading-slot.css +30 -0
- package/dist/leading-slot.css.d.ts +2 -0
- package/dist/outcome-item/index.d.ts +3 -0
- package/dist/outcome-item/index.d.ts.map +1 -0
- package/dist/outcome-item/index.js +2 -0
- package/dist/outcome-item/index.js.map +1 -0
- package/dist/outcome-item/outcome-item.css +139 -0
- package/dist/outcome-item/outcome-item.css.d.ts +2 -0
- package/dist/outcome-item/outcome-item.d.ts +77 -0
- package/dist/outcome-item/outcome-item.d.ts.map +1 -0
- package/dist/outcome-item/outcome-item.js +45 -0
- package/dist/outcome-item/outcome-item.js.map +1 -0
- package/package.json +2 -2
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
overflow-wrap: anywhere;
|
|
18
18
|
|
|
19
19
|
& .mui-action-item__card {
|
|
20
|
+
container-name: mui-action-item;
|
|
20
21
|
--ds-card-padding: var(--semantic-space-padding);
|
|
21
22
|
--ds-card-title-font-size: var(--primitives-font-size-md);
|
|
22
23
|
--ds-card-title-font-weight: var(--primitives-font-weight-medium);
|
|
@@ -72,11 +73,23 @@
|
|
|
72
73
|
font-size: var(--primitives-font-size-xs);
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
/*
|
|
77
|
+
* A glyph is part of its label, not a neighbour: the two keep one line,
|
|
78
|
+
* and a label too long for the row breaks beside its glyph.
|
|
79
|
+
*/
|
|
75
80
|
& .mui-action-item__detail {
|
|
76
81
|
display: inline-flex;
|
|
77
|
-
flex-wrap: wrap;
|
|
78
82
|
align-items: center;
|
|
79
83
|
gap: var(--semantic-space-gap-tight);
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& .mui-action-item__detail-icon {
|
|
88
|
+
flex: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& .mui-action-item__detail-label {
|
|
92
|
+
min-width: 0;
|
|
80
93
|
}
|
|
81
94
|
|
|
82
95
|
/* The label names the level; the tint on its glyph lets a list be scanned by it. */
|
|
@@ -119,6 +132,47 @@
|
|
|
119
132
|
max-width: 40%;
|
|
120
133
|
}
|
|
121
134
|
|
|
135
|
+
/*
|
|
136
|
+
* Compact: a row inside another card, so no border, fill or radius of its
|
|
137
|
+
* own, and only a little padding above and below. A rule between rows
|
|
138
|
+
* keeps them apart instead of the list's gap.
|
|
139
|
+
*/
|
|
140
|
+
&.mui-action-item--compact {
|
|
141
|
+
--mui-action-item-footer-space: 0px;
|
|
142
|
+
|
|
143
|
+
& .mui-action-item__card {
|
|
144
|
+
--ds-card-padding: var(--semantic-space-gap) 0;
|
|
145
|
+
--ds-card-border: transparent;
|
|
146
|
+
--ds-card-bg: transparent;
|
|
147
|
+
--ds-card-radius: 0;
|
|
148
|
+
--ds-card-title-font-size: var(--primitives-font-size-sm);
|
|
149
|
+
--ds-card-title-font-weight: var(--primitives-font-weight-regular);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
& .mui-action-item__row {
|
|
153
|
+
align-items: center;
|
|
154
|
+
column-gap: var(--semantic-space-gap);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
& .mui-action-item__title + :is(.mui-action-item__details, .mui-action-item__categories) {
|
|
158
|
+
margin-block-start: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
& .mui-action-item__main {
|
|
162
|
+
gap: var(--semantic-space-gap-tight);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* A compact row has no border to ring, so a selected one takes a tint instead. */
|
|
167
|
+
&.mui-action-item--compact.mui-action-item--selected .mui-action-item__card {
|
|
168
|
+
--ds-card-bg: var(--semantic-color-action-primary-subtle);
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.mui-action-item--compact + &.mui-action-item--compact {
|
|
173
|
+
border-block-start: 1px solid var(--semantic-color-border-subtle);
|
|
174
|
+
}
|
|
175
|
+
|
|
122
176
|
/*
|
|
123
177
|
* Narrow: the row wraps. The toggle, the title and the checkbox keep the
|
|
124
178
|
* first line. The details and categories follow, lined up under the title
|
|
@@ -153,6 +207,13 @@
|
|
|
153
207
|
);
|
|
154
208
|
}
|
|
155
209
|
|
|
210
|
+
&.mui-action-item--compact .mui-action-item__row:has(> .mui-action-item__complete) {
|
|
211
|
+
--mui-action-item-indent: calc(
|
|
212
|
+
var(--ds-button-size-sm-icon-only-size) +
|
|
213
|
+
var(--semantic-space-gap)
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
156
217
|
& .mui-action-item__main {
|
|
157
218
|
display: contents;
|
|
158
219
|
}
|
|
@@ -196,31 +257,5 @@
|
|
|
196
257
|
align-self: center;
|
|
197
258
|
}
|
|
198
259
|
}
|
|
199
|
-
|
|
200
|
-
/*
|
|
201
|
-
* The product's placing controls stand before the card, centred against
|
|
202
|
-
* it, with a message passed as children kept under the card. The card
|
|
203
|
-
* becomes the container the narrow layout measures, so the row collapses
|
|
204
|
-
* by the width inside the card (its padding excluded) rather than by the
|
|
205
|
-
* whole row, controls included.
|
|
206
|
-
*/
|
|
207
|
-
&:has(> .mui-action-item__leading) {
|
|
208
|
-
container-type: normal;
|
|
209
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
210
|
-
column-gap: var(--semantic-space-gap);
|
|
211
|
-
|
|
212
|
-
& > :not(.mui-action-item__leading) {
|
|
213
|
-
grid-column: 2;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
& > .mui-action-item__card {
|
|
217
|
-
container: mui-action-item / inline-size;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
& > .mui-action-item__leading {
|
|
222
|
-
grid-row: 1;
|
|
223
|
-
align-self: center;
|
|
224
|
-
}
|
|
225
260
|
}
|
|
226
261
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type BadgeVariant, type IconSource } from '@manakind/ui-core';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import { type GoalCategory } from '../goal-categories';
|
|
4
|
+
import '../leading-slot.css';
|
|
4
5
|
import './action-item.css';
|
|
5
6
|
/** One fact about the action, shown after the title: its project, outcome, effort, duration. */
|
|
6
7
|
export interface ActionItemDetail {
|
|
@@ -26,6 +27,12 @@ export interface ActionItemPriority {
|
|
|
26
27
|
}
|
|
27
28
|
/** How the note reads: an aside, or a warning the user should act on. The two Badge variants it maps to. */
|
|
28
29
|
export type ActionItemNoteTone = Extract<BadgeVariant, 'muted' | 'warning'>;
|
|
30
|
+
/**
|
|
31
|
+
* How much room the row takes. `default` is a card of its own; `compact` is a
|
|
32
|
+
* smaller row without the card's border, for a list inside another card,
|
|
33
|
+
* such as an outcome's actions in an `OutcomeItem`.
|
|
34
|
+
*/
|
|
35
|
+
export type ActionItemDensity = 'default' | 'compact';
|
|
29
36
|
export interface ActionItemProps extends Omit<ComponentProps<'li'>, 'title' | 'children' | 'className'> {
|
|
30
37
|
/** The action's description. Rendered as the row's heading. */
|
|
31
38
|
title: string;
|
|
@@ -80,6 +87,13 @@ export interface ActionItemProps extends Omit<ComponentProps<'li'>, 'title' | 'c
|
|
|
80
87
|
leading?: ReactNode;
|
|
81
88
|
/** Heading level for the title. Defaults to `h3`; match the surrounding outline. */
|
|
82
89
|
titleAs?: 'h2' | 'h3' | 'h4';
|
|
90
|
+
/**
|
|
91
|
+
* `compact` drops the card's border and padding, takes the small toggle
|
|
92
|
+
* and a smaller title, and rules a line between rows: for a list inside
|
|
93
|
+
* another card. The product passes fewer details there; the row shows what
|
|
94
|
+
* it is given. Defaults to `default`.
|
|
95
|
+
*/
|
|
96
|
+
density?: ActionItemDensity;
|
|
83
97
|
/** Extra class names on the `<li>`. */
|
|
84
98
|
className?: string;
|
|
85
99
|
/**
|
|
@@ -101,6 +115,9 @@ export interface ActionItemProps extends Omit<ComponentProps<'li'>, 'title' | 'c
|
|
|
101
115
|
* control; it has no pending state, for `FocusItem`'s reason, so the product
|
|
102
116
|
* keeps its change idempotent.
|
|
103
117
|
*
|
|
118
|
+
* `density="compact"` makes it a smaller row without the card's border, for
|
|
119
|
+
* an outcome's actions inside an `OutcomeItem`.
|
|
120
|
+
*
|
|
104
121
|
* Wide, the row reads left to right. Narrow, the toggle, the title and the
|
|
105
122
|
* checkbox share the first line; the details and categories follow, lined up
|
|
106
123
|
* under the title, and the second line and the controls share a footer
|
|
@@ -111,5 +128,5 @@ export interface ActionItemProps extends Omit<ComponentProps<'li'>, 'title' | 'c
|
|
|
111
128
|
* count a screen reader hears is the whole list's, and a sortable list
|
|
112
129
|
* passes its drag library's ref and transform style.
|
|
113
130
|
*/
|
|
114
|
-
export declare function ActionItem({ title, completed, onCompletedChange, completeIcon, priority, details, categories, maxVisibleCategories, note, noteTone, selected, onSelectedChange, controls, secondary, leading, titleAs, className, children, ...listItemProps }: ActionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
131
|
+
export declare function ActionItem({ title, completed, onCompletedChange, completeIcon, priority, details, categories, maxVisibleCategories, note, noteTone, selected, onSelectedChange, controls, secondary, leading, titleAs, density, className, children, ...listItemProps }: ActionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
115
132
|
//# sourceMappingURL=action-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-item.d.ts","sourceRoot":"","sources":["../../src/action-item/action-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAOjB,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,mBAAmB,CAAC;AAE3B,gGAAgG;AAChG,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,mFAAmF;AACnF,MAAM,MAAM,uBAAuB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhE,sGAAsG;AACtG,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B,oHAAoH;IACpH,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,4GAA4G;AAC5G,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;AAE5E,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;IACtE,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,SAAS,EAAE,OAAO,CAAC;IACnB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,EAAE,MAAM,CAAC;IACd,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yGAAyG;IACzG,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,oFAAoF;IACpF,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,OAAY,EACZ,UAAe,EACf,oBAAwB,EACxB,IAAI,EACJ,QAAkB,EAClB,QAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,OAAc,EACd,OAAmB,EACnB,SAAS,EACT,QAAQ,EACR,GAAG,aAAa,EACjB,EAAE,eAAe,2CAqHjB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Badge, Card, CardTitle, Checkbox, cx, Icon, IconButton, } from '@manakind/ui-core';
|
|
3
3
|
import { GoalCategories } from '../goal-categories';
|
|
4
|
+
import '../leading-slot.css';
|
|
4
5
|
import './action-item.css';
|
|
5
6
|
/**
|
|
6
7
|
* One Manuia action as a row. Render it inside an `ActionList`: it is the
|
|
@@ -14,6 +15,9 @@ import './action-item.css';
|
|
|
14
15
|
* control; it has no pending state, for `FocusItem`'s reason, so the product
|
|
15
16
|
* keeps its change idempotent.
|
|
16
17
|
*
|
|
18
|
+
* `density="compact"` makes it a smaller row without the card's border, for
|
|
19
|
+
* an outcome's actions inside an `OutcomeItem`.
|
|
20
|
+
*
|
|
17
21
|
* Wide, the row reads left to right. Narrow, the toggle, the title and the
|
|
18
22
|
* checkbox share the first line; the details and categories follow, lined up
|
|
19
23
|
* under the title, and the second line and the controls share a footer
|
|
@@ -24,9 +28,10 @@ import './action-item.css';
|
|
|
24
28
|
* count a screen reader hears is the whole list's, and a sortable list
|
|
25
29
|
* passes its drag library's ref and transform style.
|
|
26
30
|
*/
|
|
27
|
-
export function ActionItem({ title, completed, onCompletedChange, completeIcon, priority, details = [], categories = [], maxVisibleCategories = 2, note, noteTone = 'muted', selected = false, onSelectedChange, controls, secondary, leading, titleAs = 'h3', className, children, ...listItemProps }) {
|
|
31
|
+
export function ActionItem({ title, completed, onCompletedChange, completeIcon, priority, details = [], categories = [], maxVisibleCategories = 2, note, noteTone = 'muted', selected = false, onSelectedChange, controls, secondary, leading, titleAs = 'h3', density = 'default', className, children, ...listItemProps }) {
|
|
28
32
|
const selectable = onSelectedChange !== undefined;
|
|
29
|
-
const
|
|
33
|
+
const compact = density === 'compact';
|
|
34
|
+
const toggle = completeIcon && onCompletedChange ? (_jsx(IconButton, { className: "mui-action-item__complete", variant: completed ? 'primary' : 'secondary', size: compact ? 'sm' : 'md', icon: completeIcon, "aria-pressed": completed, "aria-label": `Complete ${title}`, onClick: () => onCompletedChange(!completed) })) : null;
|
|
30
35
|
/*
|
|
31
36
|
* A detail's key is its label and its rank among equal labels: a project
|
|
32
37
|
* and an outcome may share a name, and a key that only held the label
|
|
@@ -36,10 +41,10 @@ export function ActionItem({ title, completed, onCompletedChange, completeIcon,
|
|
|
36
41
|
const detailRows = details.map((detail) => {
|
|
37
42
|
const rank = seen.get(detail.label) ?? 0;
|
|
38
43
|
seen.set(detail.label, rank + 1);
|
|
39
|
-
return (_jsxs("span", { className: "mui-action-item__detail", children: [detail.icon && _jsx(Icon, { source: detail.icon, size: "sm", decorative: true }), detail.label] }, `${detail.label}-${rank}`));
|
|
44
|
+
return (_jsxs("span", { className: "mui-action-item__detail", children: [detail.icon && (_jsx(Icon, { source: detail.icon, size: "sm", decorative: true, className: "mui-action-item__detail-icon" })), _jsx("span", { className: "mui-action-item__detail-label", children: detail.label })] }, `${detail.label}-${rank}`));
|
|
40
45
|
});
|
|
41
|
-
const priorityDetail = priority ? (_jsxs("span", { className: cx('mui-action-item__detail', 'mui-action-item__priority', `mui-action-item__priority--${priority.level}`), children: [priority.icon && (_jsx(Icon, { source: priority.icon, size: "sm", decorative: true, className: "mui-action-item__priority-icon" })), priority.label] })) : null;
|
|
46
|
+
const priorityDetail = priority ? (_jsxs("span", { className: cx('mui-action-item__detail', 'mui-action-item__priority', `mui-action-item__priority--${priority.level}`), children: [priority.icon && (_jsx(Icon, { source: priority.icon, size: "sm", decorative: true, className: "mui-action-item__detail-icon mui-action-item__priority-icon" })), _jsx("span", { className: "mui-action-item__detail-label", children: priority.label })] })) : null;
|
|
42
47
|
const detailList = priority || details.length > 0 || note ? (_jsxs("p", { className: "mui-action-item__details", children: [priorityDetail, detailRows, note && (_jsx(Badge, { variant: noteTone, className: "mui-action-item__note", children: note }))] })) : null;
|
|
43
|
-
return (_jsxs("li", { ...listItemProps, className: cx('mui-action-item', completed && 'mui-action-item--completed', selectable && selected && 'mui-action-item--selected', className), children: [leading && _jsx("div", { className: "mui-action-item__leading", children: leading }), _jsx(Card, { className: "mui-action-item__card", children: _jsxs("div", { className: "mui-action-item__row", children: [toggle, _jsxs("div", { className: "mui-action-item__main", children: [_jsx(CardTitle, { as: titleAs, className: "mui-action-item__title", children: title }), detailList, _jsx(GoalCategories, { className: "mui-action-item__categories", categories: categories, maxVisible: maxVisibleCategories }), secondary && _jsx("div", { className: "mui-action-item__secondary", children: secondary })] }), controls && _jsx("div", { className: "mui-action-item__controls", children: controls }), selectable && (_jsx(Checkbox, { className: "mui-action-item__select", "aria-label": `Select ${title}`, checked: selected, onCheckedChange: onSelectedChange }))] }) }), children] }));
|
|
48
|
+
return (_jsxs("li", { ...listItemProps, className: cx('mui-leading-slot', 'mui-action-item', compact && 'mui-action-item--compact', completed && 'mui-action-item--completed', selectable && selected && 'mui-action-item--selected', className), children: [leading && (_jsx("div", { className: "mui-leading-slot__leading mui-action-item__leading", children: leading })), _jsx(Card, { className: "mui-leading-slot__card mui-action-item__card", children: _jsxs("div", { className: "mui-action-item__row", children: [toggle, _jsxs("div", { className: "mui-action-item__main", children: [_jsx(CardTitle, { as: titleAs, className: "mui-action-item__title", children: title }), detailList, _jsx(GoalCategories, { className: "mui-action-item__categories", categories: categories, maxVisible: maxVisibleCategories }), secondary && _jsx("div", { className: "mui-action-item__secondary", children: secondary })] }), controls && _jsx("div", { className: "mui-action-item__controls", children: controls }), selectable && (_jsx(Checkbox, { className: "mui-action-item__select", "aria-label": `Select ${title}`, checked: selected, onCheckedChange: onSelectedChange }))] }) }), children] }));
|
|
44
49
|
}
|
|
45
50
|
//# sourceMappingURL=action-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-item.js","sourceRoot":"","sources":["../../src/action-item/action-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,EAEL,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,EAAE,EACF,IAAI,EACJ,UAAU,GAEX,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAC;AACvE,OAAO,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"action-item.js","sourceRoot":"","sources":["../../src/action-item/action-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,EAEL,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,EAAE,EACF,IAAI,EACJ,UAAU,GA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AAa,EACjB,SAAS,EAAE,EAAE,CACX,kBAAkB,EAClB,iBAAiB,EACjB,OAAO,IAAI,0BAA0B,EACrC,SAAS,IAAI,4BAA4B,EACzC,UAAU,IAAI,QAAQ,IAAI,2BAA2B,EACrD,SAAS,CACV,aAEA,OAAO,IAAI,CACV,cAAK,SAAS,EAAC,oDAAoD,YAAE,OAAO,GAAO,CACpF,EACD,KAAC,IAAI,IAAC,SAAS,EAAC,8CAA8C,YAC5D,eAAK,SAAS,EAAC,sBAAsB,aAClC,MAAM,EACP,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,SAAS,IAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC,wBAAwB,YACvD,KAAK,GACI,EACX,UAAU,EACX,KAAC,cAAc,IACb,SAAS,EAAC,6BAA6B,EACvC,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,oBAAoB,GAChC,EACD,SAAS,IAAI,cAAK,SAAS,EAAC,4BAA4B,YAAE,SAAS,GAAO,IACvE,EACL,QAAQ,IAAI,cAAK,SAAS,EAAC,2BAA2B,YAAE,QAAQ,GAAO,EACvE,UAAU,IAAI,CACb,KAAC,QAAQ,IACP,SAAS,EAAC,yBAAyB,gBACvB,UAAU,KAAK,EAAE,EAC7B,OAAO,EAAE,QAAQ,EACjB,eAAe,EAAE,gBAAgB,GACjC,CACH,IACG,GACD,EACN,QAAQ,IACN,CACN,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ActionItemDetail, ActionItemNoteTone, ActionItemPriority, ActionItemPriorityLevel, ActionItemProps, } from './action-item';
|
|
1
|
+
export type { ActionItemDensity, ActionItemDetail, ActionItemNoteTone, ActionItemPriority, ActionItemPriorityLevel, ActionItemProps, } from './action-item';
|
|
2
2
|
export { ActionItem } from './action-item';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/action-item/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/action-item/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/action-item/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/action-item/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import './action-list.css';
|
|
3
3
|
export interface ActionListProps extends ComponentProps<'ul'> {
|
|
4
|
-
/** `ActionItem`s. Each renders its own `<li>`. */
|
|
4
|
+
/** `ActionItem`s and `OutcomeItem`s. Each renders its own `<li>`. */
|
|
5
5
|
children?: ComponentProps<'ul'>['children'];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* A `<ul>` of `ActionItem` rows
|
|
8
|
+
* A `<ul>` of `ActionItem` rows, and `OutcomeItem` rows that group them: the
|
|
9
|
+
* actions of a day, an outcome or a project.
|
|
10
|
+
* Cards stand apart by a gap; compact rows (`density="compact"`) close it
|
|
11
|
+
* and rule a line between them instead.
|
|
9
12
|
*
|
|
10
13
|
* A real list, so a screen reader announces how many items there are. Name it
|
|
11
14
|
* with `aria-label` or `aria-labelledby` when the heading above it doesn't
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-list.d.ts","sourceRoot":"","sources":["../../src/action-list/action-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC3D,
|
|
1
|
+
{"version":3,"file":"action-list.d.ts","sourceRoot":"","sources":["../../src/action-list/action-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC3D,qEAAqE;IACrE,QAAQ,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E"}
|
|
@@ -2,7 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cx } from '@manakind/ui-core';
|
|
3
3
|
import './action-list.css';
|
|
4
4
|
/**
|
|
5
|
-
* A `<ul>` of `ActionItem` rows
|
|
5
|
+
* A `<ul>` of `ActionItem` rows, and `OutcomeItem` rows that group them: the
|
|
6
|
+
* actions of a day, an outcome or a project.
|
|
7
|
+
* Cards stand apart by a gap; compact rows (`density="compact"`) close it
|
|
8
|
+
* and rule a line between them instead.
|
|
6
9
|
*
|
|
7
10
|
* A real list, so a screen reader announces how many items there are. Name it
|
|
8
11
|
* with `aria-label` or `aria-labelledby` when the heading above it doesn't
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-list.js","sourceRoot":"","sources":["../../src/action-list/action-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,OAAO,mBAAmB,CAAC;AAO3B
|
|
1
|
+
{"version":3,"file":"action-list.js","sourceRoot":"","sources":["../../src/action-list/action-list.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,OAAO,mBAAmB,CAAC;AAO3B;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAC3E,OAAO,CACL,aAAI,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,YACvD,QAAQ,GACN,CACN,CAAC;AACJ,CAAC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
overflow-wrap: anywhere;
|
|
18
18
|
|
|
19
19
|
& .mui-focus-item__card {
|
|
20
|
+
container-name: mui-focus-item;
|
|
20
21
|
--ds-card-padding: var(--semantic-space-padding);
|
|
21
22
|
--ds-card-title-font-size: var(--primitives-font-size-md);
|
|
22
23
|
--ds-card-title-font-weight: var(--primitives-font-weight-regular);
|
|
@@ -154,31 +155,5 @@
|
|
|
154
155
|
justify-self: end;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
-
/*
|
|
159
|
-
* The product's placing controls stand before the card, centred against
|
|
160
|
-
* it, with a message passed as children kept under the card. The card
|
|
161
|
-
* becomes the container the narrow layout measures, so the row collapses
|
|
162
|
-
* by the width inside the card (its padding excluded) rather than by the
|
|
163
|
-
* whole row, controls included.
|
|
164
|
-
*/
|
|
165
|
-
&:has(> .mui-focus-item__leading) {
|
|
166
|
-
container-type: normal;
|
|
167
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
168
|
-
column-gap: var(--semantic-space-gap);
|
|
169
|
-
|
|
170
|
-
& > :not(.mui-focus-item__leading) {
|
|
171
|
-
grid-column: 2;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
& > .mui-focus-item__card {
|
|
175
|
-
container: mui-focus-item / inline-size;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
& > .mui-focus-item__leading {
|
|
180
|
-
grid-row: 1;
|
|
181
|
-
align-self: center;
|
|
182
|
-
}
|
|
183
158
|
}
|
|
184
159
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type IconSource } from '@manakind/ui-core';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import { type GoalCategory } from '../goal-categories';
|
|
4
|
+
import '../leading-slot.css';
|
|
4
5
|
import './focus-item.css';
|
|
5
6
|
/** What a focus row holds: a single action, or an outcome that groups actions. */
|
|
6
7
|
export type FocusItemKind = 'action' | 'outcome';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-item.d.ts","sourceRoot":"","sources":["../../src/focus-item/focus-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,kBAAkB,CAAC;AAE1B,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC9B,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;IACtE,mFAAmF;IACnF,IAAI,EAAE,aAAa,CAAC;IACpB,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;IACd,sDA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;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,OAAY,EACZ,UAAe,EACf,OAAY,EACZ,OAAO,EACP,eAAe,EACf,SAAS,EACT,WAAuB,EACvB,QAAQ,EACR,OAAO,EACP,OAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,aAAa,EACjB,EAAE,cAAc,2CAoEhB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Card, CardTitle, cx, Icon } from '@manakind/ui-core';
|
|
3
3
|
import { GoalCategories } from '../goal-categories';
|
|
4
|
+
import '../leading-slot.css';
|
|
4
5
|
import './focus-item.css';
|
|
5
6
|
const KIND_LABELS = {
|
|
6
7
|
action: 'Action',
|
|
@@ -34,6 +35,6 @@ export function FocusItem({ kind, title, kindIcon, details = [], categories = []
|
|
|
34
35
|
const handleToggle = () => onFocusedChange?.(!focused);
|
|
35
36
|
const actionList = isOutcome && actions.length > 0 ? (_jsx("ul", { className: "mui-focus-item__actions", "aria-label": `Open actions for ${title}`, children: actions.map((action) => (_jsx("li", { className: "mui-focus-item__action", children: action.title }, action.id))) })) : null;
|
|
36
37
|
const toggle = onFocusedChange ? (_jsx(Button, { className: "mui-focus-item__toggle", variant: focused ? 'primary' : 'secondary', size: "sm", leadingIcon: focused ? focusedIcon : focusIcon, "aria-pressed": focused, "aria-label": `Focus ${title}`, onClick: handleToggle, children: "Focus" })) : null;
|
|
37
|
-
return (_jsxs("li", { ...listItemProps, className: cx('mui-focus-item', className), children: [leading && _jsx("div", { className: "mui-focus-item__leading", children: leading }), _jsx(Card, { className: "mui-focus-item__card", children: _jsxs("div", { className: "mui-focus-item__row", children: [_jsxs("div", { className: "mui-focus-item__main", children: [_jsx(CardTitle, { as: titleAs, className: "mui-focus-item__title", children: title }), _jsxs("p", { className: "mui-focus-item__details", children: [_jsxs("span", { className: "mui-focus-item__kind", children: [kindIcon && _jsx(Icon, { source: kindIcon, size: "sm", decorative: true }), KIND_LABELS[kind]] }), facts.map((fact) => (_jsx("span", { className: "mui-focus-item__detail", children: fact }, fact)))] }), actionList] }), _jsx(GoalCategories, { className: "mui-focus-item__categories", categories: categories }), toggle, controls && _jsx("div", { className: "mui-focus-item__controls", children: controls })] }) }), children] }));
|
|
38
|
+
return (_jsxs("li", { ...listItemProps, className: cx('mui-leading-slot', 'mui-focus-item', className), children: [leading && (_jsx("div", { className: "mui-leading-slot__leading mui-focus-item__leading", children: leading })), _jsx(Card, { className: "mui-leading-slot__card mui-focus-item__card", children: _jsxs("div", { className: "mui-focus-item__row", children: [_jsxs("div", { className: "mui-focus-item__main", children: [_jsx(CardTitle, { as: titleAs, className: "mui-focus-item__title", children: title }), _jsxs("p", { className: "mui-focus-item__details", children: [_jsxs("span", { className: "mui-focus-item__kind", children: [kindIcon && _jsx(Icon, { source: kindIcon, size: "sm", decorative: true }), KIND_LABELS[kind]] }), facts.map((fact) => (_jsx("span", { className: "mui-focus-item__detail", children: fact }, fact)))] }), actionList] }), _jsx(GoalCategories, { className: "mui-focus-item__categories", categories: categories }), toggle, controls && _jsx("div", { className: "mui-focus-item__controls", children: controls })] }) }), children] }));
|
|
38
39
|
}
|
|
39
40
|
//# sourceMappingURL=focus-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-item.js","sourceRoot":"","sources":["../../src/focus-item/focus-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAmB,MAAM,mBAAmB,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAC;AACvE,OAAO,kBAAkB,CAAC;AAa1B,MAAM,WAAW,GAAkC;IACjD,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACnB,CAAC;AAwDF;;;;;;;;;;;;;;;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,EAAE,SAAS,EAAC,uBAAuB,YACtD,KAAK,GACI,EAEZ,aAAG,SAAS,EAAC,yBAAyB,aACpC,gBAAM,SAAS,EAAC,sBAAsB,aACnC,QAAQ,IAAI,KAAC,IAAI,IAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,EAAC,UAAU,SAAG,EAC3D,WAAW,CAAC,IAAI,CAAC,IACb,EACN,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,eAAiB,SAAS,EAAC,wBAAwB,YAChD,IAAI,IADI,IAAI,CAER,CACR,CAAC,IACA,EAEH,UAAU,IACP,EAEN,KAAC,cAAc,IAAC,SAAS,EAAC,4BAA4B,EAAC,UAAU,EAAE,UAAU,GAAI,EAEhF,MAAM,EAEN,QAAQ,IAAI,cAAK,SAAS,EAAC,0BAA0B,YAAE,QAAQ,GAAO,IACnE,GACD,EACN,QAAQ,IACN,CACN,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/*
|
|
3
|
+
* A list row whose product's placing controls (a ReorderControl) stand
|
|
4
|
+
* before its card, outside it and centred against it, with a message passed
|
|
5
|
+
* as children kept under the card. The card becomes the container the row's
|
|
6
|
+
* narrow layout measures, so the row collapses by the width inside the card
|
|
7
|
+
* (its padding excluded) rather than by the whole row, controls included.
|
|
8
|
+
* Shared by ActionItem, FocusItem and OutcomeItem: each row is a one-column
|
|
9
|
+
* grid naming its own container on both the row and the card, and only the
|
|
10
|
+
* card's container type moves here.
|
|
11
|
+
*/
|
|
12
|
+
.mui-leading-slot:has(> .mui-leading-slot__leading) {
|
|
13
|
+
container-type: normal;
|
|
14
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
15
|
+
column-gap: var(--semantic-space-gap);
|
|
16
|
+
|
|
17
|
+
& > :not(.mui-leading-slot__leading) {
|
|
18
|
+
grid-column: 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& > .mui-leading-slot__card {
|
|
22
|
+
container-type: inline-size;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mui-leading-slot > .mui-leading-slot__leading {
|
|
27
|
+
grid-row: 1;
|
|
28
|
+
align-self: center;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outcome-item/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/outcome-item/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.mui-outcome-item {
|
|
3
|
+
/* The row lays out by its own width, as ActionItem does. */
|
|
4
|
+
container: mui-outcome-item / inline-size;
|
|
5
|
+
|
|
6
|
+
/* What the body is indented by: the toggle's column and the gap after it. */
|
|
7
|
+
--mui-outcome-item-indent: calc(
|
|
8
|
+
var(--ds-button-size-md-icon-only-size) +
|
|
9
|
+
var(--semantic-space-gap-relaxed)
|
|
10
|
+
);
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: minmax(0, 1fr);
|
|
13
|
+
gap: var(--semantic-space-gap-tight);
|
|
14
|
+
overflow-wrap: anywhere;
|
|
15
|
+
|
|
16
|
+
/* A step above ActionItem's title, so the outcome heads the actions under it. */
|
|
17
|
+
& .mui-outcome-item__card {
|
|
18
|
+
container-name: mui-outcome-item;
|
|
19
|
+
--ds-card-padding: var(--semantic-space-padding);
|
|
20
|
+
--ds-card-title-font-size: var(--primitives-font-size-lg);
|
|
21
|
+
--ds-card-title-font-weight: var(--primitives-font-weight-semibold);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Toggle, main, controls, in a flex row as on ActionItem: absent controls leave no gap. */
|
|
25
|
+
& .mui-outcome-item__header {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: start;
|
|
28
|
+
gap: var(--semantic-space-gap) var(--semantic-space-gap-relaxed);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
& .mui-outcome-item__main {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1 1 0;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: var(--semantic-space-gap);
|
|
36
|
+
min-width: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Centred on the title's first line, as the facts start under it. */
|
|
40
|
+
& .mui-outcome-item__title {
|
|
41
|
+
min-height: var(--ds-button-size-md-icon-only-size);
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& .mui-outcome-item__details {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--semantic-space-gap) var(--semantic-space-gap-relaxed);
|
|
51
|
+
margin: 0;
|
|
52
|
+
color: var(--semantic-color-text-muted);
|
|
53
|
+
font-size: var(--primitives-font-size-xs);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
* A glyph is part of its label, not a neighbour: the two keep one line,
|
|
58
|
+
* and a label too long for the row breaks beside its glyph.
|
|
59
|
+
*/
|
|
60
|
+
& .mui-outcome-item__detail {
|
|
61
|
+
display: inline-flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: var(--semantic-space-gap-tight);
|
|
64
|
+
max-width: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
& .mui-outcome-item__detail-icon {
|
|
68
|
+
flex: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& .mui-outcome-item__detail-label {
|
|
72
|
+
min-width: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& .mui-outcome-item__kind {
|
|
76
|
+
color: var(--semantic-color-text-default);
|
|
77
|
+
font-weight: var(--primitives-font-weight-semibold);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& .mui-outcome-item__kind-icon {
|
|
81
|
+
color: var(--semantic-color-action-primary-strong);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
& .mui-outcome-item__controls {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex: 0 1 auto;
|
|
87
|
+
flex-wrap: wrap;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
gap: var(--semantic-space-gap);
|
|
91
|
+
max-width: 40%;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* The actions sit under the title, ruled off from the header. */
|
|
95
|
+
& .mui-outcome-item__body {
|
|
96
|
+
margin-inline-start: var(--mui-outcome-item-indent);
|
|
97
|
+
padding-block-start: var(--semantic-space-gap);
|
|
98
|
+
border-block-start: 1px solid var(--semantic-color-border-subtle);
|
|
99
|
+
color: var(--semantic-color-text-muted);
|
|
100
|
+
font-size: var(--primitives-font-size-sm);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
* Narrow: the toggle and the title keep the first line; the details and
|
|
105
|
+
* categories follow under the title, the controls close the header at
|
|
106
|
+
* its end, and the body takes the card's full width.
|
|
107
|
+
*/
|
|
108
|
+
@container mui-outcome-item (max-width: 36rem) {
|
|
109
|
+
& .mui-outcome-item__header {
|
|
110
|
+
flex-wrap: wrap;
|
|
111
|
+
row-gap: var(--semantic-space-gap);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
& .mui-outcome-item__main {
|
|
115
|
+
display: contents;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
& .mui-outcome-item__title {
|
|
119
|
+
flex: 1 1 0;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& .mui-outcome-item__details,
|
|
124
|
+
& .mui-outcome-item__categories {
|
|
125
|
+
flex: 0 0 calc(100% - var(--mui-outcome-item-indent));
|
|
126
|
+
margin-inline-start: var(--mui-outcome-item-indent);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
& .mui-outcome-item__controls {
|
|
130
|
+
max-width: 100%;
|
|
131
|
+
margin-inline-start: auto;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& .mui-outcome-item__body {
|
|
135
|
+
margin-inline-start: 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type IconSource } from '@manakind/ui-core';
|
|
2
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
3
|
+
import type { ActionItemDetail } from '../action-item';
|
|
4
|
+
import { type GoalCategory } from '../goal-categories';
|
|
5
|
+
import '../leading-slot.css';
|
|
6
|
+
import './outcome-item.css';
|
|
7
|
+
export interface OutcomeItemProps extends Omit<ComponentProps<'li'>, 'title' | 'children' | 'className'> {
|
|
8
|
+
/** The outcome. Rendered as the row's heading, a step larger than an `ActionItem`'s title. */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Glyph beside the "Outcome" label, supplied by the product and tinted as the outcome's mark. */
|
|
11
|
+
kindIcon?: IconSource;
|
|
12
|
+
/** Facts shown after the "Outcome" label, each with an optional glyph: its project, how many actions are open. */
|
|
13
|
+
details?: ActionItemDetail[];
|
|
14
|
+
/** Categories the outcome belongs to, as dotted text. */
|
|
15
|
+
categories?: GoalCategory[];
|
|
16
|
+
/** How many categories to show before collapsing into `+N more`. Defaults to 2, as on `ActionItem`. */
|
|
17
|
+
maxVisibleCategories?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The outcome's actions, shown in the body while the row is expanded: an
|
|
20
|
+
* `ActionList` of compact `ActionItem`s, or a line saying there are none.
|
|
21
|
+
* Required, since the toggle shows and hides it. Rendered as given.
|
|
22
|
+
*/
|
|
23
|
+
actions: ReactNode;
|
|
24
|
+
/** Whether the body is shown. Pass with `onExpandedChange` to control it; omit to let the row hold it. */
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
/** Whether the body starts shown, when the row holds the state. Defaults to `true`. */
|
|
27
|
+
defaultExpanded?: boolean;
|
|
28
|
+
/** Called with the new state when the expand toggle is pressed. */
|
|
29
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
30
|
+
/** Glyph on the expand toggle while the body is hidden, supplied by the product. */
|
|
31
|
+
collapsedIcon: IconSource;
|
|
32
|
+
/** Glyph on the toggle while the body is shown. Falls back to `collapsedIcon`. */
|
|
33
|
+
expandedIcon?: IconSource;
|
|
34
|
+
/**
|
|
35
|
+
* The product's controls that act on the outcome, placed at the header's
|
|
36
|
+
* end: a focus toggle, an edit button. They render as given; the row only
|
|
37
|
+
* places them.
|
|
38
|
+
*/
|
|
39
|
+
controls?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* The product's controls that place this row in its list, set before the
|
|
42
|
+
* card and outside it: a vertical `ReorderControl`, as on `ActionItem`.
|
|
43
|
+
*/
|
|
44
|
+
leading?: ReactNode;
|
|
45
|
+
/** Heading level for the title. Defaults to `h3`; give the actions inside the next level down. */
|
|
46
|
+
titleAs?: 'h2' | 'h3' | 'h4';
|
|
47
|
+
/** Extra class names on the `<li>`. */
|
|
48
|
+
className?: string;
|
|
49
|
+
/**
|
|
50
|
+
* A message about this outcome, shown under the card inside the same
|
|
51
|
+
* `<li>`: an `Alert` after a failed change, say.
|
|
52
|
+
*/
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* One Manuia outcome as an accordion row: a header with the outcome and its
|
|
57
|
+
* controls, over a body with the actions that achieve it. Render it inside
|
|
58
|
+
* an `ActionList` or a `FocusList`, beside the `ActionItem`s it groups: it is
|
|
59
|
+
* the `<li>`.
|
|
60
|
+
*
|
|
61
|
+
* The header leads with the expand toggle, in the column where an
|
|
62
|
+
* `ActionItem` has its completion toggle, so the outcome's title lines up
|
|
63
|
+
* with the titles of the actions around it. The toggle is named "Actions for
|
|
64
|
+
* …" in both states and says which with `aria-expanded`, tied to the body by
|
|
65
|
+
* `aria-controls`. Each row opens on its own, so several can be open at once.
|
|
66
|
+
* The body stays mounted while hidden, so its rows keep their state.
|
|
67
|
+
*
|
|
68
|
+
* Wide, the header reads left to right and the body is indented under the
|
|
69
|
+
* title. Narrow, the toggle and the title share the first line, the details
|
|
70
|
+
* and categories follow under the title, the controls take a footer at the
|
|
71
|
+
* header's end, and the body takes the card's full width. With `leading`,
|
|
72
|
+
* the product's placing controls stand before the card, centred against it,
|
|
73
|
+
* and a message passed as children stays under the card. Attributes other than the props land on the `<li>`: a sortable
|
|
74
|
+
* list passes its drag library's ref and transform style there.
|
|
75
|
+
*/
|
|
76
|
+
export declare function OutcomeItem({ title, kindIcon, details, categories, maxVisibleCategories, actions, expanded: expandedProp, defaultExpanded, onExpandedChange, collapsedIcon, expandedIcon, controls, leading, titleAs, className, children, ...listItemProps }: OutcomeItemProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
//# sourceMappingURL=outcome-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome-item.d.ts","sourceRoot":"","sources":["../../src/outcome-item/outcome-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAE5B,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;IACtE,8FAA8F;IAC9F,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,kHAAkH;IAClH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,yDAAyD;IACzD,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,uGAAuG;IACvG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uFAAuF;IACvF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,oFAAoF;IACpF,aAAa,EAAE,UAAU,CAAC;IAC1B,kFAAkF;IAClF,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,kGAAkG;IAClG,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC7B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,OAAY,EACZ,UAAe,EACf,oBAAwB,EACxB,OAAO,EACP,QAAQ,EAAE,YAAY,EACtB,eAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,YAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,OAAc,EACd,SAAS,EACT,QAAQ,EACR,GAAG,aAAa,EACjB,EAAE,gBAAgB,2CA8ElB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Card, CardTitle, cx, Icon, IconButton } from '@manakind/ui-core';
|
|
3
|
+
import { useId, useState } from 'react';
|
|
4
|
+
import { GoalCategories } from '../goal-categories';
|
|
5
|
+
import '../leading-slot.css';
|
|
6
|
+
import './outcome-item.css';
|
|
7
|
+
/**
|
|
8
|
+
* One Manuia outcome as an accordion row: a header with the outcome and its
|
|
9
|
+
* controls, over a body with the actions that achieve it. Render it inside
|
|
10
|
+
* an `ActionList` or a `FocusList`, beside the `ActionItem`s it groups: it is
|
|
11
|
+
* the `<li>`.
|
|
12
|
+
*
|
|
13
|
+
* The header leads with the expand toggle, in the column where an
|
|
14
|
+
* `ActionItem` has its completion toggle, so the outcome's title lines up
|
|
15
|
+
* with the titles of the actions around it. The toggle is named "Actions for
|
|
16
|
+
* …" in both states and says which with `aria-expanded`, tied to the body by
|
|
17
|
+
* `aria-controls`. Each row opens on its own, so several can be open at once.
|
|
18
|
+
* The body stays mounted while hidden, so its rows keep their state.
|
|
19
|
+
*
|
|
20
|
+
* Wide, the header reads left to right and the body is indented under the
|
|
21
|
+
* title. Narrow, the toggle and the title share the first line, the details
|
|
22
|
+
* and categories follow under the title, the controls take a footer at the
|
|
23
|
+
* header's end, and the body takes the card's full width. With `leading`,
|
|
24
|
+
* the product's placing controls stand before the card, centred against it,
|
|
25
|
+
* and a message passed as children stays under the card. Attributes other than the props land on the `<li>`: a sortable
|
|
26
|
+
* list passes its drag library's ref and transform style there.
|
|
27
|
+
*/
|
|
28
|
+
export function OutcomeItem({ title, kindIcon, details = [], categories = [], maxVisibleCategories = 2, actions, expanded: expandedProp, defaultExpanded = true, onExpandedChange, collapsedIcon, expandedIcon = collapsedIcon, controls, leading, titleAs = 'h3', className, children, ...listItemProps }) {
|
|
29
|
+
const bodyId = useId();
|
|
30
|
+
const [ownExpanded, setOwnExpanded] = useState(defaultExpanded);
|
|
31
|
+
const expanded = expandedProp ?? ownExpanded;
|
|
32
|
+
const toggleExpanded = () => {
|
|
33
|
+
setOwnExpanded(!expanded);
|
|
34
|
+
onExpandedChange?.(!expanded);
|
|
35
|
+
};
|
|
36
|
+
/* Keyed by label and rank among equal labels, as on `ActionItem`. */
|
|
37
|
+
const seen = new Map();
|
|
38
|
+
const detailRows = details.map((detail) => {
|
|
39
|
+
const rank = seen.get(detail.label) ?? 0;
|
|
40
|
+
seen.set(detail.label, rank + 1);
|
|
41
|
+
return (_jsxs("span", { className: "mui-outcome-item__detail", children: [detail.icon && (_jsx(Icon, { source: detail.icon, size: "sm", decorative: true, className: "mui-outcome-item__detail-icon" })), _jsx("span", { className: "mui-outcome-item__detail-label", children: detail.label })] }, `${detail.label}-${rank}`));
|
|
42
|
+
});
|
|
43
|
+
return (_jsxs("li", { ...listItemProps, className: cx('mui-leading-slot', 'mui-outcome-item', className), children: [leading && (_jsx("div", { className: "mui-leading-slot__leading mui-outcome-item__leading", children: leading })), _jsxs(Card, { className: "mui-leading-slot__card mui-outcome-item__card", children: [_jsxs("div", { className: "mui-outcome-item__header", children: [_jsx(IconButton, { className: "mui-outcome-item__toggle", variant: "tertiary", icon: expanded ? expandedIcon : collapsedIcon, "aria-expanded": expanded, "aria-controls": bodyId, "aria-label": `Actions for ${title}`, onClick: toggleExpanded }), _jsxs("div", { className: "mui-outcome-item__main", children: [_jsx(CardTitle, { as: titleAs, className: "mui-outcome-item__title", children: title }), _jsxs("p", { className: "mui-outcome-item__details", children: [_jsxs("span", { className: "mui-outcome-item__detail mui-outcome-item__kind", children: [kindIcon && (_jsx(Icon, { source: kindIcon, size: "sm", decorative: true, className: "mui-outcome-item__detail-icon mui-outcome-item__kind-icon" })), _jsx("span", { className: "mui-outcome-item__detail-label", children: "Outcome" })] }), detailRows] }), _jsx(GoalCategories, { className: "mui-outcome-item__categories", categories: categories, maxVisible: maxVisibleCategories })] }), controls && _jsx("div", { className: "mui-outcome-item__controls", children: controls })] }), _jsx("div", { id: bodyId, className: "mui-outcome-item__body", hidden: !expanded, children: actions })] }), children] }));
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=outcome-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome-item.js","sourceRoot":"","sources":["../../src/outcome-item/outcome-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAuC,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAC;AACvE,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAoD5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,UAAU,GAAG,EAAE,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@manakind/manuia-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"vr": "playwright test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@manakind/manuia-tokens": "0.
|
|
40
|
+
"@manakind/manuia-tokens": "0.19.0",
|
|
41
41
|
"@manakind/ui-core": "0.19.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|