@croquiscom/pds 0.18.0 → 0.18.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.
@@ -1,6 +1,14 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { MessageManager, MessagePosition } from '../message';
2
+ import { MessageManager } from '../message';
3
3
  export declare type NotificationType = 'info' | 'success' | 'error' | 'warning';
4
+ export declare const NotificationPosition: {
5
+ readonly TOP_RIGHT: "top-right";
6
+ readonly TOP_CENTER: "top-center";
7
+ readonly BOTTOM_RIGHT: "bottom-right";
8
+ readonly BOTTOM_CENTER: "bottom-center";
9
+ readonly CENTER: "center";
10
+ };
11
+ export declare type NotificationPosition = typeof NotificationPosition[keyof typeof NotificationPosition];
4
12
  export interface NotificationComponentProps {
5
13
  id?: string;
6
14
  /** @default info */
@@ -17,7 +25,7 @@ export interface NotificationComponentProps {
17
25
  onClose?: () => void;
18
26
  onClickLink?: () => void;
19
27
  destroy: () => void;
20
- position: MessagePosition;
28
+ position: NotificationPosition;
21
29
  }
22
30
  export declare const NotificationComponent: React.FC<NotificationComponentProps>;
23
31
  export declare const Notification: MessageManager<NotificationComponentProps>;
@@ -1,4 +1,3 @@
1
- import { NotificationType } from './Notification';
2
- import { MessagePosition } from '../message';
1
+ import { NotificationType, NotificationPosition } from './Notification';
3
2
  export declare const notification_type_css: Record<NotificationType, string>;
4
- export declare const notification_hide_animation: (position: MessagePosition) => import("@emotion/serialize").Keyframes;
3
+ export declare const notification_hide_animation: (position: NotificationPosition) => import("@emotion/serialize").Keyframes;
@@ -2,6 +2,14 @@ import React, { ReactNode } from 'react';
2
2
  import { MessageManager } from '../message';
3
3
  export declare type ToastSize = 'large' | 'medium';
4
4
  export declare type ToastVariant = 'info' | 'success' | 'error';
5
+ export declare const ToastPosition: {
6
+ readonly TOP_RIGHT: "top-right";
7
+ readonly TOP_CENTER: "top-center";
8
+ readonly BOTTOM_RIGHT: "bottom-right";
9
+ readonly BOTTOM_CENTER: "bottom-center";
10
+ readonly CENTER: "center";
11
+ };
12
+ export declare type ToastPosition = typeof ToastPosition[keyof typeof ToastPosition];
5
13
  export interface ToastComponentProps {
6
14
  id?: string;
7
15
  content: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croquiscom/pds",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "Design system for Zigzag's Partner Center",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.es.js",