@selfcommunity/react-theme-default 0.2.0-alpha.3 → 0.2.0-alpha.31

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 (54) hide show
  1. package/lib/cjs/components/MuiAppBar.js +4 -3
  2. package/lib/cjs/components/SCBottomNavigation.js +5 -4
  3. package/lib/cjs/components/SCEventForm.d.ts +5 -0
  4. package/lib/cjs/components/SCEventForm.js +6 -1
  5. package/lib/cjs/components/SCFeed.d.ts +9 -3
  6. package/lib/cjs/components/SCFeed.js +9 -3
  7. package/lib/cjs/components/SCFeedObject.d.ts +4 -0
  8. package/lib/cjs/components/SCFeedObject.js +4 -0
  9. package/lib/cjs/components/SCGroupActionsMenu.d.ts +26 -0
  10. package/lib/cjs/components/SCGroupActionsMenu.js +28 -0
  11. package/lib/cjs/components/SCGroupHeader.d.ts +5 -2
  12. package/lib/cjs/components/SCGroupHeader.js +5 -2
  13. package/lib/cjs/components/SCMediaLink.d.ts +47 -1
  14. package/lib/cjs/components/SCMediaLink.js +52 -2
  15. package/lib/cjs/components/SCNavigationMenuDrawer.d.ts +42 -0
  16. package/lib/cjs/components/SCNavigationMenuDrawer.js +45 -0
  17. package/lib/cjs/components/SCNavigationMenuIconButton.d.ts +0 -37
  18. package/lib/cjs/components/SCNavigationMenuIconButton.js +1 -39
  19. package/lib/cjs/components/SCNavigationToolbar.d.ts +3 -1
  20. package/lib/cjs/components/SCNavigationToolbar.js +68 -62
  21. package/lib/cjs/components/SCOnBoardingWidget.d.ts +17 -6
  22. package/lib/cjs/components/SCOnBoardingWidget.js +20 -8
  23. package/lib/cjs/components/SCSearchAutocomplete.d.ts +4 -0
  24. package/lib/cjs/components/SCSearchAutocomplete.js +29 -21
  25. package/lib/cjs/index.d.ts +129 -18
  26. package/lib/cjs/index.js +4 -0
  27. package/lib/esm/components/MuiAppBar.js +4 -3
  28. package/lib/esm/components/SCBottomNavigation.js +5 -4
  29. package/lib/esm/components/SCEventForm.d.ts +5 -0
  30. package/lib/esm/components/SCEventForm.js +6 -1
  31. package/lib/esm/components/SCFeed.d.ts +9 -3
  32. package/lib/esm/components/SCFeed.js +9 -3
  33. package/lib/esm/components/SCFeedObject.d.ts +4 -0
  34. package/lib/esm/components/SCFeedObject.js +4 -0
  35. package/lib/esm/components/SCGroupActionsMenu.d.ts +26 -0
  36. package/lib/esm/components/SCGroupActionsMenu.js +26 -0
  37. package/lib/esm/components/SCGroupHeader.d.ts +5 -2
  38. package/lib/esm/components/SCGroupHeader.js +5 -2
  39. package/lib/esm/components/SCMediaLink.d.ts +47 -1
  40. package/lib/esm/components/SCMediaLink.js +52 -2
  41. package/lib/esm/components/SCNavigationMenuDrawer.d.ts +42 -0
  42. package/lib/esm/components/SCNavigationMenuDrawer.js +43 -0
  43. package/lib/esm/components/SCNavigationMenuIconButton.d.ts +0 -37
  44. package/lib/esm/components/SCNavigationMenuIconButton.js +1 -39
  45. package/lib/esm/components/SCNavigationToolbar.d.ts +3 -1
  46. package/lib/esm/components/SCNavigationToolbar.js +68 -62
  47. package/lib/esm/components/SCOnBoardingWidget.d.ts +17 -6
  48. package/lib/esm/components/SCOnBoardingWidget.js +20 -8
  49. package/lib/esm/components/SCSearchAutocomplete.d.ts +4 -0
  50. package/lib/esm/components/SCSearchAutocomplete.js +29 -21
  51. package/lib/esm/index.d.ts +129 -18
  52. package/lib/esm/index.js +4 -0
  53. package/lib/umd/react-theme-default.js +2 -2
  54. package/package.json +4 -4
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styles_1 = require("@mui/material/styles");
3
4
  const Component = {
4
5
  styleOverrides: {
5
6
  root: ({ theme }) => {
6
- var _a, _b;
7
+ var _a, _b, _c, _d;
7
8
  return ({
8
- color: theme.palette.text.primary,
9
- backgroundColor: (_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main
9
+ color: (0, styles_1.getContrastRatio)((_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main, '#fff') > 4.5 ? '#fff' : theme.palette.text.primary,
10
+ backgroundColor: (_d = (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.navbar) === null || _d === void 0 ? void 0 : _d.main
10
11
  });
11
12
  }
12
13
  }
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const styles_1 = require("@mui/material/styles");
3
4
  const Component = {
4
5
  styleOverrides: {
5
6
  root: ({ theme }) => {
6
- var _a, _b;
7
+ var _a, _b, _c, _d;
7
8
  return ({
8
9
  backgroundColor: (_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main,
9
10
  '& .SCBottomNavigation-action': {
10
11
  fontSize: '1.57rem',
11
- color: theme.palette.primary.main,
12
+ color: (0, styles_1.getContrastRatio)((_d = (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.navbar) === null || _d === void 0 ? void 0 : _d.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main,
12
13
  borderTop: `1px solid transparent`,
13
14
  minWidth: 56,
14
15
  '&.Mui-selected, &:hover': {
@@ -19,8 +20,8 @@ const Component = {
19
20
  '&.Mui-selected, &:hover': {
20
21
  color: theme.palette.secondary.main,
21
22
  borderTop: '0 none'
22
- },
23
- },
23
+ }
24
+ }
24
25
  },
25
26
  '&.SCBottomNavigation-ios': {
26
27
  paddingBottom: '15px'
@@ -20,6 +20,10 @@ declare const Component: {
20
20
  '& .SCEventForm-form': {
21
21
  '& .SCEventForm-picker': {
22
22
  width: string;
23
+ '& .MuiFormHelperText-root': {
24
+ height: number;
25
+ marginTop: number;
26
+ };
23
27
  };
24
28
  '& .MuiTextField-root, .SCEventForm-frequency': {
25
29
  marginBottom: any;
@@ -85,6 +89,7 @@ declare const Component: {
85
89
  };
86
90
  };
87
91
  '& .SCEventForm-event-address-root': {
92
+ marginTop: any;
88
93
  backgroundColor: any;
89
94
  borderRadius: number;
90
95
  '& .SCEventForm-event-address-tabs': {
@@ -22,7 +22,11 @@ const Component = {
22
22
  },
23
23
  '& .SCEventForm-form': {
24
24
  '& .SCEventForm-picker': {
25
- width: '50%'
25
+ width: '50%',
26
+ '& .MuiFormHelperText-root': {
27
+ height: 0,
28
+ marginTop: 0
29
+ }
26
30
  },
27
31
  '& .MuiTextField-root, .SCEventForm-frequency': {
28
32
  marginBottom: theme.spacing(2)
@@ -88,6 +92,7 @@ const Component = {
88
92
  }
89
93
  },
90
94
  '& .SCEventForm-event-address-root': {
95
+ marginTop: theme.spacing(2),
91
96
  backgroundColor: theme.palette.grey['A200'],
92
97
  borderRadius: 5,
93
98
  '& .SCEventForm-event-address-tabs': {
@@ -32,6 +32,14 @@ declare const Component: {
32
32
  padding: number;
33
33
  marginBottom: any;
34
34
  };
35
+ '& .SCFeed-header-item': {
36
+ animation: string;
37
+ '@keyframes pulse-animation': {
38
+ '0%': {
39
+ opacity: number;
40
+ };
41
+ };
42
+ };
35
43
  };
36
44
  '& .SCFeed-end': {
37
45
  '& > .SCWidget-root': {
@@ -45,9 +53,7 @@ declare const Component: {
45
53
  padding: any;
46
54
  };
47
55
  };
48
- '& .SCFeed-refresh': {
49
- textAlign: string;
50
- };
56
+ '& .SCFeed-refresh': {};
51
57
  '& .SCFeed-pagination-link': {
52
58
  display: string;
53
59
  };
@@ -33,6 +33,14 @@ const Component = {
33
33
  '& > .SCWidget-root': {
34
34
  padding: 0,
35
35
  marginBottom: theme.spacing(2)
36
+ },
37
+ '& .SCFeed-header-item': {
38
+ animation: 'pulse-animation 2s ease-in-out',
39
+ '@keyframes pulse-animation': {
40
+ '0%': {
41
+ opacity: 0
42
+ }
43
+ }
36
44
  }
37
45
  },
38
46
  '& .SCFeed-end': {
@@ -47,9 +55,7 @@ const Component = {
47
55
  padding: theme.spacing(2)
48
56
  }
49
57
  },
50
- '& .SCFeed-refresh': {
51
- textAlign: 'center'
52
- },
58
+ '& .SCFeed-refresh': {},
53
59
  '& .SCFeed-pagination-link': {
54
60
  display: 'none'
55
61
  }
@@ -295,6 +295,10 @@ declare const Component: {
295
295
  '& li': {
296
296
  margin: string;
297
297
  };
298
+ '& span span': {
299
+ display: string;
300
+ width: string;
301
+ };
298
302
  };
299
303
  '& .SCFeedObject-medias-section': {
300
304
  '& .SCFeedObjectMediaPreview-root': {
@@ -297,6 +297,10 @@ const Component = {
297
297
  },
298
298
  '& li': {
299
299
  margin: '0 32px'
300
+ },
301
+ '& span span': {
302
+ display: 'inline-block',
303
+ width: '100%'
300
304
  }
301
305
  },
302
306
  '& .SCFeedObject-medias-section': {
@@ -0,0 +1,26 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {};
4
+ menuRoot: ({ theme }: any) => {
5
+ '& .MuiDivider-root': {
6
+ margin: any;
7
+ };
8
+ '& .MuiIcon-root': {
9
+ fontSize: string;
10
+ };
11
+ };
12
+ drawerRoot: ({ theme }: any) => {
13
+ '& .SCGroupActionsMenu-item': {
14
+ paddingTop: number;
15
+ paddingBottom: number;
16
+ };
17
+ '& .MuiDivider-root': {
18
+ margin: any;
19
+ };
20
+ '& .MuiIcon-root': {
21
+ fontSize: string;
22
+ };
23
+ };
24
+ };
25
+ };
26
+ export default Component;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ root: ({ theme }) => ({}),
6
+ menuRoot: ({ theme }) => ({
7
+ '& .MuiDivider-root': {
8
+ margin: theme.spacing(1)
9
+ },
10
+ '& .MuiIcon-root': {
11
+ fontSize: '15px'
12
+ }
13
+ }),
14
+ drawerRoot: ({ theme }) => ({
15
+ '& .SCGroupActionsMenu-item': {
16
+ paddingTop: 0,
17
+ paddingBottom: 0
18
+ },
19
+ '& .MuiDivider-root': {
20
+ margin: theme.spacing(2)
21
+ },
22
+ '& .MuiIcon-root': {
23
+ fontSize: '15px'
24
+ }
25
+ })
26
+ }
27
+ };
28
+ exports.default = Component;
@@ -40,10 +40,13 @@ declare const Component: {
40
40
  gap: any;
41
41
  };
42
42
  };
43
- '& .SCEditGroupButton-root': {
43
+ '& .SCGroupHeader-multi-actions': {
44
+ display: string;
44
45
  marginLeft: string;
45
46
  marginTop: any;
46
- marginRight: any;
47
+ '& .SCEditGroupButton-root': {
48
+ marginRight: any;
49
+ };
47
50
  };
48
51
  '& .SCGroupSubscribeButton-root': {
49
52
  marginTop: any;
@@ -42,10 +42,13 @@ const Component = {
42
42
  gap: theme.spacing(0.5)
43
43
  }
44
44
  },
45
- '& .SCEditGroupButton-root': {
45
+ '& .SCGroupHeader-multi-actions': {
46
+ display: 'flex',
46
47
  marginLeft: 'auto',
47
48
  marginTop: theme.spacing(-4.25),
48
- marginRight: theme.spacing(1)
49
+ '& .SCEditGroupButton-root': {
50
+ marginRight: theme.spacing(1)
51
+ }
49
52
  },
50
53
  '& .SCGroupSubscribeButton-root': {
51
54
  marginTop: theme.spacing(1)
@@ -11,6 +11,31 @@ declare const Component: {
11
11
  margin: string;
12
12
  height: number;
13
13
  };
14
+ '& .SCMediaLink-html-wrap': {
15
+ position: string;
16
+ marginLeft: any;
17
+ marginRight: any;
18
+ '& .SCMediaLink-html': {
19
+ width: string;
20
+ position: string;
21
+ top: number;
22
+ '& iframe': {
23
+ width: string;
24
+ margin: string;
25
+ };
26
+ };
27
+ '& .SCMediaLink-html-placeholder': {
28
+ width: string;
29
+ position: string;
30
+ top: number;
31
+ '& .SCMediaLink-html-loading': {
32
+ position: string;
33
+ display: string;
34
+ top: string;
35
+ left: string;
36
+ };
37
+ };
38
+ };
14
39
  '& .SCMediaLink-thumbnail': {
15
40
  [x: number]: {
16
41
  maxWidth: number;
@@ -51,12 +76,33 @@ declare const Component: {
51
76
  previewRoot: ({ theme }: any) => {
52
77
  '& .SCMediaLink-media': {
53
78
  position: string;
54
- margin: any;
79
+ '& .SCMediaLink-html-wrap': {
80
+ '& .SCMediaLink-html': {
81
+ width: string;
82
+ position: string;
83
+ '& iframe': {
84
+ width: string;
85
+ margin: string;
86
+ };
87
+ };
88
+ '& .SCMediaLink-html-placeholder': {
89
+ width: string;
90
+ position: string;
91
+ top: number;
92
+ '& .SCMediaLink-html-loading': {
93
+ position: string;
94
+ display: string;
95
+ top: string;
96
+ left: string;
97
+ };
98
+ };
99
+ };
55
100
  '& .SCMediaLink-delete': {
56
101
  background: any;
57
102
  position: string;
58
103
  right: any;
59
104
  top: any;
105
+ zIndex: number;
60
106
  };
61
107
  '&.SCMediaLink-media-video .SCMediaLink-delete': {
62
108
  background: any;
@@ -14,6 +14,33 @@ const Component = {
14
14
  margin: '10px 0px',
15
15
  height: 360
16
16
  },
17
+ '& .SCMediaLink-html-wrap': {
18
+ position: 'relative',
19
+ marginLeft: theme.spacing(),
20
+ marginRight: theme.spacing(),
21
+ '& .SCMediaLink-html': {
22
+ width: '100%',
23
+ position: 'absolute',
24
+ top: 0,
25
+ // zIndex: 2,
26
+ '& iframe': {
27
+ width: '100%',
28
+ margin: '0px auto'
29
+ }
30
+ },
31
+ '& .SCMediaLink-html-placeholder': {
32
+ width: '100%',
33
+ position: 'relative',
34
+ top: 0,
35
+ // zIndex: 1,
36
+ '& .SCMediaLink-html-loading': {
37
+ position: 'absolute',
38
+ display: 'none',
39
+ top: '38%',
40
+ left: '50%'
41
+ }
42
+ }
43
+ },
17
44
  '& .SCMediaLink-thumbnail': {
18
45
  border: `1px solid ${(0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
19
46
  borderRadius: theme.shape.borderRadius * 0.75,
@@ -54,12 +81,35 @@ const Component = {
54
81
  previewRoot: ({ theme }) => ({
55
82
  '& .SCMediaLink-media': {
56
83
  position: 'relative',
57
- margin: theme.spacing(1),
84
+ '& .SCMediaLink-html-wrap': {
85
+ '& .SCMediaLink-html': {
86
+ width: '100%',
87
+ position: 'absolute',
88
+ // zIndex: 2,
89
+ '& iframe': {
90
+ width: '100%',
91
+ margin: '0px auto'
92
+ }
93
+ },
94
+ '& .SCMediaLink-html-placeholder': {
95
+ width: '100%',
96
+ position: 'absolute',
97
+ top: 0,
98
+ // zIndex: 1,
99
+ '& .SCMediaLink-html-loading': {
100
+ position: 'absolute',
101
+ display: 'none',
102
+ top: '40%',
103
+ left: '50%'
104
+ }
105
+ }
106
+ },
58
107
  '& .SCMediaLink-delete': {
59
108
  background: theme.palette.common.white,
60
109
  position: 'absolute',
61
110
  right: theme.spacing(0.5),
62
- top: theme.spacing(0.5)
111
+ top: theme.spacing(0.5),
112
+ zIndex: 3
63
113
  },
64
114
  '&.SCMediaLink-media-video .SCMediaLink-delete': {
65
115
  background: theme.palette.common.white,
@@ -0,0 +1,42 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .MuiDrawer-paper': {
5
+ [x: number]: {
6
+ width: any;
7
+ };
8
+ width: string;
9
+ };
10
+ '& .SCNavigationMenuDrawer-drawer-header': {
11
+ minHeight: any;
12
+ padding: string;
13
+ display: string;
14
+ justifyContent: string;
15
+ '& > a:first-of-type': {
16
+ display: string;
17
+ justifyContent: string;
18
+ alignContent: string;
19
+ flexWrap: string;
20
+ };
21
+ '& img': {
22
+ maxHeight: number;
23
+ paddingLeft: any;
24
+ };
25
+ };
26
+ '& .MuiTypography-subtitle1': {
27
+ fontSize: string;
28
+ padding: any;
29
+ '& MuiButton-root': {
30
+ padding: any;
31
+ };
32
+ '& span:first-of-type': {
33
+ color: string;
34
+ };
35
+ };
36
+ '& .SCBaseItemButton-text ': {
37
+ maxWidth: string;
38
+ };
39
+ };
40
+ };
41
+ };
42
+ export default Component;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const system_1 = require("@mui/system");
4
+ const Component = {
5
+ styleOverrides: {
6
+ root: ({ theme }) => ({
7
+ '& .MuiDrawer-paper': {
8
+ width: '100%',
9
+ [theme.breakpoints.up('sm')]: {
10
+ width: theme.spacing(40)
11
+ }
12
+ },
13
+ '& .SCNavigationMenuDrawer-drawer-header': {
14
+ minHeight: theme.mixins.toolbar.minHeight,
15
+ padding: '1px',
16
+ display: 'flex',
17
+ justifyContent: 'space-between',
18
+ '& > a:first-of-type': {
19
+ display: 'flex',
20
+ justifyContent: 'center',
21
+ alignContent: 'center',
22
+ flexWrap: 'wrap'
23
+ },
24
+ '& img': {
25
+ maxHeight: theme.mixins.toolbar.minHeight - 20,
26
+ paddingLeft: theme.spacing(1.5)
27
+ }
28
+ },
29
+ '& .MuiTypography-subtitle1': {
30
+ fontSize: '1.286rem',
31
+ padding: theme.spacing(0, 2),
32
+ '& MuiButton-root': {
33
+ padding: theme.spacing(1, 1, 1, 2)
34
+ },
35
+ '& span:first-of-type': {
36
+ color: (0, system_1.darken)(theme.palette.text.primary, 0.5)
37
+ }
38
+ },
39
+ '& .SCBaseItemButton-text ': {
40
+ maxWidth: '80%'
41
+ }
42
+ })
43
+ }
44
+ };
45
+ exports.default = Component;
@@ -1,43 +1,6 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
3
  root: ({ theme }: any) => {};
4
- drawerRoot: ({ theme }: any) => {
5
- '& .MuiDrawer-paper': {
6
- [x: number]: {
7
- width: any;
8
- };
9
- width: string;
10
- };
11
- '& .SCNavigationMenuIconButton-drawer-header': {
12
- minHeight: any;
13
- padding: string;
14
- display: string;
15
- justifyContent: string;
16
- '& > a:first-of-type': {
17
- display: string;
18
- justifyContent: string;
19
- alignContent: string;
20
- flexWrap: string;
21
- };
22
- '& img': {
23
- maxHeight: number;
24
- paddingLeft: any;
25
- };
26
- };
27
- '& .MuiTypography-subtitle1': {
28
- fontSize: string;
29
- padding: any;
30
- '& MuiButton-root': {
31
- padding: any;
32
- };
33
- '& span:first-of-type': {
34
- color: string;
35
- };
36
- };
37
- '& .SCBaseItemButton-text ': {
38
- maxWidth: string;
39
- };
40
- };
41
4
  };
42
5
  };
43
6
  export default Component;
@@ -1,46 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const system_1 = require("@mui/system");
4
3
  const Component = {
5
4
  styleOverrides: {
6
- root: ({ theme }) => ({}),
7
- drawerRoot: ({ theme }) => ({
8
- '& .MuiDrawer-paper': {
9
- width: '100%',
10
- [theme.breakpoints.up('sm')]: {
11
- width: theme.spacing(40)
12
- }
13
- },
14
- '& .SCNavigationMenuIconButton-drawer-header': {
15
- minHeight: theme.mixins.toolbar.minHeight,
16
- padding: '1px',
17
- display: 'flex',
18
- justifyContent: 'space-between',
19
- '& > a:first-of-type': {
20
- display: 'flex',
21
- justifyContent: 'center',
22
- alignContent: 'center',
23
- flexWrap: 'wrap'
24
- },
25
- '& img': {
26
- maxHeight: theme.mixins.toolbar.minHeight - 20,
27
- paddingLeft: theme.spacing(1.5)
28
- }
29
- },
30
- '& .MuiTypography-subtitle1': {
31
- fontSize: '1.286rem',
32
- padding: theme.spacing(0, 2),
33
- '& MuiButton-root': {
34
- padding: theme.spacing(1, 1, 1, 2)
35
- },
36
- '& span:first-of-type': {
37
- color: (0, system_1.darken)(theme.palette.text.primary, 0.5)
38
- }
39
- },
40
- '& .SCBaseItemButton-text ': {
41
- maxWidth: '80%'
42
- }
43
- })
5
+ root: ({ theme }) => ({})
44
6
  }
45
7
  };
46
8
  exports.default = Component;
@@ -27,7 +27,6 @@ declare const Component: {
27
27
  paddingRight: any;
28
28
  paddingBottom: number;
29
29
  margin: any;
30
- color: any;
31
30
  borderRadius: number;
32
31
  borderBottom: string;
33
32
  '&.SCNavigationToolbar-active, &:hover': {
@@ -67,6 +66,9 @@ declare const Component: {
67
66
  '& .SCNavigationToolbar-settings': {
68
67
  marginLeft: number;
69
68
  };
69
+ '& .SCNavigationToolbar-composer:hover': {
70
+ color: any;
71
+ };
70
72
  '& .MuiIconButton-root': {
71
73
  color: any;
72
74
  };