@croquiscom/pds 15.1.1-next.0 → 15.1.1-next.2

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,5 +1,17 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 15.1.1-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - type 변경점 제거
8
+
9
+ ## 15.1.1-next.1
10
+
11
+ ### Patch Changes
12
+
13
+ - toast type 변경
14
+
3
15
  ## 15.1.1-next.0
4
16
 
5
17
  ### Patch Changes
@@ -47,4 +47,4 @@ export declare const ConfirmModal: ({ title, kind, width, zIndex, dense, fill, t
47
47
  export declare const StyledText: import("@emotion/styled").StyledComponent<(import("../text").BaseTextProps & (React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> | React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>)) & {
48
48
  theme?: import("@emotion/react").Theme | undefined;
49
49
  }, {}, {}>;
50
- export declare const Confirm: (properties: ConfirmModalProps) => Promise<boolean | undefined>;
50
+ export declare const Confirm: (properties: ConfirmModalProps) => Promise<boolean>;
@@ -1,3 +1,8 @@
1
- import { MessageManager } from '../message';
1
+ import { MessageContainerKey, MessageOptions } from '../message';
2
2
  import { NotificationComponentProps } from './Notification';
3
- export declare function useNotification(): MessageManager<NotificationComponentProps> | null;
3
+ interface NotificationType {
4
+ show: (props: MessageOptions<NotificationComponentProps>) => void;
5
+ destroy: (id: string, key?: MessageContainerKey) => void;
6
+ }
7
+ export declare function useNotification(): NotificationType;
8
+ export {};
@@ -4,7 +4,7 @@ import { RadioSizeUnion, DefaultRadioSizeUnion } from './types';
4
4
  export type AlignType = 'horizontal' | 'vertical';
5
5
  export type RadioItemType = 'default' | 'box';
6
6
  export type RadioWidthType = 'fill' | 'auto';
7
- export interface RadioCategoryType<T extends RadioItemType> {
7
+ export interface RadioCategoryType<T> {
8
8
  radioItemType?: T;
9
9
  /**
10
10
  * radioItmType - default일 경우 'medium', 'large'만 적용되며 default값은 'medium'입니다.
@@ -18,7 +18,7 @@ export interface RadioItem<RadioValue> {
18
18
  value: RadioValue;
19
19
  disabled?: boolean;
20
20
  }
21
- export interface RadioGroupProps<RadioValue, T extends RadioItemType> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'>, AriaFocusProps, RadioCategoryType<T> {
21
+ export interface RadioGroupProps<RadioValue> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'>, AriaFocusProps, RadioCategoryType<RadioItemType> {
22
22
  className?: string;
23
23
  defaultValue?: RadioValue;
24
24
  value?: RadioValue;
@@ -47,6 +47,6 @@ export interface RadioGroupInstance<RadioValue> {
47
47
  value?: RadioValue;
48
48
  focus: () => void;
49
49
  }
50
- export declare const RadioGroup: <RadioValue>(props: RadioGroupProps<RadioValue, RadioItemType> & {
50
+ export declare const RadioGroup: <RadioValue>(props: RadioGroupProps<RadioValue> & {
51
51
  ref?: React.Ref<RadioGroupInstance<RadioValue>> | undefined;
52
52
  }) => React.ReactElement;
@@ -2,7 +2,7 @@ import React, { PropsWithChildren } from 'react';
2
2
  export type TabWidth = 'fill' | 'auto';
3
3
  export interface LineTabsContextProps {
4
4
  width?: TabWidth;
5
- activeTabId: string;
5
+ activeTabId?: string;
6
6
  onChange?: (id: string) => void;
7
7
  }
8
8
  export declare const LineTabContext: React.Context<LineTabsContextProps | null>;
@@ -25,7 +25,7 @@ export interface LineTabsProps {
25
25
  * @default true
26
26
  */
27
27
  horizontalPadding?: boolean;
28
- activeTabId: string;
28
+ activeTabId?: string;
29
29
  onChange?: (id: string) => void;
30
30
  }
31
31
  export declare const LineTabs: ({ className, children, dense, horizontalPadding, width, activeTabId, onChange, }: PropsWithChildren<LineTabsProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React, { PropsWithChildren, ReactNode } from 'react';
2
2
  export interface PanelTabsContextProps {
3
- activeTabId: string;
3
+ activeTabId?: string;
4
4
  onChange?: (id: string) => void;
5
5
  }
6
6
  export declare const PanelTabContext: React.Context<PanelTabsContextProps | null>;
@@ -13,7 +13,7 @@ export interface TabsProps {
13
13
  export interface PanelTabsProps {
14
14
  divider?: boolean;
15
15
  className?: string;
16
- activeTabId: string;
16
+ activeTabId?: string;
17
17
  onChange?: (id: string) => void;
18
18
  }
19
19
  export declare const PanelTabs: ({ divider, children, className, activeTabId, onChange, }: PropsWithChildren<PanelTabsProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -4,9 +4,6 @@ interface ToastShowProps extends MessageOptions<ToastComponentProps> {
4
4
  root?: HTMLElement | null;
5
5
  }
6
6
  export declare function useToast(): {
7
- show: undefined;
8
- destroy: undefined;
9
- } | {
10
7
  show(props: ToastShowProps): void;
11
8
  destroy(id: string, key?: MessageContainerKey): void;
12
9
  };