@sunggang/ui-lib 0.3.2 → 0.3.4

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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
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';
@@ -6,5 +6,5 @@ export interface DrawerProps {
6
6
  side?: Side;
7
7
  children: React.ReactNode;
8
8
  }
9
- declare const Drawer: React.FC<DrawerProps>;
9
+ export declare const Drawer: React.FC<DrawerProps>;
10
10
  export default Drawer;
@@ -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
+ }[])[];
@@ -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 }: {
@@ -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: Option[];
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: React.ReactNode;
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;