@spaced-out/ui-design-system 0.3.35 → 0.3.37

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.3.37](https://github.com/spaced-out/ui-design-system/compare/v0.3.36...v0.3.37) (2025-04-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * grid card layout story ([#336](https://github.com/spaced-out/ui-design-system/issues/336)) ([7bc73f6](https://github.com/spaced-out/ui-design-system/commit/7bc73f67735878d013f643d7382d770e6f085e50))
11
+
12
+ ### [0.3.36](https://github.com/spaced-out/ui-design-system/compare/v0.3.35...v0.3.36) (2025-04-24)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * class list sentry issue ([#335](https://github.com/spaced-out/ui-design-system/issues/335)) ([2936d0f](https://github.com/spaced-out/ui-design-system/commit/2936d0f0fd05c46a5000172139b48b7639ff3095))
18
+
5
19
  ### [0.3.35](https://github.com/spaced-out/ui-design-system/compare/v0.3.34...v0.3.35) (2025-04-14)
6
20
 
7
21
 
@@ -90,12 +90,22 @@ function hasChildNode(nodeList) {
90
90
  return false;
91
91
  }
92
92
  const fixBody = bodyEl => {
93
- document.getElementsByTagName('body')[0].classList.add('fixed');
94
- bodyEl.style.overflow = 'hidden';
93
+ const body = document.getElementsByTagName('body')[0];
94
+ if (body && body.classList) {
95
+ body.classList.add('fixed');
96
+ }
97
+ if (bodyEl) {
98
+ bodyEl.style.overflow = 'hidden';
99
+ }
95
100
  };
96
101
  const unfixBody = bodyEl => {
97
- document.getElementsByTagName('body')[0].classList.remove('fixed');
98
- bodyEl.style.overflow = '';
102
+ const body = document.getElementsByTagName('body')[0];
103
+ if (body && body.classList) {
104
+ body.classList.remove('fixed');
105
+ }
106
+ if (bodyEl) {
107
+ bodyEl.style.overflow = '';
108
+ }
99
109
  };
100
110
  const checkAndAddBodyOverflow = bodyEl => {
101
111
  const nodes = document.querySelectorAll('[id^="modal-root"]');
@@ -164,13 +164,23 @@ function hasChildNode(nodeList) {
164
164
  }
165
165
 
166
166
  const fixBody = (bodyEl: HTMLBodyElement) => {
167
- document.getElementsByTagName('body')[0].classList.add('fixed');
168
- bodyEl.style.overflow = 'hidden';
167
+ const body = document.getElementsByTagName('body')[0];
168
+ if (body && body.classList) {
169
+ body.classList.add('fixed');
170
+ }
171
+ if (bodyEl) {
172
+ bodyEl.style.overflow = 'hidden';
173
+ }
169
174
  };
170
175
 
171
176
  const unfixBody = (bodyEl: HTMLBodyElement) => {
172
- document.getElementsByTagName('body')[0].classList.remove('fixed');
173
- bodyEl.style.overflow = '';
177
+ const body = document.getElementsByTagName('body')[0];
178
+ if (body && body.classList) {
179
+ body.classList.remove('fixed');
180
+ }
181
+ if (bodyEl) {
182
+ bodyEl.style.overflow = '';
183
+ }
174
184
  };
175
185
 
176
186
  const checkAndAddBodyOverflow = (bodyEl: HTMLBodyElement) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.3.35",
3
+ "version": "0.3.37",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {