@appquality/unguess-design-system 2.10.2 → 2.10.3

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,15 @@
1
+ # v2.10.3 (Tue May 03 2022)
2
+
3
+ #### ⚠️ Pushed to `master`
4
+
5
+ - fix(drawers): remove duplicated component ([@cannarocks](https://github.com/cannarocks))
6
+
7
+ #### Authors: 1
8
+
9
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
10
+
11
+ ---
12
+
1
13
  # v2.10.2 (Tue May 03 2022)
2
14
 
3
15
  #### ⚠️ Pushed to `master`
package/build/index.d.ts CHANGED
@@ -10,9 +10,9 @@ export * from "./stories/buttons/split-button";
10
10
  export * from "./stories/cards";
11
11
  export * from "./stories/campaign-cards";
12
12
  export * from "./stories/product-cards";
13
- export * from "./stories/drawers";
14
13
  export * from "./stories/close";
15
14
  export * from "./stories/counter";
15
+ export * from "./stories/drawers";
16
16
  export * as DropdownField from "./stories/dropdowns/field";
17
17
  export * from "./stories/dropdowns/item";
18
18
  export * from "./stories/dropdowns/menu";
package/build/index.js CHANGED
@@ -768,13 +768,6 @@ var ProductCard = function (props) {
768
768
  };
769
769
  var templateObject_1$N, templateObject_2$f, templateObject_3$a, templateObject_4$6, templateObject_5$3, templateObject_6$1, templateObject_7, templateObject_8;
770
770
 
771
- var Drawer = function (props) { return jsxRuntime.jsx(reactModals.DrawerModal, __assign({}, props)); };
772
- Drawer.Header = reactModals.DrawerModal.Header;
773
- Drawer.Body = reactModals.DrawerModal.Body;
774
- Drawer.Footer = reactModals.DrawerModal.Footer;
775
- Drawer.FooterItem = reactModals.DrawerModal.FooterItem;
776
- Drawer.Close = reactModals.DrawerModal.Close;
777
-
778
771
  /**
779
772
  * Title is a basic component used to display a title. Often used in card headers.
780
773
  */
@@ -1017,6 +1010,20 @@ var Counter = function (props) {
1017
1010
  Counter.Avatar = StyledTag.Avatar;
1018
1011
  var templateObject_1$M;
1019
1012
 
1013
+ /**
1014
+ * A Drawer is a container for supplementary content that is anchored to the edge of a page.
1015
+ * <hr>
1016
+ * Used for this:
1017
+ - To display information or actions that are supplementary to the screen’s primary content
1018
+ - To display a list of actions that affect the screen’s content, such as filtering data
1019
+ */
1020
+ var Drawer = function (props) { return jsxRuntime.jsx(reactModals.DrawerModal, __assign({}, props)); };
1021
+ Drawer.Header = reactModals.DrawerModal.Header;
1022
+ Drawer.Body = reactModals.DrawerModal.Body;
1023
+ Drawer.Footer = reactModals.DrawerModal.Footer;
1024
+ Drawer.FooterItem = reactModals.DrawerModal.FooterItem;
1025
+ Drawer.Close = reactModals.DrawerModal.Close;
1026
+
1020
1027
  var Field$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$L || (templateObject_1$L = __makeTemplateObject([""], [""])));
1021
1028
  var templateObject_1$L;
1022
1029
 
@@ -1,5 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { DrawerArgs } from "./_types";
3
+ /**
4
+ * A Drawer is a container for supplementary content that is anchored to the edge of a page.
5
+ * <hr>
6
+ * Used for this:
7
+ - To display information or actions that are supplementary to the screen’s primary content
8
+ - To display a list of actions that affect the screen’s content, such as filtering data
9
+ */
3
10
  declare const Drawer: {
4
11
  (props: DrawerArgs): JSX.Element;
5
12
  Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",
@@ -1,30 +0,0 @@
1
- import { IDrawerModalProps } from "@zendeskgarden/react-modals";
2
- import { KeyboardEvent, MouseEvent } from "react";
3
- export interface DrawerArgs extends IDrawerModalProps {
4
- /**
5
- * Opens the modal
6
- */
7
- isOpen?: boolean;
8
- /**
9
- * Passes HTML attributes to the backdrop element
10
- */
11
- backdropProps?: any;
12
- /**
13
- * Handles close actions. Can be triggered from the backdrop and from the close icon.
14
- *
15
- * @param {Object} event The DOM event that triggered the close action
16
- */
17
- onClose?: (event: KeyboardEvent | MouseEvent) => void;
18
- /**
19
- * Defines the DOM element that the modal will attatch to
20
- */
21
- appendToNode?: Element;
22
- /**
23
- * Directs keyboard focus to the modal on mount
24
- */
25
- focusOnMount?: boolean;
26
- /**
27
- * Returns keyboard focus to the element that triggered the modal
28
- */
29
- restoreFocus?: boolean;
30
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { DrawerArgs } from "./_types";
3
- declare const Drawer: {
4
- (props: DrawerArgs): JSX.Element;
5
- Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
6
- Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
- Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
8
- FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
9
- Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
10
- };
11
- export { Drawer };
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { DrawerArgs } from "./_types";
3
- import { ComponentMeta, Story } from "@storybook/react";
4
- export declare const Default: Story<DrawerArgs>;
5
- declare const _default: ComponentMeta<{
6
- (props: DrawerArgs): JSX.Element;
7
- Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
8
- Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
9
- Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
10
- FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
11
- Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
12
- }>;
13
- export default _default;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const LoremIpsum: () => JSX.Element;