indicator-ui 0.1.109 → 0.1.111
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/dist/index.css +252 -243
- package/dist/index.css.map +1 -1
- package/dist/index.js +277 -38
- package/dist/index.js.map +1 -1
- package/dist/scss/styles/mixins/fnt.scss +1 -1
- package/dist/scss/ui/Buttons/styles/mixins/baseButton.scss +35 -2
- package/dist/scss/ui/Buttons/styles/mixins/properties/large.scss +13 -7
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-black.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-color.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-dark-theme.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-gray.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/medium.scss +13 -7
- package/dist/scss/ui/Buttons/styles/mixins/properties/primary.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-color.scss +8 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-gray.scss +8 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/small.scss +13 -7
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab-active.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-color.scss +9 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-gray.scss +5 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-white.scss +8 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/ultra.scss +13 -7
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-link-color.scss +4 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-secondary-color.scss +4 -0
- package/dist/scss/ui/Tag/styles/properties/medium.scss +1 -1
- package/dist/scss/ui/Tag/styles/properties/small.scss +1 -1
- package/dist/ts/src/assets/icons/index.d.ts +2 -0
- package/dist/ts/src/hooks/controlsInput/index.d.ts +1 -0
- package/dist/ts/src/hooks/controlsInput/useDrag.d.ts +16 -0
- package/dist/ts/src/test/pages/UseDragPage.d.ts +1 -0
- package/dist/ts/src/test/pages/index.d.ts +1 -0
- package/dist/ts/src/ui/Buttons/types/ButtonTypes.d.ts +5 -2
- package/dist/ts/src/ui/Buttons/ui/Button.d.ts +3 -20
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts +5 -5
- package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useSelectFieldState.d.ts +1 -1
- package/package.json +1 -1
- package/dist/scss/ui/Buttons/index.scss +0 -1
- package/dist/scss/ui/Buttons/styles/index.scss +0 -1
|
@@ -4,12 +4,22 @@
|
|
|
4
4
|
cursor: pointer;
|
|
5
5
|
transition: background-color ease-out 0.2s;
|
|
6
6
|
border-radius: 8px;
|
|
7
|
-
|
|
7
|
+
position: relative;
|
|
8
|
+
@include modify-flex($align-items: center, $justify-content: center);
|
|
9
|
+
|
|
10
|
+
.loader {
|
|
11
|
+
width: fit-content;
|
|
12
|
+
height: fit-content;
|
|
13
|
+
@include modify-flex($align-items: center, $justify-content: center);
|
|
14
|
+
@include modify-svg {
|
|
15
|
+
animation: loading 0.9s linear infinite;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
8
18
|
|
|
9
19
|
.icon {
|
|
10
20
|
width: fit-content;
|
|
11
21
|
height: fit-content;
|
|
12
|
-
@include modify-flex(
|
|
22
|
+
@include modify-flex($align-items: center, $justify-content: center);
|
|
13
23
|
@include modify-svg() {
|
|
14
24
|
* {
|
|
15
25
|
transition: stroke ease-out 0.2s;
|
|
@@ -17,6 +27,20 @@
|
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
|
|
30
|
+
.counter {
|
|
31
|
+
min-width: 24px;
|
|
32
|
+
height: 24px;
|
|
33
|
+
padding: 4px 2px;
|
|
34
|
+
border-radius: 12px;
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
transform: translate(-2px, -2px);
|
|
39
|
+
text-align: center;
|
|
40
|
+
background-color: var(--blue-dark-500);
|
|
41
|
+
@include fnt($size: 14, $line-height: 16, $weight: 500, $color: var(--base-white));
|
|
42
|
+
}
|
|
43
|
+
|
|
20
44
|
.content {
|
|
21
45
|
@include modify-flex($align-items: center);
|
|
22
46
|
|
|
@@ -46,4 +70,13 @@
|
|
|
46
70
|
&.heightHug {
|
|
47
71
|
height: fit-content;
|
|
48
72
|
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes loading {
|
|
76
|
+
from {
|
|
77
|
+
transform: rotate(0deg);
|
|
78
|
+
}
|
|
79
|
+
to {
|
|
80
|
+
transform: rotate(360deg);
|
|
81
|
+
}
|
|
49
82
|
}
|
|
@@ -4,13 +4,19 @@
|
|
|
4
4
|
// С учетом border
|
|
5
5
|
padding: 11px;
|
|
6
6
|
|
|
7
|
+
.loader {
|
|
8
|
+
@include modify-svg() {
|
|
9
|
+
flex: none;
|
|
10
|
+
width: 20px;
|
|
11
|
+
height: 20px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
.icon {
|
|
8
16
|
@include modify-svg() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 20px;
|
|
13
|
-
}
|
|
17
|
+
flex: none;
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -19,11 +25,11 @@
|
|
|
19
25
|
gap: 4px;
|
|
20
26
|
|
|
21
27
|
.text {
|
|
22
|
-
@include fnt-flex($size: 16, $line-height: 20, $weight: 500, $family:
|
|
28
|
+
@include fnt-flex($size: 16, $line-height: 20, $weight: 500, $family: var(--golos));
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
.textSecondary {
|
|
26
|
-
@include fnt-flex($size: 16, $line-height: 20, $weight: 400, $family:
|
|
32
|
+
@include fnt-flex($size: 16, $line-height: 20, $weight: 400, $family: var(--golos));
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -4,13 +4,19 @@
|
|
|
4
4
|
// С учетом border
|
|
5
5
|
padding: 9px;
|
|
6
6
|
|
|
7
|
+
.loader {
|
|
8
|
+
@include modify-svg() {
|
|
9
|
+
flex: none;
|
|
10
|
+
width: 20px;
|
|
11
|
+
height: 20px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
.icon {
|
|
8
16
|
@include modify-svg() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 20px;
|
|
13
|
-
}
|
|
17
|
+
flex: none;
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -19,11 +25,11 @@
|
|
|
19
25
|
gap: 4px;
|
|
20
26
|
|
|
21
27
|
.text {
|
|
22
|
-
@include fnt-flex($size: 14, $line-height: 20, $weight: 500, $family:
|
|
28
|
+
@include fnt-flex($size: 14, $line-height: 20, $weight: 500, $family: var(--golos));
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
.textSecondary {
|
|
26
|
-
@include fnt-flex($size: 14, $line-height: 20, $weight: 400, $family:
|
|
32
|
+
@include fnt-flex($size: 14, $line-height: 20, $weight: 400, $family: var(--golos));
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
border: 1px solid var(--primary-200);
|
|
7
7
|
box-shadow: 0 1px 2px 0 #1018280D;
|
|
8
8
|
|
|
9
|
+
.loader {
|
|
10
|
+
@include modify-svg($stroke: var(--primary-500));
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
.icon {
|
|
10
14
|
@include modify-svg($stroke: var(--primary-500));
|
|
11
15
|
}
|
|
@@ -45,6 +49,10 @@
|
|
|
45
49
|
background-color: transparent;
|
|
46
50
|
border: 1px solid var(--rose-900);
|
|
47
51
|
|
|
52
|
+
.loader {
|
|
53
|
+
@include modify-svg($stroke: var(--rose-500));
|
|
54
|
+
}
|
|
55
|
+
|
|
48
56
|
.icon {
|
|
49
57
|
@include modify-svg($stroke: var(--rose-500));
|
|
50
58
|
}
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
box-shadow: 0 1px 2px 0 #1018280D;
|
|
7
7
|
border: 1px solid var(--gray-300);
|
|
8
8
|
|
|
9
|
+
.loader {
|
|
10
|
+
@include modify-svg($stroke: var(--gray-700));
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
.icon {
|
|
10
14
|
@include modify-svg($stroke: var(--gray-700));
|
|
11
15
|
}
|
|
@@ -54,6 +58,10 @@
|
|
|
54
58
|
background-color: transparent;
|
|
55
59
|
border: 1px solid var(--gray-iron-700);
|
|
56
60
|
|
|
61
|
+
.loader {
|
|
62
|
+
@include modify-svg($stroke: var(--gray-iron-200));
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
.icon {
|
|
58
66
|
@include modify-svg($stroke: var(--gray-iron-200));
|
|
59
67
|
}
|
|
@@ -4,13 +4,19 @@
|
|
|
4
4
|
// С учетом border
|
|
5
5
|
padding: 9px;
|
|
6
6
|
|
|
7
|
+
.loader {
|
|
8
|
+
@include modify-svg() {
|
|
9
|
+
flex: none;
|
|
10
|
+
width: 16px;
|
|
11
|
+
height: 16px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
.icon {
|
|
8
16
|
@include modify-svg() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 16px;
|
|
13
|
-
}
|
|
17
|
+
flex: none;
|
|
18
|
+
width: 16px;
|
|
19
|
+
height: 16px;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -19,11 +25,11 @@
|
|
|
19
25
|
gap: 4px;
|
|
20
26
|
|
|
21
27
|
.text {
|
|
22
|
-
@include fnt-flex($size: 14, $line-height: 16, $weight: 500, $family:
|
|
28
|
+
@include fnt-flex($size: 14, $line-height: 16, $weight: 500, $family: var(--golos));
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
.textSecondary {
|
|
26
|
-
@include fnt-flex($size: 14, $line-height: 16, $weight: 400, $family:
|
|
32
|
+
@include fnt-flex($size: 14, $line-height: 16, $weight: 400, $family: var(--golos));
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
|
|
15
15
|
@mixin tertiaryColorButton {
|
|
16
16
|
border: 1px solid transparent;
|
|
17
|
+
|
|
18
|
+
.loader {
|
|
19
|
+
@include modify-svg($stroke: var(--primary-500));
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
.icon {
|
|
18
23
|
@include modify-svg($stroke: var(--primary-500));
|
|
19
24
|
}
|
|
@@ -57,6 +62,10 @@
|
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
@mixin tertiaryColorDarkThemeButton {
|
|
65
|
+
.loader {
|
|
66
|
+
@include modify-svg($stroke: var(--rose-500));
|
|
67
|
+
}
|
|
68
|
+
|
|
60
69
|
.icon {
|
|
61
70
|
@include modify-svg($stroke: var(--rose-500));
|
|
62
71
|
}
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
@mixin tertiaryWhiteButton {
|
|
16
16
|
border: 1px solid transparent;
|
|
17
17
|
|
|
18
|
+
.loader {
|
|
19
|
+
@include modify-svg($stroke: var(--primary-100));
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
.icon {
|
|
19
23
|
@include modify-svg($stroke: var(--primary-100));
|
|
20
24
|
}
|
|
@@ -58,6 +62,10 @@
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
@mixin tertiaryWhiteDarkThemeButton {
|
|
65
|
+
.loader {
|
|
66
|
+
@include modify-svg($stroke: var(--rose-100));
|
|
67
|
+
}
|
|
68
|
+
|
|
61
69
|
.icon {
|
|
62
70
|
@include modify-svg($stroke: var(--rose-100));
|
|
63
71
|
}
|
|
@@ -4,13 +4,19 @@
|
|
|
4
4
|
// С учетом border
|
|
5
5
|
padding: 17px;
|
|
6
6
|
|
|
7
|
+
.loader {
|
|
8
|
+
@include modify-svg() {
|
|
9
|
+
flex: none;
|
|
10
|
+
width: 24px;
|
|
11
|
+
height: 24px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
7
15
|
.icon {
|
|
8
16
|
@include modify-svg() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
height: 24px;
|
|
13
|
-
}
|
|
17
|
+
flex: none;
|
|
18
|
+
width: 24px;
|
|
19
|
+
height: 24px;
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
22
|
|
|
@@ -19,11 +25,11 @@
|
|
|
19
25
|
gap: 4px;
|
|
20
26
|
|
|
21
27
|
.text {
|
|
22
|
-
@include fnt-flex($size: 18, $line-height: 24, $weight: 500, $family:
|
|
28
|
+
@include fnt-flex($size: 18, $line-height: 24, $weight: 500, $family: var(--golos));
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
.textSecondary {
|
|
26
|
-
@include fnt-flex($size: 18, $line-height: 24, $weight: 400, $family:
|
|
32
|
+
@include fnt-flex($size: 18, $line-height: 24, $weight: 400, $family: var(--golos));
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -88,3 +88,5 @@ export { default as CalendarCheck01SVG } from './calendar-check-01.svg';
|
|
|
88
88
|
export { default as HelpCircleSVG } from './help-circle.svg';
|
|
89
89
|
export { default as AlertCircleSVG } from './alert-circle.svg';
|
|
90
90
|
export { default as SlashDividerSVG } from './slash-divider.svg';
|
|
91
|
+
export { default as Loading01SVG } from './loading-01.svg';
|
|
92
|
+
export { default as Loading02SVG } from './loading-02.svg';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useSimpleRefElementWork } from "../../hooks";
|
|
2
|
+
type DragStateType = {
|
|
3
|
+
fromX: number;
|
|
4
|
+
fromY: number;
|
|
5
|
+
toX: number;
|
|
6
|
+
toY: number;
|
|
7
|
+
status: 'start' | 'moving' | 'end';
|
|
8
|
+
};
|
|
9
|
+
type PropsType = [
|
|
10
|
+
ref: Parameters<typeof useSimpleRefElementWork>[number],
|
|
11
|
+
callback: (data: DragStateType) => void
|
|
12
|
+
];
|
|
13
|
+
export declare function useDrag(...args: PropsType): {
|
|
14
|
+
isDrag: boolean;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function UseDragPage(): JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { AsProps, Merge } from "../../../types";
|
|
2
3
|
export type ButtonSizeType = 'small' | 'medium' | 'large' | 'ultra';
|
|
3
4
|
export type ButtonHierarchyType = 'primary' | 'secondary-color' | 'secondary-gray' | 'tertiary-white' | 'tertiary-color' | 'tertiary-gray' | 'link-color' | 'link-black' | 'link-gray' | 'tab-active' | 'tab' | 'link-dark-theme';
|
|
4
5
|
/**
|
|
5
6
|
* Компонент кнопки
|
|
6
7
|
*/
|
|
7
|
-
export type ButtonPropsType
|
|
8
|
+
export type ButtonPropsType<T extends React.ElementType> = Merge<AsProps<T>, {
|
|
8
9
|
/** Размер кнопки (small, medium, large) */
|
|
9
10
|
size?: ButtonSizeType;
|
|
10
11
|
/** Иерархия (primary, secondary, etc.) */
|
|
@@ -36,4 +37,6 @@ export type ButtonPropsType = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
36
37
|
additionStyles?: string | string[];
|
|
37
38
|
/** Тема кнопки: светлая (primary: blue-dark) или темная (primary: rose)*/
|
|
38
39
|
theme?: "light" | "dark" | undefined;
|
|
39
|
-
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
counter?: React.ReactNode;
|
|
42
|
+
}>;
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
text?: React.ReactNode;
|
|
7
|
-
textSecondary?: React.ReactNode;
|
|
8
|
-
iconLeft?: React.ReactNode;
|
|
9
|
-
iconRight?: React.ReactNode;
|
|
10
|
-
warning?: boolean;
|
|
11
|
-
width?: "fill" | "hug";
|
|
12
|
-
height?: "fill" | "hug";
|
|
13
|
-
customComponent?: React.ReactElement<{
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
className?: string;
|
|
16
|
-
} & {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}>;
|
|
19
|
-
additionStyles?: string | string[];
|
|
20
|
-
theme?: "light" | "dark" | undefined;
|
|
21
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
2
|
+
import { ButtonPropsType } from '../types';
|
|
3
|
+
export declare const _Button: <T extends React.ElementType>(_props: ButtonPropsType<T>, ref: React.ElementRef<T>) => JSX.Element;
|
|
4
|
+
export declare const Button: <T extends React.ElementType>(props: ButtonPropsType<T> & React.RefAttributes<React.ElementRef<T>>) => JSX.Element;
|
package/dist/ts/src/ui/formFields/FormPaginatedSelectField/hooks/useFormPaginatedSelectField.d.ts
CHANGED
|
@@ -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: "
|
|
31
|
+
fieldState: "search" | "view";
|
|
32
32
|
setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
33
|
isShow: boolean;
|
|
34
34
|
getIsShow: () => boolean;
|
|
@@ -40,15 +40,15 @@ 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
|
-
ref?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
44
|
-
slot?: string | undefined | undefined;
|
|
45
|
-
style?: React.CSSProperties | undefined;
|
|
46
|
-
title?: string | undefined | undefined;
|
|
47
43
|
id?: string | undefined | undefined;
|
|
44
|
+
ref?: React.LegacyRef<HTMLDivElement> | undefined;
|
|
48
45
|
color?: string | undefined | undefined;
|
|
49
46
|
content?: string | undefined | undefined;
|
|
50
47
|
translate?: "yes" | "no" | undefined | undefined;
|
|
51
48
|
hidden?: boolean | undefined | undefined;
|
|
49
|
+
slot?: string | undefined | undefined;
|
|
50
|
+
style?: React.CSSProperties | undefined;
|
|
51
|
+
title?: string | undefined | undefined;
|
|
52
52
|
key?: React.Key | null | undefined;
|
|
53
53
|
onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
54
54
|
onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "styles";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "mixins";
|