@appquality/unguess-design-system 2.12.79 → 2.12.80
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/CHANGELOG.md +13 -0
- package/build/index.js +20 -22
- package/build/stories/navigation/page-header/_types.d.ts +5 -5
- package/build/stories/navigation/page-header/index.d.ts +3 -3
- package/build/stories/navigation/page-header/index.stories.d.ts +9 -7
- package/build/stories/navigation/page-header/styled/main.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v2.12.80 (Wed Mar 01 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- New page header [#223](https://github.com/AppQuality/unguess-design-system/pull/223) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
- Un 524 page header [#222](https://github.com/AppQuality/unguess-design-system/pull/222) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
|
|
8
|
+
#### Authors: 1
|
|
9
|
+
|
|
10
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v2.12.79 (Tue Feb 28 2023)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -459,7 +459,7 @@ Avatar.Text = UgAvatar.Text;
|
|
|
459
459
|
- To show the user where they are in a nested navigation
|
|
460
460
|
- To provide a quick way to navigate to ancestor pages
|
|
461
461
|
*/
|
|
462
|
-
const StyledBreadcrumb
|
|
462
|
+
const StyledBreadcrumb = styled__default["default"](reactBreadcrumbs.Breadcrumb) `
|
|
463
463
|
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
|
|
464
464
|
> ol {
|
|
465
465
|
display: block;
|
|
@@ -487,7 +487,7 @@ const StyledBreadcrumb$1 = styled__default["default"](reactBreadcrumbs.Breadcrum
|
|
|
487
487
|
`;
|
|
488
488
|
const Breadcrumb = (_a) => {
|
|
489
489
|
var { children, showLastArrow = true } = _a, props = __rest(_a, ["children", "showLastArrow"]);
|
|
490
|
-
return showLastArrow ? (jsxRuntime.jsxs(StyledBreadcrumb
|
|
490
|
+
return showLastArrow ? (jsxRuntime.jsxs(StyledBreadcrumb, Object.assign({}, props, { showLastArrow: true }, { children: [children, jsxRuntime.jsx("div", {})] }))) : (jsxRuntime.jsx(StyledBreadcrumb, Object.assign({}, props, { children: children })));
|
|
491
491
|
};
|
|
492
492
|
|
|
493
493
|
/**
|
|
@@ -3746,7 +3746,7 @@ const StyledBody$4 = styled__default["default"](Modal.Body) `
|
|
|
3746
3746
|
padding: ${({ theme }) => `${theme.space.lg} ${theme.space.md}`};
|
|
3747
3747
|
}
|
|
3748
3748
|
`;
|
|
3749
|
-
const StyledFooter = styled__default["default"](Modal.Footer) `
|
|
3749
|
+
const StyledFooter$1 = styled__default["default"](Modal.Footer) `
|
|
3750
3750
|
padding: ${({ theme }) => theme.space.base * 4}px
|
|
3751
3751
|
${({ theme }) => theme.space.base * 6}px;
|
|
3752
3752
|
`;
|
|
@@ -3758,7 +3758,7 @@ const StyledModalClose = styled__default["default"](reactModals.Close) `
|
|
|
3758
3758
|
const ModalFullScreen = (props) => jsxRuntime.jsx(StyledModal$1, Object.assign({}, props));
|
|
3759
3759
|
ModalFullScreen.Header = StyledHeader;
|
|
3760
3760
|
ModalFullScreen.Body = StyledBody$4;
|
|
3761
|
-
ModalFullScreen.Footer = StyledFooter;
|
|
3761
|
+
ModalFullScreen.Footer = StyledFooter$1;
|
|
3762
3762
|
ModalFullScreen.Close = StyledModalClose;
|
|
3763
3763
|
ModalFullScreen.FooterItem = FooterItem;
|
|
3764
3764
|
|
|
@@ -3819,9 +3819,9 @@ const MetaContainer = styled__default["default"].div `
|
|
|
3819
3819
|
`;
|
|
3820
3820
|
const MainOverline = styled__default["default"](MD) `
|
|
3821
3821
|
color: ${({ theme }) => theme.palette.grey[600]};
|
|
3822
|
-
margin-bottom: ${({ theme }) => theme.space.md};
|
|
3823
3822
|
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
3824
3823
|
line-height: ${({ theme }) => theme.lineHeights.md};
|
|
3824
|
+
margin-bottom: ${({ theme }) => theme.space.md};
|
|
3825
3825
|
`;
|
|
3826
3826
|
const MainTitle = styled__default["default"].h1 `
|
|
3827
3827
|
color: ${({ theme }) => theme.colors.primaryHue};
|
|
@@ -3829,27 +3829,23 @@ const MainTitle = styled__default["default"].h1 `
|
|
|
3829
3829
|
font-weight: ${({ theme }) => theme.fontWeights.semibold};
|
|
3830
3830
|
line-height: ${({ theme }) => theme.lineHeights.xxxl};
|
|
3831
3831
|
width: 100%;
|
|
3832
|
+
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
3832
3833
|
`;
|
|
3833
3834
|
const MainDescription = styled__default["default"](LG) `
|
|
3834
3835
|
color: ${({ theme }) => theme.palette.grey[600]};
|
|
3835
|
-
margin: ${({ theme }) => theme.space.md} 0;
|
|
3836
3836
|
line-height: ${({ theme }) => theme.lineHeights.lg};
|
|
3837
|
+
margin-bottom: ${({ theme }) => theme.space.md};
|
|
3837
3838
|
`;
|
|
3838
|
-
const
|
|
3839
|
+
const MainMeta = styled__default["default"].div `
|
|
3839
3840
|
display: flex;
|
|
3840
3841
|
align-items: center;
|
|
3841
3842
|
justify-content: flex-start;
|
|
3842
3843
|
flex-direction: row;
|
|
3843
3844
|
flex-wrap: wrap;
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
> div {
|
|
3847
|
-
padding: 0;
|
|
3848
|
-
margin-right: ${({ theme }) => theme.space.sm};
|
|
3849
|
-
}
|
|
3845
|
+
width: 100%;
|
|
3850
3846
|
`;
|
|
3851
3847
|
const StyledCol = styled__default["default"](Col) `
|
|
3852
|
-
margin: 0;
|
|
3848
|
+
margin-bottom: 0;
|
|
3853
3849
|
`;
|
|
3854
3850
|
const Image = styled__default["default"].img `
|
|
3855
3851
|
width: auto;
|
|
@@ -3857,7 +3853,7 @@ const Image = styled__default["default"].img `
|
|
|
3857
3853
|
max-height: ${({ theme }) => theme.components.pageHeader.imgMaxHeight};
|
|
3858
3854
|
`;
|
|
3859
3855
|
const Main = (props) => {
|
|
3860
|
-
return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(StyledCol, Object.assign({ xs: 12, sm: props.
|
|
3856
|
+
return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(StyledCol, Object.assign({ xs: 12, sm: props.mainImageUrl ? 6 : 12 }, { children: jsxRuntime.jsx(InformationContainer, { children: props.children }) })), props.mainImageUrl && (jsxRuntime.jsx(StyledCol, Object.assign({ xs: 12, sm: props.mainImageUrl ? 6 : 12 }, { children: jsxRuntime.jsx(MetaContainer, { children: jsxRuntime.jsx(Image, { src: props.mainImageUrl, title: props.mainTitle, alt: props.mainTitle }) }) })))] }) }));
|
|
3861
3857
|
};
|
|
3862
3858
|
|
|
3863
3859
|
const StyledPageHeader = styled__default["default"].div `
|
|
@@ -3866,9 +3862,10 @@ const StyledPageHeader = styled__default["default"].div `
|
|
|
3866
3862
|
align-items: center;
|
|
3867
3863
|
justify-content: center;
|
|
3868
3864
|
width: 100%;
|
|
3869
|
-
padding: ${({ theme }) => theme.space.sm} 0;
|
|
3870
3865
|
box-sizing: border-box;
|
|
3871
3866
|
border-bottom: 1px solid ${({ theme }) => theme.palette.grey[200]};
|
|
3867
|
+
padding-top: ${({ theme }) => theme.space.lg};
|
|
3868
|
+
padding-bottom: ${({ theme }) => theme.space.md};
|
|
3872
3869
|
`;
|
|
3873
3870
|
const PullLeft = styled__default["default"].div `
|
|
3874
3871
|
display: flex;
|
|
@@ -3879,7 +3876,7 @@ const PullLeft = styled__default["default"].div `
|
|
|
3879
3876
|
width: 100%;
|
|
3880
3877
|
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
3881
3878
|
`;
|
|
3882
|
-
const
|
|
3879
|
+
const FooterContainer = styled__default["default"].div `
|
|
3883
3880
|
display: flex;
|
|
3884
3881
|
flex-direction: row;
|
|
3885
3882
|
align-items: center;
|
|
@@ -3887,11 +3884,12 @@ const ButtonContainer = styled__default["default"].div `
|
|
|
3887
3884
|
flex-wrap: wrap;
|
|
3888
3885
|
width: 100%;
|
|
3889
3886
|
margin: ${({ theme }) => theme.space.md} 0;
|
|
3887
|
+
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
3890
3888
|
`;
|
|
3891
|
-
const
|
|
3889
|
+
const StyledBreadcrumbs = (props) => {
|
|
3892
3890
|
return (jsxRuntime.jsx(PullLeft, { children: jsxRuntime.jsx(Breadcrumb, Object.assign({}, props)) }));
|
|
3893
3891
|
};
|
|
3894
|
-
const
|
|
3892
|
+
const StyledFooter = (props) => (jsxRuntime.jsx(FooterContainer, Object.assign({}, props)));
|
|
3895
3893
|
/**
|
|
3896
3894
|
* A PageHeader is a modular container used for pages with an opinionated set of default spaces and subcomponents order.
|
|
3897
3895
|
* <hr>
|
|
@@ -3900,13 +3898,13 @@ const Buttons = (props) => (jsxRuntime.jsx(ButtonContainer, Object.assign({}, pr
|
|
|
3900
3898
|
- As a container for the top part of the page
|
|
3901
3899
|
*/
|
|
3902
3900
|
const PageHeader = (props) => jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props));
|
|
3903
|
-
PageHeader.
|
|
3901
|
+
PageHeader.Breadcrumbs = StyledBreadcrumbs;
|
|
3904
3902
|
PageHeader.Main = Main;
|
|
3905
|
-
PageHeader.Buttons = Buttons;
|
|
3906
3903
|
PageHeader.Overline = MainOverline;
|
|
3907
3904
|
PageHeader.Title = MainTitle;
|
|
3908
3905
|
PageHeader.Description = MainDescription;
|
|
3909
|
-
PageHeader.
|
|
3906
|
+
PageHeader.Meta = MainMeta;
|
|
3907
|
+
PageHeader.Footer = StyledFooter;
|
|
3910
3908
|
|
|
3911
3909
|
const Wrapper = styled__default["default"].div `
|
|
3912
3910
|
position: absolute;
|
|
@@ -2,9 +2,9 @@ import React, { HTMLAttributes } from "react";
|
|
|
2
2
|
export interface PageHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
}
|
|
4
4
|
export interface PageHeaderMainProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
mainTitle: string;
|
|
6
|
+
mainOverline?: string;
|
|
7
|
+
mainDescription?: string;
|
|
8
|
+
mainMeta?: React.ReactNode;
|
|
9
|
+
mainImageUrl?: string;
|
|
10
10
|
}
|
|
@@ -10,12 +10,12 @@ import { PropsWithChildren } from "react";
|
|
|
10
10
|
*/
|
|
11
11
|
declare const PageHeader: {
|
|
12
12
|
(props: PageHeaderProps): JSX.Element;
|
|
13
|
-
|
|
13
|
+
Breadcrumbs: (props: BreadcrumbArgs) => JSX.Element;
|
|
14
14
|
Main: (props: import("./_types").PageHeaderMainProps) => JSX.Element;
|
|
15
|
-
Buttons: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
16
15
|
Overline: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
17
16
|
Title: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
18
17
|
Description: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
19
|
-
|
|
18
|
+
Meta: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
+
Footer: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
20
20
|
};
|
|
21
21
|
export { PageHeader };
|
|
@@ -7,18 +7,20 @@ interface PageHeaderStoryProps {
|
|
|
7
7
|
};
|
|
8
8
|
pageHeaderMainArgs: PageHeaderMainProps;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
10
|
+
export declare const Complete: Story<PageHeaderStoryProps>;
|
|
11
|
+
export declare const CompleteEditable: Story<PageHeaderStoryProps>;
|
|
12
|
+
export declare const FirstLevel: Story<PageHeaderStoryProps>;
|
|
13
|
+
export declare const SecondThirdLevel: Story<PageHeaderStoryProps>;
|
|
12
14
|
declare const _default: ComponentMeta<{
|
|
13
15
|
(props: import("./_types").PageHeaderProps): JSX.Element;
|
|
14
|
-
|
|
16
|
+
Breadcrumbs: (props: import("../../breadcrumbs/_types").BreadcrumbArgs) => JSX.Element;
|
|
15
17
|
Main: (props: PageHeaderMainProps) => JSX.Element;
|
|
16
|
-
Buttons: (props: {
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
}) => JSX.Element;
|
|
19
18
|
Overline: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
20
19
|
Title: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
21
20
|
Description: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
22
|
-
|
|
21
|
+
Meta: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
22
|
+
Footer: (props: {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}) => JSX.Element;
|
|
23
25
|
}>;
|
|
24
26
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { PageHeaderMainProps } from "../_types";
|
|
|
2
2
|
export declare const MainOverline: import("styled-components").StyledComponent<(props: import("../../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
3
3
|
export declare const MainTitle: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
4
4
|
export declare const MainDescription: import("styled-components").StyledComponent<(props: import("../../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const MainMeta: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const Main: (props: PageHeaderMainProps) => JSX.Element;
|