@cloudscape-design/board-components 3.0.32 → 3.0.33
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/board/internal.js +2 -4
- package/board/styles.css.js +5 -5
- package/board/styles.scoped.css +10 -10
- package/board/styles.selectors.js +5 -5
- package/board-item/styles.css.js +11 -11
- package/board-item/styles.scoped.css +25 -25
- package/board-item/styles.selectors.js +11 -11
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/handle/styles.css.js +1 -1
- package/internal/handle/styles.scoped.css +5 -5
- package/internal/handle/styles.selectors.js +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
package/board/internal.js
CHANGED
|
@@ -10,7 +10,6 @@ import { useDragSubscription } from "../internal/dnd-controller/controller";
|
|
|
10
10
|
import { useGlobalDragStateStyles } from "../internal/global-drag-state-styles";
|
|
11
11
|
import Grid from "../internal/grid";
|
|
12
12
|
import { ItemContainer } from "../internal/item-container";
|
|
13
|
-
import { LayoutEngine } from "../internal/layout-engine/engine";
|
|
14
13
|
import LiveRegion from "../internal/live-region";
|
|
15
14
|
import { ScreenReaderGridNavigation } from "../internal/screenreader-grid-navigation";
|
|
16
15
|
import { createPlaceholdersLayout, getDefaultColumnSpan, getDefaultRowSpan, getMinColumnSpan, getMinRowSpan, interpretItems, } from "../internal/utils/layout";
|
|
@@ -72,9 +71,10 @@ export function InternalBoard({ items, renderItem, onItemsChange, empty, i18nStr
|
|
|
72
71
|
const removedItemIndex = items.findIndex((it) => it.id === removeTransition.removedItem.id);
|
|
73
72
|
const nextIndexToFocus = removedItemIndex !== items.length - 1 ? removedItemIndex : items.length - 2;
|
|
74
73
|
focusNextRenderIndexRef.current = nextIndexToFocus;
|
|
74
|
+
onItemsChange(createItemsChangeEvent(items, removeTransition.layoutShift));
|
|
75
75
|
}, TRANSITION_DURATION_MS);
|
|
76
76
|
return () => clearTimeout(timeoutId);
|
|
77
|
-
}, [removeTransition, items]);
|
|
77
|
+
}, [removeTransition, items, onItemsChange]);
|
|
78
78
|
const rows = selectTransitionRows(transitionState) || itemsLayout.rows;
|
|
79
79
|
const placeholdersLayout = createPlaceholdersLayout(rows, itemsLayout.columns);
|
|
80
80
|
function isElementOverBoard(rect) {
|
|
@@ -148,8 +148,6 @@ export function InternalBoard({ items, renderItem, onItemsChange, empty, i18nStr
|
|
|
148
148
|
});
|
|
149
149
|
const removeItemAction = (removedItem) => {
|
|
150
150
|
dispatch({ type: "init-remove", items, itemsLayout, removedItem });
|
|
151
|
-
const layoutShift = new LayoutEngine(itemsLayout).remove(removedItem.id);
|
|
152
|
-
onItemsChange(createItemsChangeEvent(items, layoutShift));
|
|
153
151
|
};
|
|
154
152
|
function focusItem(itemId) {
|
|
155
153
|
itemContainerRef.current[itemId].focusDragHandle();
|
package/board/styles.css.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"placeholder": "
|
|
5
|
-
"placeholder--active": "awsui_placeholder--
|
|
6
|
-
"placeholder--hover": "awsui_placeholder--
|
|
7
|
-
"root": "
|
|
8
|
-
"empty": "
|
|
4
|
+
"placeholder": "awsui_placeholder_1h7dk_inx8o_1",
|
|
5
|
+
"placeholder--active": "awsui_placeholder--active_1h7dk_inx8o_5",
|
|
6
|
+
"placeholder--hover": "awsui_placeholder--hover_1h7dk_inx8o_8",
|
|
7
|
+
"root": "awsui_root_1h7dk_inx8o_12",
|
|
8
|
+
"empty": "awsui_empty_1h7dk_inx8o_16"
|
|
9
9
|
};
|
|
10
10
|
|
package/board/styles.scoped.css
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.
|
|
2
|
-
border-radius: var(--border-radius-container-
|
|
1
|
+
.awsui_placeholder_1h7dk_inx8o_1:not(#\9) {
|
|
2
|
+
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
3
3
|
height: 100%;
|
|
4
4
|
}
|
|
5
|
-
.awsui_placeholder--
|
|
6
|
-
background-color: var(--color-board-placeholder-active-
|
|
5
|
+
.awsui_placeholder--active_1h7dk_inx8o_5:not(#\9) {
|
|
6
|
+
background-color: var(--color-board-placeholder-active-jh49z8, #e9ebed);
|
|
7
7
|
}
|
|
8
|
-
.awsui_placeholder--
|
|
9
|
-
background-color: var(--color-board-placeholder-hover-
|
|
8
|
+
.awsui_placeholder--hover_1h7dk_inx8o_8:not(#\9) {
|
|
9
|
+
background-color: var(--color-board-placeholder-hover-ombmcs, #d3e7f9);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
12
|
+
.awsui_root_1h7dk_inx8o_12:not(#\9) {
|
|
13
13
|
/* used in test-utils */
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.awsui_empty_1h7dk_inx8o_16:not(#\9) {
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
width: 100%;
|
|
19
|
-
padding: var(--space-scaled-m-
|
|
20
|
-
color: var(--color-text-empty-
|
|
19
|
+
padding: var(--space-scaled-m-mo5yse, 16px) var(--space-scaled-l-0hpmd7, 20px) var(--space-scaled-l-0hpmd7, 20px);
|
|
20
|
+
color: var(--color-text-empty-2wfcyr, #5f6b7a);
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"placeholder": "
|
|
6
|
-
"placeholder--active": "awsui_placeholder--
|
|
7
|
-
"placeholder--hover": "awsui_placeholder--
|
|
8
|
-
"root": "
|
|
9
|
-
"empty": "
|
|
5
|
+
"placeholder": "awsui_placeholder_1h7dk_inx8o_1",
|
|
6
|
+
"placeholder--active": "awsui_placeholder--active_1h7dk_inx8o_5",
|
|
7
|
+
"placeholder--hover": "awsui_placeholder--hover_1h7dk_inx8o_8",
|
|
8
|
+
"root": "awsui_root_1h7dk_inx8o_12",
|
|
9
|
+
"empty": "awsui_empty_1h7dk_inx8o_16"
|
|
10
10
|
};
|
|
11
11
|
|
package/board-item/styles.css.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"container-override": "awsui_container-
|
|
6
|
-
"active": "
|
|
7
|
-
"header": "
|
|
8
|
-
"flexible": "
|
|
9
|
-
"handle": "
|
|
10
|
-
"refresh": "
|
|
11
|
-
"header-content": "awsui_header-
|
|
12
|
-
"settings": "
|
|
13
|
-
"fixed": "
|
|
14
|
-
"resizer": "
|
|
4
|
+
"root": "awsui_root_9ckv7_1p0lm_1",
|
|
5
|
+
"container-override": "awsui_container-override_9ckv7_1p0lm_6",
|
|
6
|
+
"active": "awsui_active_9ckv7_1p0lm_6",
|
|
7
|
+
"header": "awsui_header_9ckv7_1p0lm_31",
|
|
8
|
+
"flexible": "awsui_flexible_9ckv7_1p0lm_37",
|
|
9
|
+
"handle": "awsui_handle_9ckv7_1p0lm_41",
|
|
10
|
+
"refresh": "awsui_refresh_9ckv7_1p0lm_44",
|
|
11
|
+
"header-content": "awsui_header-content_9ckv7_1p0lm_48",
|
|
12
|
+
"settings": "awsui_settings_9ckv7_1p0lm_52",
|
|
13
|
+
"fixed": "awsui_fixed_9ckv7_1p0lm_60",
|
|
14
|
+
"resizer": "awsui_resizer_9ckv7_1p0lm_64"
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.
|
|
1
|
+
.awsui_root_9ckv7_1p0lm_1:not(#\9) {
|
|
2
2
|
display: contents;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/* TODO: use container API instead of styles override */
|
|
6
|
-
.awsui_container-
|
|
7
|
-
box-shadow: var(--shadow-container-active-
|
|
6
|
+
.awsui_container-override_9ckv7_1p0lm_6.awsui_active_9ckv7_1p0lm_6:not(#\9) {
|
|
7
|
+
box-shadow: var(--shadow-container-active-7yvi6w, 0px 1px 1px 1px #e9ebed, 0px 6px 36px rgba(0, 7, 22, 0.1019607843));
|
|
8
8
|
}
|
|
9
|
-
[data-awsui-focus-visible] .awsui_container-
|
|
9
|
+
[data-awsui-focus-visible] .awsui_container-override_9ckv7_1p0lm_6.awsui_active_9ckv7_1p0lm_6:not(#\9) {
|
|
10
10
|
position: relative;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
outline: none;
|
|
13
13
|
}
|
|
14
|
-
[data-awsui-focus-visible] .awsui_container-
|
|
14
|
+
[data-awsui-focus-visible] .awsui_container-override_9ckv7_1p0lm_6.awsui_active_9ckv7_1p0lm_6:not(#\9) {
|
|
15
15
|
outline: 2px dotted transparent;
|
|
16
16
|
outline-offset: -1px;
|
|
17
17
|
}
|
|
18
|
-
[data-awsui-focus-visible] .awsui_container-
|
|
18
|
+
[data-awsui-focus-visible] .awsui_container-override_9ckv7_1p0lm_6.awsui_active_9ckv7_1p0lm_6:not(#\9)::before {
|
|
19
19
|
content: " ";
|
|
20
20
|
display: block;
|
|
21
21
|
position: absolute;
|
|
@@ -24,45 +24,45 @@
|
|
|
24
24
|
top: calc(-1 * 0px);
|
|
25
25
|
width: calc(100% + 2 * 0px);
|
|
26
26
|
height: calc(100% + 2 * 0px);
|
|
27
|
-
border-radius: var(--border-radius-container-
|
|
28
|
-
border: 2px solid var(--color-border-item-focused-
|
|
27
|
+
border-radius: var(--border-radius-container-wqv1zi, 16px);
|
|
28
|
+
border: 2px solid var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.
|
|
31
|
+
.awsui_header_9ckv7_1p0lm_31:not(#\9) {
|
|
32
32
|
display: flex;
|
|
33
33
|
justify-items: center;
|
|
34
|
-
padding: var(--space-scaled-s-
|
|
34
|
+
padding: var(--space-scaled-s-aqzyko, 12px) calc(var(--space-container-horizontal-wfukh3, 20px) - var(--space-scaled-xs-26e2du, 8px));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.
|
|
37
|
+
.awsui_flexible_9ckv7_1p0lm_37:not(#\9) {
|
|
38
38
|
flex: 1 1 min-content;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
42
|
-
margin-top: calc(var(--space-scaled-xxs-
|
|
41
|
+
.awsui_handle_9ckv7_1p0lm_41:not(#\9) {
|
|
42
|
+
margin-top: calc(var(--space-scaled-xxs-7597g1, 4px) + 1px);
|
|
43
43
|
}
|
|
44
|
-
.
|
|
45
|
-
margin-top: calc(var(--space-static-xxxs-
|
|
44
|
+
.awsui_refresh_9ckv7_1p0lm_44 > .awsui_handle_9ckv7_1p0lm_41:not(#\9) {
|
|
45
|
+
margin-top: calc(var(--space-static-xxxs-3gu9os, 2px) + 1px);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.awsui_header-
|
|
49
|
-
margin-left: var(--space-scaled-xxs-
|
|
48
|
+
.awsui_header-content_9ckv7_1p0lm_48:not(#\9) {
|
|
49
|
+
margin-left: var(--space-scaled-xxs-7597g1, 4px);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
53
|
-
margin-top: calc(var(--space-scaled-xxxs-
|
|
54
|
-
margin-left: var(--space-static-xs-
|
|
52
|
+
.awsui_settings_9ckv7_1p0lm_52:not(#\9) {
|
|
53
|
+
margin-top: calc(var(--space-scaled-xxxs-27y4hv, 2px) + 1px);
|
|
54
|
+
margin-left: var(--space-static-xs-7sfb63, 8px);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.awsui_refresh_9ckv7_1p0lm_44 > .awsui_settings_9ckv7_1p0lm_52:not(#\9) {
|
|
57
57
|
margin-top: 0px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.
|
|
60
|
+
.awsui_fixed_9ckv7_1p0lm_60:not(#\9) {
|
|
61
61
|
flex: 0 0 auto;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.
|
|
64
|
+
.awsui_resizer_9ckv7_1p0lm_64:not(#\9) {
|
|
65
65
|
position: absolute;
|
|
66
|
-
bottom: calc(var(--space-static-xs-
|
|
67
|
-
right: calc(var(--space-static-xs-
|
|
66
|
+
bottom: calc(var(--space-static-xs-7sfb63, 8px) - var(--space-static-xxxs-3gu9os, 2px));
|
|
67
|
+
right: calc(var(--space-static-xs-7sfb63, 8px) - var(--space-static-xxxs-3gu9os, 2px));
|
|
68
68
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"container-override": "awsui_container-
|
|
7
|
-
"active": "
|
|
8
|
-
"header": "
|
|
9
|
-
"flexible": "
|
|
10
|
-
"handle": "
|
|
11
|
-
"refresh": "
|
|
12
|
-
"header-content": "awsui_header-
|
|
13
|
-
"settings": "
|
|
14
|
-
"fixed": "
|
|
15
|
-
"resizer": "
|
|
5
|
+
"root": "awsui_root_9ckv7_1p0lm_1",
|
|
6
|
+
"container-override": "awsui_container-override_9ckv7_1p0lm_6",
|
|
7
|
+
"active": "awsui_active_9ckv7_1p0lm_6",
|
|
8
|
+
"header": "awsui_header_9ckv7_1p0lm_31",
|
|
9
|
+
"flexible": "awsui_flexible_9ckv7_1p0lm_37",
|
|
10
|
+
"handle": "awsui_handle_9ckv7_1p0lm_41",
|
|
11
|
+
"refresh": "awsui_refresh_9ckv7_1p0lm_44",
|
|
12
|
+
"header-content": "awsui_header-content_9ckv7_1p0lm_48",
|
|
13
|
+
"settings": "awsui_settings_9ckv7_1p0lm_52",
|
|
14
|
+
"fixed": "awsui_fixed_9ckv7_1p0lm_60",
|
|
15
|
+
"resizer": "awsui_resizer_9ckv7_1p0lm_64"
|
|
16
16
|
};
|
|
17
17
|
|
package/internal/environment.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.
|
|
1
|
+
.awsui_handle_cc1pu_y0i9t_1:not(#\9) {
|
|
2
2
|
-webkit-appearance: none;
|
|
3
3
|
appearance: none;
|
|
4
4
|
background: transparent;
|
|
5
5
|
border: none;
|
|
6
|
-
padding: var(--space-scaled-xxs-
|
|
7
|
-
color: var(--color-text-interactive-default-
|
|
6
|
+
padding: var(--space-scaled-xxs-7597g1, 4px);
|
|
7
|
+
color: var(--color-text-interactive-default-lnx6lk, #414d5c);
|
|
8
8
|
}
|
|
9
|
-
.
|
|
10
|
-
color: var(--color-text-interactive-hover-
|
|
9
|
+
.awsui_handle_cc1pu_y0i9t_1:not(#\9):hover {
|
|
10
|
+
color: var(--color-text-interactive-hover-mj8add, #000716);
|
|
11
11
|
}
|
package/internal/manifest.json
CHANGED