forstok-ui-lib 5.2.29 → 5.2.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.2.29",
3
+ "version": "5.2.30",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -39,6 +39,7 @@
39
39
  "@types/react-dom": "^19.0.2",
40
40
  "html-to-text": "^9.0.5",
41
41
  "react": "^19.0.0",
42
+ "react-content-loader": "^7.0.2",
42
43
  "react-dom": "^19.0.0",
43
44
  "react-router-dom": "^7.1.1",
44
45
  "react-select": "^5.10.0",
@@ -120,4 +120,16 @@ export const evUpdateInputRc = (input?: HTMLInputElement, value?: string | numbe
120
120
  nativeInputValueSetter && nativeInputValueSetter.call(input, (value === undefined ? '' : value))
121
121
  const inputEvent = new Event('input', { bubbles: true})
122
122
  input.dispatchEvent(inputEvent)
123
+ }
124
+
125
+ export const getSizeContainer = (full?: boolean) => {
126
+ const height = window.innerHeight
127
+ const width = window.innerWidth
128
+ let result = { width: width, height: height }
129
+ if (width >= 1366) {
130
+ result.width = width - 220 - 64
131
+ } else if (width >= 1280) {
132
+ result.width = width - 187 - 32
133
+ }
134
+ return result
123
135
  }
@@ -19,11 +19,13 @@ export { default as ErrorComponent } from './error';
19
19
  export { default as UploadComponent } from './upload';
20
20
  export { default as UploadDragDropComponent } from './upload/drag_drop';
21
21
  export { default as TextAreaComponent } from './textarea';
22
- export { default as TextAreaRefComponent } from './textarea/ref';
22
+ export { default as TextAreaRefComponent } from './textarea/ref';
23
23
 
24
24
  export * from './dropdown/typed';
25
25
  export * from './message/typed';
26
26
  export * from './popup/typed';
27
27
  export * from './select/typed';
28
28
 
29
- export * from './form/styles';
29
+ export * from './form/styles';
30
+
31
+ export * from './loader';