@manakind/manuia-ui 0.11.0 → 0.11.1
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/category-card/category-card.css +1 -0
- package/dist/focus-item/focus-item.css +6 -16
- package/dist/goal-card/goal-card.css +2 -1
- package/dist/goal-categories/goal-categories.css +1 -1
- package/dist/goal-list-item/goal-list-item.css +8 -13
- package/dist/goal-status-menu/goal-status-menu.css +6 -0
- package/dist/goal-status-menu/goal-status-menu.js +1 -1
- package/dist/goal-status-menu/goal-status-menu.js.map +1 -1
- package/package.json +2 -2
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
display: grid;
|
|
15
15
|
grid-template-columns: minmax(0, 1fr);
|
|
16
16
|
gap: var(--semantic-space-gap-tight);
|
|
17
|
+
overflow-wrap: anywhere;
|
|
17
18
|
|
|
18
19
|
& .mui-focus-item__card {
|
|
19
20
|
--ds-card-padding: var(--semantic-space-padding);
|
|
@@ -22,12 +23,12 @@
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
/*
|
|
25
|
-
* Categories are capped
|
|
26
|
-
* share instead of squeezing the title, as on GoalListItem.
|
|
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
28
|
*/
|
|
28
29
|
& .mui-focus-item__row {
|
|
29
30
|
display: grid;
|
|
30
|
-
grid-template-columns: minmax(0, 1fr) fit-content(40%)
|
|
31
|
+
grid-template-columns: minmax(0, 1fr) fit-content(40%) fit-content(30%);
|
|
31
32
|
grid-template-areas: "main categories toggle";
|
|
32
33
|
align-items: center;
|
|
33
34
|
gap: var(--semantic-space-gap) var(--semantic-space-gap-relaxed);
|
|
@@ -43,8 +44,6 @@
|
|
|
43
44
|
|
|
44
45
|
& .mui-focus-item__title {
|
|
45
46
|
--ds-card-text: var(--ds-card-text-muted);
|
|
46
|
-
|
|
47
|
-
overflow-wrap: anywhere;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
& .mui-focus-item__details {
|
|
@@ -59,15 +58,10 @@
|
|
|
59
58
|
|
|
60
59
|
& .mui-focus-item__kind {
|
|
61
60
|
display: inline-flex;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
62
|
align-items: center;
|
|
63
63
|
gap: var(--semantic-space-gap-tight);
|
|
64
64
|
font-weight: var(--primitives-font-weight-semibold);
|
|
65
|
-
white-space: nowrap;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Details are product data (a project name), so they may break anywhere. */
|
|
69
|
-
& .mui-focus-item__detail {
|
|
70
|
-
overflow-wrap: anywhere;
|
|
71
65
|
}
|
|
72
66
|
|
|
73
67
|
& .mui-focus-item__actions {
|
|
@@ -80,10 +74,6 @@
|
|
|
80
74
|
font-size: var(--primitives-font-size-sm);
|
|
81
75
|
}
|
|
82
76
|
|
|
83
|
-
& .mui-focus-item__action {
|
|
84
|
-
overflow-wrap: anywhere;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
77
|
& .mui-focus-item__categories {
|
|
88
78
|
grid-area: categories;
|
|
89
79
|
justify-content: flex-end;
|
|
@@ -96,7 +86,7 @@
|
|
|
96
86
|
|
|
97
87
|
@container mui-focus-item (max-width: 36rem) {
|
|
98
88
|
& .mui-focus-item__row {
|
|
99
|
-
grid-template-columns: minmax(0, 1fr)
|
|
89
|
+
grid-template-columns: minmax(0, 1fr) fit-content(50%);
|
|
100
90
|
grid-template-areas:
|
|
101
91
|
"main toggle"
|
|
102
92
|
"categories categories";
|
|
@@ -298,12 +298,13 @@
|
|
|
298
298
|
*/
|
|
299
299
|
& .mui-goal-card__type {
|
|
300
300
|
display: inline-flex;
|
|
301
|
+
flex-wrap: wrap;
|
|
302
|
+
max-width: 100%;
|
|
301
303
|
align-items: center;
|
|
302
304
|
gap: var(--component-goal-card-chip-gap);
|
|
303
305
|
color: var(--mui-tier-badge-text, var(--semantic-color-text-muted));
|
|
304
306
|
font-size: var(--component-goal-card-chip-font-size);
|
|
305
307
|
font-weight: var(--primitives-font-weight-semibold);
|
|
306
|
-
white-space: nowrap;
|
|
307
308
|
}
|
|
308
309
|
|
|
309
310
|
& .mui-goal-card__categories {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
9
9
|
list-style: none;
|
|
10
|
+
overflow-wrap: anywhere;
|
|
10
11
|
|
|
11
12
|
& .mui-goal-categories__item {
|
|
12
13
|
display: inline-flex;
|
|
@@ -14,7 +15,6 @@
|
|
|
14
15
|
gap: var(--semantic-space-gap-tight);
|
|
15
16
|
color: var(--semantic-color-text-muted);
|
|
16
17
|
font-size: var(--primitives-font-size-sm);
|
|
17
|
-
white-space: nowrap;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/*
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
display: grid;
|
|
16
16
|
grid-template-columns: minmax(0, 1fr);
|
|
17
17
|
gap: var(--semantic-space-gap-tight);
|
|
18
|
+
overflow-wrap: anywhere;
|
|
18
19
|
|
|
19
20
|
/* Through the contract keys ui-core reads, so no specificity contest with `.ds-card`. */
|
|
20
21
|
& .mui-goal-list-item__card {
|
|
@@ -24,14 +25,14 @@
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
/*
|
|
27
|
-
* The categories'
|
|
28
|
-
* one-line width, and a goal with three long categories
|
|
29
|
-
*
|
|
30
|
-
* wrap inside their share and the title keeps the rest.
|
|
28
|
+
* The categories' and status's tracks are capped: left at `auto` a track
|
|
29
|
+
* grows to its one-line width, and a goal with three long categories, or
|
|
30
|
+
* a status label too long to break, squeezed its own title into a sliver.
|
|
31
|
+
* Capped, they wrap inside their share and the title keeps the rest.
|
|
31
32
|
*/
|
|
32
33
|
& .mui-goal-list-item__row {
|
|
33
34
|
display: grid;
|
|
34
|
-
grid-template-columns: minmax(0, 1fr) fit-content(40%)
|
|
35
|
+
grid-template-columns: minmax(0, 1fr) fit-content(40%) fit-content(30%);
|
|
35
36
|
grid-template-areas: "main categories status";
|
|
36
37
|
align-items: center;
|
|
37
38
|
gap: var(--semantic-space-gap) var(--semantic-space-gap-relaxed);
|
|
@@ -48,8 +49,6 @@
|
|
|
48
49
|
/* As on GoalCard: size and grouping mark the heading, not colour. */
|
|
49
50
|
& .mui-goal-list-item__title {
|
|
50
51
|
--ds-card-text: var(--ds-card-text-muted);
|
|
51
|
-
|
|
52
|
-
overflow-wrap: anywhere;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
& .mui-goal-list-item__details {
|
|
@@ -64,14 +63,10 @@
|
|
|
64
63
|
|
|
65
64
|
& .mui-goal-list-item__type {
|
|
66
65
|
display: inline-flex;
|
|
66
|
+
flex-wrap: wrap;
|
|
67
67
|
align-items: center;
|
|
68
68
|
gap: var(--semantic-space-gap-tight);
|
|
69
69
|
font-weight: var(--primitives-font-weight-semibold);
|
|
70
|
-
white-space: nowrap;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
& .mui-goal-list-item__detail {
|
|
74
|
-
white-space: nowrap;
|
|
75
70
|
}
|
|
76
71
|
|
|
77
72
|
/* GoalCard's small-caps label, so the two views name their details alike. */
|
|
@@ -97,7 +92,7 @@
|
|
|
97
92
|
*/
|
|
98
93
|
@container mui-goal-list-item (max-width: 36rem) {
|
|
99
94
|
& .mui-goal-list-item__row {
|
|
100
|
-
grid-template-columns: minmax(0, 1fr)
|
|
95
|
+
grid-template-columns: minmax(0, 1fr) fit-content(50%);
|
|
101
96
|
grid-template-areas:
|
|
102
97
|
"main status"
|
|
103
98
|
"categories categories";
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
display: inline-flex;
|
|
18
18
|
align-items: center;
|
|
19
19
|
flex-shrink: 0;
|
|
20
|
+
max-width: 100%;
|
|
20
21
|
gap: var(--semantic-space-gap-tight);
|
|
21
22
|
margin: 0;
|
|
22
23
|
padding: 0 var(--semantic-space-gap-tight);
|
|
@@ -38,6 +39,11 @@
|
|
|
38
39
|
outline-offset: 3px;
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
/* A Badge never gives way in a row, but inside the capped trigger it must, or the chevron goes. */
|
|
43
|
+
& .mui-goal-status-menu__badge {
|
|
44
|
+
flex-shrink: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
& .mui-goal-status-menu__indicator {
|
|
42
48
|
color: var(--semantic-color-text-muted);
|
|
43
49
|
transform: rotate(90deg);
|
|
@@ -25,7 +25,7 @@ const STATUS_ITEMS = GOAL_STATUSES.map((status) => ({
|
|
|
25
25
|
* status and what pressing it does, which also names the menu it opens.
|
|
26
26
|
*/
|
|
27
27
|
export function GoalStatusMenu({ status, statusIcon, onStatusChange, indicator = FallbackChevronRight, itemIndicator, labelClassName, className, }) {
|
|
28
|
-
const badge = (_jsx(Badge, { variant: STATUS_VARIANT[status], appearance: "plain", icon: statusIcon, labelClassName: cx('mui-goal-status-menu__label', labelClassName), "aria-label": status, className: onStatusChange ?
|
|
28
|
+
const badge = (_jsx(Badge, { variant: STATUS_VARIANT[status], appearance: "plain", icon: statusIcon, labelClassName: cx('mui-goal-status-menu__label', labelClassName), "aria-label": status, className: onStatusChange ? 'mui-goal-status-menu__badge' : className, children: status }));
|
|
29
29
|
if (!onStatusChange)
|
|
30
30
|
return badge;
|
|
31
31
|
return (_jsx(Menu, { label: "Status", items: STATUS_ITEMS, value: status, onValueChange: onStatusChange, itemIndicator: itemIndicator, trigger: _jsxs("button", { type: "button", className: cx('mui-goal-status-menu', className), "aria-label": `Status: ${status}. Change status`, children: [badge, _jsx(Icon, { source: indicator, size: "sm", decorative: true, className: "mui-goal-status-menu__indicator" })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal-status-menu.js","sourceRoot":"","sources":["../../src/goal-status-menu/goal-status-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,EACL,EAAE,EACF,oBAAoB,EACpB,IAAI,EAEJ,IAAI,GAEL,MAAM,m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": "0.11.1",
|
|
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.11.
|
|
41
|
+
"@manakind/ui-core": "0.11.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^19.0.0",
|