@sunggang/ui-lib 0.3.3 → 0.3.5
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/BaseCkeditor.esm.js +55487 -55462
- package/index.esm.css +195 -0
- package/index.esm.js +2 -1
- package/index.esm2.js +8453 -966
- package/index.esm3.js +1 -0
- package/package.json +1 -1
- package/src/index.d.ts +4 -0
- package/src/lib/Ckeditor/BaseCkeditor.d.ts +5 -0
- package/src/lib/Drawer/Base.d.ts +1 -1
- package/src/lib/Form/demo.d.ts +14 -1
- package/src/lib/Form/index.d.ts +2 -1
- package/src/lib/Form/types.d.ts +16 -4
- package/src/lib/StackCards/index.d.ts +2 -2
package/index.esm3.js
CHANGED
|
@@ -19,6 +19,7 @@ import 'date-fns/addDays/index.js';
|
|
|
19
19
|
import 'date-fns/format/index.js';
|
|
20
20
|
import '@emotion/react';
|
|
21
21
|
import '@mui/material';
|
|
22
|
+
import 'input-otp';
|
|
22
23
|
import '@tanstack/react-table';
|
|
23
24
|
import '@radix-ui/react-dropdown-menu';
|
|
24
25
|
import '@radix-ui/react-icons';
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -6,11 +6,15 @@ export * from './lib/Dropdown';
|
|
|
6
6
|
export * from './lib/UploadImage/CustomUpload';
|
|
7
7
|
export * from './components/ui/switch';
|
|
8
8
|
export * from './components/ui/dateRangePicker';
|
|
9
|
+
export * from './components/ui/singlePicker';
|
|
9
10
|
export * from './components/ui/reactDateRange';
|
|
10
11
|
export * from './components/ui/baseSwitch';
|
|
11
12
|
export * from './components/ui/button';
|
|
13
|
+
export * from './lib/InputOtp';
|
|
14
|
+
export * from './lib/StackCards';
|
|
12
15
|
export * from './lib/DataTable';
|
|
13
16
|
export * from './lib/DataTable/BaseTable';
|
|
17
|
+
export * from './lib/Drawer/Base';
|
|
14
18
|
export * from './lib/Function';
|
|
15
19
|
export * from './lib/BigCalender';
|
|
16
20
|
export * from './lib/BigCalender/dnd';
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
import { FormItem } from '../Form/types';
|
|
3
3
|
interface CkEditorProps {
|
|
4
4
|
item: FormItem;
|
|
5
|
+
config: {
|
|
6
|
+
uploadUrl?: string;
|
|
7
|
+
fieldName?: string;
|
|
8
|
+
authToken?: string;
|
|
9
|
+
};
|
|
5
10
|
}
|
|
6
11
|
declare const BaseCkeditor: React.FC<CkEditorProps>;
|
|
7
12
|
export default BaseCkeditor;
|
package/src/lib/Drawer/Base.d.ts
CHANGED
package/src/lib/Form/demo.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export declare const Regex: {
|
|
|
5
5
|
export declare const checkboxConfig: FormItem;
|
|
6
6
|
export declare const checkboxGroupConfig: FormItem;
|
|
7
7
|
export declare const radioConfig: FormItem;
|
|
8
|
+
export declare const ticketBundleOptions: {
|
|
9
|
+
name: string;
|
|
10
|
+
value: number;
|
|
11
|
+
}[];
|
|
8
12
|
export declare const config: (getValues: any) => (FormItem[] | ({
|
|
9
13
|
type: string;
|
|
10
14
|
name: string;
|
|
@@ -114,4 +118,13 @@ export declare const config: (getValues: any) => (FormItem[] | ({
|
|
|
114
118
|
validateOption?: undefined;
|
|
115
119
|
cityName?: undefined;
|
|
116
120
|
districtName?: undefined;
|
|
117
|
-
})[]
|
|
121
|
+
})[] | {
|
|
122
|
+
type: string;
|
|
123
|
+
name: string;
|
|
124
|
+
label: string;
|
|
125
|
+
id: string;
|
|
126
|
+
option: {
|
|
127
|
+
name: string;
|
|
128
|
+
value: number;
|
|
129
|
+
}[];
|
|
130
|
+
}[])[];
|
package/src/lib/Form/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export declare const Form: {
|
|
|
20
20
|
}) => any;
|
|
21
21
|
TextField: import("react").FC<FormType>;
|
|
22
22
|
SingleSelect: import("react").FC<FormType>;
|
|
23
|
-
MultipleSelect: ({ item }: {
|
|
23
|
+
MultipleSelect: ({ className, item }: {
|
|
24
|
+
className?: string | undefined;
|
|
24
25
|
item: any;
|
|
25
26
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
FieldLabel: ({ item }: {
|
package/src/lib/Form/types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
interface Option {
|
|
2
|
-
value: string;
|
|
1
|
+
export interface Option {
|
|
2
|
+
value: string | number;
|
|
3
3
|
name: string;
|
|
4
|
+
label?: string;
|
|
4
5
|
}
|
|
5
|
-
interface OptionGroup {
|
|
6
|
+
export interface OptionGroup {
|
|
6
7
|
label: string;
|
|
7
|
-
options
|
|
8
|
+
options?: Option[];
|
|
8
9
|
}
|
|
9
10
|
interface RadioOption {
|
|
10
11
|
label?: string;
|
|
@@ -62,8 +63,19 @@ export interface FormItem {
|
|
|
62
63
|
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'default';
|
|
63
64
|
};
|
|
64
65
|
checkboxes?: Checkbox[];
|
|
66
|
+
config?: {
|
|
67
|
+
uploadUrl?: string;
|
|
68
|
+
fieldName?: string;
|
|
69
|
+
authToken?: string;
|
|
70
|
+
};
|
|
65
71
|
}
|
|
66
72
|
export interface FormType {
|
|
67
73
|
item: FormItem;
|
|
74
|
+
config?: {
|
|
75
|
+
uploadUrl: string;
|
|
76
|
+
fieldName: string;
|
|
77
|
+
imageSize: number;
|
|
78
|
+
authToken: string;
|
|
79
|
+
};
|
|
68
80
|
}
|
|
69
81
|
export {};
|
|
@@ -4,9 +4,9 @@ export type StackCardsProps = {
|
|
|
4
4
|
cardRatio?: string;
|
|
5
5
|
cardOffset?: number;
|
|
6
6
|
cardStyle?: React.CSSProperties;
|
|
7
|
-
children
|
|
7
|
+
children?: React.ReactNode;
|
|
8
8
|
cards: any;
|
|
9
9
|
renderInfo: (item: any) => React.ReactNode;
|
|
10
10
|
};
|
|
11
|
-
declare const StackCards: React.FC<StackCardsProps>;
|
|
11
|
+
export declare const StackCards: React.FC<StackCardsProps>;
|
|
12
12
|
export default StackCards;
|