indicator-ui 0.1.121 → 0.1.123
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 +261 -193
- package/dist/index.css.map +1 -1
- package/dist/index.js +87 -32
- package/dist/index.js.map +1 -1
- package/dist/scss/ui/Buttons/styles/mixins/baseButton.scss +5 -4
- package/dist/scss/ui/Buttons/styles/mixins/properties/index.scss +0 -1
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-gray.scss +11 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/primary.scss +19 -29
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-color.scss +49 -39
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-gray.scss +41 -46
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab-active.scss +49 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab.scss +49 -0
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-color.scss +32 -32
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-white.scss +29 -29
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-secondary-color.scss +21 -0
- package/dist/ts/src/hooks/index.d.ts +1 -0
- package/dist/ts/src/hooks/useLoading.d.ts +17 -0
- package/dist/ts/src/test/pages/{ButtonsPage.d.ts → ButtonsPage/ButtonsPage.d.ts} +1 -1
- package/dist/ts/src/test/pages/index.d.ts +1 -1
- package/dist/ts/src/ui/Buttons/types/ButtonTypes.d.ts +1 -1
- package/dist/ts/src/ui/Tag/ui/FilterTag.d.ts +1 -1
- package/docs/CSSVariables/CSSThemeCustomize.md +61 -0
- package/package.json +1 -1
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-dark-theme.scss +0 -52
|
@@ -42,4 +42,25 @@
|
|
|
42
42
|
&:disabled, &.disabled {
|
|
43
43
|
opacity: 0.5;
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
@include darkTheme {
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
border: 1px solid var(--error-600);
|
|
49
|
+
|
|
50
|
+
&:not(.disabled):not(:disabled) {
|
|
51
|
+
@include tablet-plus {
|
|
52
|
+
&:hover {
|
|
53
|
+
background-color: var(--error-950);
|
|
54
|
+
border: 1px solid var(--error-500);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include tablet {
|
|
59
|
+
&:active {
|
|
60
|
+
background-color: var(--error-950);
|
|
61
|
+
border: 1px solid var(--error-500);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
45
66
|
}
|
|
@@ -12,6 +12,7 @@ export * from './useSmartPosition';
|
|
|
12
12
|
export * from './useSmartScroll';
|
|
13
13
|
export * from './useInteractiveZone';
|
|
14
14
|
export * from './useScrollIndicators';
|
|
15
|
+
export * from './useLoading';
|
|
15
16
|
export * from './ui-animations';
|
|
16
17
|
export * from './modalWindows';
|
|
17
18
|
export * from './controlsInput';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type FunBaseType = (...args: any) => any;
|
|
2
|
+
type PropsType<T extends FunBaseType> = [
|
|
3
|
+
fun: T,
|
|
4
|
+
initState?: boolean
|
|
5
|
+
];
|
|
6
|
+
type ActionsType = {
|
|
7
|
+
startLoading: () => void;
|
|
8
|
+
stopLoading: () => void;
|
|
9
|
+
getIsLoading: () => boolean;
|
|
10
|
+
};
|
|
11
|
+
type FunReturnType<T extends FunBaseType> = [
|
|
12
|
+
fun: T,
|
|
13
|
+
isLoading: boolean,
|
|
14
|
+
actions: ActionsType
|
|
15
|
+
];
|
|
16
|
+
export declare function useLoading<T extends FunBaseType>(...args: PropsType<T>): FunReturnType<T>;
|
|
17
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../style.scss';
|
|
2
2
|
export declare function ButtonsPage(): JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { AsProps } from "../../../types";
|
|
3
3
|
export type ButtonSizeType = 'small' | 'medium' | 'large' | 'ultra';
|
|
4
|
-
export type ButtonHierarchyType = 'primary' | 'secondary-color' | 'secondary-gray' | 'tertiary-white' | 'tertiary-color' | 'tertiary-gray' | 'link-color' | 'link-black' | 'link-gray' | 'tab-active' | 'tab'
|
|
4
|
+
export type ButtonHierarchyType = 'primary' | 'secondary-color' | 'secondary-gray' | 'tertiary-white' | 'tertiary-color' | 'tertiary-gray' | 'link-color' | 'link-black' | 'link-gray' | 'tab-active' | 'tab';
|
|
5
5
|
/**
|
|
6
6
|
* Компонент кнопки
|
|
7
7
|
*/
|
|
@@ -8,6 +8,6 @@ type PropsType<T extends React.ElementType> = AsProps<T, {
|
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
active?: boolean;
|
|
10
10
|
}>;
|
|
11
|
-
export declare const _FilterTag: <T extends React.ElementType
|
|
11
|
+
export declare const _FilterTag: <T extends React.ElementType>(props: PropsType<T>, ref: React.Ref<RefType<T>>) => JSX.Element;
|
|
12
12
|
export declare const FilterTag: <T extends React.ElementType = "button">(props: PropsType<T> & React.RefAttributes<RefType<T>>) => JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -121,3 +121,64 @@
|
|
|
121
121
|
- `--ui-checkbox-mark-active-focus-background-color`
|
|
122
122
|
- `--ui-checkbox-mark-active-focus-border-color`
|
|
123
123
|
- `--ui-checkbox-mark-active-focus-symbol-color`
|
|
124
|
+
|
|
125
|
+
## Button
|
|
126
|
+
- `--ui-button-radius`
|
|
127
|
+
|
|
128
|
+
### Primary
|
|
129
|
+
- ### base
|
|
130
|
+
- `--ui-button-primary-background-color`
|
|
131
|
+
- `--ui-button-primary-border-color`
|
|
132
|
+
- `--ui-button-primary-box-shadow`
|
|
133
|
+
- `--ui-button-primary-text-color`
|
|
134
|
+
- `--ui-button-primary-icon-color`
|
|
135
|
+
- ### base hover
|
|
136
|
+
- `--ui-button-primary-hover-background-color`
|
|
137
|
+
- `--ui-button-primary-hover-border-color`
|
|
138
|
+
- `--ui-button-primary-hover-box-shadowr`
|
|
139
|
+
- `--ui-button-primary-hover-text-color`
|
|
140
|
+
- `--ui-button-primary-hover-icon-color`
|
|
141
|
+
- ### disabled
|
|
142
|
+
- `--ui-button-primary-disabled-background-color`
|
|
143
|
+
- `--ui-button-primary-disabled-border-color`
|
|
144
|
+
- `--ui-button-primary-disabled-box-shadow`
|
|
145
|
+
- `--ui-button-primary-disabled-text-color`
|
|
146
|
+
- `--ui-button-primary-disabled-icon-color`
|
|
147
|
+
### Secondary color
|
|
148
|
+
- ### base
|
|
149
|
+
- `--ui-button-secondary-color-background-color`
|
|
150
|
+
- `--ui-button-secondary-color-border-color`
|
|
151
|
+
- `--ui-button-secondary-color-box-shadow`
|
|
152
|
+
- `--ui-button-secondary-color-text-color`
|
|
153
|
+
- `--ui-button-secondary-color-icon-color`
|
|
154
|
+
- ### base hover
|
|
155
|
+
- `--ui-button-secondary-color-hover-background-color`
|
|
156
|
+
- `--ui-button-secondary-color-hover-border-color`
|
|
157
|
+
- `--ui-button-secondary-color-hover-box-shadowr`
|
|
158
|
+
- `--ui-button-secondary-color-hover-text-color`
|
|
159
|
+
- `--ui-button-secondary-color-hover-icon-color`
|
|
160
|
+
- ### disabled
|
|
161
|
+
- `--ui-button-secondary-color-disabled-background-color`
|
|
162
|
+
- `--ui-button-secondary-color-disabled-border-color`
|
|
163
|
+
- `--ui-button-secondary-color-disabled-box-shadow`
|
|
164
|
+
- `--ui-button-secondary-color-disabled-text-color`
|
|
165
|
+
- `--ui-button-secondary-color-disabled-icon-color`
|
|
166
|
+
### Secondary gray
|
|
167
|
+
- ### base
|
|
168
|
+
- `--ui-button-secondary-gray-background-color`
|
|
169
|
+
- `--ui-button-secondary-gray-border-color`
|
|
170
|
+
- `--ui-button-secondary-gray-box-shadow`
|
|
171
|
+
- `--ui-button-secondary-gray-text-color`
|
|
172
|
+
- `--ui-button-secondary-gray-icon-color`
|
|
173
|
+
- ### base hover
|
|
174
|
+
- `--ui-button-secondary-gray-hover-background-color`
|
|
175
|
+
- `--ui-button-secondary-gray-hover-border-color`
|
|
176
|
+
- `--ui-button-secondary-gray-hover-box-shadowr`
|
|
177
|
+
- `--ui-button-secondary-gray-hover-text-color`
|
|
178
|
+
- `--ui-button-secondary-gray-hover-icon-color`
|
|
179
|
+
- ### disabled
|
|
180
|
+
- `--ui-button-secondary-gray-disabled-background-color`
|
|
181
|
+
- `--ui-button-secondary-gray-disabled-border-color`
|
|
182
|
+
- `--ui-button-secondary-gray-disabled-box-shadow`
|
|
183
|
+
- `--ui-button-secondary-gray-disabled-text-color`
|
|
184
|
+
- `--ui-button-secondary-gray-disabled-icon-color`
|
package/package.json
CHANGED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
@use '../../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin linkDarkThemeButton-hover-state {
|
|
4
|
-
.content {
|
|
5
|
-
.text, .textSecondary {
|
|
6
|
-
@include fnt-flex($color: var(--base-white));
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.icon {
|
|
11
|
-
@include modify-svg($stroke: var(--base-white));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin linkDarkTheme {
|
|
16
|
-
padding: 0 !important;
|
|
17
|
-
gap: 4px;
|
|
18
|
-
|
|
19
|
-
.loader {
|
|
20
|
-
@include modify-svg($stroke: var(--gray-iron-400));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.icon {
|
|
24
|
-
@include modify-svg($stroke: var(--gray-iron-400));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.content {
|
|
28
|
-
padding: 0 !important;
|
|
29
|
-
|
|
30
|
-
.text, .textSecondary {
|
|
31
|
-
@include fnt-flex($color: var(--gray-iron-400));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:not(.disabled):not(:disabled) {
|
|
36
|
-
@include tablet-plus {
|
|
37
|
-
&:hover {
|
|
38
|
-
@include linkDarkThemeButton-hover-state;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@include tablet {
|
|
43
|
-
&:active {
|
|
44
|
-
@include linkDarkThemeButton-hover-state;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:disabled, &.disabled {
|
|
50
|
-
opacity: 0.5;
|
|
51
|
-
}
|
|
52
|
-
}
|