@selfcommunity/react-theme-default 0.4.2-courses.101 → 0.4.2-courses.102

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.
@@ -1,6 +1,7 @@
1
1
  const Component = {
2
2
  styleOverrides: {
3
- root: ({ theme, followers }) => ({
3
+ root: ({ theme, enrolled }) => ({
4
+ padding: 0,
4
5
  gap: theme.spacing(1),
5
6
  marginTop: '0 !important',
6
7
  minWidth: 'auto',
@@ -23,7 +24,7 @@ const Component = {
23
24
  border: `1px solid ${theme.palette.common.white}`,
24
25
  fontSize: '0.7rem',
25
26
  '&:first-of-type': {
26
- width: followers > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
27
+ width: enrolled > 3 ? 'auto' : theme.selfcommunity.user.avatar.sizeSmall
27
28
  },
28
29
  '&:not(:first-of-type)': {
29
30
  width: theme.selfcommunity.user.avatar.sizeSmall
@@ -1803,6 +1803,7 @@ declare const theme: {
1803
1803
  overflow: string;
1804
1804
  WebkitLineClamp: string;
1805
1805
  WebkitBoxOrient: string;
1806
+ lineHeight: number;
1806
1807
  };
1807
1808
  };
1808
1809
  '& .SCCourse-preview-info': {
@@ -1849,21 +1850,21 @@ declare const theme: {
1849
1850
  padding: any;
1850
1851
  };
1851
1852
  };
1852
- placeholderRoot: ({ theme }: any) => {
1853
+ createPlaceholderRoot: ({ theme }: any) => {
1853
1854
  minHeight: string;
1854
- '& .SCCourse-placeholder-image-wrapper': {
1855
+ '& .SCCourse-create-placeholder-image-wrapper': {
1855
1856
  position: string;
1856
- '& .SCCourse-placeholder-image': {
1857
+ '& .SCCourse-create-placeholder-image': {
1857
1858
  height: string;
1858
1859
  };
1859
- '& .SCCourse-placeholder-icon': {
1860
+ '& .SCCourse-create-placeholder-icon': {
1860
1861
  position: string;
1861
1862
  top: string;
1862
1863
  left: string;
1863
1864
  transform: string;
1864
1865
  color: any;
1865
1866
  };
1866
- '& .SCCourse-placeholder-chip': {
1867
+ '& .SCCourse-create-placeholder-chip': {
1867
1868
  backgroundColor: any;
1868
1869
  position: string;
1869
1870
  top: any;
@@ -1875,7 +1876,7 @@ declare const theme: {
1875
1876
  padding: any;
1876
1877
  };
1877
1878
  };
1878
- '& .SCCourse-placeholder-avatar': {
1879
+ '& .SCCourse-create-placeholder-avatar': {
1879
1880
  position: string;
1880
1881
  bottom: any;
1881
1882
  left: any;
@@ -1884,40 +1885,11 @@ declare const theme: {
1884
1885
  border: string;
1885
1886
  };
1886
1887
  };
1887
- '& .SCCourse-placeholder-content': {
1888
- [x: number]: {
1889
- height: any;
1890
- };
1891
- padding: string;
1892
- '& .SCCourse-placeholder-creator': {
1893
- fontSize: string;
1894
- marginBottom: any;
1895
- };
1896
- '& .SCCourse-placeholder-name-wrapper': {
1897
- textDecoration: string;
1898
- color: string;
1899
- '& .SCCourse-placeholder-name': {
1900
- fontSize: string;
1901
- marginBottom: any;
1902
- };
1903
- };
1904
- '& .SCCourse-placeholder-info': {
1905
- display: string;
1906
- alignItems: string;
1907
- marginBottom: any;
1908
- };
1909
- };
1910
- '& .SCCourse-placeholder-actions': {
1911
- '& .MuiIcon-root': {
1912
- marginRight: any;
1913
- };
1914
- padding: any;
1915
- };
1916
- '& .SCCourse-placeholder-create-button': {
1888
+ '& .SCCourse-create-placeholder-actions': {
1917
1889
  display: string;
1918
1890
  justifyContent: string;
1919
- marginTop: any;
1920
- marginBottom: any;
1891
+ padding: any;
1892
+ height: string;
1921
1893
  };
1922
1894
  };
1923
1895
  skeletonRoot: ({ theme }: any) => {
@@ -2482,10 +2454,11 @@ declare const theme: {
2482
2454
  };
2483
2455
  SCCourseParticipantsButton: {
2484
2456
  styleOverrides: {
2485
- root: ({ theme, followers }: {
2457
+ root: ({ theme, enrolled }: {
2486
2458
  theme: any;
2487
- followers: any;
2459
+ enrolled: any;
2488
2460
  }) => {
2461
+ padding: number;
2489
2462
  gap: any;
2490
2463
  marginTop: string;
2491
2464
  minWidth: string;
@@ -5263,19 +5236,19 @@ declare const theme: {
5263
5236
  };
5264
5237
  };
5265
5238
  };
5266
- SCLessonCompletedDialog: {
5239
+ SCCourseCompletedDialog: {
5267
5240
  styleOverrides: {
5268
5241
  root: () => {
5269
- '& .SCLessonCompletedDialog-wrapper': {
5242
+ '& .SCCourseCompletedDialog-wrapper': {
5270
5243
  alignItems: string;
5271
- '& .SCLessonCompletedDialog-title': {
5244
+ '& .SCCourseCompletedDialog-title': {
5272
5245
  marginTop: string;
5273
5246
  marginBottom: string;
5274
5247
  };
5275
- '& .SCLessonCompletedDialog-description-pt1': {
5248
+ '& .SCCourseCompletedDialog-description-pt1': {
5276
5249
  marginTop: string;
5277
5250
  };
5278
- '& .SCLessonCompletedDialog-description-pt2': {
5251
+ '& .SCCourseCompletedDialog-description-pt2': {
5279
5252
  marginTop: string;
5280
5253
  marginBottom: string;
5281
5254
  };
package/lib/esm/index.js CHANGED
@@ -123,7 +123,7 @@ import SCLessonDrawer from './components/SCLessonDrawer';
123
123
  import SCLessonCommentActionsMenu from './components/SCLessonCommentActionsMenu';
124
124
  import SCLessonCommentObject from './components/SCLessonCommentObject';
125
125
  import SCLessonCommentObjects from './components/SCLessonCommentObjects';
126
- import SCLessonCompletedDialog from './components/SCLessonCompletedDialog';
126
+ import SCCourseCompletedDialog from './components/SCCourseCompletedDialog';
127
127
  import SCLessonEditForm from './components/SCLessonEditForm';
128
128
  import SCLessonTemplate from './components/SCLessonTemplate';
129
129
  import SCLessonObject from './components/SCLessonObject';
@@ -381,7 +381,7 @@ const theme = {
381
381
  SCLessonCommentActionsMenu,
382
382
  SCLessonCommentObject,
383
383
  SCLessonCommentObjects,
384
- SCLessonCompletedDialog,
384
+ SCCourseCompletedDialog,
385
385
  SCLessonEditForm,
386
386
  SCLessonTemplate,
387
387
  SCLessonObject,