react-dockable-desktop 7.6.1 → 7.7.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/styles.css CHANGED
@@ -855,6 +855,9 @@ body.rdd-resizing-col-active * {
855
855
  .rdd-tooltip-close-x {
856
856
  width: 18px;
857
857
  height: 18px;
858
+ /* A <button>: without this the browser's own padding (1px 6px) comes out of the 18px, and the
859
+ 12px icon was drawn 6px wide on any page without a CSS reset (7.6.2). */
860
+ padding: 0;
858
861
  border-radius: calc(3px * var(--rdd-radius-scale, 1));
859
862
  background: transparent !important;
860
863
  border: none !important;
@@ -868,6 +871,10 @@ body.rdd-resizing-col-active * {
868
871
  opacity: 0.75;
869
872
  }
870
873
 
874
+ .rdd-tooltip-close-x svg {
875
+ flex-shrink: 0;
876
+ }
877
+
871
878
  .rdd-tooltip-close-x:hover {
872
879
  background: var(--rdd-close-btn-hover-bg) !important;
873
880
  color: var(--rdd-close-btn-hover-color) !important;
@@ -2307,6 +2314,8 @@ body.rdd-dragging-active {
2307
2314
  cursor: pointer;
2308
2315
  font-size: var(--rdd-chrome-icon-size, 22px);
2309
2316
  line-height: 1;
2317
+ /* The icon is centred by flex; the browser's button padding must not eat into the box (7.6.2). */
2318
+ padding: 0;
2310
2319
  }
2311
2320
 
2312
2321
  /* Icons in rail buttons: SVG icons follow the chrome icon size whatever their own width/height
@@ -3027,6 +3036,32 @@ html.rdd-no-animations [class*="rdd-"]::after {
3027
3036
  color: inherit;
3028
3037
  line-height: 1.5;
3029
3038
  }
3039
+ /* The icon left of a confirmation or alert message (7.7.0). Coloured by type with the toast tokens. */
3040
+ .rdd-dialog-content {
3041
+ display: flex;
3042
+ align-items: flex-start;
3043
+ gap: 0.75rem;
3044
+ }
3045
+ .rdd-dialog-content > .rdd-confirmation-message {
3046
+ flex: 1;
3047
+ min-width: 0;
3048
+ }
3049
+ .rdd-dialog-icon {
3050
+ flex: none;
3051
+ display: flex;
3052
+ align-items: center;
3053
+ justify-content: center;
3054
+ width: 24px;
3055
+ height: 24px;
3056
+ }
3057
+ .rdd-dialog-icon > svg {
3058
+ width: 100%;
3059
+ height: 100%;
3060
+ }
3061
+ .rdd-dialog-icon-info { color: var(--rdd-toast-info-color); }
3062
+ .rdd-dialog-icon-success { color: var(--rdd-toast-success-color); }
3063
+ .rdd-dialog-icon-warning { color: var(--rdd-toast-warning-color); }
3064
+ .rdd-dialog-icon-danger { color: var(--rdd-toast-error-color); }
3030
3065
  .rdd-confirmation-divider {
3031
3066
  margin-top: 0.5rem;
3032
3067
  margin-bottom: 0.5rem;
@@ -3181,6 +3216,8 @@ html.rdd-no-animations [class*="rdd-"]::after {
3181
3216
  transition: color 0.15s ease, background-color 0.15s ease;
3182
3217
  font-size: var(--rdd-chrome-icon-size, 22px);
3183
3218
  line-height: 1;
3219
+ /* The icon is centred by flex; the browser's button padding must not eat into the box (7.6.2). */
3220
+ padding: 0;
3184
3221
  }
3185
3222
 
3186
3223
  .rdd-toolbar-btn svg {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dockable-desktop",
3
- "version": "7.6.1",
3
+ "version": "7.7.0",
4
4
  "license": "MIT",
5
5
  "description": "A premium, state-of-the-art window manager and dockable layout engine for React. Supports fluid grid splits, tabbed groups, floating resizable windows, zero-unmount state preservation, context menus, and internationalization.",
6
6
  "main": "dist/index.cjs",