@hh.ru/magritte-ui-input 9.3.4 → 9.4.1

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.js CHANGED
@@ -27,6 +27,6 @@ import './useFocus.js';
27
27
  import '@hh.ru/magritte-ui-typography';
28
28
  import '@hh.ru/magritte-common-number-formatter';
29
29
  import './useDateTimeMask.js';
30
- import './index.esm-B6ab37dt.js';
30
+ import './index.esm-DGymG0uj.js';
31
31
  import './useUncontrolledInput.js';
32
32
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  import './index.css';
2
- export { M as MASKITO_DEFAULT_OPTIONS, m as maskitoDateOptionsGenerator, a as maskitoDateRangeOptionsGenerator, b as maskitoDateTimeOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-B6ab37dt.js';
2
+ export { M as MASKITO_DEFAULT_OPTIONS, m as maskitoDateOptionsGenerator, a as maskitoDateRangeOptionsGenerator, b as maskitoDateTimeOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-DGymG0uj.js';
3
3
  import 'react';
4
4
  //# sourceMappingURL=maskito-exports.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-input",
3
- "version": "9.3.4",
3
+ "version": "9.4.1",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -32,8 +32,8 @@
32
32
  "@hh.ru/magritte-common-use-translation": "2.2.0",
33
33
  "@hh.ru/magritte-design-tokens": "24.3.0",
34
34
  "@hh.ru/magritte-ui-breakpoint": "6.0.6",
35
- "@hh.ru/magritte-ui-form-helper": "2.0.25",
36
- "@hh.ru/magritte-ui-icon": "13.9.0",
35
+ "@hh.ru/magritte-ui-form-helper": "2.1.0",
36
+ "@hh.ru/magritte-ui-icon": "13.10.0",
37
37
  "@hh.ru/magritte-ui-mock-component": "1.1.6",
38
38
  "@hh.ru/magritte-ui-typography": "4.5.0"
39
39
  },
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "9498467aeebd78daa45f38b7f19bdfd64f43cdf1"
48
+ "gitHead": "c9930c21240dac1610236be666e8d0c45c60f4bc"
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
  import { useMemo } from 'react';
3
- import { M as MASKITO_DEFAULT_OPTIONS, b as maskitoDateTimeOptionsGenerator, a as maskitoDateRangeOptionsGenerator, m as maskitoDateOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-B6ab37dt.js';
3
+ import { M as MASKITO_DEFAULT_OPTIONS, b as maskitoDateTimeOptionsGenerator, a as maskitoDateRangeOptionsGenerator, m as maskitoDateOptionsGenerator, c as maskitoTimeOptionsGenerator, u as useMaskito } from './index.esm-DGymG0uj.js';
4
4
 
5
5
  /**
6
6
  * Округление времени (в формате 00:00) до ближайшего заданного шага
@@ -6,7 +6,7 @@ const useInputAriaProps = ({ invalid, hasPlaceholder, hasDescription, descriptio
6
6
  ariaProps['aria-labelledby'] = `input-label-${labelId}`;
7
7
  }
8
8
  if (hasDescription) {
9
- ariaProps['aria-describedby'] = `input-description-${descriptionId}`;
9
+ ariaProps['aria-describedby'] = descriptionId;
10
10
  }
11
11
  return ariaProps;
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useInputAriaProps.js","sources":["../src/useInputAriaProps.ts"],"sourcesContent":["export interface InputAriaHookProps {\n invalid?: boolean;\n hasPlaceholder?: boolean;\n hasDescription?: boolean;\n descriptionId: string;\n labelId: string;\n}\n\ninterface AriaProps {\n 'aria-labelledby'?: string;\n 'aria-describedby'?: string;\n 'aria-invalid'?: boolean;\n}\n\nexport const useInputAriaProps = ({\n invalid,\n hasPlaceholder,\n hasDescription,\n descriptionId,\n labelId,\n}: InputAriaHookProps): AriaProps => {\n const ariaProps: AriaProps = {};\n invalid && (ariaProps['aria-invalid'] = !!invalid);\n if (hasPlaceholder) {\n ariaProps['aria-labelledby'] = `input-label-${labelId}`;\n }\n if (hasDescription) {\n ariaProps['aria-describedby'] = `input-description-${descriptionId}`;\n }\n return ariaProps;\n};\n"],"names":[],"mappings":"AAca,MAAA,iBAAiB,GAAG,CAAC,EAC9B,OAAO,EACP,cAAc,EACd,cAAc,EACd,aAAa,EACb,OAAO,GACU,KAAe;IAChC,MAAM,SAAS,GAAc,EAAE,CAAC;IAChC,OAAO,KAAK,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;IACnD,IAAI,cAAc,EAAE;AAChB,QAAA,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAe,YAAA,EAAA,OAAO,EAAE,CAAC;KAC3D;IACD,IAAI,cAAc,EAAE;AAChB,QAAA,SAAS,CAAC,kBAAkB,CAAC,GAAG,CAAqB,kBAAA,EAAA,aAAa,EAAE,CAAC;KACxE;AACD,IAAA,OAAO,SAAS,CAAC;AACrB;;;;"}
1
+ {"version":3,"file":"useInputAriaProps.js","sources":["../src/useInputAriaProps.ts"],"sourcesContent":["export interface InputAriaHookProps {\n invalid?: boolean;\n hasPlaceholder?: boolean;\n hasDescription?: boolean;\n descriptionId: string;\n labelId: string;\n}\n\ninterface AriaProps {\n 'aria-labelledby'?: string;\n 'aria-describedby'?: string;\n 'aria-invalid'?: boolean;\n}\n\nexport const useInputAriaProps = ({\n invalid,\n hasPlaceholder,\n hasDescription,\n descriptionId,\n labelId,\n}: InputAriaHookProps): AriaProps => {\n const ariaProps: AriaProps = {};\n invalid && (ariaProps['aria-invalid'] = !!invalid);\n if (hasPlaceholder) {\n ariaProps['aria-labelledby'] = `input-label-${labelId}`;\n }\n if (hasDescription) {\n ariaProps['aria-describedby'] = descriptionId;\n }\n return ariaProps;\n};\n"],"names":[],"mappings":"AAca,MAAA,iBAAiB,GAAG,CAAC,EAC9B,OAAO,EACP,cAAc,EACd,cAAc,EACd,aAAa,EACb,OAAO,GACU,KAAe;IAChC,MAAM,SAAS,GAAc,EAAE,CAAC;IAChC,OAAO,KAAK,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;IACnD,IAAI,cAAc,EAAE;AAChB,QAAA,SAAS,CAAC,iBAAiB,CAAC,GAAG,CAAe,YAAA,EAAA,OAAO,EAAE,CAAC;KAC3D;IACD,IAAI,cAAc,EAAE;AAChB,QAAA,SAAS,CAAC,kBAAkB,CAAC,GAAG,aAAa,CAAC;KACjD;AACD,IAAA,OAAO,SAAS,CAAC;AACrB;;;;"}