@appquality/unguess-design-system 2.5.0 → 2.5.1

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,20 @@
1
+ # v2.5.1 (Thu Mar 24 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - feat(counter): add Counter component [#25](https://github.com/AppQuality/unguess-design-system/pull/25) ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### ⚠️ Pushed to `master`
8
+
9
+ - fix(navigation): export Chrome component ([@cannarocks](https://github.com/cannarocks))
10
+ - build(chromatic): add delay to prevent blank snapshot ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ #### Authors: 1
13
+
14
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
15
+
16
+ ---
17
+
1
18
  # v2.5.0 (Thu Mar 24 2022)
2
19
 
3
20
  #### 🚀 Enhancement
package/build/index.d.ts CHANGED
@@ -40,6 +40,7 @@ export * from './stories/navigation/main';
40
40
  export * from './stories/navigation/nav';
41
41
  export * from './stories/navigation/nav/nav-item';
42
42
  export * from './stories/navigation/sidebar';
43
+ export * from './stories/navigation/chrome';
43
44
  export * from './stories/notifications';
44
45
  export * from './stories/pagination';
45
46
  export { Table, Head as TableHead, HeaderRow, HeaderCell, Body as TableRow, Cell as TableCell, GroupRow, Caption } from './stories/table';
package/build/index.js CHANGED
@@ -774,7 +774,7 @@ var templateObject_1$c;
774
774
  */
775
775
  var Main = function (props) { return jsxRuntime.jsx(reactChrome.Main, __assign({}, props)); };
776
776
 
777
- var UgNav = styled__default["default"](reactChrome.Nav)(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n"], ["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n"])), function (_a) {
777
+ var UgNav = styled__default["default"](reactChrome.Nav)(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n padding-left: ", ";\n"], ["\n border-right: ", ";\n border-color: ", ";\n ", "\n ", "\n transition: width 0.25s ease-in-out;\n padding-top: ", ";\n padding-left: ", ";\n"])), function (_a) {
778
778
  var theme = _a.theme;
779
779
  return theme.borders.sm;
780
780
  }, function (_a) {
@@ -785,6 +785,9 @@ var UgNav = styled__default["default"](reactChrome.Nav)(templateObject_1$b || (t
785
785
  }, function (_a) {
786
786
  var theme = _a.theme;
787
787
  return theme.space.sm;
788
+ }, function (_a) {
789
+ var theme = _a.theme;
790
+ return theme.space.xs;
788
791
  });
789
792
  /**
790
793
  * The Nav component provides a high-level layout structure and sets a framework for navigating around dashboards.
@@ -1002,6 +1005,14 @@ var Sidebar = function (props) {
1002
1005
  };
1003
1006
  var templateObject_1$5;
1004
1007
 
1008
+ /**
1009
+ * The Chrome component provides a high-level layout structure and sets a framework for navigating around Zendesk products.
1010
+ * <br>
1011
+ * Used for this:
1012
+ - To give a consistent dashboard and navigation experience
1013
+ */
1014
+ var Chrome = function (props) { return jsxRuntime.jsx(reactChrome.Chrome, __assign({}, props)); };
1015
+
1005
1016
  /**
1006
1017
  * A Notification is a passive status update that keeps users informed of system progress.
1007
1018
  * <hr>
@@ -1139,6 +1150,7 @@ exports.ButtonGroup = ButtonGroup;
1139
1150
  exports.Caption = Caption;
1140
1151
  exports.Card = Card;
1141
1152
  exports.Checkbox = Checkbox;
1153
+ exports.Chrome = Chrome;
1142
1154
  exports.Close = Close;
1143
1155
  exports.Code = Code;
1144
1156
  exports.Col = Col;
@@ -0,0 +1,5 @@
1
+ import { TagArgs } from "../tags/_types";
2
+ export interface CounterArgs extends TagArgs {
3
+ status: "progress" | "completed" | "incoming" | "functional" | "experiential";
4
+ counter: number;
5
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { CounterArgs } from "./_types";
3
+ /**
4
+ * Counter let users categorize content using a keyword.
5
+ */
6
+ declare const Counter: {
7
+ (props: CounterArgs): JSX.Element;
8
+ Avatar: {
9
+ (props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
10
+ displayName: string;
11
+ };
12
+ };
13
+ export { Counter };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { CounterArgs } from "./_types";
4
+ interface TagStoryProps extends CounterArgs {
5
+ hasAvatar: boolean;
6
+ }
7
+ export declare const Default: Story<TagStoryProps>;
8
+ declare const _default: ComponentMeta<{
9
+ (props: CounterArgs): JSX.Element;
10
+ Avatar: {
11
+ (props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
12
+ displayName: string;
13
+ };
14
+ }>;
15
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/react-accordions": "^8.49.0",
6
6
  "@zendeskgarden/react-avatars": "^8.49.0",