@cloudscape-design/board-components 3.0.13 → 3.0.15

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 CHANGED
@@ -94,6 +94,7 @@ export function InternalBoard({ items, renderItem, onItemsChange, empty, i18nStr
94
94
  collisionIds: interactionType === "keyboard" || isElementOverBoard(collisionRect) ? collisionIds : [],
95
95
  });
96
96
  autoScrollHandlers.addPointerEventHandlers();
97
+ document.body.classList.add(styles[`current-operation-${operation}`]);
97
98
  });
98
99
  useDragSubscription("update", ({ interactionType, collisionIds, positionOffset, collisionRect }) => {
99
100
  dispatch({
@@ -106,6 +107,7 @@ export function InternalBoard({ items, renderItem, onItemsChange, empty, i18nStr
106
107
  useDragSubscription("submit", () => {
107
108
  dispatch({ type: "submit" });
108
109
  autoScrollHandlers.removePointerEventHandlers();
110
+ document.body.classList.remove(styles["current-operation-reorder"], styles["current-operation-resize"]);
109
111
  if (!transition) {
110
112
  throw new Error("Invariant violation: no transition.");
111
113
  }
@@ -125,6 +127,7 @@ export function InternalBoard({ items, renderItem, onItemsChange, empty, i18nStr
125
127
  });
126
128
  useDragSubscription("discard", () => {
127
129
  dispatch({ type: "discard" });
130
+ document.body.classList.remove(styles["current-operation-reorder"], styles["current-operation-resize"]);
128
131
  autoScrollHandlers.removePointerEventHandlers();
129
132
  });
130
133
  useDragSubscription("acquire", ({ droppableId, draggableItem }) => {
@@ -1,10 +1,12 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "placeholder": "awsui_placeholder_1h7dk_s83el_1",
5
- "placeholder--active": "awsui_placeholder--active_1h7dk_s83el_5",
6
- "placeholder--hover": "awsui_placeholder--hover_1h7dk_s83el_8",
7
- "root": "awsui_root_1h7dk_s83el_12",
8
- "empty": "awsui_empty_1h7dk_s83el_16"
4
+ "placeholder": "awsui_placeholder_1h7dk_obfdn_1",
5
+ "placeholder--active": "awsui_placeholder--active_1h7dk_obfdn_5",
6
+ "placeholder--hover": "awsui_placeholder--hover_1h7dk_obfdn_8",
7
+ "root": "awsui_root_1h7dk_obfdn_12",
8
+ "empty": "awsui_empty_1h7dk_obfdn_16",
9
+ "current-operation-reorder": "awsui_current-operation-reorder_1h7dk_obfdn_25",
10
+ "current-operation-resize": "awsui_current-operation-resize_1h7dk_obfdn_29"
9
11
  };
10
12
 
@@ -1,23 +1,31 @@
1
- .awsui_placeholder_1h7dk_s83el_1:not(#\9) {
1
+ .awsui_placeholder_1h7dk_obfdn_1:not(#\9) {
2
2
  border-radius: var(--border-radius-container-gh9ysk, 16px);
3
3
  height: 100%;
4
4
  }
5
- .awsui_placeholder--active_1h7dk_s83el_5:not(#\9) {
5
+ .awsui_placeholder--active_1h7dk_obfdn_5:not(#\9) {
6
6
  background-color: var(--color-board-placeholder-active-vaxzdf, #e9ebed);
7
7
  }
8
- .awsui_placeholder--hover_1h7dk_s83el_8:not(#\9) {
8
+ .awsui_placeholder--hover_1h7dk_obfdn_8:not(#\9) {
9
9
  background-color: var(--color-board-placeholder-hover-v1s7kq, #d3e7f9);
10
10
  }
11
11
 
12
- .awsui_root_1h7dk_s83el_12:not(#\9) {
12
+ .awsui_root_1h7dk_obfdn_12:not(#\9) {
13
13
  /* used in test-utils */
14
14
  }
15
15
 
16
- .awsui_empty_1h7dk_s83el_16:not(#\9) {
16
+ .awsui_empty_1h7dk_obfdn_16:not(#\9) {
17
17
  box-sizing: border-box;
18
18
  width: 100%;
19
19
  padding: var(--space-scaled-m-pv0fmt, 16px) var(--space-scaled-l-t03y3z, 20px) var(--space-scaled-l-t03y3z, 20px);
20
20
  color: var(--color-text-empty-fjv325, #5f6b7a);
21
21
  display: flex;
22
22
  justify-content: center;
23
+ }
24
+
25
+ .awsui_current-operation-reorder_1h7dk_obfdn_25:not(#\9) {
26
+ cursor: grabbing;
27
+ }
28
+
29
+ .awsui_current-operation-resize_1h7dk_obfdn_29:not(#\9) {
30
+ cursor: nwse-resize;
23
31
  }
@@ -2,10 +2,12 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "placeholder": "awsui_placeholder_1h7dk_s83el_1",
6
- "placeholder--active": "awsui_placeholder--active_1h7dk_s83el_5",
7
- "placeholder--hover": "awsui_placeholder--hover_1h7dk_s83el_8",
8
- "root": "awsui_root_1h7dk_s83el_12",
9
- "empty": "awsui_empty_1h7dk_s83el_16"
5
+ "placeholder": "awsui_placeholder_1h7dk_obfdn_1",
6
+ "placeholder--active": "awsui_placeholder--active_1h7dk_obfdn_5",
7
+ "placeholder--hover": "awsui_placeholder--hover_1h7dk_obfdn_8",
8
+ "root": "awsui_root_1h7dk_obfdn_12",
9
+ "empty": "awsui_empty_1h7dk_obfdn_16",
10
+ "current-operation-reorder": "awsui_current-operation-reorder_1h7dk_obfdn_25",
11
+ "current-operation-resize": "awsui_current-operation-resize_1h7dk_obfdn_29"
10
12
  };
11
13
 
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "board-components";
2
- export var PACKAGE_VERSION = "3.0.0 (17387551)";
2
+ export var PACKAGE_VERSION = "3.0.0 (d234b7c6)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "17387551fab301debab95e32addc9385e2196c84"
2
+ "commit": "d234b7c61f0324e4f4ae49d5eb36ee94f20b4b28"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudscape-design/board-components",
3
- "version": "3.0.13",
3
+ "version": "3.0.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/cloudscape-design/board-components.git"