@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.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/divider/Divider.d.ts +1 -1
- package/dist/dropdown/Dropdown.d.ts +4 -2
- package/dist/dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/dropdown/DropdownInput.d.ts +1 -1
- package/dist/dropdown/DropdownInput.stories.d.ts +1 -1
- package/dist/dropdown/DropdownLabel.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/input/InputAffix.d.ts +1 -1
- package/dist/message/MessageManager.d.ts +8 -2
- package/dist/popover/Popover.d.ts +3 -1
- package/dist/stack/types.d.ts +1 -1
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/zIndex.d.ts +12 -0
- package/dist/tooltip/Tooltip.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { InputStatus } from './types';
|
|
3
|
-
import { CSSValueWithLength } from '../styles
|
|
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:
|
|
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
|
|
13
|
+
/** @default false */
|
|
14
|
+
noUsePortal?: boolean;
|
|
15
|
+
/** @default 1060 */
|
|
14
16
|
zIndex?: number;
|
|
15
17
|
/** 미지정인경우 자동 배치 처리됩니다. */
|
|
16
18
|
placement?: Placement;
|
package/dist/stack/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SizeProps, SpaceProps } from '../styles';
|
|
3
|
-
import { CSSValueWithLength } from '../styles
|
|
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;
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -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
|
|
19
|
+
/** @default 1070 */
|
|
20
20
|
zIndex?: number;
|
|
21
21
|
/** @default false */
|
|
22
22
|
noUsePortal?: boolean;
|