@alfalab/core-components-international-phone-input 2.0.11 → 2.0.13

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.
Files changed (54) hide show
  1. package/{Component-1fe708ea.d.ts → Component-cc406ff0.d.ts} +1 -1
  2. package/Component.responsive.d.ts +4 -4
  3. package/Component.responsive.js +1 -0
  4. package/components/base-international-phone-input/Component.d.ts +1 -1
  5. package/components/base-international-phone-input/Component.js +1 -1
  6. package/components/base-international-phone-input/index.css +2 -2
  7. package/components/country-select/Component.js +1 -1
  8. package/components/country-select/index.css +8 -8
  9. package/components/flag-icon/component.js +1 -1
  10. package/components/flag-icon/index.css +3 -3
  11. package/components/select-field/component.js +1 -1
  12. package/components/select-field/index.css +9 -9
  13. package/cssm/{Component-1fe708ea.d.ts → Component-cc406ff0.d.ts} +1 -1
  14. package/cssm/Component.responsive.d.ts +4 -4
  15. package/cssm/Component.responsive.js +1 -0
  16. package/cssm/components/base-international-phone-input/Component.d.ts +1 -1
  17. package/cssm/types.d.ts +1 -1
  18. package/{esm/typings-1fe708ea.d.ts → cssm/typings-cc406ff0.d.ts} +28 -0
  19. package/cssm/utils-89376c31.d.ts +1 -1
  20. package/{modern/Component-1fe708ea.d.ts → esm/Component-cc406ff0.d.ts} +1 -1
  21. package/esm/Component.responsive.d.ts +4 -4
  22. package/esm/Component.responsive.js +1 -0
  23. package/esm/components/base-international-phone-input/Component.d.ts +1 -1
  24. package/esm/components/base-international-phone-input/Component.js +1 -1
  25. package/esm/components/base-international-phone-input/index.css +2 -2
  26. package/esm/components/country-select/Component.js +1 -1
  27. package/esm/components/country-select/index.css +8 -8
  28. package/esm/components/flag-icon/component.js +1 -1
  29. package/esm/components/flag-icon/index.css +3 -3
  30. package/esm/components/select-field/component.js +1 -1
  31. package/esm/components/select-field/index.css +9 -9
  32. package/esm/types.d.ts +1 -1
  33. package/{modern/typings-1fe708ea.d.ts → esm/typings-cc406ff0.d.ts} +28 -0
  34. package/esm/utils-89376c31.d.ts +1 -1
  35. package/{esm/Component-1fe708ea.d.ts → modern/Component-cc406ff0.d.ts} +1 -1
  36. package/modern/Component.responsive.d.ts +4 -4
  37. package/modern/Component.responsive.js +1 -0
  38. package/modern/components/base-international-phone-input/Component.d.ts +1 -1
  39. package/modern/components/base-international-phone-input/Component.js +1 -1
  40. package/modern/components/base-international-phone-input/index.css +2 -2
  41. package/modern/components/country-select/Component.js +1 -1
  42. package/modern/components/country-select/index.css +8 -8
  43. package/modern/components/flag-icon/component.js +1 -1
  44. package/modern/components/flag-icon/index.css +3 -3
  45. package/modern/components/select-field/component.js +1 -1
  46. package/modern/components/select-field/index.css +9 -9
  47. package/modern/types.d.ts +1 -1
  48. package/{cssm/typings-1fe708ea.d.ts → modern/typings-cc406ff0.d.ts} +28 -0
  49. package/modern/utils-89376c31.d.ts +1 -1
  50. package/package.json +4 -4
  51. package/src/Component.responsive.tsx +2 -0
  52. package/types.d.ts +1 -1
  53. package/{typings-1fe708ea.d.ts → typings-cc406ff0.d.ts} +28 -0
  54. package/utils-89376c31.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-1fe708ea";
3
+ import { OptgroupProps } from "./typings-cc406ff0";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((phone: string) => void) | undefined;
13
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -26,15 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
26
26
  clearableCountryCode?: boolean | undefined;
27
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
28
28
  clear?: boolean | undefined;
29
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
30
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
31
31
  onChange?: ((phone: string) => void) | undefined;
32
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
33
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
34
34
  } & {
35
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
35
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
36
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
37
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
37
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
38
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
39
39
  breakpoint?: number | undefined;
40
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -17,5 +17,6 @@ var InternationalPhoneInput = React__default.default.forwardRef(function (_a, re
17
17
  var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
18
18
  return isDesktop ? (React__default.default.createElement(desktop_Component_desktop.InternationalPhoneInputDesktop, tslib.__assign({}, restProps, { ref: ref }))) : (React__default.default.createElement(mobile_Component_mobile.InternationalPhoneInputMobile, tslib.__assign({}, restProps, { ref: ref })));
19
19
  });
20
+ InternationalPhoneInput.displayName = 'InternationalPhoneInput';
20
21
 
21
22
  exports.InternationalPhoneInput = InternationalPhoneInput;
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-1fe708ea").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-cc406ff0").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((phone: string) => void) | undefined;
15
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -16,7 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
16
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
18
 
19
- var styles = {"component":"international-phone-input__component_1efb2","addons":"international-phone-input__addons_1efb2"};
19
+ var styles = {"component":"international-phone-input__component_1s8yv","addons":"international-phone-input__addons_1s8yv"};
20
20
  require('./index.css')
21
21
 
22
22
  var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: t62jh */
1
+ /* hash: koy52 */
2
2
 
3
- .international-phone-input__component_1efb2 .international-phone-input__addons_1efb2 {
3
+ .international-phone-input__component_1s8yv .international-phone-input__addons_1s8yv {
4
4
  padding-left: 0;
5
5
  }
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
 
17
- var styles = {"component":"international-phone-input__component_1atq2","option":"international-phone-input__option_1atq2","flag":"international-phone-input__flag_1atq2","countryName":"international-phone-input__countryName_1atq2","dialCode":"international-phone-input__dialCode_1atq2","flagIconWrapper":"international-phone-input__flagIconWrapper_1atq2","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1atq2"};
17
+ var styles = {"component":"international-phone-input__component_racqw","option":"international-phone-input__option_racqw","flag":"international-phone-input__flag_racqw","countryName":"international-phone-input__countryName_racqw","dialCode":"international-phone-input__dialCode_racqw","flagIconWrapper":"international-phone-input__flagIconWrapper_racqw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_racqw"};
18
18
  require('./index.css')
19
19
 
20
20
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 16m9d */
1
+ /* hash: q2izn */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
@@ -18,29 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .international-phone-input__component_1atq2 {
21
+ } .international-phone-input__component_racqw {
22
22
  position: static;
23
23
  display: flex;
24
24
  min-width: initial;
25
25
  height: 100%;
26
- } .international-phone-input__option_1atq2 {
26
+ } .international-phone-input__option_racqw {
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  padding: var(--gap-s);
30
- } .international-phone-input__flag_1atq2 {
30
+ } .international-phone-input__flag_racqw {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_1atq2 {
33
+ } .international-phone-input__countryName_racqw {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_1atq2 {
35
+ } .international-phone-input__dialCode_racqw {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_1atq2 {
37
+ } .international-phone-input__flagIconWrapper_racqw {
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  align-items: center;
41
41
  width: 24px;
42
42
  height: 24px;
43
43
  margin-left: var(--gap-s);
44
- } .international-phone-input__emptyCountryIcon_1atq2 {
44
+ } .international-phone-input__emptyCountryIcon_racqw {
45
45
  color: var(--color-light-neutral-translucent-700);
46
46
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"flagIcon":"international-phone-input__flagIcon_uaw1g","flagPlaceholder":"international-phone-input__flagPlaceholder_uaw1g"};
14
+ var styles = {"flagIcon":"international-phone-input__flagIcon_1e6yu","flagPlaceholder":"international-phone-input__flagPlaceholder_1e6yu"};
15
15
  require('./index.css')
16
16
 
17
17
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1mk9n */
1
+ /* hash: 1fycs */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_uaw1g {
20
+ } .international-phone-input__flagIcon_1e6yu {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_uaw1g {
23
+ } .international-phone-input__flagPlaceholder_1e6yu {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -16,7 +16,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
17
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
18
 
19
- var styles = {"component":"international-phone-input__component_1swmt","flagIconContainer":"international-phone-input__flagIconContainer_1swmt","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1swmt","disabled":"international-phone-input__disabled_1swmt","inner":"international-phone-input__inner_1swmt","size-64":"international-phone-input__size-64_1swmt","size-72":"international-phone-input__size-72_1swmt","focusVisible":"international-phone-input__focusVisible_1swmt"};
19
+ var styles = {"component":"international-phone-input__component_1xcyw","flagIconContainer":"international-phone-input__flagIconContainer_1xcyw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1xcyw","disabled":"international-phone-input__disabled_1xcyw","inner":"international-phone-input__inner_1xcyw","size-64":"international-phone-input__size-64_1xcyw","size-72":"international-phone-input__size-72_1xcyw","focusVisible":"international-phone-input__focusVisible_1xcyw"};
20
20
  require('./index.css')
21
21
 
22
22
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 5zq31 */
1
+ /* hash: 111w5 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_1swmt {
24
+ } .international-phone-input__component_1xcyw {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_1swmt {
29
+ } .international-phone-input__flagIconContainer_1xcyw {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_1swmt {
36
+ } .international-phone-input__emptyCountryIcon_1xcyw {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_1swmt {
38
+ } .international-phone-input__disabled_1xcyw {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_1swmt {
40
+ } .international-phone-input__inner_1xcyw {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__size-64_1swmt .international-phone-input__inner_1swmt,
48
- .international-phone-input__size-72_1swmt .international-phone-input__inner_1swmt {
47
+ } .international-phone-input__size-64_1xcyw .international-phone-input__inner_1xcyw,
48
+ .international-phone-input__size-72_1xcyw .international-phone-input__inner_1xcyw {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_1swmt {
50
+ } .international-phone-input__focusVisible_1xcyw {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-1fe708ea";
3
+ import { OptgroupProps } from "./typings-cc406ff0";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((phone: string) => void) | undefined;
13
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -26,15 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
26
26
  clearableCountryCode?: boolean | undefined;
27
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
28
28
  clear?: boolean | undefined;
29
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
30
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
31
31
  onChange?: ((phone: string) => void) | undefined;
32
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
33
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
34
34
  } & {
35
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
35
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
36
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
37
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
37
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
38
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
39
39
  breakpoint?: number | undefined;
40
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -17,5 +17,6 @@ var InternationalPhoneInput = React__default.default.forwardRef(function (_a, re
17
17
  var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
18
18
  return isDesktop ? (React__default.default.createElement(desktop_Component_desktop.InternationalPhoneInputDesktop, tslib.__assign({}, restProps, { ref: ref }))) : (React__default.default.createElement(mobile_Component_mobile.InternationalPhoneInputMobile, tslib.__assign({}, restProps, { ref: ref })));
19
19
  });
20
+ InternationalPhoneInput.displayName = 'InternationalPhoneInput';
20
21
 
21
22
  exports.InternationalPhoneInput = InternationalPhoneInput;
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-1fe708ea").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-cc406ff0").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((phone: string) => void) | undefined;
15
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
package/cssm/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
5
5
  import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
6
6
  import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
7
7
  import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
8
- import { OptionShape } from "./typings-1fe708ea";
8
+ import { OptionShape } from "./typings-cc406ff0";
9
9
  import { SharedCountrySelectProps } from "./components/country-select/index";
10
10
  type Country = {
11
11
  name: string;
@@ -1425,6 +1425,14 @@ type OptionsListProps = {
1425
1425
  * Указать индекс пункта для hover состояния
1426
1426
  */
1427
1427
  setHighlightedIndex?: (index: number) => void;
1428
+ /**
1429
+ * Значение поиска
1430
+ */
1431
+ search?: string;
1432
+ /**
1433
+ * Возможность выбрать несколько значений
1434
+ */
1435
+ multiple?: boolean;
1428
1436
  };
1429
1437
  type OptgroupProps = {
1430
1438
  /**
@@ -1444,6 +1452,26 @@ type OptgroupProps = {
1444
1452
  * Дочерние элементы
1445
1453
  */
1446
1454
  children?: ReactNode;
1455
+ /**
1456
+ * Список вариантов выбора в группе
1457
+ */
1458
+ options?: OptionShape[];
1459
+ /**
1460
+ * Список выбранных вариантов в группе
1461
+ */
1462
+ selectedItems?: OptionShape[];
1463
+ /**
1464
+ * Обработчик выбранных вариантов
1465
+ */
1466
+ setSelectedItems?: (items: OptionShape[]) => void;
1467
+ /**
1468
+ * Значение поиска
1469
+ */
1470
+ search?: string;
1471
+ /**
1472
+ * Возможность выбрать несколько значений
1473
+ */
1474
+ multiple?: boolean;
1447
1475
  };
1448
1476
  type OptionProps = {
1449
1477
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-cc406ff0";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-1fe708ea";
3
+ import { OptgroupProps } from "./typings-cc406ff0";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((phone: string) => void) | undefined;
13
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -26,15 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
26
26
  clearableCountryCode?: boolean | undefined;
27
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
28
28
  clear?: boolean | undefined;
29
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
30
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
31
31
  onChange?: ((phone: string) => void) | undefined;
32
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
33
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
34
34
  } & {
35
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
35
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
36
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
37
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
37
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
38
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
39
39
  breakpoint?: number | undefined;
40
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -9,5 +9,6 @@ var InternationalPhoneInput = React.forwardRef(function (_a, ref) {
9
9
  var isDesktop = useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
10
10
  return isDesktop ? (React.createElement(InternationalPhoneInputDesktop, __assign({}, restProps, { ref: ref }))) : (React.createElement(InternationalPhoneInputMobile, __assign({}, restProps, { ref: ref })));
11
11
  });
12
+ InternationalPhoneInput.displayName = 'InternationalPhoneInput';
12
13
 
13
14
  export { InternationalPhoneInput };
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-1fe708ea").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-cc406ff0").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((phone: string) => void) | undefined;
15
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -7,7 +7,7 @@ import { BaseOption } from '@alfalab/core-components-select/esm/shared';
7
7
  import { initCountries, findCountry, filterPhones, createMaskOptions, getClear, getPhoneData } from '../../utils/index.js';
8
8
  import { CountrySelect } from '../country-select/Component.js';
9
9
 
10
- var styles = {"component":"international-phone-input__component_1efb2","addons":"international-phone-input__addons_1efb2"};
10
+ var styles = {"component":"international-phone-input__component_1s8yv","addons":"international-phone-input__addons_1s8yv"};
11
11
  require('./index.css')
12
12
 
13
13
  var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
@@ -1,5 +1,5 @@
1
- /* hash: t62jh */
1
+ /* hash: koy52 */
2
2
 
3
- .international-phone-input__component_1efb2 .international-phone-input__addons_1efb2 {
3
+ .international-phone-input__component_1s8yv .international-phone-input__addons_1s8yv {
4
4
  padding-left: 0;
5
5
  }
@@ -6,7 +6,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
6
6
  import { FlagIcon } from '../flag-icon/component.js';
7
7
  import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
8
8
 
9
- var styles = {"component":"international-phone-input__component_1atq2","option":"international-phone-input__option_1atq2","flag":"international-phone-input__flag_1atq2","countryName":"international-phone-input__countryName_1atq2","dialCode":"international-phone-input__dialCode_1atq2","flagIconWrapper":"international-phone-input__flagIconWrapper_1atq2","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1atq2"};
9
+ var styles = {"component":"international-phone-input__component_racqw","option":"international-phone-input__option_racqw","flag":"international-phone-input__flag_racqw","countryName":"international-phone-input__countryName_racqw","dialCode":"international-phone-input__dialCode_racqw","flagIconWrapper":"international-phone-input__flagIconWrapper_racqw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_racqw"};
10
10
  require('./index.css')
11
11
 
12
12
  var CountrySelect = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 16m9d */
1
+ /* hash: q2izn */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
@@ -18,29 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .international-phone-input__component_1atq2 {
21
+ } .international-phone-input__component_racqw {
22
22
  position: static;
23
23
  display: flex;
24
24
  min-width: initial;
25
25
  height: 100%;
26
- } .international-phone-input__option_1atq2 {
26
+ } .international-phone-input__option_racqw {
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  padding: var(--gap-s);
30
- } .international-phone-input__flag_1atq2 {
30
+ } .international-phone-input__flag_racqw {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_1atq2 {
33
+ } .international-phone-input__countryName_racqw {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_1atq2 {
35
+ } .international-phone-input__dialCode_racqw {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_1atq2 {
37
+ } .international-phone-input__flagIconWrapper_racqw {
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  align-items: center;
41
41
  width: 24px;
42
42
  height: 24px;
43
43
  margin-left: var(--gap-s);
44
- } .international-phone-input__emptyCountryIcon_1atq2 {
44
+ } .international-phone-input__emptyCountryIcon_racqw {
45
45
  color: var(--color-light-neutral-translucent-700);
46
46
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- var styles = {"flagIcon":"international-phone-input__flagIcon_uaw1g","flagPlaceholder":"international-phone-input__flagPlaceholder_uaw1g"};
5
+ var styles = {"flagIcon":"international-phone-input__flagIcon_1e6yu","flagPlaceholder":"international-phone-input__flagPlaceholder_1e6yu"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1mk9n */
1
+ /* hash: 1fycs */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_uaw1g {
20
+ } .international-phone-input__flagIcon_1e6yu {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_uaw1g {
23
+ } .international-phone-input__flagPlaceholder_1e6yu {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -6,7 +6,7 @@ import { useFocus } from '@alfalab/hooks';
6
6
  import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
7
7
  import { FlagIcon } from '../flag-icon/component.js';
8
8
 
9
- var styles = {"component":"international-phone-input__component_1swmt","flagIconContainer":"international-phone-input__flagIconContainer_1swmt","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1swmt","disabled":"international-phone-input__disabled_1swmt","inner":"international-phone-input__inner_1swmt","size-64":"international-phone-input__size-64_1swmt","size-72":"international-phone-input__size-72_1swmt","focusVisible":"international-phone-input__focusVisible_1swmt"};
9
+ var styles = {"component":"international-phone-input__component_1xcyw","flagIconContainer":"international-phone-input__flagIconContainer_1xcyw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1xcyw","disabled":"international-phone-input__disabled_1xcyw","inner":"international-phone-input__inner_1xcyw","size-64":"international-phone-input__size-64_1xcyw","size-72":"international-phone-input__size-72_1xcyw","focusVisible":"international-phone-input__focusVisible_1xcyw"};
10
10
  require('./index.css')
11
11
 
12
12
  var EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 5zq31 */
1
+ /* hash: 111w5 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_1swmt {
24
+ } .international-phone-input__component_1xcyw {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_1swmt {
29
+ } .international-phone-input__flagIconContainer_1xcyw {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_1swmt {
36
+ } .international-phone-input__emptyCountryIcon_1xcyw {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_1swmt {
38
+ } .international-phone-input__disabled_1xcyw {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_1swmt {
40
+ } .international-phone-input__inner_1xcyw {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__size-64_1swmt .international-phone-input__inner_1swmt,
48
- .international-phone-input__size-72_1swmt .international-phone-input__inner_1swmt {
47
+ } .international-phone-input__size-64_1xcyw .international-phone-input__inner_1xcyw,
48
+ .international-phone-input__size-72_1xcyw .international-phone-input__inner_1xcyw {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_1swmt {
50
+ } .international-phone-input__focusVisible_1xcyw {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
package/esm/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
5
5
  import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
6
6
  import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
7
7
  import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
8
- import { OptionShape } from "./typings-1fe708ea";
8
+ import { OptionShape } from "./typings-cc406ff0";
9
9
  import { SharedCountrySelectProps } from "./components/country-select/index";
10
10
  type Country = {
11
11
  name: string;
@@ -1425,6 +1425,14 @@ type OptionsListProps = {
1425
1425
  * Указать индекс пункта для hover состояния
1426
1426
  */
1427
1427
  setHighlightedIndex?: (index: number) => void;
1428
+ /**
1429
+ * Значение поиска
1430
+ */
1431
+ search?: string;
1432
+ /**
1433
+ * Возможность выбрать несколько значений
1434
+ */
1435
+ multiple?: boolean;
1428
1436
  };
1429
1437
  type OptgroupProps = {
1430
1438
  /**
@@ -1444,6 +1452,26 @@ type OptgroupProps = {
1444
1452
  * Дочерние элементы
1445
1453
  */
1446
1454
  children?: ReactNode;
1455
+ /**
1456
+ * Список вариантов выбора в группе
1457
+ */
1458
+ options?: OptionShape[];
1459
+ /**
1460
+ * Список выбранных вариантов в группе
1461
+ */
1462
+ selectedItems?: OptionShape[];
1463
+ /**
1464
+ * Обработчик выбранных вариантов
1465
+ */
1466
+ setSelectedItems?: (items: OptionShape[]) => void;
1467
+ /**
1468
+ * Значение поиска
1469
+ */
1470
+ search?: string;
1471
+ /**
1472
+ * Возможность выбрать несколько значений
1473
+ */
1474
+ multiple?: boolean;
1447
1475
  };
1448
1476
  type OptionProps = {
1449
1477
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-cc406ff0";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { OptgroupProps } from "./typings-1fe708ea";
3
+ import { OptgroupProps } from "./typings-cc406ff0";
4
4
  declare const Optgroup: ({ children, className, label, size }: OptgroupProps) => React.JSX.Element;
5
5
  export { Optgroup };
@@ -7,7 +7,7 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
7
7
  clearableCountryCode?: boolean | undefined;
8
8
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
9
9
  clear?: boolean | undefined;
10
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
10
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
11
11
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
12
12
  onChange?: ((phone: string) => void) | undefined;
13
13
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -26,15 +26,15 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
26
26
  clearableCountryCode?: boolean | undefined;
27
27
  countrySelectProps?: import("./components/country-select/index").SharedCountrySelectProps | undefined;
28
28
  clear?: boolean | undefined;
29
- filterFn?: ((value: string | undefined, option: import("./typings-1fe708ea").OptionShape) => boolean) | undefined;
29
+ filterFn?: ((value: string | undefined, option: import("./typings-cc406ff0").OptionShape) => boolean) | undefined;
30
30
  onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
31
31
  onChange?: ((phone: string) => void) | undefined;
32
32
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
33
33
  onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
34
34
  } & {
35
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
35
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
36
36
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteCommonProps, "onChange" | "onInput"> & {
37
- options: (import("./typings-1fe708ea").OptionShape | import("./typings-1fe708ea").GroupShape)[];
37
+ options: (import("./typings-cc406ff0").OptionShape | import("./typings-cc406ff0").GroupShape)[];
38
38
  } & Omit<import("@alfalab/core-components-input-autocomplete/types").InputAutocompleteMobileProps, "onChange" | "onInput"> & {
39
39
  breakpoint?: number | undefined;
40
40
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
@@ -7,5 +7,6 @@ const InternationalPhoneInput = React.forwardRef(({ breakpoint = 1024, defaultMa
7
7
  const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
8
8
  return isDesktop ? (React.createElement(InternationalPhoneInputDesktop, { ...restProps, ref: ref })) : (React.createElement(InternationalPhoneInputMobile, { ...restProps, ref: ref }));
9
9
  });
10
+ InternationalPhoneInput.displayName = 'InternationalPhoneInput';
10
11
 
11
12
  export { InternationalPhoneInput };
@@ -9,7 +9,7 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
9
9
  clearableCountryCode?: boolean | undefined;
10
10
  countrySelectProps?: import("../country-select/index").SharedCountrySelectProps | undefined;
11
11
  clear?: boolean | undefined;
12
- filterFn?: ((value: string | undefined, option: import("../../typings-1fe708ea").OptionShape) => boolean) | undefined;
12
+ filterFn?: ((value: string | undefined, option: import("../../typings-cc406ff0").OptionShape) => boolean) | undefined;
13
13
  onCountryChange?: ((country?: Country | undefined) => void) | undefined;
14
14
  onChange?: ((phone: string) => void) | undefined;
15
15
  onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
@@ -6,7 +6,7 @@ import { BaseOption } from '@alfalab/core-components-select/modern/shared';
6
6
  import { initCountries, findCountry, filterPhones, createMaskOptions, getClear, getPhoneData } from '../../utils/index.js';
7
7
  import { CountrySelect } from '../country-select/Component.js';
8
8
 
9
- const styles = {"component":"international-phone-input__component_1efb2","addons":"international-phone-input__addons_1efb2"};
9
+ const styles = {"component":"international-phone-input__component_1s8yv","addons":"international-phone-input__addons_1s8yv"};
10
10
  require('./index.css')
11
11
 
12
12
  const BaseInternationalPhoneInput = forwardRef(({ clearableCountryCode, value, country: countryProp, filterFn, onChange, onCountryChange, countrySelectProps, countries, defaultIso2, disabled, options, size = 56, Input, InputAutocomplete, SelectComponent, view, clear: clearProp, open: openProps, defaultOpen, ...restProps }, ref) => {
@@ -1,5 +1,5 @@
1
- /* hash: t62jh */
1
+ /* hash: koy52 */
2
2
 
3
- .international-phone-input__component_1efb2 .international-phone-input__addons_1efb2 {
3
+ .international-phone-input__component_1s8yv .international-phone-input__addons_1s8yv {
4
4
  padding-left: 0;
5
5
  }
@@ -5,7 +5,7 @@ import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
5
5
  import { FlagIcon } from '../flag-icon/component.js';
6
6
  import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
7
7
 
8
- const styles = {"component":"international-phone-input__component_1atq2","option":"international-phone-input__option_1atq2","flag":"international-phone-input__flag_1atq2","countryName":"international-phone-input__countryName_1atq2","dialCode":"international-phone-input__dialCode_1atq2","flagIconWrapper":"international-phone-input__flagIconWrapper_1atq2","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1atq2"};
8
+ const styles = {"component":"international-phone-input__component_racqw","option":"international-phone-input__option_racqw","flag":"international-phone-input__flag_racqw","countryName":"international-phone-input__countryName_racqw","dialCode":"international-phone-input__dialCode_racqw","flagIconWrapper":"international-phone-input__flagIconWrapper_racqw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_racqw"};
9
9
  require('./index.css')
10
10
 
11
11
  const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 16m9d */
1
+ /* hash: q2izn */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
@@ -18,29 +18,29 @@
18
18
  --gap-s: 12px;
19
19
  } :root {
20
20
  } :root {
21
- } .international-phone-input__component_1atq2 {
21
+ } .international-phone-input__component_racqw {
22
22
  position: static;
23
23
  display: flex;
24
24
  min-width: initial;
25
25
  height: 100%;
26
- } .international-phone-input__option_1atq2 {
26
+ } .international-phone-input__option_racqw {
27
27
  display: flex;
28
28
  align-items: flex-start;
29
29
  padding: var(--gap-s);
30
- } .international-phone-input__flag_1atq2 {
30
+ } .international-phone-input__flag_racqw {
31
31
  flex-shrink: 0;
32
32
  margin-right: var(--gap-xs);
33
- } .international-phone-input__countryName_1atq2 {
33
+ } .international-phone-input__countryName_racqw {
34
34
  margin-right: var(--gap-xs);
35
- } .international-phone-input__dialCode_1atq2 {
35
+ } .international-phone-input__dialCode_racqw {
36
36
  color: var(--color-light-text-secondary);
37
- } .international-phone-input__flagIconWrapper_1atq2 {
37
+ } .international-phone-input__flagIconWrapper_racqw {
38
38
  display: flex;
39
39
  justify-content: center;
40
40
  align-items: center;
41
41
  width: 24px;
42
42
  height: 24px;
43
43
  margin-left: var(--gap-s);
44
- } .international-phone-input__emptyCountryIcon_1atq2 {
44
+ } .international-phone-input__emptyCountryIcon_racqw {
45
45
  color: var(--color-light-neutral-translucent-700);
46
46
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { flagSprite } from './flagSprite.js';
4
4
 
5
- const styles = {"flagIcon":"international-phone-input__flagIcon_uaw1g","flagPlaceholder":"international-phone-input__flagPlaceholder_uaw1g"};
5
+ const styles = {"flagIcon":"international-phone-input__flagIcon_1e6yu","flagPlaceholder":"international-phone-input__flagPlaceholder_1e6yu"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 1mk9n */
1
+ /* hash: 1fycs */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-100: rgba(38, 55, 88, 0.06); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -17,10 +17,10 @@
17
17
  --gap-3xs: 2px;
18
18
  } :root {
19
19
  } :root {
20
- } .international-phone-input__flagIcon_uaw1g {
20
+ } .international-phone-input__flagIcon_1e6yu {
21
21
  max-width: 24px;
22
22
  max-height: 24px;
23
- } .international-phone-input__flagPlaceholder_uaw1g {
23
+ } .international-phone-input__flagPlaceholder_1e6yu {
24
24
  width: 24px;
25
25
  height: 16px;
26
26
  max-height: 16px;
@@ -5,7 +5,7 @@ import { useFocus } from '@alfalab/hooks';
5
5
  import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
6
6
  import { FlagIcon } from '../flag-icon/component.js';
7
7
 
8
- const styles = {"component":"international-phone-input__component_1swmt","flagIconContainer":"international-phone-input__flagIconContainer_1swmt","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1swmt","disabled":"international-phone-input__disabled_1swmt","inner":"international-phone-input__inner_1swmt","size-64":"international-phone-input__size-64_1swmt","size-72":"international-phone-input__size-72_1swmt","focusVisible":"international-phone-input__focusVisible_1swmt"};
8
+ const styles = {"component":"international-phone-input__component_1xcyw","flagIconContainer":"international-phone-input__flagIconContainer_1xcyw","emptyCountryIcon":"international-phone-input__emptyCountryIcon_1xcyw","disabled":"international-phone-input__disabled_1xcyw","inner":"international-phone-input__inner_1xcyw","size-64":"international-phone-input__size-64_1xcyw","size-72":"international-phone-input__size-72_1xcyw","focusVisible":"international-phone-input__focusVisible_1xcyw"};
9
9
  require('./index.css')
10
10
 
11
11
  const EMPTY_COUNTRY_SELECT_FIELD = {
@@ -1,4 +1,4 @@
1
- /* hash: 5zq31 */
1
+ /* hash: 111w5 */
2
2
  :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-border-link: #2288fa;
@@ -21,33 +21,33 @@
21
21
  } :root {
22
22
  --focus-color: var(--color-light-border-link);
23
23
  --disabled-cursor: not-allowed;
24
- } .international-phone-input__component_1swmt {
24
+ } .international-phone-input__component_1xcyw {
25
25
  height: 100%;
26
26
  cursor: pointer;
27
27
  outline: none;
28
28
  position: relative;
29
- } .international-phone-input__flagIconContainer_1swmt {
29
+ } .international-phone-input__flagIconContainer_1xcyw {
30
30
  display: flex;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  width: 24px;
34
34
  height: 24px;
35
35
  margin-right: var(--gap-2xs);
36
- } .international-phone-input__emptyCountryIcon_1swmt {
36
+ } .international-phone-input__emptyCountryIcon_1xcyw {
37
37
  color: var(--color-light-neutral-translucent-700);
38
- } .international-phone-input__disabled_1swmt {
38
+ } .international-phone-input__disabled_1xcyw {
39
39
  cursor: var(--disabled-cursor);
40
- } .international-phone-input__inner_1swmt {
40
+ } .international-phone-input__inner_1xcyw {
41
41
  position: relative;
42
42
  display: flex;
43
43
  align-items: center;
44
44
  height: 100%;
45
45
  padding-left: var(--gap-s);
46
46
  outline: none;
47
- } .international-phone-input__size-64_1swmt .international-phone-input__inner_1swmt,
48
- .international-phone-input__size-72_1swmt .international-phone-input__inner_1swmt {
47
+ } .international-phone-input__size-64_1xcyw .international-phone-input__inner_1xcyw,
48
+ .international-phone-input__size-72_1xcyw .international-phone-input__inner_1xcyw {
49
49
  padding-left: var(--gap-m);
50
- } .international-phone-input__focusVisible_1swmt {
50
+ } .international-phone-input__focusVisible_1xcyw {
51
51
  outline: 2px solid var(--focus-color);
52
52
  outline-offset: 2px;
53
53
  }
package/modern/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
5
5
  import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
6
6
  import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
7
7
  import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
8
- import { OptionShape } from "./typings-1fe708ea";
8
+ import { OptionShape } from "./typings-cc406ff0";
9
9
  import { SharedCountrySelectProps } from "./components/country-select/index";
10
10
  type Country = {
11
11
  name: string;
@@ -1425,6 +1425,14 @@ type OptionsListProps = {
1425
1425
  * Указать индекс пункта для hover состояния
1426
1426
  */
1427
1427
  setHighlightedIndex?: (index: number) => void;
1428
+ /**
1429
+ * Значение поиска
1430
+ */
1431
+ search?: string;
1432
+ /**
1433
+ * Возможность выбрать несколько значений
1434
+ */
1435
+ multiple?: boolean;
1428
1436
  };
1429
1437
  type OptgroupProps = {
1430
1438
  /**
@@ -1444,6 +1452,26 @@ type OptgroupProps = {
1444
1452
  * Дочерние элементы
1445
1453
  */
1446
1454
  children?: ReactNode;
1455
+ /**
1456
+ * Список вариантов выбора в группе
1457
+ */
1458
+ options?: OptionShape[];
1459
+ /**
1460
+ * Список выбранных вариантов в группе
1461
+ */
1462
+ selectedItems?: OptionShape[];
1463
+ /**
1464
+ * Обработчик выбранных вариантов
1465
+ */
1466
+ setSelectedItems?: (items: OptionShape[]) => void;
1467
+ /**
1468
+ * Значение поиска
1469
+ */
1470
+ search?: string;
1471
+ /**
1472
+ * Возможность выбрать несколько значений
1473
+ */
1474
+ multiple?: boolean;
1447
1475
  };
1448
1476
  type OptionProps = {
1449
1477
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-cc406ff0";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-international-phone-input",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,9 +14,9 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-input-autocomplete": "12.1.4",
18
- "@alfalab/core-components-input": "^14.4.4",
19
- "@alfalab/core-components-select": "^17.4.5",
17
+ "@alfalab/core-components-input-autocomplete": "12.1.6",
18
+ "@alfalab/core-components-input": "^14.4.5",
19
+ "@alfalab/core-components-select": "^17.5.1",
20
20
  "@alfalab/core-components-shared": "^0.10.0",
21
21
  "@alfalab/core-components-mq": "^4.2.0",
22
22
  "@alfalab/hooks": "^1.13.0",
@@ -18,3 +18,5 @@ export const InternationalPhoneInput = React.forwardRef<
18
18
  <InternationalPhoneInputMobile {...restProps} ref={ref} />
19
19
  );
20
20
  });
21
+
22
+ InternationalPhoneInput.displayName = 'InternationalPhoneInput';
package/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { InputMobileProps } from "@alfalab/core-components-input/mobile";
5
5
  import { InputAutocompleteProps } from "@alfalab/core-components-input-autocomplete";
6
6
  import { InputAutocompleteDesktopProps } from "@alfalab/core-components-input-autocomplete/desktop";
7
7
  import { InputAutocompleteMobileProps } from "@alfalab/core-components-input-autocomplete/mobile";
8
- import { OptionShape } from "./typings-1fe708ea";
8
+ import { OptionShape } from "./typings-cc406ff0";
9
9
  import { SharedCountrySelectProps } from "./components/country-select/index";
10
10
  type Country = {
11
11
  name: string;
@@ -1425,6 +1425,14 @@ type OptionsListProps = {
1425
1425
  * Указать индекс пункта для hover состояния
1426
1426
  */
1427
1427
  setHighlightedIndex?: (index: number) => void;
1428
+ /**
1429
+ * Значение поиска
1430
+ */
1431
+ search?: string;
1432
+ /**
1433
+ * Возможность выбрать несколько значений
1434
+ */
1435
+ multiple?: boolean;
1428
1436
  };
1429
1437
  type OptgroupProps = {
1430
1438
  /**
@@ -1444,6 +1452,26 @@ type OptgroupProps = {
1444
1452
  * Дочерние элементы
1445
1453
  */
1446
1454
  children?: ReactNode;
1455
+ /**
1456
+ * Список вариантов выбора в группе
1457
+ */
1458
+ options?: OptionShape[];
1459
+ /**
1460
+ * Список выбранных вариантов в группе
1461
+ */
1462
+ selectedItems?: OptionShape[];
1463
+ /**
1464
+ * Обработчик выбранных вариантов
1465
+ */
1466
+ setSelectedItems?: (items: OptionShape[]) => void;
1467
+ /**
1468
+ * Значение поиска
1469
+ */
1470
+ search?: string;
1471
+ /**
1472
+ * Возможность выбрать несколько значений
1473
+ */
1474
+ multiple?: boolean;
1447
1475
  };
1448
1476
  type OptionProps = {
1449
1477
  /**
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-1fe708ea";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-cc406ff0";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {