@appquality/unguess-design-system 2.10.52 → 2.10.53
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 +3 -1
- package/build/stories/navigation/page-header/_types.d.ts +10 -0
- package/build/stories/navigation/page-header/index.d.ts +17 -0
- package/build/stories/navigation/page-header/index.stories.d.ts +19 -0
- package/build/stories/navigation/page-header/styled/main.d.ts +2 -0
- package/build/stories/theme/components.d.ts +3 -0
- package/build/stories/theme/index.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v2.10.53 (Mon Jun 20 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Cup 823 page header [#72](https://github.com/AppQuality/unguess-design-system/pull/72) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v2.10.49 (Mon Jun 20 2022)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -239,7 +239,9 @@ var gradients = {
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
var _a, _b, _c, _d, _e, _f, _g$3, _h;
|
|
242
|
-
var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { chrome: __assign(__assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: __assign(__assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: __assign(__assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: __assign(__assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: __assign(__assign({}, (_h = (_g$3 = reactTheming.DEFAULT_THEME.components) === null || _g$3 === void 0 ? void 0 : _g$3.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) })
|
|
242
|
+
var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), { chrome: __assign(__assign({}, (_a = reactTheming.DEFAULT_THEME.components) === null || _a === void 0 ? void 0 : _a.chrome), { header: __assign(__assign({}, (_c = (_b = reactTheming.DEFAULT_THEME.components) === null || _b === void 0 ? void 0 : _b.chrome) === null || _c === void 0 ? void 0 : _c.header), { height: "64px" }), nav: __assign(__assign({}, (_e = (_d = reactTheming.DEFAULT_THEME.components) === null || _d === void 0 ? void 0 : _d.chrome) === null || _e === void 0 ? void 0 : _e.nav), { openWidth: 240, closedWidth: 36, workspaceDropdownWidth: 192 }) }), notification: __assign(__assign({}, (_f = reactTheming.DEFAULT_THEME.components) === null || _f === void 0 ? void 0 : _f.notification), { card: __assign(__assign({}, (_h = (_g$3 = reactTheming.DEFAULT_THEME.components) === null || _g$3 === void 0 ? void 0 : _g$3.notification) === null || _h === void 0 ? void 0 : _h.well), { padding: "16px" }) }), pageHeader: {
|
|
243
|
+
imgMaxHeight: "214px",
|
|
244
|
+
} });
|
|
243
245
|
|
|
244
246
|
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[400], accentHue: palette.water[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
245
247
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
export interface PageHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
}
|
|
4
|
+
export interface PageHeaderMainProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
infoTitle: string;
|
|
6
|
+
infoOverline?: string;
|
|
7
|
+
infoDescription?: string;
|
|
8
|
+
infoCounters?: Array<React.ReactNode>;
|
|
9
|
+
metaImage?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PageHeaderProps } from "./_types";
|
|
2
|
+
import { BreadcrumbArgs } from "../../breadcrumbs/_types";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
/**
|
|
5
|
+
* A PageHeader is a modular container used for pages with an opinionated set of default spaces and subcomponents order.
|
|
6
|
+
* <hr>
|
|
7
|
+
* Used for this:
|
|
8
|
+
- Display page informations and meta data
|
|
9
|
+
- As a container for the top part of the page
|
|
10
|
+
*/
|
|
11
|
+
declare const PageHeader: {
|
|
12
|
+
(props: PageHeaderProps): JSX.Element;
|
|
13
|
+
Breadcrumb: (props: BreadcrumbArgs) => JSX.Element;
|
|
14
|
+
Main: (props: import("./_types").PageHeaderMainProps) => JSX.Element;
|
|
15
|
+
Buttons: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export { PageHeader };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
|
+
import { PageHeaderMainProps } from "./_types";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface PageHeaderStoryProps {
|
|
5
|
+
pageHeaderArgs: {
|
|
6
|
+
buttons: Array<React.ReactNode>;
|
|
7
|
+
};
|
|
8
|
+
pageHeaderMainArgs: PageHeaderMainProps;
|
|
9
|
+
}
|
|
10
|
+
export declare const Default: Story<PageHeaderStoryProps>;
|
|
11
|
+
declare const _default: ComponentMeta<{
|
|
12
|
+
(props: import("./_types").PageHeaderProps): JSX.Element;
|
|
13
|
+
Breadcrumb: (props: import("../../breadcrumbs/_types").BreadcrumbArgs) => JSX.Element;
|
|
14
|
+
Main: (props: PageHeaderMainProps) => JSX.Element;
|
|
15
|
+
Buttons: (props: {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}) => JSX.Element;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|