urfu-ui-kit-react 1.7.2 → 1.7.3

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/README.md CHANGED
@@ -48,7 +48,7 @@ import {
48
48
  - **InputExpandTextarea** — расширяемое текстовое поле
49
49
  - **Textarea** — многострочное текстовое поле
50
50
  - **Select** — выпадающий список
51
- - **SearchSelect** — поисковый выпадающий список
51
+ - **SearchSelect** — поисковый выпадающий список; опционально **`isClearable`** (сброс выбора, крестик в стиле Multiselect) и controlled-строка поиска (`inputValue` / `onInputValueChange`) — см. [документацию](docs/components/search-select.md)
52
52
  - **Multiselect** — множественный выбор
53
53
  - **Checkbox** — чекбокс
54
54
  - **Radio** — радиокнопка
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
2
2
  import 'urfu-ui-kit-vanilla/src/main.css';
3
3
  import { SearchSelectProperties } from './SearchSelect.types';
4
4
  export declare const SearchSelect: {
5
- ({ title, required, options, styleSelectContainer, styleTitle, styleSelect, lineUp, rowGap, columnGap, placeholder, value, onChange, className, tableView, validationText, validationOn, absoluteValidationText, disabled, portalOn, onInputChange, loading, inputValue, onInputValueChange }: SearchSelectProperties): import("react/jsx-runtime").JSX.Element;
5
+ ({ title, required, options, styleSelectContainer, styleTitle, styleSelect, lineUp, rowGap, columnGap, placeholder, value, isClearable, onChange, className, tableView, validationText, validationOn, absoluteValidationText, disabled, portalOn, onInputChange, loading, inputValue, onInputValueChange }: SearchSelectProperties): import("react/jsx-runtime").JSX.Element;
6
6
  propTypes: {
7
7
  title: PropTypes.Requireable<string>;
8
8
  required: PropTypes.Requireable<boolean>;
@@ -15,6 +15,7 @@ export declare const SearchSelect: {
15
15
  options: PropTypes.Requireable<any[]>;
16
16
  placeholder: PropTypes.Requireable<string>;
17
17
  value: PropTypes.Requireable<object>;
18
+ isClearable: PropTypes.Requireable<boolean>;
18
19
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
19
20
  className: PropTypes.Requireable<string>;
20
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SearchSelect.d.ts","sourceRoot":"","sources":["../../../src/components/SearchSelect/SearchSelect.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAI7D,eAAO,MAAM,YAAY;mSAyBtB,sBAAsB;;;;;;;;;;;;;;;;CA6PxB,CAAA"}
1
+ {"version":3,"file":"SearchSelect.d.ts","sourceRoot":"","sources":["../../../src/components/SearchSelect/SearchSelect.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAI7D,eAAO,MAAM,YAAY;gTAyBtB,sBAAsB;;;;;;;;;;;;;;;;;CA2UxB,CAAA"}