@sunggang/ui-lib 0.2.9 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",
package/src/index.d.ts CHANGED
@@ -14,3 +14,5 @@ export * from './lib/DataTable/BaseTable';
14
14
  export * from './lib/Function';
15
15
  export * from './lib/BigCalender';
16
16
  export * from './lib/BigCalender/dnd';
17
+ export * from './lib/Select/CustomSelect';
18
+ export * from './lib/Tabs/TabsPanel';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface Item {
3
+ name: string;
4
+ value: string;
5
+ }
6
+ export interface CustomSelectProps {
7
+ items: Item[];
8
+ currentID: string | null;
9
+ setCurrentID: React.Dispatch<React.SetStateAction<any>>;
10
+ className?: string;
11
+ }
12
+ export declare const CustomSelect: React.FC<CustomSelectProps>;
13
+ export default CustomSelect;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const StyleTabs: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export default StyleTabs;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export interface TabConfig {
3
+ id: string | number;
4
+ title: string;
5
+ }
6
+ export interface TabsPanelProps {
7
+ activeIndex: number;
8
+ setActiveIndex: React.Dispatch<React.SetStateAction<number>>;
9
+ config: TabConfig[];
10
+ children?: React.ReactNode;
11
+ tabsClassName?: string;
12
+ tabClassName?: string;
13
+ }
14
+ export declare const TabsPanel: ({ tabsClassName, tabClassName, activeIndex, setActiveIndex, config, children, }: {
15
+ tabsClassName?: string | undefined;
16
+ tabClassName?: string | undefined;
17
+ activeIndex: any;
18
+ setActiveIndex: any;
19
+ config: any;
20
+ children: any;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ export default TabsPanel;