sales-frontend-components 0.0.67 → 0.0.68

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/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { FieldValues, UseControllerProps } from 'react-hook-form';
3
- import { CheckboxButtonProps, CheckboxProps, DatePickerSingleHtmlProps, DatePickerRangeHtmlProps, SegmentGroupHtmlProps, FormField } from 'sales-frontend-design-system';
3
+ import { CheckboxButtonProps, CheckboxProps, DatePickerSingleHtmlProps, DatePickerRangeHtmlProps, FormField, SegmentGroupHtmlProps, SelectProps, OptionProps } from 'sales-frontend-design-system';
4
+ import * as sales_frontend_api_method from 'sales-frontend-api/method';
5
+ import { OccupationResponseDto, Address } from 'sales-frontend-api/method';
4
6
  import * as React$1 from 'react';
5
7
  import React__default from 'react';
6
8
  import { getEnvironmentFromHostname } from 'sales-frontend-utils';
7
- import * as sales_frontend_api_method from 'sales-frontend-api/method';
8
- import { Address } from 'sales-frontend-api/method';
9
9
 
10
10
  declare const FormCheckboxButton: <TFormValues extends FieldValues>({ name, control, disabled, children, ...props }: Pick<UseControllerProps<TFormValues>, "name" | "control" | "disabled"> & Omit<CheckboxButtonProps, "id">) => react_jsx_runtime.JSX.Element;
11
11
 
@@ -15,7 +15,33 @@ declare const FormDatePicker: <TFormValues extends FieldValues>({ name, control,
15
15
 
16
16
  declare const FormDateRangePicker: <TFormValues extends FieldValues>({ name, control, disabled, defaultValue, ...props }: Pick<UseControllerProps<TFormValues>, "name" | "control" | "disabled" | "defaultValue"> & DatePickerRangeHtmlProps) => react_jsx_runtime.JSX.Element;
17
17
 
18
- declare const FormSegmentGroup: <TFormValues extends FieldValues>({ name, control, disabled, ...props }: Pick<UseControllerProps<TFormValues>, "name" | "control" | "disabled"> & Omit<SegmentGroupHtmlProps, "defaultValue">) => react_jsx_runtime.JSX.Element;
18
+ declare const FormSearchJobField: <TFormValues extends FieldValues>({ name, control, disabled, rootProps, error, size, placeholder, ...props }: Pick<UseControllerProps<TFormValues>, "name" | "control" | "disabled"> & FormField.TextFieldProps & {
19
+ onValueChange?: (value?: OccupationResponseDto) => void;
20
+ }) => react_jsx_runtime.JSX.Element;
21
+
22
+ interface FormSegmentGroupProps<TFormValues extends FieldValues> extends Pick<UseControllerProps<TFormValues>, 'name' | 'control' | 'disabled'>, Omit<SegmentGroupHtmlProps, 'defaultValue'> {
23
+ disabledItems?: string[];
24
+ }
25
+ declare const FormSegmentGroup: <TFormValues extends FieldValues>({ name, control, disabled, disabledItems, items, ...props }: FormSegmentGroupProps<TFormValues>) => react_jsx_runtime.JSX.Element;
26
+
27
+ /**
28
+ * 영업지원 시스템 셀렉트필드
29
+ * @param param0
30
+ * @returns
31
+ */
32
+ type FormSelectProps<TFormValues extends FieldValues> = Pick<UseControllerProps<TFormValues>, 'name' | 'control' | 'disabled'> & Omit<SelectProps, 'defaultValue'>;
33
+ declare const FormSelect: {
34
+ <TFormValues extends FieldValues>({ name, control, disabled, error, children, ...props }: FormSelectProps<TFormValues>): react_jsx_runtime.JSX.Element;
35
+ Option: ({ children, value, ...rest }: OptionProps) => react_jsx_runtime.JSX.Element;
36
+ Group: <TFormValues extends FieldValues>({ options, optionsProps, ...props }: Omit<IFormSelectGroupProps<TFormValues>, "children">) => react_jsx_runtime.JSX.Element;
37
+ };
38
+ interface IFormSelectGroupProps<TFormValues extends FieldValues> extends FormSelectProps<TFormValues> {
39
+ options: {
40
+ label: string;
41
+ value: string;
42
+ }[];
43
+ optionsProps?: Omit<OptionProps, 'children' | 'value'>;
44
+ }
19
45
 
20
46
  declare const FormTextField: <TFormValues extends FieldValues>({ name, control, size, disabled, error, onBlur, onChange, rootProps, ...props }: Pick<UseControllerProps<TFormValues>, "name" | "control" | "disabled"> & FormField.TextFieldProps) => react_jsx_runtime.JSX.Element;
21
47
 
@@ -39,9 +65,10 @@ interface StepIndicatorProps {
39
65
  /** 표시할 dot의 총 개수 (items 배열과 별개로 시각적 표시만 조절할 때 사용) */
40
66
  dotCount?: number;
41
67
  onClickItem?: (item: StepItem) => void;
68
+ isLoading?: boolean;
42
69
  }
43
70
 
44
- declare const StepIndicator: ({ items, onClickItem, currentIndex, defaultValue, dotCount }: StepIndicatorProps) => react_jsx_runtime.JSX.Element;
71
+ declare const StepIndicator: ({ items, onClickItem, currentIndex, defaultValue, dotCount, isLoading }: StepIndicatorProps) => react_jsx_runtime.JSX.Element;
45
72
 
46
73
  interface AttachedPhoto {
47
74
  id: string;
@@ -232,5 +259,11 @@ declare function useJobVehicleSearchModal(): {
232
259
  JobVehicleSearchModalComponent: react_jsx_runtime.JSX.Element;
233
260
  };
234
261
 
235
- export { Attachment, DebugTool, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSegmentGroup, FormTextField, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useCamera, useCanvasPaint, useJobVehicleSearchModal, useSearchAddress };
262
+ interface JobSearchModalProps {
263
+ isOpen: boolean;
264
+ onClose: () => void;
265
+ }
266
+ declare const JobSearchModal: React__default.FC<JobSearchModalProps>;
267
+
268
+ export { Attachment, DebugTool, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSearchJobField, FormSegmentGroup, FormSelect, FormTextField, JobSearchModal, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useCamera, useCanvasPaint, useJobVehicleSearchModal, useSearchAddress };
236
269
  export type { AttachedPhoto, AttachmentProps, DownloadProps, PaintProps, Pen, StepIndicatorProps, StepItem, cameraItemType, cameraOptions };