@appquality/unguess-design-system 2.12.79 → 2.12.81

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 CHANGED
@@ -1,3 +1,30 @@
1
+ # v2.12.81 (Thu Mar 09 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Hide sidebar below md breakpoint [#225](https://github.com/AppQuality/unguess-design-system/pull/225) ([@iacopolea](https://github.com/iacopolea) [@marcbon](https://github.com/marcbon))
6
+ - fix(nav): change mobile breakpoint and mobile first [#224](https://github.com/AppQuality/unguess-design-system/pull/224) ([@iacopolea](https://github.com/iacopolea))
7
+
8
+ #### Authors: 2
9
+
10
+ - Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
11
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
12
+
13
+ ---
14
+
15
+ # v2.12.80 (Wed Mar 01 2023)
16
+
17
+ #### 🐛 Bug Fix
18
+
19
+ - New page header [#223](https://github.com/AppQuality/unguess-design-system/pull/223) ([@marcbon](https://github.com/marcbon))
20
+ - Un 524 page header [#222](https://github.com/AppQuality/unguess-design-system/pull/222) ([@marcbon](https://github.com/marcbon))
21
+
22
+ #### Authors: 1
23
+
24
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
25
+
26
+ ---
27
+
1
28
  # v2.12.79 (Tue Feb 28 2023)
2
29
 
3
30
  #### 🐛 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$1 = styled__default["default"](reactBreadcrumbs.Breadcrumb) `
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$1, Object.assign({}, props, { showLastArrow: true }, { children: [children, jsxRuntime.jsx("div", {})] }))) : (jsxRuntime.jsx(StyledBreadcrumb$1, Object.assign({}, props, { children: children })));
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
  /**
@@ -3119,25 +3119,20 @@ const AppHeader = (_a) => {
3119
3119
  };
3120
3120
 
3121
3121
  const UgNav = styled__default["default"](reactChrome.Nav) `
3122
- border-right: ${({ theme }) => theme.borders.sm};
3123
- border-color: ${({ theme }) => reactTheming.getColor(theme.colors.neutralHue, 300)};
3122
+ width: ${p => p.isExpanded ? "100%" : "0"};
3123
+ padding-top: ${({ theme }) => theme.space.sm};
3124
+ margin-left: 0;
3125
+ border-right: none;
3124
3126
  transition: all 0.25s ease;
3125
- ${(props) => `
3126
- margin-left: ${props.isExpanded
3127
+
3128
+ @media (min-width: ${p => p.theme.breakpoints.md}) {
3129
+ border-right: ${({ theme }) => theme.borders.sm};
3130
+ border-color: ${({ theme }) => reactTheming.getColor(theme.colors.neutralHue, 300)};
3131
+ width: ${p => p.theme.components.chrome.nav.openWidth}px;
3132
+ margin-left: ${p => p.isExpanded
3127
3133
  ? 0
3128
- : -(props.theme.components.chrome.nav.openWidth -
3129
- props.theme.components.chrome.nav.closedWidth)}px;
3130
- width: ${props.theme.components.chrome.nav.openWidth}px;
3131
-
3132
- @media (max-width: ${props.theme.breakpoints.sm}) {
3133
- width: ${props.isExpanded ? "100%" : "0"};
3134
- margin-left: 0;
3135
- border-right: none;
3136
- }
3137
- `}
3138
- // transition: width 0.25s ease-in-out;
3139
- padding-top: ${({ theme }) => theme.space.sm};
3140
- @media (min-width: ${({ theme }) => theme.breakpoints.sm}) {
3134
+ : -(p.theme.components.chrome.nav.openWidth -
3135
+ p.theme.components.chrome.nav.closedWidth)}px;
3141
3136
  padding-left: ${({ theme }) => theme.space.xs};
3142
3137
  }
3143
3138
  `;
@@ -3212,6 +3207,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
3212
3207
  };
3213
3208
 
3214
3209
  const StyledToggle = styled__default["default"](IconButton) `
3210
+ display: none;
3215
3211
  width: ${({ theme }) => theme.space.base * 6}px;
3216
3212
  height: ${({ theme }) => theme.space.base * 6}px;
3217
3213
  min-width: ${({ theme }) => theme.space.md};
@@ -3220,8 +3216,8 @@ const StyledToggle = styled__default["default"](IconButton) `
3220
3216
  right: -${({ theme }) => theme.space.base * 3}px;
3221
3217
  background: ${({ theme }) => theme.gradients.dark}};
3222
3218
  z-index: 1;
3223
- @media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
3224
- display: none;
3219
+ @media (min-width: ${({ theme }) => theme.breakpoints.md}) {
3220
+ display: block;
3225
3221
  }
3226
3222
  `;
3227
3223
  const NavToggle = (props) => {
@@ -3746,7 +3742,7 @@ const StyledBody$4 = styled__default["default"](Modal.Body) `
3746
3742
  padding: ${({ theme }) => `${theme.space.lg} ${theme.space.md}`};
3747
3743
  }
3748
3744
  `;
3749
- const StyledFooter = styled__default["default"](Modal.Footer) `
3745
+ const StyledFooter$1 = styled__default["default"](Modal.Footer) `
3750
3746
  padding: ${({ theme }) => theme.space.base * 4}px
3751
3747
  ${({ theme }) => theme.space.base * 6}px;
3752
3748
  `;
@@ -3758,7 +3754,7 @@ const StyledModalClose = styled__default["default"](reactModals.Close) `
3758
3754
  const ModalFullScreen = (props) => jsxRuntime.jsx(StyledModal$1, Object.assign({}, props));
3759
3755
  ModalFullScreen.Header = StyledHeader;
3760
3756
  ModalFullScreen.Body = StyledBody$4;
3761
- ModalFullScreen.Footer = StyledFooter;
3757
+ ModalFullScreen.Footer = StyledFooter$1;
3762
3758
  ModalFullScreen.Close = StyledModalClose;
3763
3759
  ModalFullScreen.FooterItem = FooterItem;
3764
3760
 
@@ -3819,9 +3815,9 @@ const MetaContainer = styled__default["default"].div `
3819
3815
  `;
3820
3816
  const MainOverline = styled__default["default"](MD) `
3821
3817
  color: ${({ theme }) => theme.palette.grey[600]};
3822
- margin-bottom: ${({ theme }) => theme.space.md};
3823
3818
  font-weight: ${({ theme }) => theme.fontWeights.semibold};
3824
3819
  line-height: ${({ theme }) => theme.lineHeights.md};
3820
+ margin-bottom: ${({ theme }) => theme.space.md};
3825
3821
  `;
3826
3822
  const MainTitle = styled__default["default"].h1 `
3827
3823
  color: ${({ theme }) => theme.colors.primaryHue};
@@ -3829,27 +3825,23 @@ const MainTitle = styled__default["default"].h1 `
3829
3825
  font-weight: ${({ theme }) => theme.fontWeights.semibold};
3830
3826
  line-height: ${({ theme }) => theme.lineHeights.xxxl};
3831
3827
  width: 100%;
3828
+ margin-bottom: ${({ theme }) => theme.space.sm};
3832
3829
  `;
3833
3830
  const MainDescription = styled__default["default"](LG) `
3834
3831
  color: ${({ theme }) => theme.palette.grey[600]};
3835
- margin: ${({ theme }) => theme.space.md} 0;
3836
3832
  line-height: ${({ theme }) => theme.lineHeights.lg};
3833
+ margin-bottom: ${({ theme }) => theme.space.md};
3837
3834
  `;
3838
- const MainCounters = styled__default["default"].div `
3835
+ const MainMeta = styled__default["default"].div `
3839
3836
  display: flex;
3840
3837
  align-items: center;
3841
3838
  justify-content: flex-start;
3842
3839
  flex-direction: row;
3843
3840
  flex-wrap: wrap;
3844
- margin-top: ${({ theme }) => theme.space.md};
3845
-
3846
- > div {
3847
- padding: 0;
3848
- margin-right: ${({ theme }) => theme.space.sm};
3849
- }
3841
+ width: 100%;
3850
3842
  `;
3851
3843
  const StyledCol = styled__default["default"](Col) `
3852
- margin: 0;
3844
+ margin-bottom: 0;
3853
3845
  `;
3854
3846
  const Image = styled__default["default"].img `
3855
3847
  width: auto;
@@ -3857,7 +3849,7 @@ const Image = styled__default["default"].img `
3857
3849
  max-height: ${({ theme }) => theme.components.pageHeader.imgMaxHeight};
3858
3850
  `;
3859
3851
  const Main = (props) => {
3860
- return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(StyledCol, Object.assign({ xs: 12, sm: props.metaImage ? 6 : 12 }, { children: jsxRuntime.jsx(InformationContainer, { children: props.children }) })), props.metaImage && (jsxRuntime.jsx(StyledCol, Object.assign({ xs: 12, sm: props.metaImage ? 6 : 12 }, { children: jsxRuntime.jsx(MetaContainer, { children: jsxRuntime.jsx(Image, { src: props.metaImage, title: props.infoTitle, alt: props.infoTitle }) }) })))] }) }));
3852
+ 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
3853
  };
3862
3854
 
3863
3855
  const StyledPageHeader = styled__default["default"].div `
@@ -3866,9 +3858,10 @@ const StyledPageHeader = styled__default["default"].div `
3866
3858
  align-items: center;
3867
3859
  justify-content: center;
3868
3860
  width: 100%;
3869
- padding: ${({ theme }) => theme.space.sm} 0;
3870
3861
  box-sizing: border-box;
3871
3862
  border-bottom: 1px solid ${({ theme }) => theme.palette.grey[200]};
3863
+ padding-top: ${({ theme }) => theme.space.lg};
3864
+ padding-bottom: ${({ theme }) => theme.space.md};
3872
3865
  `;
3873
3866
  const PullLeft = styled__default["default"].div `
3874
3867
  display: flex;
@@ -3879,7 +3872,7 @@ const PullLeft = styled__default["default"].div `
3879
3872
  width: 100%;
3880
3873
  margin-bottom: ${({ theme }) => theme.space.sm};
3881
3874
  `;
3882
- const ButtonContainer = styled__default["default"].div `
3875
+ const FooterContainer = styled__default["default"].div `
3883
3876
  display: flex;
3884
3877
  flex-direction: row;
3885
3878
  align-items: center;
@@ -3887,11 +3880,12 @@ const ButtonContainer = styled__default["default"].div `
3887
3880
  flex-wrap: wrap;
3888
3881
  width: 100%;
3889
3882
  margin: ${({ theme }) => theme.space.md} 0;
3883
+ padding: ${({ theme }) => theme.space.xxs} 0;
3890
3884
  `;
3891
- const StyledBreadcrumb = (props) => {
3885
+ const StyledBreadcrumbs = (props) => {
3892
3886
  return (jsxRuntime.jsx(PullLeft, { children: jsxRuntime.jsx(Breadcrumb, Object.assign({}, props)) }));
3893
3887
  };
3894
- const Buttons = (props) => (jsxRuntime.jsx(ButtonContainer, Object.assign({}, props)));
3888
+ const StyledFooter = (props) => (jsxRuntime.jsx(FooterContainer, Object.assign({}, props)));
3895
3889
  /**
3896
3890
  * A PageHeader is a modular container used for pages with an opinionated set of default spaces and subcomponents order.
3897
3891
  * <hr>
@@ -3900,13 +3894,13 @@ const Buttons = (props) => (jsxRuntime.jsx(ButtonContainer, Object.assign({}, pr
3900
3894
  - As a container for the top part of the page
3901
3895
  */
3902
3896
  const PageHeader = (props) => jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props));
3903
- PageHeader.Breadcrumb = StyledBreadcrumb;
3897
+ PageHeader.Breadcrumbs = StyledBreadcrumbs;
3904
3898
  PageHeader.Main = Main;
3905
- PageHeader.Buttons = Buttons;
3906
3899
  PageHeader.Overline = MainOverline;
3907
3900
  PageHeader.Title = MainTitle;
3908
3901
  PageHeader.Description = MainDescription;
3909
- PageHeader.Counters = MainCounters;
3902
+ PageHeader.Meta = MainMeta;
3903
+ PageHeader.Footer = StyledFooter;
3910
3904
 
3911
3905
  const Wrapper = styled__default["default"].div `
3912
3906
  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
- infoTitle: string;
6
- infoOverline?: string;
7
- infoDescription?: string;
8
- infoCounters?: React.ReactNode;
9
- metaImage?: string;
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
- Breadcrumb: (props: BreadcrumbArgs) => JSX.Element;
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
- Counters: import("styled-components").StyledComponent<"div", any, {}, never>;
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 Default: Story<PageHeaderStoryProps>;
11
- export declare const Editable: Story<PageHeaderStoryProps>;
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
- Breadcrumb: (props: import("../../breadcrumbs/_types").BreadcrumbArgs) => JSX.Element;
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
- Counters: import("styled-components").StyledComponent<"div", any, {}, never>;
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 MainCounters: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const MainMeta: import("styled-components").StyledComponent<"div", any, {}, never>;
6
6
  export declare const Main: (props: PageHeaderMainProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.79",
3
+ "version": "2.12.81",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",