@consta/uikit 5.3.0 → 5.3.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/Attachment/index.d.ts +1 -0
- package/Attachment/index.js +1 -0
- package/AttachmentDeprecated/index.d.ts +1 -0
- package/AttachmentDeprecated/index.js +1 -0
- package/AutoComplete/index.d.ts +1 -0
- package/AutoComplete/index.js +1 -0
- package/Avatar/index.d.ts +1 -0
- package/Avatar/index.js +1 -0
- package/AvatarGroup/index.d.ts +1 -0
- package/AvatarGroup/index.js +1 -0
- package/Badge/index.d.ts +1 -0
- package/Badge/index.js +1 -0
- package/BadgeGroup/index.d.ts +1 -0
- package/BadgeGroup/index.js +1 -0
- package/BookmarkTabs/index.d.ts +1 -0
- package/BookmarkTabs/index.js +1 -0
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +1 -0
- package/Button/index.d.ts +1 -0
- package/Button/index.js +1 -0
- package/Card/index.d.ts +1 -0
- package/Card/index.js +1 -0
- package/Checkbox/index.d.ts +1 -0
- package/Checkbox/index.js +1 -0
- package/CheckboxDeprecated/index.d.ts +1 -0
- package/CheckboxDeprecated/index.js +1 -0
- package/CheckboxGroup/index.d.ts +1 -0
- package/CheckboxGroup/index.js +1 -0
- package/Chips/index.d.ts +1 -0
- package/Chips/index.js +1 -0
- package/ChoiceGroup/index.d.ts +1 -0
- package/ChoiceGroup/index.js +1 -0
- package/Collapse/index.d.ts +1 -0
- package/Collapse/index.js +1 -0
- package/CollapseGroup/index.d.ts +1 -0
- package/CollapseGroup/index.js +1 -0
- package/Combobox/index.d.ts +1 -0
- package/Combobox/index.js +1 -0
- package/ComboboxDeprecated/index.d.ts +1 -0
- package/ComboboxDeprecated/index.js +1 -0
- package/ContextMenu/index.d.ts +1 -0
- package/ContextMenu/index.js +1 -0
- package/DatePicker/index.d.ts +1 -0
- package/DatePicker/index.js +1 -0
- package/DateTime/index.d.ts +1 -0
- package/DateTime/index.js +1 -0
- package/DragNDropField/index.d.ts +1 -0
- package/DragNDropField/index.js +1 -0
- package/DragNDropFieldCanary/index.d.ts +1 -0
- package/DragNDropFieldCanary/index.js +1 -0
- package/EventInterceptor/index.d.ts +1 -0
- package/EventInterceptor/index.js +1 -0
- package/FieldCaption/index.d.ts +1 -0
- package/FieldCaption/index.js +1 -0
- package/FieldGroup/index.d.ts +1 -0
- package/FieldGroup/index.js +1 -0
- package/FieldLabel/index.d.ts +1 -0
- package/FieldLabel/index.js +1 -0
- package/File/index.d.ts +1 -0
- package/File/index.js +1 -0
- package/FileField/index.d.ts +1 -0
- package/FileField/index.js +1 -0
- package/Grid/index.d.ts +1 -0
- package/Grid/index.js +1 -0
- package/GridDeprecated/index.d.ts +1 -0
- package/GridDeprecated/index.js +1 -0
- package/Informer/index.d.ts +1 -0
- package/Informer/index.js +1 -0
- package/Layout/index.d.ts +1 -0
- package/Layout/index.js +1 -0
- package/ListCanary/index.d.ts +1 -0
- package/ListCanary/index.js +1 -0
- package/Loader/index.d.ts +1 -0
- package/Loader/index.js +1 -0
- package/LoaderDeprecated/index.d.ts +1 -0
- package/LoaderDeprecated/index.js +1 -0
- package/MixCard/index.d.ts +1 -0
- package/MixCard/index.js +1 -0
- package/MixFocus/index.d.ts +1 -0
- package/MixFocus/index.js +1 -0
- package/MixPopoverAnimate/index.d.ts +1 -0
- package/MixPopoverAnimate/index.js +1 -0
- package/MixPopoverArrow/index.d.ts +1 -0
- package/MixPopoverArrow/index.js +1 -0
- package/MixSpace/index.d.ts +1 -0
- package/MixSpace/index.js +1 -0
- package/MixVisuallyHidden/index.d.ts +1 -0
- package/MixVisuallyHidden/index.js +1 -0
- package/Modal/index.d.ts +1 -0
- package/Modal/index.js +1 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/PaginationDeprecated/index.d.ts +1 -0
- package/PaginationDeprecated/index.js +1 -0
- package/Picture/index.d.ts +1 -0
- package/Picture/index.js +1 -0
- package/Popover/index.d.ts +1 -0
- package/Popover/index.js +1 -0
- package/PortalWithTheme/index.d.ts +1 -0
- package/PortalWithTheme/index.js +1 -0
- package/ProgressLine/index.d.ts +1 -0
- package/ProgressLine/index.js +1 -0
- package/ProgressSpin/index.d.ts +1 -0
- package/ProgressSpin/index.js +1 -0
- package/ProgressStepBar/index.d.ts +1 -0
- package/ProgressStepBar/index.js +1 -0
- package/Radio/index.d.ts +1 -0
- package/Radio/index.js +1 -0
- package/RadioGroup/index.d.ts +1 -0
- package/RadioGroup/index.js +1 -0
- package/Responses/index.d.ts +1 -0
- package/Responses/index.js +1 -0
- package/Responses403/index.d.ts +1 -0
- package/Responses403/index.js +1 -0
- package/Responses404/index.d.ts +1 -0
- package/Responses404/index.js +1 -0
- package/Responses500/index.d.ts +1 -0
- package/Responses500/index.js +1 -0
- package/Responses503/index.d.ts +1 -0
- package/Responses503/index.js +1 -0
- package/ResponsesConnectionError/index.d.ts +1 -0
- package/ResponsesConnectionError/index.js +1 -0
- package/ResponsesDeleted/index.d.ts +1 -0
- package/ResponsesDeleted/index.js +1 -0
- package/ResponsesEmptyBox/index.d.ts +1 -0
- package/ResponsesEmptyBox/index.js +1 -0
- package/ResponsesEmptyPockets/index.d.ts +1 -0
- package/ResponsesEmptyPockets/index.js +1 -0
- package/ResponsesExit/index.d.ts +1 -0
- package/ResponsesExit/index.js +1 -0
- package/ResponsesImage/index.d.ts +1 -0
- package/ResponsesImage/index.js +1 -0
- package/ResponsesImage403/index.d.ts +1 -0
- package/ResponsesImage403/index.js +1 -0
- package/ResponsesImage404/index.d.ts +1 -0
- package/ResponsesImage404/index.js +1 -0
- package/ResponsesImage500/index.d.ts +1 -0
- package/ResponsesImage500/index.js +1 -0
- package/ResponsesImage503/index.d.ts +1 -0
- package/ResponsesImage503/index.js +1 -0
- package/ResponsesImageConnectionError/index.d.ts +1 -0
- package/ResponsesImageConnectionError/index.js +1 -0
- package/ResponsesImageDeleted/index.d.ts +1 -0
- package/ResponsesImageDeleted/index.js +1 -0
- package/ResponsesImageEmptyBox/index.d.ts +1 -0
- package/ResponsesImageEmptyBox/index.js +1 -0
- package/ResponsesImageEmptyPockets/index.d.ts +1 -0
- package/ResponsesImageEmptyPockets/index.js +1 -0
- package/ResponsesImageExit/index.d.ts +1 -0
- package/ResponsesImageExit/index.js +1 -0
- package/ResponsesImageNothingFound/index.d.ts +1 -0
- package/ResponsesImageNothingFound/index.js +1 -0
- package/ResponsesImageSuccess/index.d.ts +1 -0
- package/ResponsesImageSuccess/index.js +1 -0
- package/ResponsesNothingFound/index.d.ts +1 -0
- package/ResponsesNothingFound/index.js +1 -0
- package/ResponsesSuccess/index.d.ts +1 -0
- package/ResponsesSuccess/index.js +1 -0
- package/Select/index.d.ts +1 -0
- package/Select/index.js +1 -0
- package/SelectDeprecated/index.d.ts +1 -0
- package/SelectDeprecated/index.js +1 -0
- package/Sidebar/index.d.ts +1 -0
- package/Sidebar/index.js +1 -0
- package/Skeleton/index.d.ts +1 -0
- package/Skeleton/index.js +1 -0
- package/Slider/index.d.ts +1 -0
- package/Slider/index.js +1 -0
- package/SnackBar/index.d.ts +1 -0
- package/SnackBar/index.js +1 -0
- package/Spoiler/index.d.ts +1 -0
- package/Spoiler/index.js +1 -0
- package/Steps/index.d.ts +1 -0
- package/Steps/index.js +1 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +1 -0
- package/SwitchGroup/index.d.ts +1 -0
- package/SwitchGroup/index.js +1 -0
- package/Table/index.d.ts +1 -0
- package/Table/index.js +1 -0
- package/Tabs/index.d.ts +1 -0
- package/Tabs/index.js +1 -0
- package/Tag/index.d.ts +1 -0
- package/Tag/index.js +1 -0
- package/TagBase/index.d.ts +1 -0
- package/TagBase/index.js +1 -0
- package/Text/index.d.ts +1 -0
- package/Text/index.js +1 -0
- package/TextDeprecated/index.d.ts +1 -0
- package/TextDeprecated/index.js +1 -0
- package/TextField/index.d.ts +1 -0
- package/TextField/index.js +1 -0
- package/Theme/index.d.ts +1 -0
- package/Theme/index.js +1 -0
- package/ThemeToggler/index.d.ts +1 -0
- package/ThemeToggler/index.js +1 -0
- package/Timer/index.d.ts +1 -0
- package/Timer/index.js +1 -0
- package/Tooltip/index.d.ts +1 -0
- package/Tooltip/index.js +1 -0
- package/TooltipDeprecated/index.d.ts +1 -0
- package/TooltipDeprecated/index.js +1 -0
- package/User/index.d.ts +1 -0
- package/User/index.js +1 -0
- package/UserSelect/index.d.ts +1 -0
- package/UserSelect/index.js +1 -0
- package/UserSelectDeprecated/index.d.ts +1 -0
- package/UserSelectDeprecated/index.js +1 -0
- package/__internal__/src/components/Button/Button.d.ts +2 -1
- package/__internal__/src/components/Button/Button.js +1 -1
- package/__internal__/src/components/Button/Button.js.map +1 -1
- package/createResponsesImage/index.d.ts +1 -0
- package/createResponsesImage/index.js +1 -0
- package/package.json +1 -1
- package/useChoiceGroup/index.d.ts +1 -0
- package/useChoiceGroup/index.js +1 -0
- package/useClickOutside/index.d.ts +1 -0
- package/useClickOutside/index.js +1 -0
- package/useComponentSize/index.d.ts +1 -0
- package/useComponentSize/index.js +1 -0
- package/useKeysDepricated/index.d.ts +1 -0
- package/useKeysDepricated/index.js +1 -0
- package/useMouseLeave/index.d.ts +1 -0
- package/useMouseLeave/index.js +1 -0
- package/useScrollElements/index.d.ts +1 -0
- package/useScrollElements/index.js +1 -0
- package/useTimer/index.d.ts +1 -0
- package/useTimer/index.js +1 -0
- package/withTooltip/index.d.ts +1 -0
- package/withTooltip/index.js +1 -0
package/Slider/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Slider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SnackBar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SnackBar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Spoiler";
|
package/Spoiler/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Spoiler";
|
package/Steps/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Steps";
|
package/Steps/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Steps";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Switch";
|
package/Switch/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Switch";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SwitchGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/SwitchGroup";
|
package/Table/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Table";
|
package/Table/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Table";
|
package/Tabs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tabs";
|
package/Tabs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tabs";
|
package/Tag/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tag";
|
package/Tag/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tag";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TagBase";
|
package/TagBase/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TagBase";
|
package/Text/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Text";
|
package/Text/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Text";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TextDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TextDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TextField";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TextField";
|
package/Theme/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Theme";
|
package/Theme/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Theme";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ThemeToggler";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/ThemeToggler";
|
package/Timer/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Timer";
|
package/Timer/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Timer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tooltip";
|
package/Tooltip/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/Tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TooltipDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/TooltipDeprecated";
|
package/User/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/User";
|
package/User/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/User";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/UserSelect";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/UserSelect";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/UserSelectDeprecated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/components/UserSelectDeprecated";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './Button.css';
|
|
2
2
|
import { IconComponent, IconPropSize } from '@consta/icons/Icon';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { HTMLProps } from 'react';
|
|
4
4
|
export declare const buttonPropSize: readonly ["m", "xs", "s", "l"];
|
|
5
5
|
export declare type ButtonPropSize = typeof buttonPropSize[number];
|
|
6
6
|
export declare const buttonPropSizeDefault: ButtonPropSize;
|
|
@@ -30,6 +30,7 @@ export declare type Props = {
|
|
|
30
30
|
title?: string;
|
|
31
31
|
children?: never;
|
|
32
32
|
type?: 'button' | 'reset' | 'submit';
|
|
33
|
+
formId?: HTMLProps<HTMLButtonElement>['form'];
|
|
33
34
|
};
|
|
34
35
|
export declare const COMPONENT_NAME: "Button";
|
|
35
36
|
export declare const cnButton: import("@bem-react/classname").ClassNameFormatter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["size","view","width","form","iconLeft","iconRight","label","className","onClick","disabled","loading","type","tabIndex","as","onlyIcon","iconSize"];import"./Button.css";import React,{useRef}from"react";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{cnMixFocus}from"../../mixs/MixFocus/MixFocus";import{cn}from"../../utils/bem";import{getByMap}from"../../utils/getByMap";import{forwardRefWithAs}from"../../utils/types/PropsWithAsAttributes";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{Loader}from"../LoaderDeprecated/LoaderDeprecated";export var buttonPropSize=["m","xs","s","l"];export var buttonPropSizeDefault=buttonPropSize[0];export var buttonPropView=["primary","clear","ghost","secondary"];export var buttonPropViewDefault=buttonPropView[0];export var buttonPropWidth=["default","full"];export var buttonPropWidthDefault=buttonPropWidth[0];export var buttonPropForm=["default","brick","round","brickRound","roundBrick","brickDefault","defaultBrick"];var mapStableForm={default:"default",defaultClear:"defaultBrick",defaultBrick:"defaultBrick",brick:"brick",brickDefault:"brickDefault",brickClear:"brick",brickRound:"brickRound",round:"round",roundClear:"roundBrick",roundBrick:"roundBrick",clearRound:"brickRound",clearDefault:"brickDefault",clearBrick:"brick",clearClear:"brick"};export var buttonPropFormDefault=buttonPropForm[0];export var COMPONENT_NAME="Button";export var cnButton=cn("Button");var sizeMap={xs:"xs",s:"xs",m:"s",l:"m"},sizeMapOnlyIcon={xs:"xs",s:"s",m:"m",l:"m"};export var Button=forwardRefWithAs(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.size,f=void 0===e?buttonPropSizeDefault:e,g=d.view,h=void 0===g?buttonPropViewDefault:g,i=d.width,j=void 0===i?buttonPropWidthDefault:i,k=d.form,l=void 0===k?buttonPropFormDefault:k,m=d.iconLeft,n=d.iconRight,o=d.label,p=d.className,q=d.onClick,r=d.disabled,s=d.loading,t=d.type,u=void 0===t?"button":t,v=d.tabIndex,w=d.as,x=void 0===w?"button":w,y=d.onlyIcon,z=d.iconSize,A=_objectWithoutProperties(d,_excluded),
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["size","view","width","form","iconLeft","iconRight","label","className","onClick","disabled","loading","type","tabIndex","as","onlyIcon","iconSize","formId"];import"./Button.css";import React,{useRef}from"react";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{cnMixFocus}from"../../mixs/MixFocus/MixFocus";import{cn}from"../../utils/bem";import{getByMap}from"../../utils/getByMap";import{forwardRefWithAs}from"../../utils/types/PropsWithAsAttributes";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{Loader}from"../LoaderDeprecated/LoaderDeprecated";export var buttonPropSize=["m","xs","s","l"];export var buttonPropSizeDefault=buttonPropSize[0];export var buttonPropView=["primary","clear","ghost","secondary"];export var buttonPropViewDefault=buttonPropView[0];export var buttonPropWidth=["default","full"];export var buttonPropWidthDefault=buttonPropWidth[0];export var buttonPropForm=["default","brick","round","brickRound","roundBrick","brickDefault","defaultBrick"];var mapStableForm={default:"default",defaultClear:"defaultBrick",defaultBrick:"defaultBrick",brick:"brick",brickDefault:"brickDefault",brickClear:"brick",brickRound:"brickRound",round:"round",roundClear:"roundBrick",roundBrick:"roundBrick",clearRound:"brickRound",clearDefault:"brickDefault",clearBrick:"brick",clearClear:"brick"};export var buttonPropFormDefault=buttonPropForm[0];export var COMPONENT_NAME="Button";export var cnButton=cn("Button");var sizeMap={xs:"xs",s:"xs",m:"s",l:"m"},sizeMapOnlyIcon={xs:"xs",s:"s",m:"m",l:"m"};export var Button=forwardRefWithAs(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.size,f=void 0===e?buttonPropSizeDefault:e,g=d.view,h=void 0===g?buttonPropViewDefault:g,i=d.width,j=void 0===i?buttonPropWidthDefault:i,k=d.form,l=void 0===k?buttonPropFormDefault:k,m=d.iconLeft,n=d.iconRight,o=d.label,p=d.className,q=d.onClick,r=d.disabled,s=d.loading,t=d.type,u=void 0===t?"button":t,v=d.tabIndex,w=d.as,x=void 0===w?"button":w,y=d.onlyIcon,z=d.iconSize,A=d.formId,B=_objectWithoutProperties(d,_excluded),C=(!o||y)&&(m||n),D=m,E=n,F=a.title||!!C&&o||void 0,G=C?getByMap(sizeMapOnlyIcon,f,z):getByMap(sizeMap,f,z);return React.createElement(x,Object.assign({},B,{onClick:q?function handleClick(a){r||s||!q||q(a)}:void 0,form:A,type:u,className:cnButton({size:f,view:h,width:j,form:mapStableForm[l],loading:s,disabled:r,withIcon:!!m||!!n,onlyIcon:!!C},[r||s?void 0:cnMixFocus(),p]),disabled:r,tabIndex:v,title:F,ref:useForkRef([b,c])}),C&&React.createElement(C,{className:cnButton("Icon"),size:G}),!C&&((D||E)&&o?React.createElement(React.Fragment,null,D&&React.createElement(D,{className:cnButton("Icon",{position:"left"}),size:G}),React.createElement("span",{className:cnButton("Label")},o),E&&React.createElement(E,{className:cnButton("Icon",{position:"right"}),size:G})):o),s&&React.createElement(Loader,{className:cnButton("Loader"),size:"s"}))});
|
|
2
2
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["React","useRef","useForkRef","cnMixFocus","cn","getByMap","forwardRefWithAs","usePropsHandler","Loader","buttonPropSize","buttonPropSizeDefault","buttonPropView","buttonPropViewDefault","buttonPropWidth","buttonPropWidthDefault","buttonPropForm","mapStableForm","defaultClear","defaultBrick","brick","brickDefault","brickClear","brickRound","round","roundClear","roundBrick","clearRound","clearDefault","clearBrick","clearClear","buttonPropFormDefault","COMPONENT_NAME","cnButton","sizeMap","xs","s","m","l","sizeMapOnlyIcon","Button","props","ref","buttonRef","size","view","width","form","iconLeft","iconRight","label","className","onClick","disabled","loading","type","tabIndex","as","onlyIcon","iconSizeProp","iconSize","otherProps","IconOnly","IconLeft","IconRight","title","handleClick","e","withIcon","position"],"sources":["../../../../../src/components/Button/Button.tsx"],"sourcesContent":["import './Button.css';\n\nimport { IconComponent, IconPropSize } from '@consta/icons/Icon';\nimport React, { useRef } from 'react';\n\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { cnMixFocus } from '../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../utils/bem';\nimport { getByMap } from '../../utils/getByMap';\nimport { forwardRefWithAs } from '../../utils/types/PropsWithAsAttributes';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport { Loader } from '../LoaderDeprecated/LoaderDeprecated';\n\nexport const buttonPropSize = ['m', 'xs', 's', 'l'] as const;\nexport type ButtonPropSize = typeof buttonPropSize[number];\nexport const buttonPropSizeDefault: ButtonPropSize = buttonPropSize[0];\n\nexport const buttonPropView = [\n 'primary',\n 'clear',\n 'ghost',\n 'secondary',\n] as const;\nexport type ButtonPropView = typeof buttonPropView[number];\nexport const buttonPropViewDefault: ButtonPropView = buttonPropView[0];\n\nexport const buttonPropWidth = ['default', 'full'] as const;\nexport type ButtonPropWidth = typeof buttonPropWidth[number];\nexport const buttonPropWidthDefault: ButtonPropWidth = buttonPropWidth[0];\n\nexport const buttonPropForm = [\n 'default',\n 'brick',\n 'round',\n 'brickRound',\n 'roundBrick',\n 'brickDefault',\n 'defaultBrick',\n] as const;\n\nexport type ButtonPropForm = typeof buttonPropForm[number];\n\ntype GlobalForm =\n | 'default'\n | 'brick'\n | 'round'\n | 'brickRound'\n | 'roundBrick'\n | 'brickDefault'\n | 'defaultBrick'\n | 'defaultClear'\n | 'brickClear'\n | 'roundClear'\n | 'clearRound'\n | 'clearDefault'\n | 'clearBrick'\n | 'clearClear';\n\nconst mapStableForm: Record<GlobalForm, ButtonPropForm> = {\n default: 'default',\n defaultClear: 'defaultBrick',\n defaultBrick: 'defaultBrick',\n brick: 'brick',\n brickDefault: 'brickDefault',\n brickClear: 'brick',\n brickRound: 'brickRound',\n round: 'round',\n roundClear: 'roundBrick',\n roundBrick: 'roundBrick',\n clearRound: 'brickRound',\n clearDefault: 'brickDefault',\n clearBrick: 'brick',\n clearClear: 'brick',\n};\n\nexport const buttonPropFormDefault = buttonPropForm[0];\n\nexport type Props = {\n size?: ButtonPropSize;\n view?: ButtonPropView;\n width?: ButtonPropWidth;\n form?: ButtonPropForm;\n tabIndex?: number;\n disabled?: boolean;\n loading?: boolean;\n label?: string | number;\n onClick?: React.EventHandler<React.MouseEvent>;\n iconLeft?: IconComponent;\n iconRight?: IconComponent;\n onlyIcon?: boolean;\n iconSize?: IconPropSize;\n title?: string;\n children?: never;\n type?: 'button' | 'reset' | 'submit';\n};\n\nexport const COMPONENT_NAME = 'Button' as const;\nexport const cnButton = cn(COMPONENT_NAME);\n\nconst sizeMap: Record<ButtonPropSize, IconPropSize> = {\n xs: 'xs',\n s: 'xs',\n m: 's',\n l: 'm',\n};\n\nconst sizeMapOnlyIcon: Record<ButtonPropSize, IconPropSize> = {\n xs: 'xs',\n s: 's',\n m: 'm',\n l: 'm',\n};\n\nexport const Button = forwardRefWithAs<Props, 'button'>((props, ref) => {\n const buttonRef = useRef<HTMLButtonElement | null>(null);\n\n const {\n size = buttonPropSizeDefault,\n view = buttonPropViewDefault,\n width = buttonPropWidthDefault,\n form = buttonPropFormDefault,\n iconLeft,\n iconRight,\n label,\n className,\n onClick,\n disabled,\n loading,\n type = 'button',\n tabIndex,\n as = 'button',\n onlyIcon,\n iconSize: iconSizeProp,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, buttonRef);\n\n const Tag = as as string;\n const IconOnly = (!label || onlyIcon) && (iconLeft || iconRight);\n const IconLeft = iconLeft;\n const IconRight = iconRight;\n const withIcon = !!iconLeft || !!iconRight;\n const title = props.title || (!!IconOnly && label) || undefined;\n const iconSize = IconOnly\n ? getByMap(sizeMapOnlyIcon, size, iconSizeProp)\n : getByMap(sizeMap, size, iconSizeProp);\n\n const handleClick = (e: React.MouseEvent<HTMLElement>) => {\n if (!disabled && !loading && onClick) {\n onClick(e);\n }\n };\n\n return (\n <Tag\n {...otherProps}\n onClick={onClick ? handleClick : undefined}\n type={type}\n className={cnButton(\n {\n size,\n view,\n width,\n form: mapStableForm[form],\n loading,\n disabled,\n withIcon,\n onlyIcon: !!IconOnly,\n },\n [!(disabled || loading) ? cnMixFocus() : undefined, className],\n )}\n disabled={disabled}\n tabIndex={tabIndex}\n title={title}\n ref={useForkRef([ref, buttonRef])}\n >\n {IconOnly && <IconOnly className={cnButton('Icon')} size={iconSize} />}\n {!IconOnly &&\n ((IconLeft || IconRight) && label ? (\n <>\n {IconLeft && (\n <IconLeft\n className={cnButton('Icon', { position: 'left' })}\n size={iconSize}\n />\n )}\n <span className={cnButton('Label')}>{label}</span>\n {IconRight && (\n <IconRight\n className={cnButton('Icon', { position: 'right' })}\n size={iconSize}\n />\n )}\n </>\n ) : (\n label\n ))}\n {loading && <Loader className={cnButton('Loader')} size=\"s\" />}\n </Tag>\n );\n});\n"],"mappings":"yPAAA,qB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AI,CAAE2B,CAA7C,EAtBf,CAuBG,CAACE,CAAD,GACE,CAACC,CAAQ,EAAIC,CAAb,GAA2Bd,CAA3B,CACC,wCACGa,CAAQ,EACP,oBAAC,CAAD,EACE,SAAS,CAAE9B,QAAQ,CAAC,MAAD,CAAS,CAAEoC,QAAQ,CAAE,MAAZ,CAAT,CADrB,CAEE,IAAI,CAAET,CAFR,EAFJ,CAOE,4BAAM,SAAS,CAAE3B,QAAQ,CAAC,OAAD,CAAzB,EAAqCiB,CAArC,CAPF,CAQGc,CAAS,EACR,oBAAC,CAAD,EACE,SAAS,CAAE/B,QAAQ,CAAC,MAAD,CAAS,CAAEoC,QAAQ,CAAE,OAAZ,CAAT,CADrB,CAEE,IAAI,CAAET,CAFR,EATJ,CADD,CAiBCV,CAlBH,CAvBH,CA2CGI,CAAO,EAAI,oBAAC,MAAD,EAAQ,SAAS,CAAErB,QAAQ,CAAC,QAAD,CAA3B,CAAuC,IAAI,CAAC,GAA5C,EA3Cd,CA8CH,CAtFqC,CAA/B"}
|
|
1
|
+
{"version":3,"file":"Button.js","names":["React","useRef","useForkRef","cnMixFocus","cn","getByMap","forwardRefWithAs","usePropsHandler","Loader","buttonPropSize","buttonPropSizeDefault","buttonPropView","buttonPropViewDefault","buttonPropWidth","buttonPropWidthDefault","buttonPropForm","mapStableForm","defaultClear","defaultBrick","brick","brickDefault","brickClear","brickRound","round","roundClear","roundBrick","clearRound","clearDefault","clearBrick","clearClear","buttonPropFormDefault","COMPONENT_NAME","cnButton","sizeMap","xs","s","m","l","sizeMapOnlyIcon","Button","props","ref","buttonRef","size","view","width","form","iconLeft","iconRight","label","className","onClick","disabled","loading","type","tabIndex","as","onlyIcon","iconSizeProp","iconSize","formId","otherProps","IconOnly","IconLeft","IconRight","title","handleClick","e","withIcon","position"],"sources":["../../../../../src/components/Button/Button.tsx"],"sourcesContent":["import './Button.css';\n\nimport { IconComponent, IconPropSize } from '@consta/icons/Icon';\nimport React, { HTMLProps, useRef } from 'react';\n\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { cnMixFocus } from '../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../utils/bem';\nimport { getByMap } from '../../utils/getByMap';\nimport { forwardRefWithAs } from '../../utils/types/PropsWithAsAttributes';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport { Loader } from '../LoaderDeprecated/LoaderDeprecated';\n\nexport const buttonPropSize = ['m', 'xs', 's', 'l'] as const;\nexport type ButtonPropSize = typeof buttonPropSize[number];\nexport const buttonPropSizeDefault: ButtonPropSize = buttonPropSize[0];\n\nexport const buttonPropView = [\n 'primary',\n 'clear',\n 'ghost',\n 'secondary',\n] as const;\nexport type ButtonPropView = typeof buttonPropView[number];\nexport const buttonPropViewDefault: ButtonPropView = buttonPropView[0];\n\nexport const buttonPropWidth = ['default', 'full'] as const;\nexport type ButtonPropWidth = typeof buttonPropWidth[number];\nexport const buttonPropWidthDefault: ButtonPropWidth = buttonPropWidth[0];\n\nexport const buttonPropForm = [\n 'default',\n 'brick',\n 'round',\n 'brickRound',\n 'roundBrick',\n 'brickDefault',\n 'defaultBrick',\n] as const;\n\nexport type ButtonPropForm = typeof buttonPropForm[number];\n\ntype GlobalForm =\n | 'default'\n | 'brick'\n | 'round'\n | 'brickRound'\n | 'roundBrick'\n | 'brickDefault'\n | 'defaultBrick'\n | 'defaultClear'\n | 'brickClear'\n | 'roundClear'\n | 'clearRound'\n | 'clearDefault'\n | 'clearBrick'\n | 'clearClear';\n\nconst mapStableForm: Record<GlobalForm, ButtonPropForm> = {\n default: 'default',\n defaultClear: 'defaultBrick',\n defaultBrick: 'defaultBrick',\n brick: 'brick',\n brickDefault: 'brickDefault',\n brickClear: 'brick',\n brickRound: 'brickRound',\n round: 'round',\n roundClear: 'roundBrick',\n roundBrick: 'roundBrick',\n clearRound: 'brickRound',\n clearDefault: 'brickDefault',\n clearBrick: 'brick',\n clearClear: 'brick',\n};\n\nexport const buttonPropFormDefault = buttonPropForm[0];\n\nexport type Props = {\n size?: ButtonPropSize;\n view?: ButtonPropView;\n width?: ButtonPropWidth;\n form?: ButtonPropForm;\n tabIndex?: number;\n disabled?: boolean;\n loading?: boolean;\n label?: string | number;\n onClick?: React.EventHandler<React.MouseEvent>;\n iconLeft?: IconComponent;\n iconRight?: IconComponent;\n onlyIcon?: boolean;\n iconSize?: IconPropSize;\n title?: string;\n children?: never;\n type?: 'button' | 'reset' | 'submit';\n formId?: HTMLProps<HTMLButtonElement>['form'];\n};\n\nexport const COMPONENT_NAME = 'Button' as const;\nexport const cnButton = cn(COMPONENT_NAME);\n\nconst sizeMap: Record<ButtonPropSize, IconPropSize> = {\n xs: 'xs',\n s: 'xs',\n m: 's',\n l: 'm',\n};\n\nconst sizeMapOnlyIcon: Record<ButtonPropSize, IconPropSize> = {\n xs: 'xs',\n s: 's',\n m: 'm',\n l: 'm',\n};\n\nexport const Button = forwardRefWithAs<Props, 'button'>((props, ref) => {\n const buttonRef = useRef<HTMLButtonElement | null>(null);\n\n const {\n size = buttonPropSizeDefault,\n view = buttonPropViewDefault,\n width = buttonPropWidthDefault,\n form = buttonPropFormDefault,\n iconLeft,\n iconRight,\n label,\n className,\n onClick,\n disabled,\n loading,\n type = 'button',\n tabIndex,\n as = 'button',\n onlyIcon,\n iconSize: iconSizeProp,\n formId,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, buttonRef);\n\n const Tag = as as string;\n const IconOnly = (!label || onlyIcon) && (iconLeft || iconRight);\n const IconLeft = iconLeft;\n const IconRight = iconRight;\n const withIcon = !!iconLeft || !!iconRight;\n const title = props.title || (!!IconOnly && label) || undefined;\n const iconSize = IconOnly\n ? getByMap(sizeMapOnlyIcon, size, iconSizeProp)\n : getByMap(sizeMap, size, iconSizeProp);\n\n const handleClick = (e: React.MouseEvent<HTMLElement>) => {\n if (!disabled && !loading && onClick) {\n onClick(e);\n }\n };\n\n return (\n <Tag\n {...otherProps}\n onClick={onClick ? handleClick : undefined}\n form={formId}\n type={type}\n className={cnButton(\n {\n size,\n view,\n width,\n form: mapStableForm[form],\n loading,\n disabled,\n withIcon,\n onlyIcon: !!IconOnly,\n },\n [!(disabled || loading) ? cnMixFocus() : undefined, className],\n )}\n disabled={disabled}\n tabIndex={tabIndex}\n title={title}\n ref={useForkRef([ref, buttonRef])}\n >\n {IconOnly && <IconOnly className={cnButton('Icon')} size={iconSize} />}\n {!IconOnly &&\n ((IconLeft || IconRight) && label ? (\n <>\n {IconLeft && (\n <IconLeft\n className={cnButton('Icon', { position: 'left' })}\n size={iconSize}\n />\n )}\n <span className={cnButton('Label')}>{label}</span>\n {IconRight && (\n <IconRight\n className={cnButton('Icon', { position: 'right' })}\n size={iconSize}\n />\n )}\n </>\n ) : (\n label\n ))}\n {loading && <Loader className={cnButton('Loader')} size=\"s\" />}\n </Tag>\n );\n});\n"],"mappings":"kQAAA,qBAGA,MAAOA,MAAP,EAA2BC,MAA3B,KAAyC,OAAzC,CAEA,OAASC,UAAT,yCACA,OAASC,UAAT,oCACA,OAASC,EAAT,uBACA,OAASC,QAAT,4BACA,OAASC,gBAAT,+CACA,OAASC,eAAT,2CACA,OAASC,MAAT,4CAEA,MAAO,IAAMC,eAAc,CAAG,CAAC,GAAD,CAAM,IAAN,CAAY,GAAZ,CAAiB,GAAjB,CAAvB,CAEP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,eAAc,CAAG,CAC5B,SAD4B,CAE5B,OAF4B,CAG5B,OAH4B,CAI5B,WAJ4B,CAAvB,CAOP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,gBAAe,CAAG,CAAC,SAAD,CAAY,MAAZ,CAAxB,CAEP,MAAO,IAAMC,uBAAuC,CAAGD,eAAe,CAAC,CAAD,CAA/D,CAEP,MAAO,IAAME,eAAc,CAAG,CAC5B,SAD4B,CAE5B,OAF4B,CAG5B,OAH4B,CAI5B,YAJ4B,C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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/responsesImages/createResponsesImage";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/responsesImages/createResponsesImage";
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useChoiceGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useChoiceGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useClickOutside";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useClickOutside";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useComponentSize";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useComponentSize";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useKeysDepricated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useKeysDepricated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useMouseLeave";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useMouseLeave";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useScrollElements";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useScrollElements";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useTimer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hooks/useTimer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hocs/withTooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../__internal__/src/hocs/withTooltip";
|