@thefreshop/tb 1.0.28 → 1.0.30

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.
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { bottomType } from "../../types";
3
- declare const Bottom: ({ bottom }: {
3
+ declare const Bottom: ({ bottom, frameStyle }: {
4
4
  bottom: bottomType;
5
+ frameStyle?: any;
5
6
  }) => React.JSX.Element;
6
7
  export default Bottom;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
- import { navType } from "../../types";
3
- declare const Tabs: ({ nav: { menuSet, openIcon, closeIcon } }: {
2
+ import { FrameStyleType, navType } from "../../types";
3
+ declare const Tabs: ({ nav: { menuSet, openIcon, closeIcon }, frameStyle }: {
4
4
  nav: navType;
5
+ frameStyle?: FrameStyleType;
5
6
  }) => React.JSX.Element;
6
7
  export default Tabs;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import type { searchBoxType } from "../../../types";
3
- export declare const SearchBox: ({ searchOption, searchDisabled, onSubmit, onReset }: searchBoxType) => React.JSX.Element;
3
+ export declare const SearchBox: ({ searchOption, searchDisabled, onSubmit, onReset, PageStyle }: searchBoxType) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
- export declare const Tbpage: ({ tableProps, searchOption, searchDisabled, onSubmit, isLoading, title, decs, }: {
2
+ import type { PageStyleType } from "../../types";
3
+ export declare const Tbpage: ({ tableProps, searchOption, searchDisabled, onSubmit, isLoading, title, decs, PageStyle, }: {
3
4
  tableProps: any;
4
5
  searchOption?: any;
5
6
  searchDisabled?: boolean;
@@ -7,4 +8,5 @@ export declare const Tbpage: ({ tableProps, searchOption, searchDisabled, onSubm
7
8
  isLoading?: boolean;
8
9
  title?: string;
9
10
  decs?: string;
11
+ PageStyle?: PageStyleType;
10
12
  }) => React.JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
+ import type { PageStyleType } from "../../types";
2
3
  type arrtable = {
3
4
  title?: string;
4
5
  type: "table" | "module";
5
6
  tableprops?: any;
6
7
  module?: React.ReactNode;
7
8
  };
8
- export declare const TbpageMulti: ({ arrtableProps, arrflex, searchOption, searchDisabled, onSubmit, isLoading, title, decs, direction, }: {
9
+ export declare const TbpageMulti: ({ arrtableProps, arrflex, searchOption, searchDisabled, onSubmit, isLoading, title, decs, direction, PageStyle, }: {
9
10
  arrtableProps: arrtable[];
10
11
  arrflex?: any[];
11
12
  searchOption?: any;
@@ -15,5 +16,6 @@ export declare const TbpageMulti: ({ arrtableProps, arrflex, searchOption, searc
15
16
  title?: string;
16
17
  decs?: string;
17
18
  direction?: string;
19
+ PageStyle?: PageStyleType;
18
20
  }) => React.JSX.Element;
19
21
  export {};
@@ -1,8 +1,10 @@
1
+ import { PageStyleType } from "./tbframe.types";
1
2
  export type searchBoxType = {
2
3
  searchOption: searchOptionType[];
3
4
  searchDisabled?: boolean;
4
5
  onSubmit?: (searchdata?: string | null, rowdata?: any) => void;
5
6
  onReset: () => void;
7
+ PageStyle?: PageStyleType;
6
8
  };
7
9
  export type searchOptionType = {
8
10
  key: string;
@@ -22,6 +22,25 @@ export type FrameStyleType = {
22
22
  nav_text?: React.CSSProperties;
23
23
  nav_openIcon?: React.CSSProperties;
24
24
  sub_item?: React.CSSProperties;
25
+ bottom_item?: React.CSSProperties;
26
+ tabFrame?: React.CSSProperties;
27
+ tab_item?: React.CSSProperties;
28
+ tab_item_text?: React.CSSProperties;
29
+ tab_item_button?: React.CSSProperties;
30
+ tab_x_button?: React.CSSProperties;
31
+ tab_normal?: React.CSSProperties;
32
+ tab_select?: React.CSSProperties;
33
+ };
34
+ export type PageStyleType = {
35
+ tableFrame?: React.CSSProperties;
36
+ titleBox?: React.CSSProperties;
37
+ titleText?: React.CSSProperties;
38
+ decsriptionText?: React.CSSProperties;
39
+ multiFrame?: React.CSSProperties;
40
+ itemtitle?: React.CSSProperties;
41
+ searchboxFrame?: React.CSSProperties;
42
+ searchboxRow?: React.CSSProperties;
43
+ searchboxBtn?: React.CSSProperties;
25
44
  };
26
45
  export type TbFrameType = {
27
46
  admin_account_id: number;
package/dist/index.d.ts CHANGED
@@ -112,62 +112,6 @@ type selectType<T> = {
112
112
  onUpdateData?: (data?: T) => void;
113
113
  };
114
114
 
115
- type searchBoxType = {
116
- searchOption: searchOptionType[];
117
- searchDisabled?: boolean;
118
- onSubmit?: (searchdata?: string | null, rowdata?: any) => void;
119
- onReset: () => void;
120
- };
121
- type searchOptionType = {
122
- key: string;
123
- title?: string;
124
- items: searchItemsType[];
125
- };
126
- type searchItemsType = {
127
- type: string;
128
- key: string;
129
- title: string;
130
- options?: searchItemOptionsType[];
131
- value?: any | null;
132
- onChange?: (data: any) => void;
133
- dateType?: any;
134
- single?: boolean;
135
- disabled?: boolean;
136
- };
137
- type searchItemOptionsType = {
138
- label: string;
139
- value: string;
140
- };
141
- type searchDataType = {
142
- [key: string]: string | boolean;
143
- };
144
- type submitItemType = {
145
- id: string | boolean;
146
- key: string;
147
- };
148
-
149
- type AnyObject = Record<PropertyKey, any>;
150
- interface userType<T = AnyObject> {
151
- user_id: string;
152
- user_name?: string;
153
- user_profile?: T;
154
- user_group?: groupType;
155
- }
156
- interface groupType {
157
- group_id: number;
158
- group_key: string;
159
- group_name: string;
160
- group_section_start?: string;
161
- group_section_auth: string[] | string;
162
- group_menu_auth: string[] | string;
163
- }
164
- interface authType {
165
- auth_key: string;
166
- }
167
- interface authMenuType {
168
- menu_key: string[];
169
- }
170
-
171
115
  interface tbframeType {
172
116
  islogin?: boolean;
173
117
  isgroup?: boolean;
@@ -192,6 +136,25 @@ type FrameStyleType = {
192
136
  nav_text?: React.CSSProperties;
193
137
  nav_openIcon?: React.CSSProperties;
194
138
  sub_item?: React.CSSProperties;
139
+ bottom_item?: React.CSSProperties;
140
+ tabFrame?: React.CSSProperties;
141
+ tab_item?: React.CSSProperties;
142
+ tab_item_text?: React.CSSProperties;
143
+ tab_item_button?: React.CSSProperties;
144
+ tab_x_button?: React.CSSProperties;
145
+ tab_normal?: React.CSSProperties;
146
+ tab_select?: React.CSSProperties;
147
+ };
148
+ type PageStyleType = {
149
+ tableFrame?: React.CSSProperties;
150
+ titleBox?: React.CSSProperties;
151
+ titleText?: React.CSSProperties;
152
+ decsriptionText?: React.CSSProperties;
153
+ multiFrame?: React.CSSProperties;
154
+ itemtitle?: React.CSSProperties;
155
+ searchboxFrame?: React.CSSProperties;
156
+ searchboxRow?: React.CSSProperties;
157
+ searchboxBtn?: React.CSSProperties;
195
158
  };
196
159
  type TbFrameType = {
197
160
  admin_account_id: number;
@@ -244,6 +207,63 @@ type menuSetType = {
244
207
  menuSetting: menuType[];
245
208
  };
246
209
 
210
+ type searchBoxType = {
211
+ searchOption: searchOptionType[];
212
+ searchDisabled?: boolean;
213
+ onSubmit?: (searchdata?: string | null, rowdata?: any) => void;
214
+ onReset: () => void;
215
+ PageStyle?: PageStyleType;
216
+ };
217
+ type searchOptionType = {
218
+ key: string;
219
+ title?: string;
220
+ items: searchItemsType[];
221
+ };
222
+ type searchItemsType = {
223
+ type: string;
224
+ key: string;
225
+ title: string;
226
+ options?: searchItemOptionsType[];
227
+ value?: any | null;
228
+ onChange?: (data: any) => void;
229
+ dateType?: any;
230
+ single?: boolean;
231
+ disabled?: boolean;
232
+ };
233
+ type searchItemOptionsType = {
234
+ label: string;
235
+ value: string;
236
+ };
237
+ type searchDataType = {
238
+ [key: string]: string | boolean;
239
+ };
240
+ type submitItemType = {
241
+ id: string | boolean;
242
+ key: string;
243
+ };
244
+
245
+ type AnyObject = Record<PropertyKey, any>;
246
+ interface userType<T = AnyObject> {
247
+ user_id: string;
248
+ user_name?: string;
249
+ user_profile?: T;
250
+ user_group?: groupType;
251
+ }
252
+ interface groupType {
253
+ group_id: number;
254
+ group_key: string;
255
+ group_name: string;
256
+ group_section_start?: string;
257
+ group_section_auth: string[] | string;
258
+ group_menu_auth: string[] | string;
259
+ }
260
+ interface authType {
261
+ auth_key: string;
262
+ }
263
+ interface authMenuType {
264
+ menu_key: string[];
265
+ }
266
+
247
267
  type ProviderType = {
248
268
  topkey: string;
249
269
  setTopkey: (value: string) => void;
@@ -271,4 +291,4 @@ type ErrMsgType = {
271
291
  };
272
292
 
273
293
  export { baseAdminDat, topbase };
274
- export type { AntBaseTableRefProps, AnyObject, ErrMsgType, FrameStyleType, ProviderType, TbFrameType, antBaseColumnType, antBasePropsType, authMenuType, authType, bottomType, btnReturnFType, btnReturnTType, customBtnReturnFType, customBtnReturnTType, groupType, menuSetType, menuType, navType, searchBoxType, searchDataType, searchItemOptionsType, searchItemsType, searchOptionType, selectType, submitItemType, tabType, tbframeType, topMenuType, topType, userType };
294
+ export type { AntBaseTableRefProps, AnyObject, ErrMsgType, FrameStyleType, PageStyleType, ProviderType, TbFrameType, antBaseColumnType, antBasePropsType, authMenuType, authType, bottomType, btnReturnFType, btnReturnTType, customBtnReturnFType, customBtnReturnTType, groupType, menuSetType, menuType, navType, searchBoxType, searchDataType, searchItemOptionsType, searchItemsType, searchOptionType, selectType, submitItemType, tabType, tbframeType, topMenuType, topType, userType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thefreshop/tb",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "tb framework",
5
5
  "license": "MIT",
6
6
  "repository": {