@selfcommunity/react-ui 0.7.0-alpha.346 → 0.7.0-alpha.347
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/lib/cjs/components/Categories/Categories.js +10 -11
- package/lib/cjs/components/Categories/Skeleton.d.ts +3 -3
- package/lib/cjs/components/Categories/Skeleton.js +9 -10
- package/lib/cjs/components/Categories/constants.d.ts +1 -0
- package/lib/cjs/components/Categories/constants.js +4 -0
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +12 -14
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.d.ts +2 -2
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +7 -10
- package/lib/cjs/components/CategoriesPopularWidget/constants.d.ts +1 -0
- package/lib/cjs/components/CategoriesPopularWidget/constants.js +4 -0
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +13 -15
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +9 -12
- package/lib/cjs/components/CategoriesSuggestionWidget/constants.d.ts +1 -0
- package/lib/cjs/components/CategoriesSuggestionWidget/constants.js +4 -0
- package/lib/cjs/components/Category/Category.js +9 -10
- package/lib/cjs/components/Category/Skeleton.d.ts +2 -2
- package/lib/cjs/components/Category/Skeleton.js +12 -13
- package/lib/cjs/components/Category/constants.d.ts +1 -0
- package/lib/cjs/components/Category/constants.js +4 -0
- package/lib/esm/components/Categories/Categories.js +3 -4
- package/lib/esm/components/Categories/Skeleton.d.ts +3 -3
- package/lib/esm/components/Categories/Skeleton.js +7 -8
- package/lib/esm/components/Categories/constants.d.ts +1 -0
- package/lib/esm/components/Categories/constants.js +1 -0
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +3 -5
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.d.ts +2 -2
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +6 -9
- package/lib/esm/components/CategoriesPopularWidget/constants.d.ts +1 -0
- package/lib/esm/components/CategoriesPopularWidget/constants.js +1 -0
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +4 -6
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.d.ts +3 -3
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +7 -10
- package/lib/esm/components/CategoriesSuggestionWidget/constants.d.ts +1 -0
- package/lib/esm/components/CategoriesSuggestionWidget/constants.js +1 -0
- package/lib/esm/components/Category/Category.js +3 -4
- package/lib/esm/components/Category/Skeleton.d.ts +2 -2
- package/lib/esm/components/Category/Skeleton.js +6 -7
- package/lib/esm/components/Category/constants.d.ts +1 -0
- package/lib/esm/components/Category/constants.js +1 -0
- package/lib/umd/react-ui.js +1 -1
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ import { actionWidgetTypes, dataWidgetReducer, stateWidgetInitializer } from '..
|
|
|
16
16
|
import BaseDialog from '../../shared/BaseDialog';
|
|
17
17
|
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
18
18
|
import InfiniteScroll from '../../shared/InfiniteScroll';
|
|
19
|
-
|
|
19
|
+
import { PREFIX } from './constants';
|
|
20
20
|
const classes = {
|
|
21
21
|
root: `${PREFIX}-root`,
|
|
22
22
|
title: `${PREFIX}-title`,
|
|
@@ -27,13 +27,11 @@ const classes = {
|
|
|
27
27
|
};
|
|
28
28
|
const Root = styled(Widget, {
|
|
29
29
|
name: PREFIX,
|
|
30
|
-
slot: 'Root'
|
|
31
|
-
|
|
32
|
-
})(({ theme }) => ({}));
|
|
30
|
+
slot: 'Root'
|
|
31
|
+
})(() => ({}));
|
|
33
32
|
const DialogRoot = styled(BaseDialog, {
|
|
34
33
|
name: PREFIX,
|
|
35
|
-
slot: '
|
|
36
|
-
overridesResolver: (props, styles) => styles.dialogRoot
|
|
34
|
+
slot: 'DialogRoot'
|
|
37
35
|
})(() => ({}));
|
|
38
36
|
/**
|
|
39
37
|
* > API documentation for the Community-JS Categories Suggestion component. Learn about the available props and the CSS API.
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCCategoriesSuggestionWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
13
13
|
|
|
14
14
|
#### CSS
|
|
15
15
|
|
|
16
16
|
|Rule Name|Global class|Description|
|
|
17
17
|
|---|---|---|
|
|
18
|
-
|root|.
|
|
19
|
-
|list|.
|
|
18
|
+
|root|.SCCategoriesSuggestionWidget-skeleton-root|Styles applied to the root element.|
|
|
19
|
+
|list|.SCCategoriesSuggestionWidget-list|Styles applied to the list element.|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
export default function CategoriesSuggestionWidgetSkeleton(props: any): JSX.Element;
|
|
@@ -4,18 +4,15 @@ import { styled } from '@mui/material/styles';
|
|
|
4
4
|
import CategorySkeleton from '../Category/Skeleton';
|
|
5
5
|
import Widget from '../Widget';
|
|
6
6
|
import { CardContent, ListItem } from '@mui/material';
|
|
7
|
-
|
|
7
|
+
import { PREFIX } from './constants';
|
|
8
8
|
const classes = {
|
|
9
|
-
root: `${PREFIX}-root`,
|
|
9
|
+
root: `${PREFIX}-skeleton-root`,
|
|
10
10
|
list: `${PREFIX}-list`
|
|
11
11
|
};
|
|
12
12
|
const Root = styled(Widget, {
|
|
13
13
|
name: PREFIX,
|
|
14
|
-
slot: '
|
|
15
|
-
|
|
16
|
-
})(({ theme }) => ({
|
|
17
|
-
marginBottom: theme.spacing(2)
|
|
18
|
-
}));
|
|
14
|
+
slot: 'SkeletonRoot'
|
|
15
|
+
})(() => ({}));
|
|
19
16
|
/**
|
|
20
17
|
* > API documentation for the Community-JS Categories Suggestion Widget Skeleton component. Learn about the available props and the CSS API.
|
|
21
18
|
|
|
@@ -27,14 +24,14 @@ const Root = styled(Widget, {
|
|
|
27
24
|
|
|
28
25
|
#### Component Name
|
|
29
26
|
|
|
30
|
-
The name `
|
|
27
|
+
The name `SCCategoriesSuggestionWidget-skeleton-root` can be used when providing style overrides in the theme.
|
|
31
28
|
|
|
32
29
|
#### CSS
|
|
33
30
|
|
|
34
31
|
|Rule Name|Global class|Description|
|
|
35
32
|
|---|---|---|
|
|
36
|
-
|root|.
|
|
37
|
-
|list|.
|
|
33
|
+
|root|.SCCategoriesSuggestionWidget-skeleton-root|Styles applied to the root element.|
|
|
34
|
+
|list|.SCCategoriesSuggestionWidget-list|Styles applied to the list element.|
|
|
38
35
|
*
|
|
39
36
|
*/
|
|
40
37
|
export default function CategoriesSuggestionWidgetSkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCategoriesSuggestionWidget";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCCategoriesSuggestionWidget';
|
|
@@ -9,13 +9,13 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import { useThemeProps } from '@mui/system';
|
|
11
11
|
import BaseItemButton from '../../shared/BaseItemButton';
|
|
12
|
+
import { PREFIX } from './constants';
|
|
12
13
|
const messages = defineMessages({
|
|
13
14
|
categoryFollowers: {
|
|
14
15
|
id: 'ui.category.categoryFollowers',
|
|
15
16
|
defaultMessage: 'ui.category.categoryFollowers'
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
|
-
const PREFIX = 'SCCategory';
|
|
19
19
|
const classes = {
|
|
20
20
|
root: `${PREFIX}-root`,
|
|
21
21
|
categoryImage: `${PREFIX}-category-image`,
|
|
@@ -24,9 +24,8 @@ const classes = {
|
|
|
24
24
|
};
|
|
25
25
|
const Root = styled(BaseItemButton, {
|
|
26
26
|
name: PREFIX,
|
|
27
|
-
slot: 'Root'
|
|
28
|
-
|
|
29
|
-
})(({ theme }) => ({}));
|
|
27
|
+
slot: 'Root'
|
|
28
|
+
})(() => ({}));
|
|
30
29
|
/**
|
|
31
30
|
* > API documentation for the Community-JS Category component. Learn about the available props and the CSS API.
|
|
32
31
|
*
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
#### Component Name
|
|
11
11
|
|
|
12
|
-
The name `
|
|
12
|
+
The name `SCCategory-skeleton-root` can be used when providing style overrides in the theme.
|
|
13
13
|
|
|
14
14
|
#### CSS
|
|
15
15
|
|
|
16
16
|
|Rule Name|Global class|Description|
|
|
17
17
|
|---|---|---|
|
|
18
|
-
|root|.
|
|
18
|
+
|root|.SCCategory-skeleton-root|Styles applied to the root element.|
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
21
|
export default function CategorySkeleton(props: any): JSX.Element;
|
|
@@ -3,9 +3,9 @@ import { styled } from '@mui/material/styles';
|
|
|
3
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
4
4
|
import { Button, useTheme } from '@mui/material';
|
|
5
5
|
import BaseItem from '../../shared/BaseItem';
|
|
6
|
-
|
|
6
|
+
import { PREFIX } from './constants';
|
|
7
7
|
const classes = {
|
|
8
|
-
root: `${PREFIX}-root`,
|
|
8
|
+
root: `${PREFIX}-skeleton-root`,
|
|
9
9
|
image: `${PREFIX}-image`,
|
|
10
10
|
primary: `${PREFIX}-primary`,
|
|
11
11
|
secondary: `${PREFIX}-secondary`,
|
|
@@ -14,9 +14,8 @@ const classes = {
|
|
|
14
14
|
};
|
|
15
15
|
const Root = styled(BaseItem, {
|
|
16
16
|
name: PREFIX,
|
|
17
|
-
slot: '
|
|
18
|
-
|
|
19
|
-
})(({ theme }) => ({}));
|
|
17
|
+
slot: 'SkeletonRoot'
|
|
18
|
+
})(() => ({}));
|
|
20
19
|
/**
|
|
21
20
|
* > API documentation for the Community-JS Category Skeleton component. Learn about the available props and the CSS API.
|
|
22
21
|
|
|
@@ -28,13 +27,13 @@ const Root = styled(BaseItem, {
|
|
|
28
27
|
|
|
29
28
|
#### Component Name
|
|
30
29
|
|
|
31
|
-
The name `
|
|
30
|
+
The name `SCCategory-skeleton-root` can be used when providing style overrides in the theme.
|
|
32
31
|
|
|
33
32
|
#### CSS
|
|
34
33
|
|
|
35
34
|
|Rule Name|Global class|Description|
|
|
36
35
|
|---|---|---|
|
|
37
|
-
|root|.
|
|
36
|
+
|root|.SCCategory-skeleton-root|Styles applied to the root element.|
|
|
38
37
|
*
|
|
39
38
|
*/
|
|
40
39
|
export default function CategorySkeleton(props) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCCategory";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PREFIX = 'SCCategory';
|