@croquiscom/pds 0.24.2 → 0.24.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.
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { InputStatus } from './types';
3
- import { CSSValueWithLength } from '../styles/buildCSSWithLength';
3
+ import { CSSValueWithLength } from '../styles';
4
4
  export interface InputAffixProps {
5
5
  className?: string;
6
6
  disabled?: boolean;
@@ -21,6 +21,10 @@ export interface MessageContainerProps {
21
21
  * @default 6
22
22
  */
23
23
  max_count?: number;
24
+ /**
25
+ * @default 'toast'일 경우 1050, 'notification'일 경우 1040
26
+ */
27
+ z_index?: number;
24
28
  }
25
29
  declare type MessageContainerKey = `${MessagePosition}_${number}_${number}`;
26
30
  declare type MessageComponentTypes = ToastComponentProps | NotificationComponentProps;
@@ -28,14 +32,16 @@ export declare type MessageOptions<T extends MessageComponentTypes> = Omit<T, 'd
28
32
  export declare class MessageManager<T extends MessageComponentTypes> {
29
33
  private container;
30
34
  private component;
35
+ private z_index;
31
36
  private default_max_count;
32
37
  private default_offset;
33
38
  private default_position;
34
39
  private container_keys;
35
40
  private messages;
36
- constructor({ component, container_id, default_max_count, default_offset, default_position, }: {
41
+ constructor({ component, container_id, z_index, default_max_count, default_offset, default_position, }: {
37
42
  component: FunctionComponent<T>;
38
- container_id: string;
43
+ container_id: 'notification' | 'toast';
44
+ z_index?: number;
39
45
  default_max_count?: number;
40
46
  default_offset?: number;
41
47
  default_position?: MessagePosition;
@@ -10,7 +10,9 @@ export interface PopoverProps {
10
10
  className?: string;
11
11
  children: ReactNode;
12
12
  content: PopoverContent | PopoverWithCloseAction;
13
- /** @default 101 */
13
+ /** @default false */
14
+ noUsePortal?: boolean;
15
+ /** @default 1060 */
14
16
  zIndex?: number;
15
17
  /** 미지정인경우 자동 배치 처리됩니다. */
16
18
  placement?: Placement;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { SizeProps, SpaceProps } from '../styles';
3
- import { CSSValueWithLength } from '../styles/buildCSSWithLength';
3
+ import { CSSValueWithLength } from '../styles';
4
4
  export declare type StackAlignment = 'stretch' | 'flex-start' | 'center' | 'flex-end';
5
5
  export interface StackProps extends SizeProps, SpaceProps {
6
6
  className?: string;
@@ -2,3 +2,5 @@ export * from './common';
2
2
  export * from './size';
3
3
  export * from './space';
4
4
  export * from './placement';
5
+ export * from './zIndex';
6
+ export * from './buildCSSWithLength';
@@ -0,0 +1,12 @@
1
+ declare const ZIndexOrder: {
2
+ readonly bottomSheet: 1010;
3
+ readonly modal: 1020;
4
+ readonly dropdown: 1030;
5
+ readonly notification: 1040;
6
+ readonly toast: 1050;
7
+ readonly popover: 1060;
8
+ readonly tooltip: 1070;
9
+ };
10
+ export declare type ZIndexOrder = keyof typeof ZIndexOrder;
11
+ export declare function getZIndex(order: ZIndexOrder): 1010 | 1020 | 1030 | 1040 | 1050 | 1060 | 1070;
12
+ export {};
@@ -16,7 +16,7 @@ export interface TooltipProps extends TooltipBaseProps {
16
16
  openerTriggerEvent?: OpenerTriggerEvent;
17
17
  /** @default top */
18
18
  placement?: Placement;
19
- /** @default 101 */
19
+ /** @default 1070 */
20
20
  zIndex?: number;
21
21
  /** @default false */
22
22
  noUsePortal?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croquiscom/pds",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "description": "Design system for Zigzag's Partner Center",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.es.js",