@muraldevkit/ui-toolkit 1.28.0 → 1.29.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.
@@ -16,11 +16,9 @@
16
16
 
17
17
  .mrl-native-modal,
18
18
  .mrl-display-modal {
19
- max-height: calc(100vh - var(--mrl-spacing-09) - var(--mrl-spacing-08));
20
- min-height: min(
21
- var(--mrl-modal-max-height),
22
- calc(100vh - var(--mrl-spacing-09) - var(--mrl-spacing-08))
23
- );
19
+ height: min(var(--mrl-modal-max-height), 100vh - var(--mrl-spacing-09) - var(--mrl-spacing-08));
20
+ margin-bottom: initial;
21
+ max-height: initial;
24
22
  }
25
23
  }
26
24
 
@@ -4,3 +4,4 @@ export * from './isObject';
4
4
  export * from './setAttributes';
5
5
  export * from './noop';
6
6
  export * from './trapFocus';
7
+ export * from './scrollToElementWithLabel';
@@ -0,0 +1 @@
1
+ export { scrollToElementWithLabel } from './scrollToElementWithLabel';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Scroll element into view. If is an input or textarea, will scroll to it or the higher label associated to it.
3
+ *
4
+ * @param element to be scrolled into view
5
+ */
6
+ export declare function scrollToElementWithLabel(element: Element): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * getBoundingRect is not properly implemented in JSDom (it returns always 0). This function allows to set a hardcoded response for it.
3
+ *
4
+ * @param element the DOM to be patched
5
+ * @param patch a DOMReact to be returned by getBoundingReact
6
+ */
7
+ export declare function patchGetBoundingRect(element: HTMLElement, patch: Partial<DOMRect>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ui-toolkit",
3
- "version": "1.28.0",
3
+ "version": "1.29.1",
4
4
  "description": "Mural's UI Toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -66,6 +66,7 @@
66
66
  "@testing-library/user-event": "13.1.9",
67
67
  "@types/classnames": "2.2.5",
68
68
  "@types/jest": "29.5.1",
69
+ "@types/lodash.debounce": "4.0.7",
69
70
  "@types/react": "16.8.25",
70
71
  "@types/react-dom": "16.9.0",
71
72
  "@typescript-eslint/eslint-plugin": "4.33.0",
@@ -116,6 +117,7 @@
116
117
  },
117
118
  "dependencies": {
118
119
  "classnames": "2.2.5",
120
+ "lodash.debounce": "4.0.8",
119
121
  "react": ">=16.9",
120
122
  "react-dom": ">=16.9"
121
123
  },