@manakind/manuia-ui 0.11.4 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/focus-item/focus-item.css +24 -5
- package/dist/focus-item/focus-item.d.ts +3 -2
- package/dist/focus-item/focus-item.d.ts.map +1 -1
- package/dist/focus-item/focus-item.js +3 -2
- package/dist/focus-item/focus-item.js.map +1 -1
- package/dist/goal-list-item/goal-list-item.css +27 -6
- package/dist/goal-list-item/goal-list-item.d.ts +2 -2
- package/dist/goal-list-item/goal-list-item.js +2 -2
- package/dist/goal-status-menu/goal-status-menu.d.ts +2 -2
- package/package.json +2 -2
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
|
|
25
25
|
/*
|
|
26
26
|
* Categories and the toggle are capped so a long name or label wraps in
|
|
27
|
-
* its share instead of squeezing the title, as on GoalListItem
|
|
27
|
+
* its share instead of squeezing the title, as on GoalListItem, and the
|
|
28
|
+
* narrow cap is clamped the same way.
|
|
28
29
|
*/
|
|
29
30
|
& .mui-focus-item__row {
|
|
30
31
|
display: grid;
|
|
@@ -84,17 +85,35 @@
|
|
|
84
85
|
justify-self: end;
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
/* Narrow: laid out as GoalListItem's, with the toggle beside the title. */
|
|
87
89
|
@container mui-focus-item (max-width: 36rem) {
|
|
88
90
|
& .mui-focus-item__row {
|
|
89
|
-
grid-template-columns: minmax(0, 1fr) fit-content(50%);
|
|
90
|
-
grid-template-areas:
|
|
91
|
-
"main toggle"
|
|
92
|
-
"categories categories";
|
|
91
|
+
grid-template-columns: minmax(0, 1fr) fit-content(clamp(50%, 8rem, 60%));
|
|
92
|
+
grid-template-areas: none;
|
|
93
93
|
align-items: start;
|
|
94
|
+
row-gap: var(--semantic-space-gap-tight);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
& .mui-focus-item__main {
|
|
98
|
+
display: contents;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
& .mui-focus-item__title,
|
|
102
|
+
& .mui-focus-item__toggle {
|
|
103
|
+
grid-area: auto;
|
|
104
|
+
grid-row: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
& .mui-focus-item__details,
|
|
108
|
+
& .mui-focus-item__actions,
|
|
109
|
+
& .mui-focus-item__categories {
|
|
110
|
+
grid-area: auto;
|
|
111
|
+
grid-column: 1 / -1;
|
|
94
112
|
}
|
|
95
113
|
|
|
96
114
|
& .mui-focus-item__categories {
|
|
97
115
|
justify-content: flex-start;
|
|
116
|
+
margin-block-start: calc(var(--semantic-space-gap) - var(--semantic-space-gap-tight));
|
|
98
117
|
}
|
|
99
118
|
}
|
|
100
119
|
}
|
|
@@ -65,8 +65,9 @@ export interface FocusItemProps {
|
|
|
65
65
|
* instead.
|
|
66
66
|
*
|
|
67
67
|
* Wide, the row reads left to right: title over its details and actions,
|
|
68
|
-
* then categories, then the toggle. Narrow, the
|
|
69
|
-
* the toggle
|
|
68
|
+
* then categories, then the toggle. Narrow, only the title shares a line
|
|
69
|
+
* with the toggle; the details, actions and categories take the full width
|
|
70
|
+
* below.
|
|
70
71
|
*/
|
|
71
72
|
export declare function FocusItem({ kind, title, kindIcon, details, categories, actions, focused, onFocusedChange, focusIcon, focusedIcon, titleAs, className, children, }: FocusItemProps): import("react/jsx-runtime").JSX.Element;
|
|
72
73
|
//# sourceMappingURL=focus-item.d.ts.map
|
|
@@ -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,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,kBAAkB,CAAC;AAE1B,kFAAkF;AAClF,MAAM,MAAM,aAAa,GAAG,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|
* Wide, the row reads left to right: title over its details and actions,
|
|
22
|
-
* then categories, then the toggle. Narrow, the
|
|
23
|
-
* the toggle
|
|
22
|
+
* then categories, then the toggle. Narrow, only the title shares a line
|
|
23
|
+
* with the toggle; the details, actions and categories take the full width
|
|
24
|
+
* below.
|
|
24
25
|
*/
|
|
25
26
|
export function FocusItem({ kind, title, kindIcon, details = [], categories = [], actions = [], focused, onFocusedChange, focusIcon, focusedIcon = focusIcon, titleAs = 'h3', className, children, }) {
|
|
26
27
|
const isOutcome = kind === 'outcome';
|
|
@@ -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;AA4CF
|
|
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;AA4CF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,UAAU,GAAG,EAAE,EACf,OAAO,GAAG,EAAE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AC,CAAC,IAAI,CAAC;IAET,OAAO,CACL,cAAI,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,aAC5C,KAAC,IAAI,IAAC,SAAS,EAAC,sBAAsB,YACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,eAAK,SAAS,EAAC,sBAAsB,aACnC,KAAC,SAAS,IAAC,EAAE,EAAE,OAAO,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,IACH,GACD,EACN,QAAQ,IACN,CACN,CAAC;AACJ,CAAC"}
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
* grows to its one-line width, and a goal with three long categories, or
|
|
30
30
|
* a status label too long to break, squeezed its own title into a sliver.
|
|
31
31
|
* Capped, they wrap inside their share and the title keeps the rest.
|
|
32
|
+
* Narrow, the status's cap is 8rem where half the row is less: half of a
|
|
33
|
+
* phone's row is narrower than "Not Started" with its chevron, and the
|
|
34
|
+
* label wrapped. It stops at 60%, so the title always keeps the rest.
|
|
32
35
|
*/
|
|
33
36
|
& .mui-goal-list-item__row {
|
|
34
37
|
display: grid;
|
|
@@ -87,20 +90,38 @@
|
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
/*
|
|
90
|
-
* Narrow: the
|
|
91
|
-
*
|
|
93
|
+
* Narrow: the status stays beside the title, where a reader scanning the
|
|
94
|
+
* list looks for it, and everything else takes the row's full width
|
|
95
|
+
* below. Beside the status, the details had a phone's row less the
|
|
96
|
+
* status, and "MILESTONES" broke mid-word.
|
|
92
97
|
*/
|
|
93
98
|
@container mui-goal-list-item (max-width: 36rem) {
|
|
94
99
|
& .mui-goal-list-item__row {
|
|
95
|
-
grid-template-columns: minmax(0, 1fr) fit-content(50%);
|
|
96
|
-
grid-template-areas:
|
|
97
|
-
"main status"
|
|
98
|
-
"categories categories";
|
|
100
|
+
grid-template-columns: minmax(0, 1fr) fit-content(clamp(50%, 8rem, 60%));
|
|
101
|
+
grid-template-areas: none;
|
|
99
102
|
align-items: start;
|
|
103
|
+
row-gap: var(--semantic-space-gap-tight);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& .mui-goal-list-item__main {
|
|
107
|
+
display: contents;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& .mui-goal-list-item__title,
|
|
111
|
+
& .mui-goal-list-item__status {
|
|
112
|
+
grid-area: auto;
|
|
113
|
+
grid-row: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& .mui-goal-list-item__details,
|
|
117
|
+
& .mui-goal-list-item__categories {
|
|
118
|
+
grid-area: auto;
|
|
119
|
+
grid-column: 1 / -1;
|
|
100
120
|
}
|
|
101
121
|
|
|
102
122
|
& .mui-goal-list-item__categories {
|
|
103
123
|
justify-content: flex-start;
|
|
124
|
+
margin-block-start: calc(var(--semantic-space-gap) - var(--semantic-space-gap-tight));
|
|
104
125
|
}
|
|
105
126
|
}
|
|
106
127
|
}
|
|
@@ -68,8 +68,8 @@ export interface GoalListItemProps {
|
|
|
68
68
|
* above it, separately operable.
|
|
69
69
|
*
|
|
70
70
|
* Wide, the row reads left to right: title over its details, then categories,
|
|
71
|
-
* then status. Narrow, the
|
|
72
|
-
* the
|
|
71
|
+
* then status. Narrow, only the title shares a line with the status; the
|
|
72
|
+
* details and categories take the full width below.
|
|
73
73
|
*/
|
|
74
74
|
export declare function GoalListItem({ title, type, status, statusIcon, onStatusChange, statusMenuIndicator, statusMenuItemIndicator, periodLabel, categories, maxVisibleCategories, milestones, targetDate, typeIcon, href, linkComponent: LinkComponent, titleAs, className, children, }: GoalListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
75
75
|
//# sourceMappingURL=goal-list-item.d.ts.map
|
|
@@ -15,8 +15,8 @@ import './goal-list-item.css';
|
|
|
15
15
|
* above it, separately operable.
|
|
16
16
|
*
|
|
17
17
|
* Wide, the row reads left to right: title over its details, then categories,
|
|
18
|
-
* then status. Narrow, the
|
|
19
|
-
* the
|
|
18
|
+
* then status. Narrow, only the title shares a line with the status; the
|
|
19
|
+
* details and categories take the full width below.
|
|
20
20
|
*/
|
|
21
21
|
export function GoalListItem({ title, type, status, statusIcon, onStatusChange, statusMenuIndicator, statusMenuItemIndicator, periodLabel, categories = [], maxVisibleCategories = 2, milestones, targetDate, typeIcon, href, linkComponent: LinkComponent = 'a', titleAs = 'h3', className, children, }) {
|
|
22
22
|
const completed = milestones?.filter((m) => m.completed).length ?? 0;
|
|
@@ -22,8 +22,8 @@ export interface GoalStatusMenuProps {
|
|
|
22
22
|
onStatusChange?: (status: GoalStatus) => void;
|
|
23
23
|
/**
|
|
24
24
|
* Glyph after the badge saying it opens a menu. Must point RIGHT, as
|
|
25
|
-
* Select's indicator does:
|
|
26
|
-
* open,
|
|
25
|
+
* Select's indicator does: the component turns it down while closed and
|
|
26
|
+
* up while open, so one glyph serves both states.
|
|
27
27
|
* Defaults to a plain built-in chevron.
|
|
28
28
|
*/
|
|
29
29
|
indicator?: IconSource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manakind/manuia-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@manakind/manuia-tokens": "0.10.0",
|
|
41
|
-
"@manakind/ui-core": "0.
|
|
41
|
+
"@manakind/ui-core": "0.12.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^19.0.0",
|