indicator-ui 0.0.33 → 0.0.35

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,8 @@
1
1
  @use '../../../../styles' as *;
2
2
 
3
3
  @mixin base-button() {
4
+ cursor: pointer;
5
+ transition: all ease-out 0.2s;
4
6
  @include modify-flex(row, center, center);
5
7
 
6
8
  .icon {
@@ -3,7 +3,6 @@
3
3
 
4
4
  @mixin insertButton() {
5
5
  .button {
6
- transition: all ease-out 0.2s;
7
6
  @include baseButton.base-button();
8
7
 
9
8
  &.small {
@@ -3,6 +3,8 @@
3
3
  @mixin base-micro-button() {
4
4
  width: fit-content;
5
5
  height: fit-content;
6
+ cursor: pointer;
7
+ transition: all ease-out 0.2s;
6
8
  @include modify-flex(row, center, center);
7
9
  @include modify-svg() {
8
10
  flex: none;
@@ -3,7 +3,6 @@
3
3
 
4
4
  @mixin micro-button() {
5
5
  .button {
6
- transition: all ease-out 0.2s;
7
6
  @include base-button.base-micro-button();
8
7
 
9
8
  &.light {
@@ -1,4 +1,4 @@
1
- import { ReactElement } from "react";
1
+ import React, { ReactElement } from "react";
2
2
  import { FlexFieldClassNameType } from '../../FlexField';
3
3
  import { SelectModalWindowClassNameType } from './SelectModalWindowTypes';
4
4
  import { SelectFieldOptionsOwnerItemPropsType } from "./SelectFieldOptionsItemTypes";
@@ -23,7 +23,9 @@ export type SelectFieldPropsType = {
23
23
  multiple?: boolean;
24
24
  disabled?: boolean;
25
25
  /**
26
- * Опция для синхронизации внешних **options**, не включайте, если передаете **options** без постоянного указателя.
26
+ * Опция для синхронизации внешних **options**,
27
+ * не включайте, если передаете **options** без постоянного указателя.
28
+ * Синхронизирует внешний массив **options** с внутренним.
27
29
  * */
28
30
  offOptionsSyncing?: boolean;
29
31
  placeholder?: string;
@@ -31,5 +33,7 @@ export type SelectFieldPropsType = {
31
33
  options?: SelectFieldOptionsType;
32
34
  autoClose?: boolean;
33
35
  loadMoreOptions?: SelectFieldLoadMoreOptionsType;
36
+ /** Элемент **(ReactNode)** в конце окна выбора **Select**. */
37
+ selectModalWindowAfterElement?: React.ReactNode;
34
38
  className?: SelectFieldClassNameType;
35
39
  };
@@ -1,5 +1,6 @@
1
1
  import { SelectFieldOptionsType, SelectFieldValueType } from './SelectFieldTypes';
2
2
  import { SelectFieldOptionsItemClassNameType } from "./SelectFieldOptionsItemTypes";
3
+ import React from "react";
3
4
  export type SelectModalWindowClassNameType = SelectFieldOptionsItemClassNameType & {
4
5
  selectModalWindow?: string;
5
6
  };
@@ -8,5 +9,6 @@ export type SelectModalWindowPropsType = {
8
9
  onChange: (value: any[]) => void;
9
10
  options: SelectFieldOptionsType;
10
11
  onScrollToBottom?: () => void;
12
+ afterElement?: React.ReactNode;
11
13
  className?: SelectModalWindowClassNameType;
12
14
  };
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { SelectFieldPropsType } from '../types';
3
- export default function SelectField({ value, onChange, options, placeholder, isError, isSearching, required, multiple, disabled, offOptionsSyncing, autoClose, onBlur, loadMoreOptions, className, }: SelectFieldPropsType): React.JSX.Element;
3
+ export default function SelectField({ value, onChange, options, placeholder, isError, isSearching, required, multiple, disabled, offOptionsSyncing, autoClose, onBlur, selectModalWindowAfterElement, loadMoreOptions, className, }: SelectFieldPropsType): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { SelectModalWindowPropsType } from "../types";
3
- export default function SelectModalWindow({ value, onChange, options, onScrollToBottom, className, }: SelectModalWindowPropsType): React.JSX.Element;
3
+ export default function SelectModalWindow({ value, onChange, options, onScrollToBottom, afterElement, className, }: SelectModalWindowPropsType): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/src/index.d.ts",
6
6
  "style": "dist/index.css",