@idea-fragments/react-components-zendesk 0.1.30 → 0.1.32

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.
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { ModalContent, ModalProps } from "components/Modal";
2
+ import { ModalProps } from "components/Modal";
3
3
  declare const _default: {
4
4
  title: string;
5
5
  component: ({ isVisible, closeModal, disableActions, modalContent, className, }: {
6
6
  isVisible: boolean;
7
7
  closeModal: () => void;
8
8
  disableActions: boolean;
9
- modalContent: ModalContent | null | undefined;
9
+ modalContent: import("components/Modal").ModalContent | null | undefined;
10
10
  } & import("./StyledComponentProps.type").StyledComponentProps) => JSX.Element | null;
11
11
  argTypes: {};
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../src/components/Modal.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAS,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;;;;;;;;;;AAGlE,wBAIC;AA0BD,eAAO,MAAM,OAAO,0CAxBkC,UAAU,gBAwB3B,CAAA"}
1
+ {"version":3,"file":"Modal.stories.d.ts","sourceRoot":"","sources":["../../src/components/Modal.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,UAAU,EACX,MAA+B,kBAAkB,CAAA;;;;;;;;;;;AAGlD,wBAIC;AA0BD,eAAO,MAAM,OAAO,0CAxBkC,UAAU,gBAwB3B,CAAA"}
@@ -1,13 +1,16 @@
1
1
  import { ReactNode } from "react";
2
+ import { CSSProp } from "styles/types";
2
3
  declare type Props = {
3
4
  children: ReactNode;
4
5
  className?: string;
5
6
  disableNextButton?: boolean;
6
7
  disablePreviousButton?: boolean;
7
8
  inline?: boolean;
9
+ onEndClick?: () => void;
8
10
  onNextClick: () => void;
9
11
  onPreviousClick: () => void;
10
- };
11
- export declare let Carousel: ({ children, className, disableNextButton, disablePreviousButton, inline, onNextClick, onPreviousClick, }: Props) => JSX.Element;
12
+ onStartClick?: () => void;
13
+ } & CSSProp;
14
+ export declare let Carousel: ({ children, className, disableNextButton, disablePreviousButton, inline, onEndClick, onNextClick, onPreviousClick, onStartClick, }: Props) => JSX.Element;
12
15
  export {};
13
16
  //# sourceMappingURL=Carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Carousel.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,SAAS,EAAE,MAAiB,OAAO,CAAA;AAGnD,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAA;AAED,eAAO,IAAI,QAAQ,6GAQO,KAAK,gBAY9B,CAAA"}
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/layout/Carousel.tsx"],"names":[],"mappings":"AAQA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAe,cAAc,CAAA;AAE/C,aAAK,KAAK,GAAG;IACE,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,GAAG,OAAO,CAAA;AAExB,eAAO,IAAI,QAAQ,uIAUO,KAAK,gBAqC9B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import React, { FC, ReactNode } from "react";
2
2
  import { UserFeedbackProps } from "styles/UserFeedbackProps";
3
3
  declare type Props = {
4
4
  body: ReactNode;
@@ -6,6 +6,19 @@ declare type Props = {
6
6
  title?: string;
7
7
  onClose?: () => void;
8
8
  } & UserFeedbackProps;
9
+ export declare type NotificationProps = Props;
9
10
  export declare const Notification: FC<Props>;
11
+ export declare const ToastProvider: {
12
+ ({ limit, zIndex, placementProps, children }: React.PropsWithChildren<import("@zendeskgarden/react-notifications").IToastProviderProps>): JSX.Element;
13
+ displayName: string;
14
+ defaultProps: {
15
+ limit: number;
16
+ };
17
+ propTypes: {
18
+ limit: import("prop-types").Requireable<number>;
19
+ zIndex: import("prop-types").Requireable<number>;
20
+ placementProps: import("prop-types").Requireable<object>;
21
+ };
22
+ };
10
23
  export {};
11
24
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/notification/Notification.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAU,OAAO,CAAA;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,iBAAiB,CAAA;AAErB,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CA6BlC,CAAA"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/notification/Notification.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EACZ,EAAE,EACF,SAAS,EACV,MAAiC,OAAO,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,aAAK,KAAK,GAAG;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,iBAAiB,CAAA;AAElC,oBAAY,iBAAiB,GAAG,KAAK,CAAA;AAErC,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CA6BlC,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Filters.d.ts","sourceRoot":"","sources":["../../../src/components/tables/Filters.tsx"],"names":[],"mappings":"AAWA,OAAO,EAGL,UAAU,EACX,MAA2C,yBAAyB,CAAA;AAErE,OAAc,EACZ,EAAE,EAIH,MAA2C,OAAO,CAAA;AAOnD,oBAAY,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,GAAG,aAAa,GAAG,iBAAiB,CAAC,CAAC,CAAA;AAQ1G,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAqFpC,CAAA"}
1
+ {"version":3,"file":"Filters.d.ts","sourceRoot":"","sources":["../../../src/components/tables/Filters.tsx"],"names":[],"mappings":"AAUA,OAAO,EAGL,UAAU,EACX,MAA2C,yBAAyB,CAAA;AAErE,OAAc,EACZ,EAAE,EAIH,MAA2C,OAAO,CAAA;AAOnD,oBAAY,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,GAAG,aAAa,GAAG,iBAAiB,CAAC,CAAC,CAAA;AAQ1G,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAqFpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/tables/Table.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,mBAAmB,EAKpB,MAAkC,yBAAyB,CAAA;;;;;;;;;;AAI5D,wBAIC;AAqCD,eAAO,MAAM,OAAO,SAnCC,QAAQ,mBAAmB,CAAC,gBAmCZ,CAAA"}
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/tables/Table.stories.tsx"],"names":[],"mappings":";AAGA,OAAO,EAEL,mBAAmB,EAKpB,MAAkC,yBAAyB,CAAA;;;;;;;;;;AAI5D,wBAIC;AA0CD,eAAO,MAAM,OAAO,SAxCC,QAAQ,mBAAmB,CAAC,gBAwCZ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/tables/blocks/Pagination.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAO,yBAAyB,CAAA;AAKzD,aAAK,KAAK,GAAG,cAAc,GAAG;IAC5B,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,UAAU,kDAKO,KAAK,uBAmElC,CAAA"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/tables/blocks/Pagination.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AASxD,aAAK,KAAK,GAAG,cAAc,GAAG;IAC5B,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,UAAU,kDAKO,KAAK,uBAsElC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/tags/Tag.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,KAAK,wMAEjB,CAAA;AAED,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,QAAQ,EAAE,GAAG,GAAG,OAAO,KAAK,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;qBAEf,CAAA"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/tags/Tag.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,KAAK,wMAEjB,CAAA;AAED,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,QAAQ,EAAE,GAAG,GAAG,OAAO,KAAK,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,GAAG;;;;;;qBAIf,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { NotificationProps } from "components/notification/Notification";
2
+ export declare type Return = {
3
+ notify: (props: NotificationProps) => void;
4
+ };
5
+ export declare const useToastNotifier: () => Return;
6
+ //# sourceMappingURL=useToastNotifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useToastNotifier.d.ts","sourceRoot":"","sources":["../../src/hooks/useToastNotifier.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAClB,MAA2B,sCAAsC,CAAA;AAGlE,oBAAY,MAAM,GAAG;IACnB,MAAM,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC3C,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,MAQnC,CAAA"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { NotificationProps } from "components/notification/Notification";
3
+ declare const _default: {
4
+ title: string;
5
+ component: () => import("hooks/useToastNotifier").Return;
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Default: (args: Partial<NotificationProps>) => JSX.Element;
10
+ export declare const Danger: (args: Partial<NotificationProps>) => JSX.Element;
11
+ export declare const Info: (args: Partial<NotificationProps>) => JSX.Element;
12
+ export declare const Success: (args: Partial<NotificationProps>) => JSX.Element;
13
+ export declare const Warning: (args: Partial<NotificationProps>) => JSX.Element;
14
+ //# sourceMappingURL=useToastNotifier.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useToastNotifier.stories.d.ts","sourceRoot":"","sources":["../../src/hooks/useToastNotifier.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,iBAAiB,EAElB,MAAgC,sCAAsC,CAAA;;;;;;AAIvE,wBAIC;AAqBD,eAAO,MAAM,OAAO,SAnBC,QAAQ,iBAAiB,CAAC,gBAmBV,CAAA;AAIrC,eAAO,MAAM,MAAM,SAvBE,QAAQ,iBAAiB,CAAC,gBAuBX,CAAA;AAIpC,eAAO,MAAM,IAAI,SA3BI,QAAQ,iBAAiB,CAAC,gBA2Bb,CAAA;AAIlC,eAAO,MAAM,OAAO,SA/BC,QAAQ,iBAAiB,CAAC,gBA+BV,CAAA;AAIrC,eAAO,MAAM,OAAO,SAnCC,QAAQ,iBAAiB,CAAC,gBAmCV,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idea-fragments/react-components-zendesk",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"