@alfalab/core-components-picker-button 11.6.3 → 11.6.5

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
4
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
5
  type Align = 'start' | 'center';
6
6
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -75,6 +75,10 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
75
75
  * @default false
76
76
  */
77
77
  hiddenInput?: boolean;
78
+ /**
79
+ * Реф на инпут
80
+ */
81
+ inputRef?: RefObject<HTMLInputElement>;
78
82
  /**
79
83
  * Пропсы для label
80
84
  */
@@ -152,6 +156,10 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
152
156
  * @default false
153
157
  */
154
158
  hiddenInput?: boolean | undefined;
159
+ /**
160
+ * Реф на инпут
161
+ */
162
+ inputRef?: React.RefObject<HTMLInputElement> | undefined;
155
163
  /**
156
164
  * Пропсы для label
157
165
  */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
4
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
5
  type Align = 'start' | 'center';
6
6
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -75,6 +75,10 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
75
75
  * @default false
76
76
  */
77
77
  hiddenInput?: boolean;
78
+ /**
79
+ * Реф на инпут
80
+ */
81
+ inputRef?: RefObject<HTMLInputElement>;
78
82
  /**
79
83
  * Пропсы для label
80
84
  */
@@ -152,6 +156,10 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
152
156
  * @default false
153
157
  */
154
158
  hiddenInput?: boolean | undefined;
159
+ /**
160
+ * Реф на инпут
161
+ */
162
+ inputRef?: React.RefObject<HTMLInputElement> | undefined;
155
163
  /**
156
164
  * Пропсы для label
157
165
  */
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"container":"picker-button__container_mls83","optionsPopover":"picker-button__optionsPopover_mls83","sideGap":"picker-button__sideGap_mls83","option":"picker-button__option_mls83"};
18
+ var styles = {"container":"picker-button__container_1fxp0","optionsPopover":"picker-button__optionsPopover_1fxp0","sideGap":"picker-button__sideGap_1fxp0","option":"picker-button__option_1fxp0"};
19
19
  require('./../index.css')
20
20
 
21
21
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
4
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
5
  type Align = 'start' | 'center';
6
6
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -75,6 +75,10 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
75
75
  * @default false
76
76
  */
77
77
  hiddenInput?: boolean;
78
+ /**
79
+ * Реф на инпут
80
+ */
81
+ inputRef?: RefObject<HTMLInputElement>;
78
82
  /**
79
83
  * Пропсы для label
80
84
  */
@@ -152,6 +156,10 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
152
156
  * @default false
153
157
  */
154
158
  hiddenInput?: boolean | undefined;
159
+ /**
160
+ * Реф на инпут
161
+ */
162
+ inputRef?: React.RefObject<HTMLInputElement> | undefined;
155
163
  /**
156
164
  * Пропсы для label
157
165
  */
@@ -6,7 +6,7 @@ import { BaseSelect, OptionsList, Optgroup } from '@alfalab/core-components-sele
6
6
  import { Field } from '../field/Component.js';
7
7
  import { Option } from '../option/Component.js';
8
8
 
9
- var styles = {"container":"picker-button__container_mls83","optionsPopover":"picker-button__optionsPopover_mls83","sideGap":"picker-button__sideGap_mls83","option":"picker-button__option_mls83"};
9
+ var styles = {"container":"picker-button__container_1fxp0","optionsPopover":"picker-button__optionsPopover_1fxp0","sideGap":"picker-button__sideGap_1fxp0","option":"picker-button__option_1fxp0"};
10
10
  require('./../index.css')
11
11
 
12
12
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -4,7 +4,7 @@ import cn from 'classnames';
4
4
  import { Button } from '@alfalab/core-components-button/esm';
5
5
  import { getIcon } from '../utils/index.js';
6
6
 
7
- var styles = {"iconContainer":"picker-button__iconContainer_1knzm","addonsContainer":"picker-button__addonsContainer_1knzm","showControlIcon":"picker-button__showControlIcon_1knzm","open":"picker-button__open_1knzm","linkOpen":"picker-button__linkOpen_1knzm"};
7
+ var styles = {"iconContainer":"picker-button__iconContainer_167q6","addonsContainer":"picker-button__addonsContainer_167q6","showControlIcon":"picker-button__showControlIcon_167q6","open":"picker-button__open_167q6","linkOpen":"picker-button__linkOpen_167q6"};
8
8
  require('./index.css')
9
9
 
10
10
  var SIZE_TO_CLASSNAME_MAP = {
@@ -1,4 +1,4 @@
1
- /* hash: 14elx */
1
+ /* hash: 13369 */
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-transparent-default-hover: 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,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_1knzm {
20
+ } .picker-button__iconContainer_167q6 {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_1knzm {
23
+ } .picker-button__addonsContainer_167q6 {
24
24
  display: flex
25
- } .picker-button__addonsContainer_1knzm.picker-button__showControlIcon_1knzm {
25
+ } .picker-button__addonsContainer_167q6.picker-button__showControlIcon_167q6 {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_1knzm {
27
+ } .picker-button__open_167q6 {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_1knzm:not(:hover) {
29
+ } .picker-button__linkOpen_167q6:not(:hover) {
30
30
  background-color: var(--color-light-transparent-default-hover);
31
31
  }
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1vet4 */
1
+ /* hash: tmyja */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_mls83 {
19
+ } .picker-button__container_1fxp0 {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_mls83.picker-button__sideGap_mls83 {
21
+ } .cc-picker-button.picker-button__optionsPopover_1fxp0.picker-button__sideGap_1fxp0 {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_mls83 {
23
+ } .cc-picker-button .picker-button__option_1fxp0 {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_mls83:before {
25
+ } .cc-picker-button .picker-button__option_1fxp0:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -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/shared';
4
4
 
5
- var styles = {"container":"picker-button__container_164tz","icon":"picker-button__icon_164tz","content":"picker-button__content_164tz"};
5
+ var styles = {"container":"picker-button__container_10dwa","icon":"picker-button__icon_10dwa","content":"picker-button__content_10dwa"};
6
6
  require('./index.css')
7
7
 
8
8
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: m76sk */
1
+ /* hash: kvr4p */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_164tz {
18
+ } .picker-button__container_10dwa {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_164tz {
21
+ } .picker-button__icon_10dwa {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_164tz {
24
+ } .picker-button__content_10dwa {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"iconContainer":"picker-button__iconContainer_1knzm","addonsContainer":"picker-button__addonsContainer_1knzm","showControlIcon":"picker-button__showControlIcon_1knzm","open":"picker-button__open_1knzm","linkOpen":"picker-button__linkOpen_1knzm"};
16
+ var styles = {"iconContainer":"picker-button__iconContainer_167q6","addonsContainer":"picker-button__addonsContainer_167q6","showControlIcon":"picker-button__showControlIcon_167q6","open":"picker-button__open_167q6","linkOpen":"picker-button__linkOpen_167q6"};
17
17
  require('./index.css')
18
18
 
19
19
  var SIZE_TO_CLASSNAME_MAP = {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 14elx */
1
+ /* hash: 13369 */
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-transparent-default-hover: 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,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_1knzm {
20
+ } .picker-button__iconContainer_167q6 {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_1knzm {
23
+ } .picker-button__addonsContainer_167q6 {
24
24
  display: flex
25
- } .picker-button__addonsContainer_1knzm.picker-button__showControlIcon_1knzm {
25
+ } .picker-button__addonsContainer_167q6.picker-button__showControlIcon_167q6 {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_1knzm {
27
+ } .picker-button__open_167q6 {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_1knzm:not(:hover) {
29
+ } .picker-button__linkOpen_167q6:not(:hover) {
30
30
  background-color: var(--color-light-transparent-default-hover);
31
31
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1vet4 */
1
+ /* hash: tmyja */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_mls83 {
19
+ } .picker-button__container_1fxp0 {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_mls83.picker-button__sideGap_mls83 {
21
+ } .cc-picker-button.picker-button__optionsPopover_1fxp0.picker-button__sideGap_1fxp0 {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_mls83 {
23
+ } .cc-picker-button .picker-button__option_1fxp0 {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_mls83:before {
25
+ } .cc-picker-button .picker-button__option_1fxp0:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from "react";
3
+ import { ChangeEvent, DetailedHTMLProps, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, RefObject } from "react";
4
4
  type NativeProps = InputHTMLAttributes<HTMLInputElement>;
5
5
  type Align = 'start' | 'center';
6
6
  type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
@@ -75,6 +75,10 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange' | 'enterKeyHint'> & {
75
75
  * @default false
76
76
  */
77
77
  hiddenInput?: boolean;
78
+ /**
79
+ * Реф на инпут
80
+ */
81
+ inputRef?: RefObject<HTMLInputElement>;
78
82
  /**
79
83
  * Пропсы для label
80
84
  */
@@ -152,6 +156,10 @@ declare const Checkbox: React.ForwardRefExoticComponent<Omit<NativeProps, "size"
152
156
  * @default false
153
157
  */
154
158
  hiddenInput?: boolean | undefined;
159
+ /**
160
+ * Реф на инпут
161
+ */
162
+ inputRef?: React.RefObject<HTMLInputElement> | undefined;
155
163
  /**
156
164
  * Пропсы для label
157
165
  */
@@ -5,7 +5,7 @@ import { BaseSelect, OptionsList, Optgroup } from '@alfalab/core-components-sele
5
5
  import { Field } from '../field/Component.js';
6
6
  import { Option } from '../option/Component.js';
7
7
 
8
- const styles = {"container":"picker-button__container_mls83","optionsPopover":"picker-button__optionsPopover_mls83","sideGap":"picker-button__sideGap_mls83","option":"picker-button__option_mls83"};
8
+ const styles = {"container":"picker-button__container_1fxp0","optionsPopover":"picker-button__optionsPopover_1fxp0","sideGap":"picker-button__sideGap_1fxp0","option":"picker-button__option_1fxp0"};
9
9
  require('./../index.css')
10
10
 
11
11
  const SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -3,7 +3,7 @@ import cn from 'classnames';
3
3
  import { Button } from '@alfalab/core-components-button/modern';
4
4
  import { getIcon } from '../utils/index.js';
5
5
 
6
- const styles = {"iconContainer":"picker-button__iconContainer_1knzm","addonsContainer":"picker-button__addonsContainer_1knzm","showControlIcon":"picker-button__showControlIcon_1knzm","open":"picker-button__open_1knzm","linkOpen":"picker-button__linkOpen_1knzm"};
6
+ const styles = {"iconContainer":"picker-button__iconContainer_167q6","addonsContainer":"picker-button__addonsContainer_167q6","showControlIcon":"picker-button__showControlIcon_167q6","open":"picker-button__open_167q6","linkOpen":"picker-button__linkOpen_167q6"};
7
7
  require('./index.css')
8
8
 
9
9
  const SIZE_TO_CLASSNAME_MAP = {
@@ -1,4 +1,4 @@
1
- /* hash: 14elx */
1
+ /* hash: 13369 */
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-transparent-default-hover: 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,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_1knzm {
20
+ } .picker-button__iconContainer_167q6 {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_1knzm {
23
+ } .picker-button__addonsContainer_167q6 {
24
24
  display: flex
25
- } .picker-button__addonsContainer_1knzm.picker-button__showControlIcon_1knzm {
25
+ } .picker-button__addonsContainer_167q6.picker-button__showControlIcon_167q6 {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_1knzm {
27
+ } .picker-button__open_167q6 {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_1knzm:not(:hover) {
29
+ } .picker-button__linkOpen_167q6:not(:hover) {
30
30
  background-color: var(--color-light-transparent-default-hover);
31
31
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1vet4 */
1
+ /* hash: tmyja */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_mls83 {
19
+ } .picker-button__container_1fxp0 {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_mls83.picker-button__sideGap_mls83 {
21
+ } .cc-picker-button.picker-button__optionsPopover_1fxp0.picker-button__sideGap_1fxp0 {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_mls83 {
23
+ } .cc-picker-button .picker-button__option_1fxp0 {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_mls83:before {
25
+ } .cc-picker-button .picker-button__option_1fxp0:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Option as Option$1 } from '@alfalab/core-components-select/modern/shared';
3
3
 
4
- const styles = {"container":"picker-button__container_164tz","icon":"picker-button__icon_164tz","content":"picker-button__content_164tz"};
4
+ const styles = {"container":"picker-button__container_10dwa","icon":"picker-button__icon_10dwa","content":"picker-button__content_10dwa"};
5
5
  require('./index.css')
6
6
 
7
7
  const Option = ({ option, children, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: m76sk */
1
+ /* hash: kvr4p */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_164tz {
18
+ } .picker-button__container_10dwa {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_164tz {
21
+ } .picker-button__icon_10dwa {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_164tz {
24
+ } .picker-button__content_10dwa {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
@@ -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_164tz","icon":"picker-button__icon_164tz","content":"picker-button__content_164tz"};
13
+ var styles = {"container":"picker-button__container_10dwa","icon":"picker-button__icon_10dwa","content":"picker-button__content_10dwa"};
14
14
  require('./index.css')
15
15
 
16
16
  var Option = function (_a) {
package/option/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: m76sk */
1
+ /* hash: kvr4p */
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 { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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_164tz {
18
+ } .picker-button__container_10dwa {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_164tz {
21
+ } .picker-button__icon_10dwa {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_164tz {
24
+ } .picker-button__content_10dwa {
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": "11.6.3",
3
+ "version": "11.6.5",
4
4
  "description": "Picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-button": "^11.3.0",
19
- "@alfalab/core-components-select": "^17.3.3",
18
+ "@alfalab/core-components-button": "^11.4.0",
19
+ "@alfalab/core-components-select": "^17.3.5",
20
20
  "@alfalab/core-components-popover": "^6.2.1",
21
21
  "@alfalab/hooks": "^1.13.0",
22
22
  "@alfalab/icons-glyph": "^2.139.0",