@appquality/unguess-design-system 2.12.73 → 2.12.75

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,31 @@
1
+ # v2.12.75 (Wed Feb 22 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Grid [#212](https://github.com/AppQuality/unguess-design-system/pull/212) ([@marcbon](https://github.com/marcbon))
6
+ - fix(grid): set default gutter false [#211](https://github.com/AppQuality/unguess-design-system/pull/211) ([@marcbon](https://github.com/marcbon))
7
+
8
+ #### Authors: 1
9
+
10
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
11
+
12
+ ---
13
+
14
+ # v2.12.74 (Wed Feb 22 2023)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - 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))
19
+ - Un 532 page layout [#209](https://github.com/AppQuality/unguess-design-system/pull/209) ([@marcbon](https://github.com/marcbon))
20
+ - feat(Tag): add color prop and some default style [#208](https://github.com/AppQuality/unguess-design-system/pull/208) ([@iacopolea](https://github.com/iacopolea))
21
+
22
+ #### Authors: 2
23
+
24
+ - Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
25
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
26
+
27
+ ---
28
+
1
29
  # v2.12.73 (Thu Feb 09 2023)
2
30
 
3
31
  #### 🐛 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 Tag = (props) => jsxRuntime.jsx(reactTags.Tag, Object.assign({}, props));
604
- Tag.Avatar = reactTags.Tag.Avatar;
605
- Tag.Close = reactTags.Tag.Close;
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); }
@@ -2771,7 +2794,10 @@ const Row$1 = (props) => jsxRuntime.jsx(reactGrid.Row, Object.assign({}, props))
2771
2794
  * Used for this:
2772
2795
  - To structure the layout of a page
2773
2796
  */
2774
- const Grid = (props) => jsxRuntime.jsx(reactGrid.Grid, Object.assign({}, props));
2797
+ const Grid = (_a) => {
2798
+ var { gutters = false } = _a, props = __rest(_a, ["gutters"]);
2799
+ return (jsxRuntime.jsx(reactGrid.Grid, Object.assign({ gutters: gutters }, props)));
2800
+ };
2775
2801
 
2776
2802
  var _path$q;
2777
2803
  function _extends$t() { _extends$t = 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$t.apply(this, arguments); }
@@ -3750,7 +3776,6 @@ const MainContainer = styled__default["default"].div `
3750
3776
  width: 100%;
3751
3777
  `;
3752
3778
  const InformationContainer = styled__default["default"].div `
3753
- padding: ${({ theme }) => theme.space.xs}; 0;
3754
3779
  display: flex;
3755
3780
  align-items: flex-start;
3756
3781
  justify-content: center;
@@ -3815,28 +3840,15 @@ const Main = (props) => {
3815
3840
  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
3841
  };
3817
3842
 
3818
- const PageContainer = styled__default["default"].div `
3819
- background-color: ${({ theme }) => theme.palette.white};
3820
- `;
3821
3843
  const StyledPageHeader = styled__default["default"].div `
3822
3844
  display: flex;
3823
3845
  flex-direction: column;
3824
3846
  align-items: center;
3825
3847
  justify-content: center;
3826
3848
  width: 100%;
3827
- padding: ${({ theme }) => `${theme.space.xxl} ${theme.space.xxl} ${theme.space.md}`};
3849
+ padding: ${({ theme }) => theme.space.sm} 0;
3828
3850
  box-sizing: border-box;
3829
3851
  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
3852
  `;
3841
3853
  const PullLeft = styled__default["default"].div `
3842
3854
  display: flex;
@@ -3845,8 +3857,7 @@ const PullLeft = styled__default["default"].div `
3845
3857
  justify-content: flex-start;
3846
3858
  flex-wrap: wrap;
3847
3859
  width: 100%;
3848
- padding: ${({ theme }) => `${theme.space.xs} 10px`};
3849
- margin-bottom: ${({ theme }) => theme.space.xs};
3860
+ margin-bottom: ${({ theme }) => theme.space.sm};
3850
3861
  `;
3851
3862
  const ButtonContainer = styled__default["default"].div `
3852
3863
  display: flex;
@@ -3868,9 +3879,7 @@ const Buttons = (props) => (jsxRuntime.jsx(ButtonContainer, Object.assign({}, pr
3868
3879
  - Display page informations and meta data
3869
3880
  - As a container for the top part of the page
3870
3881
  */
3871
- const PageHeader = (props) => {
3872
- return (jsxRuntime.jsx(PageContainer, { children: jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props)) }));
3873
- };
3882
+ const PageHeader = (props) => jsxRuntime.jsx(StyledPageHeader, Object.assign({}, props));
3874
3883
  PageHeader.Breadcrumb = StyledBreadcrumb;
3875
3884
  PageHeader.Main = Main;
3876
3885
  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;
@@ -1,9 +1,9 @@
1
- import { GridArgs } from './_types';
1
+ import { GridArgs } from "./_types";
2
2
  /**
3
3
  * The Grid component is a framework for building modular layouts.
4
4
  * <hr>
5
5
  * Used for this:
6
6
  - To structure the layout of a page
7
7
  */
8
- declare const Grid: (props: GridArgs) => JSX.Element;
8
+ declare const Grid: ({ gutters, ...props }: GridArgs) => JSX.Element;
9
9
  export { Grid };
@@ -7,5 +7,5 @@ interface GridProps extends GridArgs {
7
7
  export declare const Default: Story<GridProps>;
8
8
  export declare const EqualColumns: Story<GridProps>;
9
9
  export declare const OneWiderColumn: Story<GridProps>;
10
- declare const _default: ComponentMeta<(props: GridArgs) => JSX.Element>;
10
+ declare const _default: ComponentMeta<({ gutters, ...props }: GridArgs) => JSX.Element>;
11
11
  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
- * Sets the color of the tag. Refer to
7
- * [PALETTE](/components/palette#palette)
8
- * for available colors. Accepts any hex value.
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.73",
3
+ "version": "2.12.75",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",