@chayns-components/core 5.0.0-beta.797 → 5.0.0-beta.798

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.
Files changed (63) hide show
  1. package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js +1 -0
  2. package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  3. package/lib/cjs/components/context-menu/ContextMenu.js +2 -2
  4. package/lib/cjs/components/context-menu/ContextMenu.js.map +1 -1
  5. package/lib/cjs/components/page-provider/PageProvider.js +67 -0
  6. package/lib/cjs/components/page-provider/PageProvider.js.map +1 -0
  7. package/lib/cjs/components/page-provider/PageProvider.styles.js +34 -0
  8. package/lib/cjs/components/page-provider/PageProvider.styles.js.map +1 -0
  9. package/lib/cjs/components/popup/Popup.js +1 -1
  10. package/lib/cjs/components/popup/Popup.js.map +1 -1
  11. package/lib/cjs/constants/pageProvider.js +16 -0
  12. package/lib/cjs/constants/pageProvider.js.map +1 -0
  13. package/lib/cjs/index.js +14 -0
  14. package/lib/cjs/index.js.map +1 -1
  15. package/lib/cjs/utils/pageProvider.js +92 -0
  16. package/lib/cjs/utils/pageProvider.js.map +1 -0
  17. package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js +1 -0
  18. package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
  19. package/lib/esm/components/context-menu/ContextMenu.js +2 -2
  20. package/lib/esm/components/context-menu/ContextMenu.js.map +1 -1
  21. package/lib/esm/components/page-provider/PageProvider.js +59 -0
  22. package/lib/esm/components/page-provider/PageProvider.js.map +1 -0
  23. package/lib/esm/components/page-provider/PageProvider.styles.js +33 -0
  24. package/lib/esm/components/page-provider/PageProvider.styles.js.map +1 -0
  25. package/lib/esm/components/popup/Popup.js +1 -1
  26. package/lib/esm/components/popup/Popup.js.map +1 -1
  27. package/lib/esm/constants/pageProvider.js +10 -0
  28. package/lib/esm/constants/pageProvider.js.map +1 -0
  29. package/lib/esm/index.js +2 -0
  30. package/lib/esm/index.js.map +1 -1
  31. package/lib/esm/utils/pageProvider.js +84 -0
  32. package/lib/esm/utils/pageProvider.js.map +1 -0
  33. package/lib/types/components/accordion/Accordion.styles.d.ts +1 -1
  34. package/lib/types/components/accordion/accordion-body/AccordionBody.styles.d.ts +1 -1
  35. package/lib/types/components/accordion/accordion-head/AccordionHead.styles.d.ts +10 -10
  36. package/lib/types/components/amount-control/AmountControl.styles.d.ts +1 -1
  37. package/lib/types/components/button/Button.styles.d.ts +3 -3
  38. package/lib/types/components/color-scheme-provider/ColorSchemeProvider.d.ts +1 -1
  39. package/lib/types/components/combobox/ComboBox.styles.d.ts +1 -1
  40. package/lib/types/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -1
  41. package/lib/types/components/expandable-content/ExpandableContent.styles.d.ts +1 -1
  42. package/lib/types/components/file-input/FileInput.styles.d.ts +1 -1
  43. package/lib/types/components/filter-buttons/filter-button/FilterButton.styles.d.ts +1 -1
  44. package/lib/types/components/input/Input.styles.d.ts +3 -3
  45. package/lib/types/components/list/list-item/ListItem.styles.d.ts +1 -1
  46. package/lib/types/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +1 -1
  47. package/lib/types/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +4 -4
  48. package/lib/types/components/mention-finder/MentionFinder.styles.d.ts +1 -1
  49. package/lib/types/components/page-provider/PageProvider.d.ts +14 -0
  50. package/lib/types/components/page-provider/PageProvider.styles.d.ts +7 -0
  51. package/lib/types/components/popup/popup-content-wrapper/PopupContentWrapper.styles.d.ts +1 -1
  52. package/lib/types/components/progress-bar/ProgressBar.styles.d.ts +1 -1
  53. package/lib/types/components/radio-button/RadioButton.styles.d.ts +1 -1
  54. package/lib/types/components/search-box/SearchBox.styles.d.ts +1 -1
  55. package/lib/types/components/search-box/search-box-body/SearchBoxBody.styles.d.ts +1 -1
  56. package/lib/types/components/search-input/SearchInput.styles.d.ts +2 -2
  57. package/lib/types/components/slider/Slider.styles.d.ts +2 -2
  58. package/lib/types/components/slider-button/SliderButton.styles.d.ts +1 -1
  59. package/lib/types/components/truncation/Truncation.styles.d.ts +1 -1
  60. package/lib/types/constants/pageProvider.d.ts +6 -0
  61. package/lib/types/index.d.ts +2 -0
  62. package/lib/types/utils/pageProvider.d.ts +2 -0
  63. package/package.json +2 -2
@@ -7,6 +7,7 @@ export declare const StyledMotionProgressBarProgress: import("styled-components/
7
7
  slot?: string | undefined;
8
8
  title?: string | undefined;
9
9
  color?: string | undefined;
10
+ className?: string | undefined;
10
11
  rel?: string | undefined;
11
12
  defaultChecked?: boolean | undefined;
12
13
  defaultValue?: string | number | readonly string[] | undefined;
@@ -14,7 +15,6 @@ export declare const StyledMotionProgressBarProgress: import("styled-components/
14
15
  suppressHydrationWarning?: boolean | undefined;
15
16
  accessKey?: string | undefined;
16
17
  autoFocus?: boolean | undefined;
17
- className?: string | undefined;
18
18
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
19
19
  contextMenu?: string | undefined;
20
20
  dir?: string | undefined;
@@ -29,6 +29,7 @@ export declare const StyledMotionRadioButtonChildren: import("styled-components/
29
29
  slot?: string | undefined;
30
30
  title?: string | undefined;
31
31
  color?: string | undefined;
32
+ className?: string | undefined;
32
33
  rel?: string | undefined;
33
34
  defaultChecked?: boolean | undefined;
34
35
  defaultValue?: string | number | readonly string[] | undefined;
@@ -36,7 +37,6 @@ export declare const StyledMotionRadioButtonChildren: import("styled-components/
36
37
  suppressHydrationWarning?: boolean | undefined;
37
38
  accessKey?: string | undefined;
38
39
  autoFocus?: boolean | undefined;
39
- className?: string | undefined;
40
40
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
41
41
  contextMenu?: string | undefined;
42
42
  dir?: string | undefined;
@@ -10,6 +10,7 @@ export declare const StyledMotionSearchBoxBody: import("styled-components/dist/t
10
10
  slot?: string | undefined;
11
11
  title?: string | undefined;
12
12
  color?: string | undefined;
13
+ className?: string | undefined;
13
14
  rel?: string | undefined;
14
15
  defaultChecked?: boolean | undefined;
15
16
  defaultValue?: string | number | readonly string[] | undefined;
@@ -17,7 +18,6 @@ export declare const StyledMotionSearchBoxBody: import("styled-components/dist/t
17
18
  suppressHydrationWarning?: boolean | undefined;
18
19
  accessKey?: string | undefined;
19
20
  autoFocus?: boolean | undefined;
20
- className?: string | undefined;
21
21
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
22
22
  contextMenu?: string | undefined;
23
23
  dir?: string | undefined;
@@ -7,6 +7,7 @@ export declare const StyledMotionSearchBoxBody: import("styled-components/dist/t
7
7
  slot?: string | undefined;
8
8
  title?: string | undefined;
9
9
  color?: string | undefined;
10
+ className?: string | undefined;
10
11
  rel?: string | undefined;
11
12
  defaultChecked?: boolean | undefined;
12
13
  defaultValue?: string | number | readonly string[] | undefined;
@@ -14,7 +15,6 @@ export declare const StyledMotionSearchBoxBody: import("styled-components/dist/t
14
15
  suppressHydrationWarning?: boolean | undefined;
15
16
  accessKey?: string | undefined;
16
17
  autoFocus?: boolean | undefined;
17
- className?: string | undefined;
18
18
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
19
19
  contextMenu?: string | undefined;
20
20
  dir?: string | undefined;
@@ -7,6 +7,7 @@ export declare const StyledMotionSearchInputContentWrapper: import("styled-compo
7
7
  slot?: string | undefined;
8
8
  title?: string | undefined;
9
9
  color?: string | undefined;
10
+ className?: string | undefined;
10
11
  rel?: string | undefined;
11
12
  defaultChecked?: boolean | undefined;
12
13
  defaultValue?: string | number | readonly string[] | undefined;
@@ -14,7 +15,6 @@ export declare const StyledMotionSearchInputContentWrapper: import("styled-compo
14
15
  suppressHydrationWarning?: boolean | undefined;
15
16
  accessKey?: string | undefined;
16
17
  autoFocus?: boolean | undefined;
17
- className?: string | undefined;
18
18
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
19
19
  contextMenu?: string | undefined;
20
20
  dir?: string | undefined;
@@ -273,6 +273,7 @@ export declare const StyledMotionSearchInputIconWrapperContent: import("styled-c
273
273
  slot?: string | undefined;
274
274
  title?: string | undefined;
275
275
  color?: string | undefined;
276
+ className?: string | undefined;
276
277
  rel?: string | undefined;
277
278
  defaultChecked?: boolean | undefined;
278
279
  defaultValue?: string | number | readonly string[] | undefined;
@@ -280,7 +281,6 @@ export declare const StyledMotionSearchInputIconWrapperContent: import("styled-c
280
281
  suppressHydrationWarning?: boolean | undefined;
281
282
  accessKey?: string | undefined;
282
283
  autoFocus?: boolean | undefined;
283
- className?: string | undefined;
284
284
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
285
285
  contextMenu?: string | undefined;
286
286
  dir?: string | undefined;
@@ -16,6 +16,7 @@ export declare const StyledSliderInput: import("styled-components/dist/types").I
16
16
  size?: number | undefined;
17
17
  color?: string | undefined;
18
18
  type?: import("react").HTMLInputTypeAttribute | undefined;
19
+ className?: string | undefined;
19
20
  rel?: string | undefined;
20
21
  defaultChecked?: boolean | undefined;
21
22
  defaultValue?: string | number | readonly string[] | undefined;
@@ -23,7 +24,6 @@ export declare const StyledSliderInput: import("styled-components/dist/types").I
23
24
  suppressHydrationWarning?: boolean | undefined;
24
25
  accessKey?: string | undefined;
25
26
  autoFocus?: boolean | undefined;
26
- className?: string | undefined;
27
27
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
28
28
  contextMenu?: string | undefined;
29
29
  dir?: string | undefined;
@@ -309,6 +309,7 @@ export declare const StyledSliderInput: import("styled-components/dist/types").I
309
309
  size?: number | undefined;
310
310
  color?: string | undefined;
311
311
  type?: import("react").HTMLInputTypeAttribute | undefined;
312
+ className?: string | undefined;
312
313
  rel?: string | undefined;
313
314
  defaultChecked?: boolean | undefined;
314
315
  defaultValue?: string | number | readonly string[] | undefined;
@@ -316,7 +317,6 @@ export declare const StyledSliderInput: import("styled-components/dist/types").I
316
317
  suppressHydrationWarning?: boolean | undefined;
317
318
  accessKey?: string | undefined;
318
319
  autoFocus?: boolean | undefined;
319
- className?: string | undefined;
320
320
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
321
321
  contextMenu?: string | undefined;
322
322
  dir?: string | undefined;
@@ -21,6 +21,7 @@ export declare const StyledMotionSliderButtonThumb: import("styled-components/di
21
21
  slot?: string | undefined;
22
22
  title?: string | undefined;
23
23
  color?: string | undefined;
24
+ className?: string | undefined;
24
25
  rel?: string | undefined;
25
26
  defaultChecked?: boolean | undefined;
26
27
  defaultValue?: string | number | readonly string[] | undefined;
@@ -28,7 +29,6 @@ export declare const StyledMotionSliderButtonThumb: import("styled-components/di
28
29
  suppressHydrationWarning?: boolean | undefined;
29
30
  accessKey?: string | undefined;
30
31
  autoFocus?: boolean | undefined;
31
- className?: string | undefined;
32
32
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
33
33
  contextMenu?: string | undefined;
34
34
  dir?: string | undefined;
@@ -5,6 +5,7 @@ export declare const StyledMotionTruncationContent: import("styled-components/di
5
5
  slot?: string | undefined;
6
6
  title?: string | undefined;
7
7
  color?: string | undefined;
8
+ className?: string | undefined;
8
9
  rel?: string | undefined;
9
10
  defaultChecked?: boolean | undefined;
10
11
  defaultValue?: string | number | readonly string[] | undefined;
@@ -12,7 +13,6 @@ export declare const StyledMotionTruncationContent: import("styled-components/di
12
13
  suppressHydrationWarning?: boolean | undefined;
13
14
  accessKey?: string | undefined;
14
15
  autoFocus?: boolean | undefined;
15
- className?: string | undefined;
16
16
  contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
17
17
  contextMenu?: string | undefined;
18
18
  dir?: string | undefined;
@@ -0,0 +1,6 @@
1
+ export declare const PAGE_BREAKPOINTS: {
2
+ mobile: string;
3
+ desktop: string;
4
+ desk: string;
5
+ retina: string;
6
+ };
@@ -25,6 +25,7 @@ export { default as ListItem, type ListItemElements, type ListItemProps, } from
25
25
  export { default as MentionFinder } from './components/mention-finder/MentionFinder';
26
26
  export type { MentionMember } from './components/mention-finder/MentionFinder';
27
27
  export { default as NumberInput } from './components/number-input/NumberInput';
28
+ export { default as PageProvider } from './components/page-provider/PageProvider';
28
29
  export { default as Popup } from './components/popup/Popup';
29
30
  export { default as PopupContent } from './components/popup/popup-content/PopupContent';
30
31
  export { default as ProgressBar } from './components/progress-bar/ProgressBar';
@@ -66,4 +67,5 @@ export { ClampPosition } from './types/truncation';
66
67
  export { getIsTouch } from './utils/environment';
67
68
  export { getFileAsArrayBuffer, selectFiles } from './utils/fileDialog';
68
69
  export { isTobitEmployee } from './utils/isTobitEmployee';
70
+ export { getUsableHeight } from './utils/pageProvider';
69
71
  export { uploadFile } from './utils/uploadFile';
@@ -0,0 +1,2 @@
1
+ export declare const getPagePadding: () => "0" | "35px 43px 30px" | "15px 10px 20px";
2
+ export declare const getUsableHeight: (customPadding?: string) => Promise<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/core",
3
- "version": "5.0.0-beta.797",
3
+ "version": "5.0.0-beta.798",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "sideEffects": false,
6
6
  "browserslist": [
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "ecc82ebce338cd66cd2823407cd16b6450d885bb"
88
+ "gitHead": "1b2793ca4a6dc367f85223773ab1a9a361e4f834"
89
89
  }