@croquiscom/pds 5.1.0 → 5.2.0

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,11 @@
1
1
  # @croquiscom/pds
2
2
 
3
+ ## 5.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1668561: PanelTab 컴포넌트 추가
8
+
3
9
  ## 5.1.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,13 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface PanelTabProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
3
+ id: string;
4
+ onClick?: (id: string) => void;
5
+ title: string;
6
+ number: number;
7
+ suffix: string;
8
+ helperIcon?: (icon: ReactNode) => JSX.Element;
9
+ highlight?: boolean;
10
+ caption?: string;
11
+ disabled?: boolean;
12
+ }
13
+ export declare const PanelTab: ({ id, onClick, className, caption, highlight, helperIcon, suffix, title, number, disabled, ...props }: PanelTabProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ id, onClick, className, caption, highlight, helperIcon, suffix, title, number, disabled, ...props }: import("./PanelTab").PanelTabProps) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export interface PanelTabGroupProps {
3
+ title?: string;
4
+ important?: boolean;
5
+ className?: string;
6
+ }
7
+ export declare const PanelTabGroup: ({ title, important, className, children }: PropsWithChildren<PanelTabGroupProps>) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ title, important, className, children }: React.PropsWithChildren<import("./PanelTabGroup").PanelTabGroupProps>) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
6
+ export declare const Scroll: any;
@@ -0,0 +1,19 @@
1
+ import React, { PropsWithChildren, ReactNode } from 'react';
2
+ export interface PanelTabsContextProps {
3
+ activeTabId: string;
4
+ onChange?: (id: string) => void;
5
+ }
6
+ export declare const PanelTabContext: React.Context<PanelTabsContextProps>;
7
+ export declare const usePanelTabContext: () => PanelTabsContextProps;
8
+ export interface TabsProps {
9
+ title?: string;
10
+ important?: boolean;
11
+ items: ReactNode;
12
+ }
13
+ export interface PanelTabsProps {
14
+ divider?: boolean;
15
+ className?: string;
16
+ activeTabId?: string;
17
+ onChange?: (id?: string) => void;
18
+ }
19
+ export declare const PanelTabs: ({ divider, children, className, activeTabId, onChange, }: PropsWithChildren<PanelTabsProps>) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<({ divider, children, className, activeTabId, onChange, }: React.PropsWithChildren<import("./PanelTabs").PanelTabsProps>) => JSX.Element>;
4
+ export default _default;
5
+ export declare const Base: any;
6
+ export declare const WithTabGroup: any;
7
+ export declare const Scroll: any;
@@ -0,0 +1,3 @@
1
+ export * from './PanelTab';
2
+ export * from './PanelTabGroup';
3
+ export * from './PanelTabs';
@@ -1,2 +1,3 @@
1
1
  export * from './LineTabs';
2
2
  export * from './LineTab';
3
+ export * from './PanelTabs';