sales-frontend-components 0.0.66 → 0.0.67
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.cjs.js +941 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +50 -6
- package/dist/index.esm.js +941 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/modal/pre-standard/job-search-modal/job-search-modal.module.scss +61 -0
- package/dist/modal/pre-standard/job-vehicle-search-modal/job-vehicle-search-modal.module.scss +116 -0
- package/dist/modal/pre-standard/vehicle-search-modal/vehicle-search-modal.module.scss +20 -0
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FieldValues, UseControllerProps } from 'react-hook-form';
|
|
3
3
|
import { CheckboxButtonProps, CheckboxProps, DatePickerSingleHtmlProps, DatePickerRangeHtmlProps, SegmentGroupHtmlProps, FormField } from 'sales-frontend-design-system';
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
4
|
+
import * as React$1 from 'react';
|
|
5
|
+
import React__default from 'react';
|
|
6
6
|
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';
|
|
7
9
|
|
|
8
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;
|
|
9
11
|
|
|
@@ -139,7 +141,7 @@ declare function useCanvasPaint(paintProps?: PaintProps): {
|
|
|
139
141
|
download: (downloadProps: DownloadProps) => void;
|
|
140
142
|
getBase64String: (imageProps: DownloadProps) => string | undefined;
|
|
141
143
|
isCanvasBlank: () => boolean;
|
|
142
|
-
setCanvasRefState:
|
|
144
|
+
setCanvasRefState: React$1.Dispatch<React$1.SetStateAction<HTMLCanvasElement | null>>;
|
|
143
145
|
canvasRefState: HTMLCanvasElement | null;
|
|
144
146
|
};
|
|
145
147
|
|
|
@@ -181,12 +183,54 @@ interface DebugToolProps {
|
|
|
181
183
|
envOverride?: Environment;
|
|
182
184
|
/** 기본 메뉴 설정을 재정의합니다. 동적으로 메뉴를 추가하거나 변경할 때 사용합니다. */
|
|
183
185
|
menuItemsOverride?: (Omit<MenuItem, 'component'> & {
|
|
184
|
-
component:
|
|
186
|
+
component: React__default.ComponentType<any>;
|
|
185
187
|
})[];
|
|
186
188
|
/** @deprecated Storybook 전용 prop으로, 실제 사용되지 않습니다. */
|
|
187
189
|
menuConfig?: Record<string, boolean>;
|
|
188
190
|
}
|
|
189
|
-
declare const DebugTool:
|
|
191
|
+
declare const DebugTool: React__default.FC<DebugToolProps>;
|
|
190
192
|
|
|
191
|
-
|
|
193
|
+
interface FullAddress extends Address {
|
|
194
|
+
detail: string;
|
|
195
|
+
}
|
|
196
|
+
type Step = 'initial' | 'search-result' | 'detail-input';
|
|
197
|
+
|
|
198
|
+
interface Props {
|
|
199
|
+
setValue: (address: FullAddress) => void;
|
|
200
|
+
onClose: () => void;
|
|
201
|
+
isOpen: boolean;
|
|
202
|
+
}
|
|
203
|
+
declare function useSearchAddress({ setValue, onClose, isOpen }: Props): {
|
|
204
|
+
onAddressSearchClear: () => void;
|
|
205
|
+
onAddressSearchNext: () => void;
|
|
206
|
+
addressSearchKeyword: string;
|
|
207
|
+
addressSearchList: QueryObserverResult<TData, TError>;
|
|
208
|
+
addressSearchStep: Step;
|
|
209
|
+
selectedAddress: Address | null;
|
|
210
|
+
addressSearchOnValueChange: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
211
|
+
nextButtonDisabled: boolean;
|
|
212
|
+
detailAddressInput: string;
|
|
213
|
+
onSearch: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
214
|
+
onKeyUp: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
215
|
+
onSelectChange: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
216
|
+
setDetail: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
217
|
+
search: () => void;
|
|
218
|
+
searchInput: string;
|
|
219
|
+
};
|
|
220
|
+
declare const useAddressComponent: () => {
|
|
221
|
+
fullAddress: FullAddress | null;
|
|
222
|
+
openModal: () => void;
|
|
223
|
+
AddressSearchComponent: () => react_jsx_runtime.JSX.Element;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
declare function useJobVehicleSearchModal(): {
|
|
227
|
+
selectedJob: sales_frontend_api_method.OccupationResponseDto | null;
|
|
228
|
+
selectedVehicle: sales_frontend_api_method.VehicleTypeResponseDto | undefined;
|
|
229
|
+
riskGrade: string;
|
|
230
|
+
hospitalizationGrade: string;
|
|
231
|
+
openJobVehicleModal: () => void;
|
|
232
|
+
JobVehicleSearchModalComponent: react_jsx_runtime.JSX.Element;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export { Attachment, DebugTool, FormCheckbox, FormCheckboxButton, FormDatePicker, FormDateRangePicker, FormSegmentGroup, FormTextField, StepIndicator, resize, testSignatureBase64Data, useAddressComponent, useCamera, useCanvasPaint, useJobVehicleSearchModal, useSearchAddress };
|
|
192
236
|
export type { AttachedPhoto, AttachmentProps, DownloadProps, PaintProps, Pen, StepIndicatorProps, StepItem, cameraItemType, cameraOptions };
|