indicator-ui 0.1.115 → 0.1.117

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.
@@ -3,7 +3,7 @@
3
3
  @mixin large() {
4
4
  // С учетом border
5
5
  padding: 3px 9px;
6
- @include fnt-flex($size: 14, $line-height: 20, $weight: 500);
6
+ @include fnt($size: 14, $line-height: 20, $weight: 500);
7
7
 
8
8
  .main {
9
9
  gap: 6px;
@@ -3,7 +3,7 @@
3
3
  @mixin medium() {
4
4
  // С учетом border
5
5
  padding: 1px 8px;
6
- @include fnt-flex($size: 14, $line-height: 20, $weight: 500, $family: var(--golos));
6
+ @include fnt($size: 14, $line-height: 20, $weight: 500, $family: var(--golos));
7
7
 
8
8
  .main {
9
9
  gap: 5px;
@@ -3,7 +3,7 @@
3
3
  @mixin small() {
4
4
  // С учетом border
5
5
  padding: 2px 7px;
6
- @include fnt-flex($size: 12, $line-height: 18, $weight: 500, $family: var(--golos));
6
+ @include fnt($size: 12, $line-height: 18, $weight: 500, $family: var(--golos));
7
7
 
8
8
  .main {
9
9
  gap: 4px;
@@ -1,3 +1,4 @@
1
1
  export { default as TagCheckboxStyle } from './TagCheckbox.module.scss';
2
2
  export { default as TagCountStyle } from './TagCount.module.scss';
3
3
  export { default as TagStyle } from './Tag.module.scss';
4
+ export { default as FilterTagStyle } from './FilterTag.module.scss';
@@ -1,3 +1,2 @@
1
1
  export * from './TagTypes';
2
2
  export * from './TagCheckboxTypes';
3
- export * from './TagCountTypes';
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { AsProps } from "../../../types";
3
+ type RefType<T extends React.ElementType> = React.ElementRef<T>;
4
+ type PropsType<T extends React.ElementType> = AsProps<T, {
5
+ size?: 'small' | 'large';
6
+ count?: React.ReactNode;
7
+ label?: React.ReactNode;
8
+ onClose?: () => void;
9
+ active?: boolean;
10
+ }>;
11
+ export declare const _FilterTag: <T extends React.ElementType = "button">(props: PropsType<T>, ref: RefType<T>) => JSX.Element;
12
+ export declare const FilterTag: <T extends React.ElementType = "button">(props: PropsType<T> & React.RefAttributes<RefType<T>>) => JSX.Element;
13
+ export {};
@@ -1,2 +1,9 @@
1
- import { TagCountPropsType } from "../types";
2
- export declare function TagCount({ count, color, size }: TagCountPropsType): JSX.Element;
1
+ import React from "react";
2
+ import { AsProps } from "../../../types";
3
+ type PropsType<T extends React.ElementType> = AsProps<T, {
4
+ count?: React.ReactNode;
5
+ color?: 'gray' | 'color' | 'white';
6
+ size?: 'small' | 'medium' | 'large';
7
+ }>;
8
+ export declare function TagCount<T extends React.ElementType = 'span'>(props: PropsType<T>): JSX.Element;
9
+ export {};
@@ -1,3 +1,4 @@
1
1
  export * from './Tag';
2
2
  export * from './TagCheckbox';
3
3
  export * from './TagCount';
4
+ export * from './FilterTag';
@@ -28,7 +28,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
28
28
  canSearch: boolean;
29
29
  canPaginate: boolean;
30
30
  isLoading: boolean;
31
- fieldState: "search" | "view";
31
+ fieldState: "view" | "search";
32
32
  setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
33
33
  isShow: boolean;
34
34
  getIsShow: () => boolean;
@@ -40,7 +40,6 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
40
40
  modalRef: React.MutableRefObject<HTMLDivElement | null>;
41
41
  targetRef: React.MutableRefObject<HTMLDivElement | null>;
42
42
  otherProps: {
43
- id?: string | undefined | undefined;
44
43
  ref?: React.LegacyRef<HTMLDivElement> | undefined;
45
44
  color?: string | undefined | undefined;
46
45
  content?: string | undefined | undefined;
@@ -49,6 +48,8 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
49
48
  slot?: string | undefined | undefined;
50
49
  style?: React.CSSProperties | undefined;
51
50
  title?: string | undefined | undefined;
51
+ id?: string | undefined | undefined;
52
+ onResize?: React.ReactEventHandler<HTMLDivElement> | undefined;
52
53
  onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
53
54
  onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
54
55
  key?: React.Key | null | undefined;
@@ -206,7 +207,6 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
206
207
  onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
207
208
  onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
208
209
  onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
209
- onResize?: React.ReactEventHandler<HTMLDivElement> | undefined;
210
210
  onResizeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
211
211
  onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
212
212
  onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
@@ -1,4 +1,4 @@
1
1
  export declare function useSelectFieldState(): {
2
- fieldState: "search" | "view";
2
+ fieldState: "view" | "search";
3
3
  setIsFocus: import("react").Dispatch<import("react").SetStateAction<boolean>>;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.115",
3
+ "version": "0.1.117",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/ts/src/index.d.ts",
6
6
  "style": "dist/index.css",
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- export type TagCountPropsType = {
3
- count?: React.ReactNode;
4
- color?: 'gray' | 'color';
5
- size?: 'small' | 'medium' | 'large';
6
- };