@sproutsocial/seeds-react-menu 1.5.2 → 1.6.0
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/.turbo/turbo-build.log +10 -86
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +12 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/MenuContent/DefaultMenuEmptyState.tsx +10 -6
- package/src/MenuContent/index.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
+
import { Box, type TypeBoxProps } from "@sproutsocial/seeds-react-box";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
export interface TypeDefaultMenuEmptyStateProps extends TypeBoxProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const StyledEmptyState = styled(Box)`
|
|
4
9
|
padding: ${({ theme }) => theme.space[350]};
|
|
5
10
|
text-align: center;
|
|
6
11
|
font-size: ${({ theme }) => theme.typography[200].fontSize};
|
|
7
12
|
`;
|
|
8
13
|
|
|
9
14
|
const DefaultMenuEmptyState = ({
|
|
10
|
-
children,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return <StyledEmptyState>{children || "No results found."}</StyledEmptyState>;
|
|
15
|
+
children = "No items found",
|
|
16
|
+
...props
|
|
17
|
+
}: TypeDefaultMenuEmptyStateProps) => {
|
|
18
|
+
return <StyledEmptyState {...props}>{children}</StyledEmptyState>;
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
export { DefaultMenuEmptyState };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./MenuContent";
|
|
2
|
+
export * from "./DefaultMenuEmptyState";
|
|
3
|
+
export * from "./MenuContentTypes";
|