@hh.ru/magritte-ui-input 5.0.24 → 5.0.25
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/BaseInput.d.ts +1 -1
- package/BaseInput.js +1 -1
- package/DateTimeInput.d.ts +1 -1
- package/DateTimeInput.js +1 -1
- package/Input.d.ts +1 -1
- package/NumberInput.d.ts +1 -1
- package/PasswordInput.d.ts +1 -1
- package/SearchInput.d.ts +1 -1
- package/UncontrolledDateTimeInput.d.ts +1 -1
- package/UncontrolledDateTimeInput.js +1 -1
- package/UncontrolledInput.d.ts +1 -1
- package/UncontrolledNumberInput.d.ts +1 -1
- package/UncontrolledPasswordInput.d.ts +1 -1
- package/UncontrolledSearchInput.d.ts +1 -1
- package/index.css +308 -308
- package/index.d.ts +13 -13
- package/{index.esm-fa75fa26.js → index.esm-AcyFOcmg.js} +1 -1
- package/{index.esm-fa75fa26.js.map → index.esm-AcyFOcmg.js.map} +1 -1
- package/index.js +1 -1
- package/index.mock.d.ts +1 -1
- package/maskito-exports.js +1 -1
- package/numberFormatter.d.ts +1 -1
- package/package.json +19 -18
- package/useDateTimeMask.d.ts +1 -1
- package/useDateTimeMask.js +1 -1
- package/useDateTimeMask.js.map +1 -1
package/BaseInput.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BaseInputProps } from '
|
|
2
|
+
import { BaseInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
declare const BaseInput: import("react").ForwardRefExoticComponent<(BaseInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "inputIcon" | "fixedPlaceholder" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { BaseInput };
|
package/BaseInput.js
CHANGED
|
@@ -13,7 +13,7 @@ import { useFocus } from './useFocus.js';
|
|
|
13
13
|
import { useInputAriaProps } from './useInputAriaProps.js';
|
|
14
14
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
15
15
|
|
|
16
|
-
var styles = {"input":"magritte-input___LVTID_5-0-
|
|
16
|
+
var styles = {"input":"magritte-input___LVTID_5-0-25","label":"magritte-label___YlOQk_5-0-25","elevated":"magritte-elevated___kPcsM_5-0-25","focused":"magritte-focused___dxrHD_5-0-25","invalid":"magritte-invalid___L5MVa_5-0-25","disabled":"magritte-disabled___0NH6E_5-0-25","position-container":"magritte-position-container___kZnvZ_5-0-25","positionContainer":"magritte-position-container___kZnvZ_5-0-25","field":"magritte-field___9S8Tw_5-0-25","hint":"magritte-hint___EFGK0_5-0-25","additional-value":"magritte-additional-value___9Kyap_5-0-25","additionalValue":"magritte-additional-value___9Kyap_5-0-25","label_elevated":"magritte-label_elevated___PVcpC_5-0-25","labelElevated":"magritte-label_elevated___PVcpC_5-0-25","fixed-placeholder":"magritte-fixed-placeholder___PYJIH_5-0-25","fixedPlaceholder":"magritte-fixed-placeholder___PYJIH_5-0-25","icon":"magritte-icon___HEDsQ_5-0-25","focus-visible":"magritte-focus-visible___QvCO1_5-0-25","focusVisible":"magritte-focus-visible___QvCO1_5-0-25","right-container":"magritte-right-container___N0B0o_5-0-25","rightContainer":"magritte-right-container___N0B0o_5-0-25","with-icon":"magritte-with-icon___TPBe2_5-0-25","withIcon":"magritte-with-icon___TPBe2_5-0-25","large":"magritte-large___9frRh_5-0-25","rigging-container":"magritte-rigging-container___Up9Lb_5-0-25","riggingContainer":"magritte-rigging-container___Up9Lb_5-0-25","input__mask":"magritte-input__mask___CHda2_5-0-25","inputMask":"magritte-input__mask___CHda2_5-0-25","value-ghost":"magritte-value-ghost___IXNZj_5-0-25","valueGhost":"magritte-value-ghost___IXNZj_5-0-25","hint-container":"magritte-hint-container___rGsD8_5-0-25","hintContainer":"magritte-hint-container___rGsD8_5-0-25","with-right":"magritte-with-right___NUNiP_5-0-25","withRight":"magritte-with-right___NUNiP_5-0-25","content-container":"magritte-content-container___s-0kX_5-0-25","contentContainer":"magritte-content-container___s-0kX_5-0-25","counter":"magritte-counter___Bld3Q_5-0-25","value-container":"magritte-value-container___6ReT7_5-0-25","valueContainer":"magritte-value-container___6ReT7_5-0-25"};
|
|
17
17
|
|
|
18
18
|
const BaseInputComponent = ({ onChange, onFocus, onBlur, value, placeholder, disabled = false, postfix, size = 'medium', elevatePlaceholder = false, invalid = false, description, errorMessage, formatter, buttonIcon, clearable = false, clearableOnFocus, onButtonClick, buttonDataQa, buttonRef, inputIcon, wrapperRef, counter, fixedPlaceholder, maxLength, hint, showHintAlways = false, ...restProps }, ref) => {
|
|
19
19
|
const wrapperCurrentRef = useRef(null);
|
package/DateTimeInput.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { ControlledDateTimeInputProps } from '
|
|
2
|
+
import { ControlledDateTimeInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const DateTimeInput: import("react").ForwardRefExoticComponent<(ControlledDateTimeInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "onButtonClick" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "dateMask" | "timeMask" | "timeRounding">) & import("react").RefAttributes<HTMLInputElement>>;
|
package/DateTimeInput.js
CHANGED
|
@@ -14,7 +14,7 @@ import '@hh.ru/magritte-ui-form-helper';
|
|
|
14
14
|
import './useFocus.js';
|
|
15
15
|
import './useInputAriaProps.js';
|
|
16
16
|
import '@hh.ru/magritte-ui-typography';
|
|
17
|
-
import './index.esm-
|
|
17
|
+
import './index.esm-AcyFOcmg.js';
|
|
18
18
|
|
|
19
19
|
const DateTimeInput = forwardRef(({ dateMask, timeMask, timeRounding, onButtonClick, ...restProps }, ref) => {
|
|
20
20
|
const maskedInputRef = useDateTimeMask(dateMask, timeMask, timeRounding);
|
package/Input.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { ControlledInputProps } from '
|
|
2
|
+
import { ControlledInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
declare const Input: import("react").ForwardRefExoticComponent<(ControlledInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { Input };
|
package/NumberInput.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { ControlledNumberInputProps } from '
|
|
2
|
+
import { ControlledNumberInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const NumberInput: import("react").ForwardRefExoticComponent<(ControlledNumberInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "groupSeparator" | "decimalMark" | "groupSize" | "decimalLength" | "allowNegative">) & import("react").RefAttributes<HTMLInputElement>>;
|
package/PasswordInput.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { ControlledPasswordInputProps } from '
|
|
2
|
+
import { ControlledPasswordInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const PasswordInput: import("react").ForwardRefExoticComponent<(ControlledPasswordInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "type">) & import("react").RefAttributes<HTMLInputElement>>;
|
package/SearchInput.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { ControlledSearchInputProps } from '
|
|
2
|
+
import { ControlledSearchInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const SearchInput: import("react").ForwardRefExoticComponent<(ControlledSearchInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "type">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { UncontrolledDateTimeInputProps } from '
|
|
2
|
+
import { UncontrolledDateTimeInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const UncontrolledDateTimeInput: import("react").ForwardRefExoticComponent<(UncontrolledDateTimeInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "onButtonClick" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "dateMask" | "timeMask" | "timeRounding">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -16,7 +16,7 @@ import './useFocus.js';
|
|
|
16
16
|
import './useInputAriaProps.js';
|
|
17
17
|
import '@hh.ru/magritte-ui-typography';
|
|
18
18
|
import './useDateTimeMask.js';
|
|
19
|
-
import './index.esm-
|
|
19
|
+
import './index.esm-AcyFOcmg.js';
|
|
20
20
|
|
|
21
21
|
const UncontrolledDateTimeInput = forwardRef(({ value, onChange, ...restProps }, ref) => {
|
|
22
22
|
const [currentValue, changeHandler] = useUncontrolledInput(value, onChange);
|
package/UncontrolledInput.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { UncontrolledInputProps } from '
|
|
2
|
+
import { UncontrolledInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const UncontrolledInput: import("react").ForwardRefExoticComponent<(UncontrolledInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { UncontrolledNumberInputProps } from '
|
|
2
|
+
import { UncontrolledNumberInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const UncontrolledNumberInput: import("react").ForwardRefExoticComponent<(UncontrolledNumberInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "groupSeparator" | "decimalMark" | "groupSize" | "decimalLength" | "allowNegative">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { UncontrolledPasswordInputProps } from '
|
|
2
|
+
import { UncontrolledPasswordInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const UncontrolledPasswordInput: import("react").ForwardRefExoticComponent<(UncontrolledPasswordInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "hint" | "showHintAlways" | "clearable" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "type">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { UncontrolledSearchInputProps } from '
|
|
2
|
+
import { UncontrolledSearchInputProps } from '@hh.ru/magritte-ui-input/types';
|
|
3
3
|
export declare const UncontrolledSearchInput: import("react").ForwardRefExoticComponent<(UncontrolledSearchInputProps & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "elevatePlaceholder" | "clearable" | "clearableOnFocus" | "buttonIcon" | "onButtonClick" | "counter" | "invalid" | "placeholder" | "postfix" | "onFocus" | "onBlur" | "description" | "errorMessage" | "disabled" | "formatter" | "buttonDataQa" | "buttonRef" | "wrapperRef" | "maxLength" | "onChange" | "value" | "type">) & import("react").RefAttributes<HTMLInputElement>>;
|