@consta/uikit 5.19.1 → 5.19.2
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/__internal__/src/components/Attachment/Attachment.d.ts +1 -1
- package/__internal__/src/components/AutoComplete/types.d.ts +2 -2
- package/__internal__/src/components/AutoComplete/useAutoComplete.d.ts +2 -2
- package/__internal__/src/components/AutoCompleteCanary/types.d.ts +2 -2
- package/__internal__/src/components/AutoCompleteCanary/useAutoComplete.d.ts +2 -2
- package/__internal__/src/components/AutoCompleteCanary/useRenderItemDefault.d.ts +2 -2
- package/__internal__/src/components/Badge/Badge.d.ts +1 -1
- package/__internal__/src/components/BadgeGroup/types.d.ts +3 -3
- package/__internal__/src/components/BookmarkTabs/types.d.ts +3 -3
- package/__internal__/src/components/CheckboxGroup/types.d.ts +1 -1
- package/__internal__/src/components/Chips/ChipsChoice/types.d.ts +2 -2
- package/__internal__/src/components/Chips/ChipsItem/ChipsItem.d.ts +1 -1
- package/__internal__/src/components/Chips/types.d.ts +3 -3
- package/__internal__/src/components/Collapse/types.d.ts +1 -1
- package/__internal__/src/components/CollapseGroup/helpers.d.ts +2 -2
- package/__internal__/src/components/Combobox/Combobox.d.ts +1 -1
- package/__internal__/src/components/Combobox/helpers.d.ts +2 -2
- package/__internal__/src/components/ContextMenu/ContextMenuLevels/useSize.d.ts +1 -1
- package/__internal__/src/components/ContextMenu/types.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerAdditionalControls/DatePickerAdditionalControls.d.ts +1 -1
- package/__internal__/src/components/DatePicker/DatePickerDropdown/DatePickerDropdown.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/helpers.d.ts +1 -1
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +4 -4
- package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePicker/useCalendarVisible.d.ts +1 -1
- package/__internal__/src/components/DateTime/helpers/useCurrentVisibleDate.d.ts +1 -1
- package/__internal__/src/components/DragNDropFieldCanary/types.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldCaption/FieldCaption.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldControlLayout/types.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldLabel/FieldLabel.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldLabel/helpers.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.d.ts +2 -2
- package/__internal__/src/components/FieldComponents/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/__internal__/src/components/FieldComponents/FieldWrapper/helpers.d.ts +2 -2
- package/__internal__/src/components/File/File.d.ts +1 -1
- package/__internal__/src/components/FileField/FileField.d.ts +1 -1
- package/__internal__/src/components/Grid/Grid.d.ts +1 -1
- package/__internal__/src/components/Grid/GridItem/GridItem.d.ts +1 -1
- package/__internal__/src/components/GridDeprecated/GridDeprecated.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListBox/mapVerticalSpace.d.ts +1 -1
- package/__internal__/src/components/ListCanary/ListLoader/ListLoader.d.ts +1 -1
- package/__internal__/src/components/ListCanary/maps.d.ts +1 -1
- package/__internal__/src/components/ListCanary/renderHeader.d.ts +1 -1
- package/__internal__/src/components/ListCanary/types.d.ts +5 -5
- package/__internal__/src/components/Modal/Modal.d.ts +1 -1
- package/__internal__/src/components/Pagination/types.d.ts +3 -3
- package/__internal__/src/components/Picture/types.d.ts +1 -1
- package/__internal__/src/components/Popover/Popover.d.ts +2 -2
- package/__internal__/src/components/Responses/Responses.d.ts +2 -2
- package/__internal__/src/components/Responses/createResponses.d.ts +1 -1
- package/__internal__/src/components/Responses403/index.d.ts +1 -1
- package/__internal__/src/components/Responses404/index.d.ts +1 -1
- package/__internal__/src/components/Responses500/index.d.ts +1 -1
- package/__internal__/src/components/Responses503/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesConnectionError/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesDeleted/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesEmptyBox/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesEmptyPockets/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesNothingFound/index.d.ts +1 -1
- package/__internal__/src/components/ResponsesSuccess/index.d.ts +1 -1
- package/__internal__/src/components/Select/Select.d.ts +1 -1
- package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.d.ts +1 -1
- package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.d.ts +2 -2
- package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.d.ts +4 -4
- package/__internal__/src/components/SelectCanary/SelectGroupLabel/SelectGroupLabel.d.ts +2 -2
- package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.d.ts +1 -1
- package/__internal__/src/components/SelectCanary/SelectItem/SelectItem.d.ts +3 -3
- package/__internal__/src/components/SelectCanary/SelectItemAll/SelectItemAll.d.ts +2 -2
- package/__internal__/src/components/SelectCanary/SelectPopover/SelectPopover.d.ts +3 -3
- package/__internal__/src/components/SelectCanary/defaultProps.d.ts +1 -1
- package/__internal__/src/components/SelectCanary/helpers.d.ts +4 -4
- package/__internal__/src/components/SelectCanary/types.d.ts +2 -2
- package/__internal__/src/components/SelectCanary/useSelect/useSelect.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectCreateButton/SelectCreateButton.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +3 -3
- package/__internal__/src/components/SelectComponents/SelectGroupLabel/SelectGroupLabel.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.d.ts +2 -2
- package/__internal__/src/components/SelectComponents/SelectItemAll/SelectItemAll.d.ts +1 -1
- package/__internal__/src/components/SelectComponents/useSelect/useSelect.d.ts +2 -2
- package/__internal__/src/components/SelectComponentsDeprecated/SelectCreateButton/SelectCreateButton.d.ts +1 -1
- package/__internal__/src/components/SelectComponentsDeprecated/SelectDropdown/SelectDropdown.d.ts +1 -1
- package/__internal__/src/components/Sidebar/Sidebar.d.ts +2 -2
- package/__internal__/src/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +1 -1
- package/__internal__/src/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +1 -1
- package/__internal__/src/components/Skeleton/SkeletonText/SkeletonText.d.ts +2 -2
- package/__internal__/src/components/Spoiler/SpoilerButton/SpoilerButton.d.ts +1 -1
- package/__internal__/src/components/Spoiler/types.d.ts +2 -2
- package/__internal__/src/components/Switch/types.d.ts +1 -1
- package/__internal__/src/components/Tabs/types.d.ts +2 -2
- package/__internal__/src/components/Tag/Tag.d.ts +1 -1
- package/__internal__/src/components/TextFieldCanary/types.d.ts +3 -3
- package/__internal__/src/components/ThemeToggler/types.d.ts +3 -3
- package/__internal__/src/components/Tooltip/types.d.ts +2 -2
- package/__internal__/src/components/UserSelect/UserSelect.d.ts +1 -1
- package/__internal__/src/components/UserSelectDeprecated/UserSelectItem/UserSelectItem.d.ts +1 -1
- package/__internal__/src/hocs/withTooltip/withTooltip.d.ts +1 -1
- package/__internal__/src/hooks/useComponentBreakpointsDeprecated/index.d.ts +1 -1
- package/__internal__/src/hooks/useComponentBreakpointsDeprecated/useComponentBreakpointsDeprecated.d.ts +1 -1
- package/__internal__/src/hooks/useComponentSize/getElementSize.d.ts +1 -1
- package/__internal__/src/hooks/useGlobalKeys/useGlobalKeys.d.ts +1 -1
- package/__internal__/src/hooks/useKeys/useKeys.d.ts +1 -1
- package/__internal__/src/hooks/useKeysRef/useKeysRef.d.ts +1 -1
- package/__internal__/src/utils/date/isDisableDate.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './Attachment.css';
|
|
2
2
|
import { AttachmentProps } from './types';
|
|
3
3
|
declare const cnAttachment: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
-
declare const Attachment: import("
|
|
4
|
+
declare const Attachment: import("../../utils/types/PropsWithAsAttributes").ComponentWithAs<AttachmentProps, "div">;
|
|
5
5
|
export { Attachment, cnAttachment };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropRenderItem } from '
|
|
3
|
-
import { TextFieldProps } from '
|
|
2
|
+
import { PropRenderItem } from '../Select';
|
|
3
|
+
import { TextFieldProps } from '../TextField';
|
|
4
4
|
export type AutoCompleteItemDefault = {
|
|
5
5
|
id: string | number;
|
|
6
6
|
label: string;
|
|
@@ -39,12 +39,12 @@ type GetOptionPropsResult = {
|
|
|
39
39
|
};
|
|
40
40
|
export declare function useAutoComplete<ITEM, GROUP>(params: UseAutoCompleteProps<ITEM, GROUP>): {
|
|
41
41
|
isOpen: boolean;
|
|
42
|
-
visibleItems: import("
|
|
42
|
+
visibleItems: import("../../utils/getGroups").GetGroupsResult<ITEM, GROUP>;
|
|
43
43
|
getOptionProps: ({ index, item, }: OptionProps<ITEM>) => GetOptionPropsResult;
|
|
44
44
|
handleInputFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
45
45
|
handleInputBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
46
46
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
47
|
-
getKeyProps: (rest?: import("
|
|
47
|
+
getKeyProps: (rest?: import("../../hooks/useKeysDeprecated").KeyProps) => import("../../hooks/useKeysDeprecated").KeyProps;
|
|
48
48
|
hasItems: boolean;
|
|
49
49
|
optionsRefs: React.RefObject<HTMLDivElement>[];
|
|
50
50
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropRenderItem } from '
|
|
3
|
-
import { TextFieldProps } from '
|
|
2
|
+
import { PropRenderItem } from '../Select';
|
|
3
|
+
import { TextFieldProps } from '../TextFieldCanary';
|
|
4
4
|
export type AutoCompleteItemDefault = {
|
|
5
5
|
id: string | number;
|
|
6
6
|
label: string;
|
|
@@ -35,11 +35,11 @@ type GetOptionPropsResult = {
|
|
|
35
35
|
};
|
|
36
36
|
export declare function useAutoComplete<ITEM, GROUP>(params: UseAutoCompleteProps<ITEM, GROUP>): {
|
|
37
37
|
isOpen: boolean;
|
|
38
|
-
visibleItems: import("
|
|
38
|
+
visibleItems: import("../../utils/getGroups").GetGroupsResult<ITEM, GROUP>;
|
|
39
39
|
getOptionProps: ({ index, item, }: OptionProps<ITEM>) => GetOptionPropsResult;
|
|
40
40
|
handleInputFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
41
41
|
inputRef: React.RefObject<HTMLInputElement>;
|
|
42
|
-
getKeyProps: (rest?: import("
|
|
42
|
+
getKeyProps: (rest?: import("../../hooks/useKeysDeprecated").KeyProps) => import("../../hooks/useKeysDeprecated").KeyProps;
|
|
43
43
|
hasItems: boolean;
|
|
44
44
|
optionsRefs: React.RefObject<HTMLDivElement>[];
|
|
45
45
|
handleChange: AutoCompletePropOnChange<"text">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldPropSize } from '
|
|
2
|
-
import { PropRenderItem } from '
|
|
1
|
+
import { FieldPropSize } from '../FieldComponents';
|
|
2
|
+
import { PropRenderItem } from '../Select';
|
|
3
3
|
import { AutoCompleteItemDefault, AutoCompletePropDropdownForm, AutoCompletePropGetItemLabel } from './types';
|
|
4
4
|
export declare const useRenderItemDefault: (getItemLabel: AutoCompletePropGetItemLabel<AutoCompleteItemDefault>, disabled: boolean, size: FieldPropSize, dropdownForm: AutoCompletePropDropdownForm) => PropRenderItem<AutoCompleteItemDefault>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './Badge.css';
|
|
2
2
|
import { BadgeProps } from './types';
|
|
3
|
-
export declare const Badge: import("
|
|
3
|
+
export declare const Badge: import("../../utils/types/PropsWithAsAttributes").ComponentWithAs<BadgeProps, "div">;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BadgePropForm, BadgePropSize, BadgePropStatus, BadgePropView } from '
|
|
4
|
-
import { AsAttributes, AsTags } from '
|
|
5
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { BadgePropForm, BadgePropSize, BadgePropStatus, BadgePropView } from '../Badge';
|
|
4
|
+
import { AsAttributes, AsTags } from '../../utils/types/AsTags';
|
|
5
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
6
6
|
export type BadgeGroupDefaultItem = {
|
|
7
7
|
key: string | number;
|
|
8
8
|
status?: BadgePropStatus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AsAttributes, AsTags } from '
|
|
4
|
-
import { PropsWithAsAttributes } from '
|
|
5
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { AsAttributes, AsTags } from '../../utils/types/AsTags';
|
|
4
|
+
import { PropsWithAsAttributes } from '../../utils/types/PropsWithAsAttributes';
|
|
5
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
6
6
|
export declare const bookmarkTabsPropSize: readonly ["m", "s"];
|
|
7
7
|
export type BookmarkTabsPropSize = typeof bookmarkTabsPropSize[number];
|
|
8
8
|
export declare const bookmarkTabsPropSizeDefault: BookmarkTabsPropSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
type CheckboxGroupPropAttributes = Omit<JSX.IntrinsicElements['label'], 'ref' | 'onChange' | 'onFocus' | 'children' | 'onBlur'>;
|
|
4
4
|
export type CheckboxGroupDefaultItem = {
|
|
5
5
|
key?: string | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChipsItemProps, ChipsPropActiveView, ChipsPropGetItemIconLeft, ChipsPropGetItemLabel, ChipsPropGetItemRef, ChipsPropGetItemStatus, ChipsPropSize } from '
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
1
|
+
import { ChipsItemProps, ChipsPropActiveView, ChipsPropGetItemIconLeft, ChipsPropGetItemLabel, ChipsPropGetItemRef, ChipsPropGetItemStatus, ChipsPropSize } from '..';
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
export type ChipsChoiceDefaultItem = Omit<ChipsItemProps, 'size' | 'activeView' | 'interactive' | 'onRightIconClick' | 'iconRight' | 'as'> & {
|
|
4
4
|
key: string;
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './ChipsItem.css';
|
|
2
2
|
import { ChipsItemProps } from '../types';
|
|
3
|
-
export declare const ChipsItem: import("
|
|
3
|
+
export declare const ChipsItem: import("../../../utils/types/PropsWithAsAttributes").ComponentWithAs<ChipsItemProps, "span">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
|
-
import { BadgePropStatus } from '
|
|
3
|
-
import { AsAttributes, AsTags } from '
|
|
4
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { BadgePropStatus } from '../Badge';
|
|
3
|
+
import { AsAttributes, AsTags } from '../../utils/types/AsTags';
|
|
4
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
export declare const chipsPropSize: readonly ["xs", "s", "m", "l"];
|
|
6
6
|
export type ChipsPropSize = typeof chipsPropSize[number];
|
|
7
7
|
export declare const chipsPropSizeDefault: ChipsPropSize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent, IconProps } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
export declare const collapsePropSize: readonly ["m", "l", "s", "xs", "2xs"];
|
|
5
5
|
export type CollapsePropSize = typeof collapsePropSize[number];
|
|
6
6
|
export declare const collapsePropSizeDefault: "m";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { CollapseIconPropDirection, CollapsePropForm, CollapsePropHorizontalSpace, CollapsePropIconView, CollapsePropSize, CollapsePropView } from '
|
|
4
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { CollapseIconPropDirection, CollapsePropForm, CollapsePropHorizontalSpace, CollapsePropIconView, CollapsePropSize, CollapsePropView } from '../Collapse';
|
|
4
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
export type DefaultItem = {
|
|
6
6
|
label: React.ReactNode;
|
|
7
7
|
content: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropForm, PropSize, PropStatus, PropView, RenderItemProps } from '
|
|
4
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { PropForm, PropSize, PropStatus, PropView, RenderItemProps } from '../SelectComponents/types';
|
|
4
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
export type ComboboxItemDefault = {
|
|
6
6
|
label: string;
|
|
7
7
|
id: string | number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentSize } from '
|
|
1
|
+
import { ComponentSize } from '../../../hooks/useComponentSize';
|
|
2
2
|
export declare const useSize: (refs: React.RefObject<HTMLDivElement>[], setFn: React.Dispatch<React.SetStateAction<ComponentSize>>, isActive?: boolean) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
|
-
import { ListPropForm } from '
|
|
3
|
-
import { ComponentSize } from '
|
|
4
|
-
import { Animate } from '
|
|
5
|
-
import { AsAttributes, AsTags } from '
|
|
2
|
+
import { ListPropForm } from '../ListCanary';
|
|
3
|
+
import { ComponentSize } from '../../hooks/useComponentSize';
|
|
4
|
+
import { Animate } from '../../mixs/MixPopoverAnimate';
|
|
5
|
+
import { AsAttributes, AsTags } from '../../utils/types/AsTags';
|
|
6
6
|
import { ClickOutsideHandler } from '../../hooks/useClickOutside/useClickOutside';
|
|
7
7
|
import { PropsWithAsAttributes } from '../../utils/types/PropsWithAsAttributes';
|
|
8
8
|
import { PropsWithHTMLAttributes, PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './DatePickerAdditionalControls.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributes } from '
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
import { DatePickerAdditionalControlRenderProp, DatePickerPropDateTimeView, DatePickerPropType } from '../types';
|
|
5
5
|
type Props = PropsWithHTMLAttributes<{
|
|
6
6
|
renderAdditionalControls?: DatePickerAdditionalControlRenderProp;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './DatePickerDropdown.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { DateTimePropOnChange, DateTimePropType } from '
|
|
4
|
-
import { DateTimePropDisableDates } from '
|
|
5
|
-
import { DateRange } from '
|
|
6
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { DateTimePropOnChange, DateTimePropType } from '../../DateTime';
|
|
4
|
+
import { DateTimePropDisableDates } from '../../DateTime/helpers/types';
|
|
5
|
+
import { DateRange } from '../../../utils/types/Date';
|
|
6
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
7
7
|
import { DatePickerAdditionalControlRenderProp, DatePickerPropDateTimeView, DatePickerPropDropdownForm } from '../types';
|
|
8
8
|
export type DatePickerDropdownPropOnChange = DateTimePropOnChange;
|
|
9
9
|
export type DatePickerDropdownProps = PropsWithHTMLAttributesAndRef<{
|
package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export declare const DatePickerFieldTypeDate: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
size?: import("
|
|
13
|
-
view?: import("
|
|
14
|
-
form?: import("
|
|
15
|
-
status?: import("
|
|
12
|
+
size?: import("../../TextField").TextFieldPropSize;
|
|
13
|
+
view?: import("../../TextField").TextFieldPropView;
|
|
14
|
+
form?: import("../../TextField").TextFieldPropForm;
|
|
15
|
+
status?: import("../../TextField").TextFieldPropStatus;
|
|
16
16
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
18
|
autoFocus?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
|
-
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '
|
|
3
|
-
import { PropsWithHTMLAttributes } from '
|
|
2
|
+
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../../TextField';
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
import { DatePickerPropOnError } from '../types';
|
|
5
5
|
type DatePickerFieldTypeDatePropOnChange = (value: Date | null, props: {
|
|
6
6
|
e: Event;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { DateRange } from '
|
|
3
|
+
import { DateRange } from '../../../utils/types/Date';
|
|
4
4
|
import { DatePickerFieldTypeDateProps } from '../DatePickerFieldTypeDate/helpers';
|
|
5
5
|
type DatePickerFieldTypeDateRangePropOnChange = (value: DateRange | null, props: {
|
|
6
6
|
e: Event;
|
|
@@ -9,10 +9,10 @@ export declare const DatePickerFieldTypeDateTime: React.ForwardRefExoticComponen
|
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
size?: import("
|
|
13
|
-
view?: import("
|
|
14
|
-
form?: import("
|
|
15
|
-
status?: import("
|
|
12
|
+
size?: import("../../TextField").TextFieldPropSize;
|
|
13
|
+
view?: import("../../TextField").TextFieldPropView;
|
|
14
|
+
form?: import("../../TextField").TextFieldPropForm;
|
|
15
|
+
status?: import("../../TextField").TextFieldPropStatus;
|
|
16
16
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
18
|
autoFocus?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '
|
|
4
|
-
import { PropsWithHTMLAttributes } from '
|
|
3
|
+
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../../TextField/TextField';
|
|
4
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
import { DatePickerPropOnError } from '../types';
|
|
6
6
|
type DatePickerFieldTypeDateTimePropOnChange = (value: Date | null, props: {
|
|
7
7
|
e: Event;
|
|
@@ -9,10 +9,10 @@ export declare const DatePickerFieldTypeMonth: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
size?: import("
|
|
13
|
-
view?: import("
|
|
14
|
-
form?: import("
|
|
15
|
-
status?: import("
|
|
12
|
+
size?: import("../../TextField").TextFieldPropSize;
|
|
13
|
+
view?: import("../../TextField").TextFieldPropView;
|
|
14
|
+
form?: import("../../TextField").TextFieldPropForm;
|
|
15
|
+
status?: import("../../TextField").TextFieldPropStatus;
|
|
16
16
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
18
|
autoFocus?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
|
-
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '
|
|
3
|
-
import { PropsWithHTMLAttributes } from '
|
|
2
|
+
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../../TextField';
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
import { DatePickerPropOnError } from '../types';
|
|
5
5
|
type DatePickerFieldTypeMonthPropOnChange = (value: Date | null, props: {
|
|
6
6
|
e: Event;
|
package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export declare const DatePickerFieldTypeTime: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
size?: import("
|
|
13
|
-
view?: import("
|
|
14
|
-
form?: import("
|
|
15
|
-
status?: import("
|
|
12
|
+
size?: import("../../TextField").TextFieldPropSize;
|
|
13
|
+
view?: import("../../TextField").TextFieldPropView;
|
|
14
|
+
form?: import("../../TextField").TextFieldPropForm;
|
|
15
|
+
status?: import("../../TextField").TextFieldPropStatus;
|
|
16
16
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
18
|
autoFocus?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '
|
|
4
|
-
import { PropsWithHTMLAttributes } from '
|
|
3
|
+
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../../TextField';
|
|
4
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
import { DatePickerPropOnError } from '../types';
|
|
6
6
|
type DatePickerFieldTypeTimePropOnChange = (value: Date | null, props: {
|
|
7
7
|
e: Event;
|
package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ export declare const DatePickerFieldTypeYear: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
id?: string;
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
size?: import("
|
|
13
|
-
view?: import("
|
|
14
|
-
form?: import("
|
|
15
|
-
status?: import("
|
|
12
|
+
size?: import("../../TextField").TextFieldPropSize;
|
|
13
|
+
view?: import("../../TextField").TextFieldPropView;
|
|
14
|
+
form?: import("../../TextField").TextFieldPropForm;
|
|
15
|
+
status?: import("../../TextField").TextFieldPropStatus;
|
|
16
16
|
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
17
17
|
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
18
18
|
autoFocus?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
2
|
-
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '
|
|
3
|
-
import { PropsWithHTMLAttributes } from '
|
|
2
|
+
import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView } from '../../TextField';
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
import { DatePickerPropOnError } from '../types';
|
|
5
5
|
type DatePickerFieldTypeYearPropOnChange = (value: Date | null, props: {
|
|
6
6
|
e: Event;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIMask } from 'react-imask';
|
|
2
|
-
import { TextFieldPropForm } from '
|
|
3
|
-
import { DateRange } from '
|
|
2
|
+
import { TextFieldPropForm } from '../TextField';
|
|
3
|
+
import { DateRange } from '../../utils/types/Date';
|
|
4
4
|
import { DatePickerPropType } from './types';
|
|
5
5
|
export declare const datePickerPropSeparatorDefault = ".";
|
|
6
6
|
export declare const datePickerPropFormatTypeDate = "dd.MM.yyyy";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import { Accept, DropEvent, FileRejection, FileWithPath } from 'react-dropzone';
|
|
3
|
-
import { PropsWithHTMLAttributes } from '
|
|
3
|
+
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
export type DragNDropFieldChildrenRenderFn = (props: {
|
|
5
5
|
openFileDialog: () => void;
|
|
6
6
|
isFocused: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
import { FieldPropSize } from '../types';
|
|
4
4
|
export type FieldArrayValueInlineControlProps<ITEM> = PropsWithHTMLAttributesAndRef<{
|
|
5
5
|
children?: never;
|
package/__internal__/src/components/FieldComponents/FieldArrayValueItem/FieldArrayValueItem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './FieldArrayValueItem.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
type FieldArrayValueItemProps = PropsWithHTMLAttributesAndRef<{
|
|
5
5
|
label: string;
|
|
6
6
|
size: 's' | 'm' | 'l' | 'xs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
type FieldButtonProps = PropsWithHTMLAttributesAndRef<{
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}, HTMLButtonElement>;
|
|
@@ -2,5 +2,5 @@ import { FieldPropStatus } from '../types';
|
|
|
2
2
|
type FieldCaptionProps = {
|
|
3
3
|
status?: FieldPropStatus;
|
|
4
4
|
};
|
|
5
|
-
export declare const FieldCaption: import("
|
|
5
|
+
export declare const FieldCaption: import("../../../utils/types/PropsWithAsAttributes").ComponentWithAs<FieldCaptionProps, "div">;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FieldPropSize } from '
|
|
4
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { FieldPropSize } from '..';
|
|
4
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
type FieldClearButtonProps = PropsWithHTMLAttributesAndRef<{
|
|
6
6
|
size?: FieldPropSize;
|
|
7
7
|
children?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
import { FieldPropForm, FieldPropSize, FieldPropStatus, FieldPropView } from '../types';
|
|
4
4
|
export type FieldControlLayoutProps = PropsWithHTMLAttributesAndRef<{
|
|
5
5
|
size?: FieldPropSize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
type FieldCounterProps = PropsWithHTMLAttributesAndRef<{
|
|
4
4
|
children?: never;
|
|
5
5
|
onIncrementClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PropsWithJsxAttributes } from '
|
|
2
|
+
import { PropsWithJsxAttributes } from '../../../utils/types/PropsWithJsxAttributes';
|
|
3
3
|
type FieldInputProps = PropsWithJsxAttributes<{
|
|
4
4
|
children?: never;
|
|
5
5
|
}, 'input'>;
|
|
@@ -7,5 +7,5 @@ type FieldLabelProps = {
|
|
|
7
7
|
required?: boolean;
|
|
8
8
|
iconRef?: React.Ref<HTMLSpanElement>;
|
|
9
9
|
};
|
|
10
|
-
export declare const FieldLabel: import("
|
|
10
|
+
export declare const FieldLabel: import("../../../utils/types/PropsWithAsAttributes").ComponentWithAs<FieldLabelProps, "div">;
|
|
11
11
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconPropSize } from '@consta/icons/Icon';
|
|
2
|
-
import { Space } from '
|
|
2
|
+
import { Space } from '../../../mixs/MixSpace';
|
|
3
3
|
import { FieldPropSize } from '../types';
|
|
4
4
|
export declare const iconSizeMap: Record<FieldPropSize, IconPropSize>;
|
|
5
5
|
export declare const iconSpaceMap: Record<FieldPropSize, Space>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent } from '@consta/icons/Icon';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { FieldPropSize } from '
|
|
4
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { FieldPropSize } from '..';
|
|
4
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
5
5
|
type FieldToggleVisiblePasswordButtonProps = PropsWithHTMLAttributesAndRef<{
|
|
6
6
|
size?: FieldPropSize;
|
|
7
7
|
active?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FieldWrapperProps } from './types';
|
|
2
|
-
export declare const FieldWrapper: import("
|
|
2
|
+
export declare const FieldWrapper: import("../../../utils/types/PropsWithAsAttributes").ComponentWithAs<FieldWrapperProps, "div">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MixFlexPropDirection } from '
|
|
2
|
-
import { Space } from '
|
|
1
|
+
import { MixFlexPropDirection } from '../../../mixs/MixFlex';
|
|
2
|
+
import { Space } from '../../../mixs/MixSpace';
|
|
3
3
|
import { FieldPropSize } from '../types';
|
|
4
4
|
import { FieldWrapperProps } from './types';
|
|
5
5
|
export declare const spaceMap: Record<FieldPropSize, Space>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './FileField.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { AsTags } from '
|
|
3
|
+
import { AsTags } from '../../utils/types/AsTags';
|
|
4
4
|
import { PropsWithJsxAttributes } from '../../utils/types/PropsWithJsxAttributes';
|
|
5
5
|
type ComponentProps = {
|
|
6
6
|
role: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './Grid.css';
|
|
2
2
|
import { GridProps } from './types';
|
|
3
3
|
export declare const cnGrid: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
-
export declare const Grid: import("
|
|
4
|
+
export declare const Grid: import("../../utils/types/PropsWithAsAttributes").ComponentWithAs<GridProps, "div">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './GridItem.css';
|
|
2
2
|
import { GridItemProps } from '../types';
|
|
3
3
|
export declare const cnGridItem: import("@bem-react/classname").ClassNameFormatter;
|
|
4
|
-
export declare const GridItem: import("
|
|
4
|
+
export declare const GridItem: import("../../../utils/types/PropsWithAsAttributes").ComponentWithAs<GridItemProps, "div">;
|
|
@@ -30,4 +30,4 @@ export type GridProps = Breakpoint & {
|
|
|
30
30
|
breakpoints?: BreakpointsProps;
|
|
31
31
|
};
|
|
32
32
|
export declare const cnGrid: import("@bem-react/classname").ClassNameFormatter;
|
|
33
|
-
export declare const Grid: import("
|
|
33
|
+
export declare const Grid: import("../../utils/types/PropsWithAsAttributes").ComponentWithAs<GridProps, "div">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './ListLoader.css';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PropsWithHTMLAttributesAndRef } from '
|
|
3
|
+
import { PropsWithHTMLAttributesAndRef } from '../../../utils/types/PropsWithHTMLAttributes';
|
|
4
4
|
import { ListPropInnerOffset, ListPropSize } from '../types';
|
|
5
5
|
export declare const cnListLoader: import("@bem-react/classname").ClassNameFormatter;
|
|
6
6
|
type Props = PropsWithHTMLAttributesAndRef<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconPropSize } from '@consta/icons/Icon';
|
|
2
|
-
import { Space } from '
|
|
2
|
+
import { Space } from '../../mixs/MixSpace';
|
|
3
3
|
import { ListPropSize } from './types';
|
|
4
4
|
export declare const mapHorizontalSpace: Record<ListPropSize, Space>;
|
|
5
5
|
export declare const mapHorizontalSpaceIncreased: Record<ListPropSize, Space>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MixSpaceProps } from '
|
|
2
|
+
import { MixSpaceProps } from '../../mixs/MixSpace';
|
|
3
3
|
import { ListPropSize } from './types';
|
|
4
4
|
export declare const renderHeader: (label: string | undefined, first: boolean, size: ListPropSize, rightSide: React.ReactNode, labelSpace: MixSpaceProps | undefined, dividerSpace: MixSpaceProps | undefined, className: string | undefined) => React.ReactNode | null;
|