@alfalab/core-components-picker-button 10.3.29 → 10.3.30

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/Component.js CHANGED
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
20
20
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
21
21
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
22
22
 
23
- var styles = {"container":"picker-button__container_1uvx5","optionsPopover":"picker-button__optionsPopover_1uvx5","sideGap":"picker-button__sideGap_1uvx5","option":"picker-button__option_1uvx5"};
23
+ var styles = {"container":"picker-button__container_51e7l","optionsPopover":"picker-button__optionsPopover_51e7l","sideGap":"picker-button__sideGap_51e7l","option":"picker-button__option_51e7l"};
24
24
  require('./index.css')
25
25
 
26
26
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { ButtonProps } from "@alfalab/core-components-button";
3
4
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
4
5
  import { PickerButtonSize, PickerButtonVariant } from "../Component";
@@ -7,5 +8,5 @@ type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | '
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "../typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "../typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -305,7 +305,7 @@ type BadgeProps = {
305
305
  dataTestId?: string;
306
306
  };
307
307
  // eslint-disable-next-line complexity
308
- declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => JSX.Element;
308
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => React.JSX.Element;
309
309
  type FormControlProps = HTMLAttributes<HTMLDivElement> & {
310
310
  /**
311
311
  * Растягивает компонент на ширину контейнера
package/esm/Component.js CHANGED
@@ -11,7 +11,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
11
11
  import '@alfalab/icons-glyph/MoreMIcon';
12
12
  import '@alfalab/icons-glyph/MoreSIcon';
13
13
 
14
- var styles = {"container":"picker-button__container_1uvx5","optionsPopover":"picker-button__optionsPopover_1uvx5","sideGap":"picker-button__sideGap_1uvx5","option":"picker-button__option_1uvx5"};
14
+ var styles = {"container":"picker-button__container_51e7l","optionsPopover":"picker-button__optionsPopover_51e7l","sideGap":"picker-button__sideGap_51e7l","option":"picker-button__option_51e7l"};
15
15
  require('./index.css')
16
16
 
17
17
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { ButtonProps } from "@alfalab/core-components-button";
3
4
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
4
5
  import { PickerButtonSize, PickerButtonVariant } from "../Component";
@@ -7,5 +8,5 @@ type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | '
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
9
9
  import '@alfalab/icons-glyph/MoreSIcon';
10
10
 
11
- var styles = {"iconContainer":"picker-button__iconContainer_1alod","addonsContainer":"picker-button__addonsContainer_1alod","showControlIcon":"picker-button__showControlIcon_1alod","open":"picker-button__open_1alod"};
11
+ var styles = {"iconContainer":"picker-button__iconContainer_xbotr","addonsContainer":"picker-button__addonsContainer_xbotr","showControlIcon":"picker-button__showControlIcon_xbotr","open":"picker-button__open_xbotr"};
12
12
  require('./index.css')
13
13
 
14
14
  var Field = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1mchh */
1
+ /* hash: sc1t6 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .picker-button__iconContainer_1alod {
19
+ } .picker-button__iconContainer_xbotr {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .picker-button__addonsContainer_1alod {
22
+ } .picker-button__addonsContainer_xbotr {
23
23
  display: flex
24
- } .picker-button__addonsContainer_1alod.picker-button__showControlIcon_1alod {
24
+ } .picker-button__addonsContainer_xbotr.picker-button__showControlIcon_xbotr {
25
25
  margin-right: var(--gap-2xs);
26
- } .picker-button__open_1alod {
26
+ } .picker-button__open_xbotr {
27
27
  transform: var(--arrow-transform);
28
28
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1atc9 */
1
+ /* hash: wx4b5 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .picker-button__container_1uvx5 {
19
+ } .picker-button__container_51e7l {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_1uvx5.picker-button__sideGap_1uvx5 {
21
+ } .cc-picker-button.picker-button__optionsPopover_51e7l.picker-button__sideGap_51e7l {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_1uvx5 {
23
+ } .cc-picker-button .picker-button__option_51e7l {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_1uvx5:before {
25
+ } .cc-picker-button .picker-button__option_51e7l:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "../typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "../typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { Option as Option$1 } from '@alfalab/core-components-select/esm';
4
4
 
5
- var styles = {"container":"picker-button__container_tl44d","icon":"picker-button__icon_tl44d","content":"picker-button__content_tl44d"};
5
+ var styles = {"container":"picker-button__container_12rp8","icon":"picker-button__icon_12rp8","content":"picker-button__content_12rp8"};
6
6
  require('./index.css')
7
7
 
8
8
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: wqdyo */
1
+ /* hash: iu60k */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -15,13 +15,13 @@
15
15
  --gap-s: 12px;
16
16
  } :root {
17
17
  } :root {
18
- } .picker-button__container_tl44d {
18
+ } .picker-button__container_12rp8 {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_tl44d {
21
+ } .picker-button__icon_12rp8 {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_tl44d {
24
+ } .picker-button__content_12rp8 {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
@@ -305,7 +305,7 @@ type BadgeProps = {
305
305
  dataTestId?: string;
306
306
  };
307
307
  // eslint-disable-next-line complexity
308
- declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => JSX.Element;
308
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => React.JSX.Element;
309
309
  type FormControlProps = HTMLAttributes<HTMLDivElement> & {
310
310
  /**
311
311
  * Растягивает компонент на ширину контейнера
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { ButtonProps } from "@alfalab/core-components-button";
3
4
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
4
5
  import { PickerButtonSize, PickerButtonVariant } from "../Component";
@@ -7,5 +8,5 @@ type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | '
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -17,7 +17,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
17
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
19
 
20
- var styles = {"iconContainer":"picker-button__iconContainer_1alod","addonsContainer":"picker-button__addonsContainer_1alod","showControlIcon":"picker-button__showControlIcon_1alod","open":"picker-button__open_1alod"};
20
+ var styles = {"iconContainer":"picker-button__iconContainer_xbotr","addonsContainer":"picker-button__addonsContainer_xbotr","showControlIcon":"picker-button__showControlIcon_xbotr","open":"picker-button__open_xbotr"};
21
21
  require('./index.css')
22
22
 
23
23
  var Field = function (_a) {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1mchh */
1
+ /* hash: sc1t6 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .picker-button__iconContainer_1alod {
19
+ } .picker-button__iconContainer_xbotr {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .picker-button__addonsContainer_1alod {
22
+ } .picker-button__addonsContainer_xbotr {
23
23
  display: flex
24
- } .picker-button__addonsContainer_1alod.picker-button__showControlIcon_1alod {
24
+ } .picker-button__addonsContainer_xbotr.picker-button__showControlIcon_xbotr {
25
25
  margin-right: var(--gap-2xs);
26
- } .picker-button__open_1alod {
26
+ } .picker-button__open_xbotr {
27
27
  transform: var(--arrow-transform);
28
28
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1atc9 */
1
+ /* hash: wx4b5 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .picker-button__container_1uvx5 {
19
+ } .picker-button__container_51e7l {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_1uvx5.picker-button__sideGap_1uvx5 {
21
+ } .cc-picker-button.picker-button__optionsPopover_51e7l.picker-button__sideGap_51e7l {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_1uvx5 {
23
+ } .cc-picker-button .picker-button__option_51e7l {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_1uvx5:before {
25
+ } .cc-picker-button .picker-button__option_51e7l:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
10
10
  import '@alfalab/icons-glyph/MoreMIcon';
11
11
  import '@alfalab/icons-glyph/MoreSIcon';
12
12
 
13
- const styles = {"container":"picker-button__container_1uvx5","optionsPopover":"picker-button__optionsPopover_1uvx5","sideGap":"picker-button__sideGap_1uvx5","option":"picker-button__option_1uvx5"};
13
+ const styles = {"container":"picker-button__container_51e7l","optionsPopover":"picker-button__optionsPopover_51e7l","sideGap":"picker-button__sideGap_51e7l","option":"picker-button__option_51e7l"};
14
14
  require('./index.css')
15
15
 
16
16
  const SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { ButtonProps } from "@alfalab/core-components-button";
3
4
  import { FieldProps as BaseFieldProps } from "../typings-5e1b8383";
4
5
  import { PickerButtonSize, PickerButtonVariant } from "../Component";
@@ -7,5 +8,5 @@ type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | '
7
8
  buttonVariant?: PickerButtonVariant;
8
9
  showArrow?: boolean;
9
10
  };
10
- declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => JSX.Element;
11
+ declare const Field: ({ buttonSize, buttonVariant, view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow, labelView, ...restProps }: FieldProps) => React.JSX.Element;
11
12
  export { Field };
@@ -7,7 +7,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
7
7
  import '@alfalab/icons-glyph/MoreMIcon';
8
8
  import '@alfalab/icons-glyph/MoreSIcon';
9
9
 
10
- const styles = {"iconContainer":"picker-button__iconContainer_1alod","addonsContainer":"picker-button__addonsContainer_1alod","showControlIcon":"picker-button__showControlIcon_1alod","open":"picker-button__open_1alod"};
10
+ const styles = {"iconContainer":"picker-button__iconContainer_xbotr","addonsContainer":"picker-button__addonsContainer_xbotr","showControlIcon":"picker-button__showControlIcon_xbotr","open":"picker-button__open_xbotr"};
11
11
  require('./index.css')
12
12
 
13
13
  const Field = ({ buttonSize = 'm', buttonVariant = 'default', view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, setSelectedItems, toggleMenu, valueRenderer, showArrow = true, labelView, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1mchh */
1
+ /* hash: sc1t6 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  } :root {
17
17
  } :root {
18
18
  --arrow-transform: rotate(180deg);
19
- } .picker-button__iconContainer_1alod {
19
+ } .picker-button__iconContainer_xbotr {
20
20
  display: flex;
21
21
  transition: transform 0.15s ease-in-out;
22
- } .picker-button__addonsContainer_1alod {
22
+ } .picker-button__addonsContainer_xbotr {
23
23
  display: flex
24
- } .picker-button__addonsContainer_1alod.picker-button__showControlIcon_1alod {
24
+ } .picker-button__addonsContainer_xbotr.picker-button__showControlIcon_xbotr {
25
25
  margin-right: var(--gap-2xs);
26
- } .picker-button__open_1alod {
26
+ } .picker-button__open_xbotr {
27
27
  transform: var(--arrow-transform);
28
28
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1atc9 */
1
+ /* hash: wx4b5 */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -16,13 +16,13 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .picker-button__container_1uvx5 {
19
+ } .picker-button__container_51e7l {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_1uvx5.picker-button__sideGap_1uvx5 {
21
+ } .cc-picker-button.picker-button__optionsPopover_51e7l.picker-button__sideGap_51e7l {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_1uvx5 {
23
+ } .cc-picker-button .picker-button__option_51e7l {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_1uvx5:before {
25
+ } .cc-picker-button .picker-button__option_51e7l:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "../typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "../typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Option as Option$1 } from '@alfalab/core-components-select/modern';
3
3
 
4
- const styles = {"container":"picker-button__container_tl44d","icon":"picker-button__icon_tl44d","content":"picker-button__content_tl44d"};
4
+ const styles = {"container":"picker-button__container_12rp8","icon":"picker-button__icon_12rp8","content":"picker-button__content_12rp8"};
5
5
  require('./index.css')
6
6
 
7
7
  const Option = ({ option, children, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: wqdyo */
1
+ /* hash: iu60k */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -15,13 +15,13 @@
15
15
  --gap-s: 12px;
16
16
  } :root {
17
17
  } :root {
18
- } .picker-button__container_tl44d {
18
+ } .picker-button__container_12rp8 {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_tl44d {
21
+ } .picker-button__icon_12rp8 {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_tl44d {
24
+ } .picker-button__content_12rp8 {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
@@ -305,7 +305,7 @@ type BadgeProps = {
305
305
  dataTestId?: string;
306
306
  };
307
307
  // eslint-disable-next-line complexity
308
- declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => JSX.Element;
308
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => React.JSX.Element;
309
309
  type FormControlProps = HTMLAttributes<HTMLDivElement> & {
310
310
  /**
311
311
  * Растягивает компонент на ширину контейнера
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { FC, SVGProps } from 'react';
2
+ import React from 'react';
3
+ import { FC, SVGProps } from "react";
3
4
  import { OptionShape } from "../typings-5e1b8383";
4
5
  import { OptionProps as BaseOptionProps } from "../typings-5e1b8383";
5
6
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
@@ -7,5 +8,5 @@ type OptionProps = Omit<BaseOptionProps, 'option'> & {
7
8
  icon?: FC<SVGProps<SVGSVGElement>>;
8
9
  };
9
10
  };
10
- declare const Option: ({ option, children, ...restProps }: OptionProps) => JSX.Element;
11
+ declare const Option: ({ option, children, ...restProps }: OptionProps) => React.JSX.Element;
11
12
  export { Option };
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
 
13
- var styles = {"container":"picker-button__container_tl44d","icon":"picker-button__icon_tl44d","content":"picker-button__content_tl44d"};
13
+ var styles = {"container":"picker-button__container_12rp8","icon":"picker-button__icon_12rp8","content":"picker-button__content_12rp8"};
14
14
  require('./index.css')
15
15
 
16
16
  var Option = function (_a) {
package/option/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: wqdyo */
1
+ /* hash: iu60k */
2
2
  :root {
3
3
  } /* deprecated */ :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 */
4
4
  } :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 */
@@ -15,13 +15,13 @@
15
15
  --gap-s: 12px;
16
16
  } :root {
17
17
  } :root {
18
- } .picker-button__container_tl44d {
18
+ } .picker-button__container_12rp8 {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_tl44d {
21
+ } .picker-button__icon_12rp8 {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_tl44d {
24
+ } .picker-button__content_12rp8 {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-picker-button",
3
- "version": "10.3.29",
3
+ "version": "10.3.30",
4
4
  "description": "Picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@alfalab/core-components-button": "^8.5.1",
19
- "@alfalab/core-components-select": "^14.3.4",
19
+ "@alfalab/core-components-select": "^14.3.5",
20
20
  "@alfalab/hooks": "^1.13.0",
21
21
  "@alfalab/icons-glyph": "^2.108.0",
22
22
  "classnames": "^2.3.1",
@@ -305,7 +305,7 @@ type BadgeProps = {
305
305
  dataTestId?: string;
306
306
  };
307
307
  // eslint-disable-next-line complexity
308
- declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => JSX.Element;
308
+ declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId }: BadgeProps) => React.JSX.Element;
309
309
  type FormControlProps = HTMLAttributes<HTMLDivElement> & {
310
310
  /**
311
311
  * Растягивает компонент на ширину контейнера