@appquality/unguess-design-system 2.12.73 → 2.12.74
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 +15 -0
- package/build/index.js +29 -23
- package/build/stories/counter/index.d.ts +2 -2
- package/build/stories/counter/index.stories.d.ts +2 -2
- package/build/stories/tags/_types.d.ts +10 -4
- package/build/stories/tags/index.d.ts +4 -15
- package/build/stories/tags/index.stories.d.ts +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# v2.12.74 (Wed Feb 22 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Tag colors & Page Header layout [#210](https://github.com/AppQuality/unguess-design-system/pull/210) ([@marcbon](https://github.com/marcbon) [@iacopolea](https://github.com/iacopolea))
|
|
6
|
+
- Un 532 page layout [#209](https://github.com/AppQuality/unguess-design-system/pull/209) ([@marcbon](https://github.com/marcbon))
|
|
7
|
+
- feat(Tag): add color prop and some default style [#208](https://github.com/AppQuality/unguess-design-system/pull/208) ([@iacopolea](https://github.com/iacopolea))
|
|
8
|
+
|
|
9
|
+
#### Authors: 2
|
|
10
|
+
|
|
11
|
+
- Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
|
|
12
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
1
16
|
# v2.12.73 (Thu Feb 09 2023)
|
|
2
17
|
|
|
3
18
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -600,9 +600,32 @@ const ContainerCard = (props) => jsxRuntime.jsx(UgContainerCard, Object.assign({
|
|
|
600
600
|
* Not for this:
|
|
601
601
|
- To prompt an action by the user, use a Button instead
|
|
602
602
|
*/
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
|
|
603
|
+
const StyledAvatar = styled__default["default"](reactTags.Tag.Avatar) ``;
|
|
604
|
+
const StyledClose = styled__default["default"](reactTags.Tag.Close) ``;
|
|
605
|
+
const StyledTag$4 = styled__default["default"](reactTags.Tag) `
|
|
606
|
+
${(p) => p.color &&
|
|
607
|
+
`
|
|
608
|
+
color: ${p.color};
|
|
609
|
+
${StyledClose} {
|
|
610
|
+
color: ${p.color};
|
|
611
|
+
}
|
|
612
|
+
&:hover {
|
|
613
|
+
color: ${p.color};
|
|
614
|
+
${StyledClose} {
|
|
615
|
+
color: ${p.color};
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
`}
|
|
619
|
+
${StyledAvatar} {
|
|
620
|
+
border-radius: 0%;
|
|
621
|
+
}
|
|
622
|
+
`;
|
|
623
|
+
const Tag = (_a) => {
|
|
624
|
+
var { isPill = true, hue = theme.palette.grey[200], color = theme.palette.grey[700] } = _a, props = __rest(_a, ["isPill", "hue", "color"]);
|
|
625
|
+
return (jsxRuntime.jsx(StyledTag$4, Object.assign({ isPill: props.isRound ? false : isPill, hue: hue, color: color }, props)));
|
|
626
|
+
};
|
|
627
|
+
Tag.Avatar = StyledAvatar;
|
|
628
|
+
Tag.Close = StyledClose;
|
|
606
629
|
|
|
607
630
|
var _g$7, _path$z;
|
|
608
631
|
function _extends$G() { _extends$G = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
@@ -3750,7 +3773,6 @@ const MainContainer = styled__default["default"].div `
|
|
|
3750
3773
|
width: 100%;
|
|
3751
3774
|
`;
|
|
3752
3775
|
const InformationContainer = styled__default["default"].div `
|
|
3753
|
-
padding: ${({ theme }) => theme.space.xs}; 0;
|
|
3754
3776
|
display: flex;
|
|
3755
3777
|
align-items: flex-start;
|
|
3756
3778
|
justify-content: center;
|
|
@@ -3815,28 +3837,15 @@ const Main = (props) => {
|
|
|
3815
3837
|
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 }) }) })))] }) }));
|
|
3816
3838
|
};
|
|
3817
3839
|
|
|
3818
|
-
const PageContainer = styled__default["default"].div `
|
|
3819
|
-
background-color: ${({ theme }) => theme.palette.white};
|
|
3820
|
-
`;
|
|
3821
3840
|
const StyledPageHeader = styled__default["default"].div `
|
|
3822
3841
|
display: flex;
|
|
3823
3842
|
flex-direction: column;
|
|
3824
3843
|
align-items: center;
|
|
3825
3844
|
justify-content: center;
|
|
3826
3845
|
width: 100%;
|
|
3827
|
-
padding: ${({ theme }) =>
|
|
3846
|
+
padding: ${({ theme }) => theme.space.sm} 0;
|
|
3828
3847
|
box-sizing: border-box;
|
|
3829
3848
|
border-bottom: 1px solid ${({ theme }) => theme.palette.grey[200]};
|
|
3830
|
-
|
|
3831
|
-
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
|
|
3832
|
-
padding: ${({ theme }) => `${theme.space.md} ${theme.space.md} ${theme.space.xs}`};
|
|
3833
|
-
}
|
|
3834
|
-
|
|
3835
|
-
max-width: ${({ theme }) => theme.breakpoints.xxl};
|
|
3836
|
-
|
|
3837
|
-
@media (min-width: ${({ theme }) => theme.breakpoints.xxl}) {
|
|
3838
|
-
margin: 0 auto;
|
|
3839
|
-
}
|
|
3840
3849
|
`;
|
|
3841
3850
|
const PullLeft = styled__default["default"].div `
|
|
3842
3851
|
display: flex;
|
|
@@ -3845,8 +3854,7 @@ const PullLeft = styled__default["default"].div `
|
|
|
3845
3854
|
justify-content: flex-start;
|
|
3846
3855
|
flex-wrap: wrap;
|
|
3847
3856
|
width: 100%;
|
|
3848
|
-
|
|
3849
|
-
margin-bottom: ${({ theme }) => theme.space.xs};
|
|
3857
|
+
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
3850
3858
|
`;
|
|
3851
3859
|
const ButtonContainer = styled__default["default"].div `
|
|
3852
3860
|
display: flex;
|
|
@@ -3868,9 +3876,7 @@ const Buttons = (props) => (jsxRuntime.jsx(ButtonContainer, Object.assign({}, pr
|
|
|
3868
3876
|
- Display page informations and meta data
|
|
3869
3877
|
- As a container for the top part of the page
|
|
3870
3878
|
*/
|
|
3871
|
-
const PageHeader = (props) => {
|
|
3872
|
-
return (jsxRuntime.jsx(PageContainer, { children: jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props)) }));
|
|
3873
|
-
};
|
|
3879
|
+
const PageHeader = (props) => jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props));
|
|
3874
3880
|
PageHeader.Breadcrumb = StyledBreadcrumb;
|
|
3875
3881
|
PageHeader.Main = Main;
|
|
3876
3882
|
PageHeader.Buttons = Buttons;
|
|
@@ -5,9 +5,9 @@ import { CounterArgs } from "./_types";
|
|
|
5
5
|
*/
|
|
6
6
|
declare const Counter: {
|
|
7
7
|
(props: CounterArgs): JSX.Element;
|
|
8
|
-
Avatar: {
|
|
8
|
+
Avatar: import("styled-components").StyledComponent<{
|
|
9
9
|
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
10
10
|
displayName: string;
|
|
11
|
-
}
|
|
11
|
+
}, any, {}, never>;
|
|
12
12
|
};
|
|
13
13
|
export { Counter };
|
|
@@ -7,9 +7,9 @@ interface TagStoryProps extends CounterArgs {
|
|
|
7
7
|
export declare const Default: Story<TagStoryProps>;
|
|
8
8
|
declare const _default: ComponentMeta<{
|
|
9
9
|
(props: CounterArgs): JSX.Element;
|
|
10
|
-
Avatar: {
|
|
10
|
+
Avatar: import("styled-components").StyledComponent<{
|
|
11
11
|
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
|
-
}
|
|
13
|
+
}, any, {}, never>;
|
|
14
14
|
}>;
|
|
15
15
|
export default _default;
|
|
@@ -3,11 +3,17 @@ export interface TagArgs extends ITagProps {
|
|
|
3
3
|
/** Adjusts font size and padding */
|
|
4
4
|
size?: 'small' | 'medium' | 'large';
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* Sets the color of the tag. Refer to
|
|
7
|
+
* [PALETTE](/components/palette#palette)
|
|
8
|
+
* for available colors. Accepts any hex value.
|
|
9
|
+
*/
|
|
10
10
|
hue?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Sets the color of the tag. Refer to
|
|
13
|
+
* [PALETTE](/components/palette#palette)
|
|
14
|
+
* for available colors. Accepts any hex value.
|
|
15
|
+
*/
|
|
16
|
+
color?: string;
|
|
11
17
|
/** Applies pill styling */
|
|
12
18
|
isPill?: boolean;
|
|
13
19
|
/** Applies styles to round the tag */
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TagArgs } from "./_types";
|
|
3
|
-
/**
|
|
4
|
-
* Tags let users categorize content using a keyword.
|
|
5
|
-
|
|
6
|
-
* Used for this:
|
|
7
|
-
- To add metadata to an element such as category, attribute, or property
|
|
8
|
-
- To communicate status
|
|
9
|
-
- To represent parameters of a filter
|
|
10
|
-
|
|
11
|
-
* Not for this:
|
|
12
|
-
- To prompt an action by the user, use a Button instead
|
|
13
|
-
*/
|
|
14
3
|
declare const Tag: {
|
|
15
|
-
(props: TagArgs): JSX.Element;
|
|
16
|
-
Avatar: {
|
|
4
|
+
({ isPill, hue, color, ...props }: TagArgs): JSX.Element;
|
|
5
|
+
Avatar: import("styled-components").StyledComponent<{
|
|
17
6
|
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
18
7
|
displayName: string;
|
|
19
|
-
}
|
|
20
|
-
Close: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement
|
|
8
|
+
}, any, {}, never>;
|
|
9
|
+
Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
21
10
|
};
|
|
22
11
|
export { Tag };
|
|
@@ -9,11 +9,11 @@ export declare const Default: Story<TagStoryProps>;
|
|
|
9
9
|
export declare const Avatar: Story<TagStoryProps>;
|
|
10
10
|
export declare const Close: Story<TagStoryProps>;
|
|
11
11
|
declare const _default: ComponentMeta<{
|
|
12
|
-
(props: TagArgs): JSX.Element;
|
|
13
|
-
Avatar: {
|
|
12
|
+
({ isPill, hue, color, ...props }: TagArgs): JSX.Element;
|
|
13
|
+
Avatar: import("styled-components").StyledComponent<{
|
|
14
14
|
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
|
-
}
|
|
17
|
-
Close: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement
|
|
16
|
+
}, any, {}, never>;
|
|
17
|
+
Close: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
18
18
|
}>;
|
|
19
19
|
export default _default;
|