@thefreshop/tb 1.0.1 → 1.0.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.
Files changed (56) hide show
  1. package/dist/cjs/index.d.ts +11 -4
  2. package/dist/cjs/index.js +363 -405
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/tbframe/index.d.ts +2 -3
  5. package/dist/cjs/tbframe/layout/bottom.d.ts +1 -1
  6. package/dist/cjs/tbframe/layout/frame.d.ts +3 -3
  7. package/dist/cjs/tbframe/layout/nav.d.ts +2 -2
  8. package/dist/cjs/tbframe/layout/top.d.ts +3 -3
  9. package/dist/cjs/tbframe/page/loginpage.d.ts +1 -1
  10. package/dist/cjs/tbframe/provider/provider.d.ts +2 -2
  11. package/dist/cjs/tbpage/component/authTable.d.ts +1 -1
  12. package/dist/cjs/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
  13. package/dist/cjs/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
  14. package/dist/cjs/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
  15. package/dist/cjs/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
  16. package/dist/cjs/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
  17. package/dist/cjs/tbpage/component/modules/loading_layout.d.ts +2 -2
  18. package/dist/cjs/tbpage/component/modules/searchbox.d.ts +2 -2
  19. package/dist/cjs/tbpage/component/modules/util.d.ts +2 -2
  20. package/dist/cjs/tbpage/index.d.ts +0 -1
  21. package/dist/cjs/{tbframe/types → types}/index.d.ts +6 -4
  22. package/dist/cjs/{tbframe/types → types}/provider.types.d.ts +2 -2
  23. package/dist/esm/index.d.ts +11 -4
  24. package/dist/esm/index.js +363 -405
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/tbframe/index.d.ts +2 -3
  27. package/dist/esm/tbframe/layout/bottom.d.ts +1 -1
  28. package/dist/esm/tbframe/layout/frame.d.ts +3 -3
  29. package/dist/esm/tbframe/layout/nav.d.ts +2 -2
  30. package/dist/esm/tbframe/layout/top.d.ts +3 -3
  31. package/dist/esm/tbframe/page/loginpage.d.ts +1 -1
  32. package/dist/esm/tbframe/provider/provider.d.ts +2 -2
  33. package/dist/esm/tbpage/component/authTable.d.ts +1 -1
  34. package/dist/esm/tbpage/component/modules/antBaseModalCreate/index.d.ts +3 -3
  35. package/dist/esm/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +4 -4
  36. package/dist/esm/tbpage/component/modules/antBaseTable/btn_widget.d.ts +4 -4
  37. package/dist/esm/tbpage/component/modules/antBaseTable/index.d.ts +4 -4
  38. package/dist/esm/tbpage/component/modules/antBaseTable/table_props.d.ts +5 -5
  39. package/dist/esm/tbpage/component/modules/loading_layout.d.ts +2 -2
  40. package/dist/esm/tbpage/component/modules/searchbox.d.ts +2 -2
  41. package/dist/esm/tbpage/component/modules/util.d.ts +2 -2
  42. package/dist/esm/tbpage/index.d.ts +0 -1
  43. package/dist/esm/{tbframe/types → types}/index.d.ts +6 -4
  44. package/dist/esm/{tbframe/types → types}/provider.types.d.ts +2 -2
  45. package/dist/index.d.ts +265 -0
  46. package/package.json +4 -2
  47. package/dist/cjs/tbpage/types/index.d.ts +0 -2
  48. package/dist/esm/tbpage/types/index.d.ts +0 -2
  49. /package/dist/cjs/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
  50. /package/dist/cjs/{tbpage/types → types}/searchbox.type.d.ts +0 -0
  51. /package/dist/cjs/{tbframe/types → types}/tbframe.types.d.ts +0 -0
  52. /package/dist/cjs/{tbframe/types → types}/user.types.d.ts +0 -0
  53. /package/dist/esm/{tbpage/types → types}/antBaseTable.types.d.ts +0 -0
  54. /package/dist/esm/{tbpage/types → types}/searchbox.type.d.ts +0 -0
  55. /package/dist/esm/{tbframe/types → types}/tbframe.types.d.ts +0 -0
  56. /package/dist/esm/{tbframe/types → types}/user.types.d.ts +0 -0
@@ -1,3 +1,2 @@
1
- export * from './provider/provider';
2
- export type * from './types';
3
- export { default as TbFrame } from './layout/frame';
1
+ export { TbContext, TbProvider, useTbState } from "./provider/provider";
2
+ export { default as TbFrame } from "./layout/frame";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { bottomType } from "../types";
2
+ import { bottomType } from "../../types";
3
3
  declare const Bottom: ({ bottom }: {
4
4
  bottom: bottomType;
5
5
  }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { tbframeType, topType, navType, bottomType } from '../types';
3
- declare const TbFrame: ({ setting, top, bottom, nav, top_banner }: {
1
+ import React from "react";
2
+ import { tbframeType, topType, navType, bottomType } from "../../types";
3
+ declare const TbFrame: ({ setting, top, bottom, nav, top_banner, }: {
4
4
  setting: tbframeType;
5
5
  top: topType;
6
6
  bottom?: bottomType;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { navType } from '../types';
1
+ import React from "react";
2
+ import { navType } from "../../types";
3
3
  declare const Nav: ({ nav: { menuSet, openIcon, closeIcon } }: {
4
4
  nav: navType;
5
5
  }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { tbframeType, topType } from '../types';
3
- declare const Top: ({ setting, top: { title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight } }: {
1
+ import React from "react";
2
+ import { tbframeType, topType } from "../../types";
3
+ declare const Top: ({ setting, top: { title, titleimage, topMenuSetting, menuStyle, imgstyle, titleStyle, topRight }, }: {
4
4
  setting: tbframeType;
5
5
  top: topType;
6
6
  }) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  declare const LoginPage: () => React.JSX.Element;
3
3
  export default LoginPage;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import type { ProviderType } from '../types';
1
+ import React from "react";
2
+ import type { ProviderType } from "../../types";
3
3
  export declare const TbContext: React.Context<ProviderType | undefined>;
4
4
  export declare const TbProvider: ({ children }: {
5
5
  children: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import type { topType, menuType } from "../../tbframe";
2
+ import type { topType, menuType } from "../../types";
3
3
  export declare const AuthTable: ({ top, menuSetting }: {
4
4
  top: topType;
5
5
  menuSetting: menuType[];
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ModalFuncProps, FormProps } from 'antd';
3
- import { antBaseColumnType } from '../../../types';
1
+ import React from "react";
2
+ import { ModalFuncProps, FormProps } from "antd";
3
+ import { antBaseColumnType } from "../../../../types";
4
4
  type propsType = {
5
5
  type?: string;
6
6
  customColumn?: any[];
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import 'moment/locale/ko';
3
- import { antBaseColumnType } from '../../../types';
4
- export declare const useFormColumns: ({ isModify, columns, onChange }: {
1
+ import React from "react";
2
+ import "moment/locale/ko";
3
+ import { antBaseColumnType } from "../../../../types";
4
+ export declare const useFormColumns: ({ isModify, columns, onChange, }: {
5
5
  isModify: boolean;
6
6
  columns?: antBaseColumnType[];
7
7
  onChange: (data: any) => void;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { btnReturnFType, customBtnReturnFType } from '../../../types';
1
+ import React from "react";
2
+ import { btnReturnFType, customBtnReturnFType } from "../../../../types";
3
3
  /**
4
4
  * 테이블 상단 버튼 그룹
5
5
  * @author 신민우
@@ -17,7 +17,7 @@ import { btnReturnFType, customBtnReturnFType } from '../../../types';
17
17
 
18
18
  * @todo
19
19
  */
20
- export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps }: {
20
+ export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, autoRefreshTime, addProps, modifyProps, deleteProps, removeProps, resetProps, customProps, }: {
21
21
  isSelect: boolean;
22
22
  onRefresh?: () => void;
23
23
  isCounter?: boolean;
@@ -29,7 +29,7 @@ export declare const TableTopButtonGroup: ({ isSelect, onRefresh, isCounter, aut
29
29
  resetProps?: btnReturnFType;
30
30
  customProps?: customBtnReturnFType;
31
31
  }) => React.JSX.Element | null;
32
- export declare const TableBottomButtonGroup: ({ isSelect, topProps, bottomProps, upProps, downProps }: {
32
+ export declare const TableBottomButtonGroup: ({ isSelect, topProps, bottomProps, upProps, downProps, }: {
33
33
  isSelect: boolean;
34
34
  topProps?: btnReturnFType;
35
35
  bottomProps?: btnReturnFType;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { AntBaseTableRefProps, antBasePropsType } from '../../../types';
3
- import { GetRowKey } from 'antd/es/table/interface';
4
- declare module 'react' {
1
+ import React from "react";
2
+ import { AntBaseTableRefProps, antBasePropsType } from "../../../../types";
3
+ import { GetRowKey } from "antd/es/table/interface";
4
+ declare module "react" {
5
5
  function forwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
6
6
  }
7
7
  /**
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import type { TableColumnProps, TableProps, CheckboxProps } from 'antd/';
3
- import { antBaseColumnType } from '../../../types';
4
- import 'moment/locale/ko';
1
+ import React from "react";
2
+ import type { TableColumnProps, TableProps, CheckboxProps } from "antd/";
3
+ import { antBaseColumnType } from "../../../../types";
4
+ import "moment/locale/ko";
5
5
  export declare const tableColumns: (columns?: antBaseColumnType[]) => import("antd").TableColumnsType<import("antd/es/_util/type").AnyObject>;
6
6
  export declare const convert2FormData: <ItemType, KEY extends keyof ItemType>({ data, columns }: {
7
7
  data?: ItemType;
8
8
  columns: antBaseColumnType[];
9
9
  }) => any;
10
- export declare const tableRowSelection: ({ selectedRowKeys, radioProps, checkboxProps }: {
10
+ export declare const tableRowSelection: ({ selectedRowKeys, radioProps, checkboxProps, }: {
11
11
  selectedRowKeys: React.Key[];
12
12
  radioProps?: {
13
13
  onFun: (data: any) => void;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  /**
3
3
  * 로딩 레이아웃
4
4
  * @author 신민우
5
5
  */
6
- export declare const LoadingLayout: ({ tip, isLoading, error, isError, style, children, className, notFullScreen }: {
6
+ export declare const LoadingLayout: ({ tip, isLoading, error, isError, style, children, className, notFullScreen, }: {
7
7
  tip?: string;
8
8
  isLoading?: boolean;
9
9
  isError?: boolean;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import type { searchBoxType } from '../../types';
1
+ import React from "react";
2
+ import type { searchBoxType } from "../../../types";
3
3
  export declare const SearchBox: ({ searchOption, searchDisabled, onSubmit, onReset }: searchBoxType) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { antBaseColumnType } from '../../types';
2
- export declare const deleteCol: ({ key, onRemove, onReset }: {
1
+ import { antBaseColumnType } from "../../../types";
2
+ export declare const deleteCol: ({ key, onRemove, onReset, }: {
3
3
  key: string;
4
4
  onRemove?: (data: any) => void;
5
5
  onReset?: (data: any) => void;
@@ -6,4 +6,3 @@ export { TbpageSm } from "./component/tbpagesm";
6
6
  export { TbpageMulti } from "./component/tbpageMulti";
7
7
  export { default as AntBaseTable } from "./component/modules/antBaseTable";
8
8
  export { default as AntBaseModalCreate } from "./component/modules/antBaseModalCreate";
9
- export type * from "./types";
@@ -1,7 +1,9 @@
1
- export * from './user.types';
2
- export * from './tbframe.types';
3
- export * from './provider.types';
4
- import { tabType } from './provider.types';
1
+ export * from "./antBaseTable.types";
2
+ export * from "./searchbox.type";
3
+ export * from "./user.types";
4
+ export * from "./tbframe.types";
5
+ export * from "./provider.types";
6
+ import { tabType } from "./provider.types";
5
7
  export interface tbframeType {
6
8
  islogin?: boolean;
7
9
  isgroup?: boolean;
@@ -1,5 +1,5 @@
1
- import { userType } from './user.types';
2
- import { navType } from './tbframe.types';
1
+ import { userType } from "./user.types";
2
+ import { navType } from "./tbframe.types";
3
3
  export type ProviderType = {
4
4
  topkey: string;
5
5
  setTopkey: (value: string) => void;
@@ -1,4 +1,11 @@
1
- export type * from "./tbframe";
2
- export type * from "./tbpage";
3
- export * from "./tbframe";
4
- export * from "./tbpage";
1
+ export type * from "./types";
2
+ export { TbContext, TbProvider, useTbState } from "./tbframe/provider/provider";
3
+ export { default as TbFrame } from "./tbframe/layout/frame";
4
+ export * from "./tbpage/component/authTable";
5
+ export { TbpProvider } from "./tbpage/provider/provider";
6
+ export { ContentLayout } from "./tbpage/component/content_layout";
7
+ export { Tbpage } from "./tbpage/component/tbpage";
8
+ export { TbpageSm } from "./tbpage/component/tbpagesm";
9
+ export { TbpageMulti } from "./tbpage/component/tbpageMulti";
10
+ export { default as AntBaseTable } from "./tbpage/component/modules/antBaseTable";
11
+ export { default as AntBaseModalCreate } from "./tbpage/component/modules/antBaseModalCreate";