@sunggang/ui-lib 0.3.7 → 0.3.9

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
@@ -17,12 +17,12 @@ import 'react-date-range';
17
17
  import 'react-date-range/dist/locale/index.js';
18
18
  import 'date-fns/addDays/index.js';
19
19
  import 'date-fns/format/index.js';
20
- import '@emotion/react';
21
- import '@mui/material';
22
20
  import 'input-otp';
23
21
  import '@tanstack/react-table';
24
22
  import '@radix-ui/react-dropdown-menu';
25
23
  import '@radix-ui/react-icons';
24
+ import '@emotion/react';
25
+ import '@mui/material';
26
26
 
27
27
  /* eslint-disable no-prototype-builtins */ function _instanceof$4(left, right) {
28
28
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ interface BaseTemplateProps {
3
+ file?: File | null;
4
+ item?: any;
5
+ imageUrl?: string | null;
6
+ }
7
+ declare const BaseTemplate: FC<BaseTemplateProps>;
8
+ export default BaseTemplate;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface CustomUploadProps {
3
+ item: any;
4
+ field: any;
5
+ }
6
+ export declare const CustomUpload: React.FC<CustomUploadProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function CustomUploadChild(): import("react/jsx-runtime").JSX.Element;
@@ -50,6 +50,9 @@ export declare const FieldLabel: ({ item }: {
50
50
  export declare const Fields: ({ formConfig }: {
51
51
  formConfig: any;
52
52
  }) => any;
53
+ export declare const CustomUploadField: ({ item }: {
54
+ item: any;
55
+ }) => import("react/jsx-runtime").JSX.Element;
53
56
  export declare const Row: ({ rowItems }: {
54
57
  rowItems: any;
55
58
  }) => any;
@@ -19,7 +19,7 @@ interface Checkbox {
19
19
  checkboxLabelClass?: string;
20
20
  errorText?: string;
21
21
  validateOption?: {
22
- required?: boolean;
22
+ required?: boolean | string;
23
23
  };
24
24
  disabled?: boolean;
25
25
  muiProps?: {
@@ -42,13 +42,14 @@ export interface FormItem {
42
42
  validateOption?: {
43
43
  pattern?: RegExp;
44
44
  validateMsg?: string;
45
- required?: boolean;
45
+ required?: boolean | string;
46
46
  validate?: any;
47
47
  };
48
48
  defaultValue?: string;
49
49
  icon?: string;
50
50
  option?: Options;
51
51
  hiddenArrow?: boolean;
52
+ hiddenIcon?: boolean;
52
53
  radioOptions?: RadioOption[];
53
54
  direction?: 'horizontal' | 'vertical';
54
55
  step?: string;