kui-complex 0.0.163 → 0.0.165
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.d.ts +29 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4,14 +4,13 @@ import { DateTime } from 'luxon';
|
|
|
4
4
|
import * as react_hook_form from 'react-hook-form';
|
|
5
5
|
import { UseFormReturn, FieldValues } from 'react-hook-form';
|
|
6
6
|
import * as kui_basic from 'kui-basic';
|
|
7
|
-
import { InputProps, InputWithMaskProps as InputWithMaskProps$1, InputWithAdornmentsProps, SwitchProps, InputWithCountryDropdownProps, ModalProps } from 'kui-basic';
|
|
7
|
+
import { InputProps, InputWithMaskProps as InputWithMaskProps$1, InputWithAdornmentsProps, SwitchProps, InputWithCountryDropdownProps, ModalProps, CaptionProps, CheckboxProps } from 'kui-basic';
|
|
8
8
|
import * as _floating_ui_utils from '@floating-ui/utils';
|
|
9
9
|
import * as react_datepicker from 'react-datepicker';
|
|
10
10
|
import * as _emotion_styled from '@emotion/styled';
|
|
11
11
|
import * as _emotion_react from '@emotion/react';
|
|
12
12
|
import { RadioGroupProps, InputProps as InputProps$1 } from '@mui/material';
|
|
13
13
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
14
|
-
import { FileBodyRequest } from 'kui-crm';
|
|
15
14
|
|
|
16
15
|
type AvatarSizes = "xs" | "s" | "md" | "lg"
|
|
17
16
|
|
|
@@ -421,6 +420,27 @@ type AutocompleteOptionProps = {
|
|
|
421
420
|
|
|
422
421
|
declare function AutocompleteOption({ label }: AutocompleteOptionProps): JSX.Element;
|
|
423
422
|
|
|
423
|
+
type DocumentVisibilityAPIVariants =
|
|
424
|
+
| "everybody"
|
|
425
|
+
| "renter"
|
|
426
|
+
| "owner"
|
|
427
|
+
| "nobody"
|
|
428
|
+
|
|
429
|
+
type FileBodyRequest = {
|
|
430
|
+
temp_file_id?: number
|
|
431
|
+
name: string
|
|
432
|
+
visibility?: DocumentVisibilityAPIVariants
|
|
433
|
+
url?: string
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
type InputFileProps<T> = {
|
|
437
|
+
uploadLabel?: string
|
|
438
|
+
withEdit: boolean
|
|
439
|
+
fileName?: string
|
|
440
|
+
parentName?: string
|
|
441
|
+
toBigTitleMessage?: string
|
|
442
|
+
} & InputProps<T>
|
|
443
|
+
|
|
424
444
|
type FileParams = {
|
|
425
445
|
id: number | null
|
|
426
446
|
name: string
|
|
@@ -459,6 +479,11 @@ interface FileItemProps
|
|
|
459
479
|
error?: string
|
|
460
480
|
}
|
|
461
481
|
|
|
482
|
+
type CheckboxWithControllerProps<T> = {
|
|
483
|
+
form: UseFormReturn<T>
|
|
484
|
+
labelProps?: CaptionProps
|
|
485
|
+
} & CheckboxProps
|
|
486
|
+
|
|
462
487
|
declare const CheckboxWithController: React__default.ForwardRefExoticComponent<Pick<{
|
|
463
488
|
form: react_hook_form.UseFormReturn<object, any, object>;
|
|
464
489
|
labelProps?: kui_basic.CaptionProps | undefined;
|
|
@@ -508,10 +533,10 @@ declare type VisibilitySettings = {
|
|
|
508
533
|
landlord: boolean;
|
|
509
534
|
};
|
|
510
535
|
declare type DocumentVisibilityVariants = "everybody" | "tenant" | "landlord" | "nobody";
|
|
511
|
-
declare const getVisibility: ({ landlord, tenant }: VisibilitySettings) => "everybody" | "
|
|
536
|
+
declare const getVisibility: ({ landlord, tenant }: VisibilitySettings) => "everybody" | "tenant" | "landlord" | "nobody";
|
|
512
537
|
declare const getVisibilitySettings: (visibility?: DocumentVisibilityVariants | undefined) => {
|
|
513
538
|
tenant: boolean;
|
|
514
539
|
landlord: boolean;
|
|
515
540
|
};
|
|
516
541
|
|
|
517
|
-
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, 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 };
|
|
542
|
+
export { AutocompleteOption, Avatar, ButtonSelect, ButtonTab, ButtonsPanel, ButtonsPanelProps, CalendarHeaderWithSelect, CalendarStandardContainer, CalendarStandardHeader, CheckboxGroupWithTitle, CheckboxWithController, CheckboxWithControllerProps, DependentInput, DesktopInputWithMonthPicker, DesktopMenuPanel, DocumentVisibilityVariants, FileItemProps, FileParams, InputDropdown, InputFile, InputFileProps, InputForDatepicker, InputMultiSelect, InputPassword, InputPhoneWithForm, InputSelect, InputSelectBase, InputSelectBaseProps, InputSelectDropdown, InputSelectWithController, InputTextAreaMobile, 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 };
|