kui-complex 0.0.150 → 0.0.151

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.
Files changed (2) hide show
  1. package/index.d.ts +41 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -420,8 +420,43 @@ type AutocompleteOptionProps = {
420
420
 
421
421
  declare function AutocompleteOption({ label }: AutocompleteOptionProps): JSX.Element;
422
422
 
423
+ type FileParams = {
424
+ id: number | null
425
+ name: string
426
+ url: string
427
+ date: DateTime | null
428
+ size: number | null
429
+ createdBy: string
430
+ extension: string
431
+ }
432
+
423
433
  declare const InputFile: React__default.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React__default.RefAttributes<HTMLInputElement>>;
424
434
 
435
+ type UploadFileParams = {
436
+ id?: number | null
437
+ index?: number | string
438
+ size?: number | null
439
+ file?: File | FileParams
440
+ name?: string
441
+ title?: string
442
+ url?: string
443
+ }
444
+
445
+ interface FileItemProps
446
+ extends Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> {
447
+ file: UploadFileParams
448
+ index?: number
449
+ selectedFile?: number | null
450
+ setSelectedFile?: (index: number) => void
451
+ onDelete?: (fileKey: number | string, index: number) => void
452
+ onChange?: (name: string, index?: number) => void
453
+ limitTitle?: number
454
+ icon?: ReactNode
455
+ subtitle?: ReactNode
456
+ disabled?: boolean
457
+ error?: string
458
+ }
459
+
425
460
  declare const CheckboxWithController: React__default.ForwardRefExoticComponent<Pick<{
426
461
  form: react_hook_form.UseFormReturn<object, any>;
427
462
  labelProps?: kui_basic.CaptionProps | undefined;
@@ -459,6 +494,11 @@ type InputWithAddressAutocompleteProps<T> = {
459
494
  handlePlaceSelect?: (coords: GeolocationParams | null) => void
460
495
  } & InputWithControllerProps<T>
461
496
 
497
+ type InputWithAddressFields = {
498
+ address: string
499
+ location: GeolocationParams | null
500
+ }
501
+
462
502
  declare function InputWithAddressAutocomplete<T extends object>({ form, name, handlePlaceSelect, ...inputProps }: InputWithAddressAutocompleteProps<T>): JSX.Element;
463
503
  declare namespace InputWithAddressAutocomplete {
464
504
  var defaultProps: {
@@ -499,4 +539,4 @@ declare const getVisibilitySettings: (visibility?: DocumentVisibilityVariants |
499
539
  landlord: boolean;
500
540
  };
501
541
 
502
- export { AutocompleteOption, Avatar, ButtonSelect, ButtonTab, ButtonsPanel, ButtonsPanelProps, CalendarHeaderWithSelect, CalendarStandardContainer, CalendarStandardHeader, CheckboxGroupWithTitle, CheckboxWithController, DependentInput, DesktopInputWithMonthPicker, DesktopMenuPanel, DocumentVisibilityVariants, InputDropdown, InputFile, InputForDatepicker, InputMultiSelect, InputPassword, InputPhoneWithForm, InputSelect, InputSelectBase, InputSelectBaseProps, InputSelectDropdown, InputSelectWithController, InputTextAreaMobile, InputWithAddressAutocomplete, InputWithAutocomplete, InputWithController, InputWithDatePicker, InputWithMask, InputWithMonthPicker, KUIComplexObserver, KUIComplexSettings, Loading, MapWrapper, MenuItem, MenuPanel, MenuPanelProps, MobileInputWithMonthPicker, MobileMenuPanel, MonthPickerContainer, MonthPickerHeader, OptionParams$2 as OptionParams, PassportStrengthBar, RadioButtons, RadioButtonsWithController, RadioGroupWithLabel, SelectMonth, SelectYear, Switch, TabPanelVariants, Table, TableCell, TableHeadCell, TableRow, Tooltip, UndefinedAvatar, VisibilitySettings, getFormError, getFormValue, getSettings, getVisibility, getVisibilitySettings, setSettings, shortMonths, subscribeToSettings, unsubscribeFromSettings, useAddressAutocomplete };
542
+ export { AutocompleteOption, Avatar, ButtonSelect, ButtonTab, ButtonsPanel, ButtonsPanelProps, CalendarHeaderWithSelect, CalendarStandardContainer, CalendarStandardHeader, CheckboxGroupWithTitle, CheckboxWithController, DependentInput, DesktopInputWithMonthPicker, DesktopMenuPanel, DocumentVisibilityVariants, FileItemProps, InputDropdown, InputFile, InputForDatepicker, InputMultiSelect, InputPassword, InputPhoneWithForm, InputSelect, InputSelectBase, InputSelectBaseProps, InputSelectDropdown, InputSelectWithController, InputTextAreaMobile, InputWithAddressAutocomplete, InputWithAddressAutocompleteProps, InputWithAddressFields, InputWithAutocomplete, InputWithController, InputWithControllerProps, InputWithDatePicker, InputWithMask, InputWithMonthPicker, KUIComplexObserver, KUIComplexSettings, Loading, MapWrapper, MenuItem, MenuPanel, MenuPanelProps, MobileInputWithMonthPicker, MobileMenuPanel, MonthPickerContainer, MonthPickerHeader, OptionParams$2 as OptionParams, PassportStrengthBar, RadioButtons, RadioButtonsWithController, RadioGroupWithLabel, SelectMonth, SelectYear, Switch, TabPanelVariants, Table, TableCell, TableHeadCell, TableRow, Tooltip, UndefinedAvatar, UploadFileParams, VisibilitySettings, getFormError, getFormValue, getSettings, getVisibility, getVisibilitySettings, setSettings, shortMonths, subscribeToSettings, unsubscribeFromSettings, useAddressAutocomplete };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-complex",
3
- "version": "0.0.150",
3
+ "version": "0.0.151",
4
4
  "description": "ui kit for maroom products",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "peerDependencies": {
27
27
  "@emotion/react": "^11.10.5",
28
28
  "@emotion/styled": "^11.10.5",
29
- "@hookform/resolvers": "^3.1.0",
29
+ "@hookform/resolvers": "^2.8.0",
30
30
  "lodash": "^4.17.21",
31
31
  "luxon": "^3.3.0",
32
32
  "react": "^18.2.0",