indicator-ui 0.0.159 → 0.0.160
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 +10 -11
- package/dist/index.css.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/src/ui/CheckboxMark/ui/CheckboxMark.d.ts +1 -1
- package/dist/types/src/ui/InputFields/InputField/types/InputFieldTypes.d.ts +18 -21
- package/package.json +1 -1
- package/dist/scss/ui/InputFields/SelectField/styles/mixins/index.scss +0 -1
- package/dist/scss/ui/InputFields/SelectField/styles/mixins/selectField.scss +0 -64
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CheckboxMarkPropsType } from "../types";
|
|
3
|
-
export declare const CheckboxMark: React.ForwardRefExoticComponent<CheckboxMarkPropsType & React.RefAttributes<
|
|
3
|
+
export declare const CheckboxMark: React.ForwardRefExoticComponent<CheckboxMarkPropsType & React.RefAttributes<HTMLButtonElement | HTMLSpanElement>>;
|
|
@@ -6,26 +6,23 @@ import { TextareaFieldPropsType } from '../../TextareaField';
|
|
|
6
6
|
import { InputFieldWrapperPropsType } from "../../InputFieldWrapper";
|
|
7
7
|
import { DateTimeFieldPropsType } from "../../DateTimeField";
|
|
8
8
|
import { DateTimeRangeFieldPropsType } from "../../../../ui/InputFields/DateTimeRangeField";
|
|
9
|
-
export type InputFieldTypes = 'switcher' | 'select' | 'radio' | 'checkbox' | 'textarea' | 'date' | 'time' | 'datetime' | 'datetime-range'
|
|
10
|
-
export type InputFieldPropsType =
|
|
11
|
-
type
|
|
12
|
-
} & SwitcherFieldPropsType)
|
|
13
|
-
type
|
|
14
|
-
} & SelectFieldPropsType)
|
|
15
|
-
type
|
|
16
|
-
} & RadioFieldPropsType)
|
|
17
|
-
type
|
|
18
|
-
} & RadioFieldPropsType)
|
|
19
|
-
type
|
|
20
|
-
} & TextareaFieldPropsType)
|
|
21
|
-
type
|
|
22
|
-
} & DateTimeFieldPropsType)
|
|
23
|
-
type
|
|
24
|
-
} & DateTimeRangeFieldPropsType)
|
|
25
|
-
type?: HTMLInputElement['type'];
|
|
26
|
-
} & FlexFieldPropsType))
|
|
27
|
-
value?: any;
|
|
28
|
-
onChange?: (value: any) => void;
|
|
29
|
-
type?: InputFieldTypes;
|
|
9
|
+
export type InputFieldTypes = 'switcher' | 'select' | 'radio' | 'checkbox' | 'textarea' | 'date' | 'time' | 'datetime' | 'datetime-range';
|
|
10
|
+
export type InputFieldPropsType = (({
|
|
11
|
+
type: 'switcher';
|
|
12
|
+
} & SwitcherFieldPropsType) | ({
|
|
13
|
+
type: 'select';
|
|
14
|
+
} & SelectFieldPropsType) | ({
|
|
15
|
+
type: 'radio';
|
|
16
|
+
} & RadioFieldPropsType) | ({
|
|
17
|
+
type: 'checkbox';
|
|
18
|
+
} & RadioFieldPropsType) | ({
|
|
19
|
+
type: 'textarea';
|
|
20
|
+
} & TextareaFieldPropsType) | ({
|
|
21
|
+
type: 'date' | 'time' | 'datetime';
|
|
22
|
+
} & DateTimeFieldPropsType) | ({
|
|
23
|
+
type: 'datetime-range';
|
|
24
|
+
} & DateTimeRangeFieldPropsType) | ({
|
|
25
|
+
type?: Exclude<HTMLInputElement['type'] | string, InputFieldTypes> | undefined | null;
|
|
26
|
+
} & FlexFieldPropsType)) & Omit<InputFieldWrapperPropsType, 'children'> & {
|
|
30
27
|
offWrapper?: boolean;
|
|
31
28
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "selectField";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
@use '../../../../../styles' as *;
|
|
2
|
-
@use '../../../FlexField';
|
|
3
|
-
|
|
4
|
-
@mixin insertSelectField() {
|
|
5
|
-
.selectField {
|
|
6
|
-
width: 100%;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
.modalWindow {
|
|
10
|
-
width: 100%;
|
|
11
|
-
position: absolute;
|
|
12
|
-
z-index: 1;
|
|
13
|
-
|
|
14
|
-
.selectModalWindow {
|
|
15
|
-
animation: show-animation ease-out forwards 200ms;
|
|
16
|
-
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: fit-content;
|
|
19
|
-
max-height: 300px;
|
|
20
|
-
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
|
|
24
|
-
border-radius: 8px;
|
|
25
|
-
padding: 4px;
|
|
26
|
-
|
|
27
|
-
background-color: var(--base-white);
|
|
28
|
-
box-shadow: 0 0 0 1px var(--gray-300), 0 4px 6px -2px #10182808, 0px 12px 16px -4px #10182814;
|
|
29
|
-
|
|
30
|
-
overflow: scroll;
|
|
31
|
-
scrollbar-width: none;
|
|
32
|
-
|
|
33
|
-
.selectFieldOptionsItem {
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: fit-content;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
padding: 10px 16px;
|
|
38
|
-
|
|
39
|
-
@include centerInsideContent();
|
|
40
|
-
|
|
41
|
-
.label {
|
|
42
|
-
flex: 1;
|
|
43
|
-
text-align: left;
|
|
44
|
-
@include fnt($size: 16, $line-height: 24, $weight: 400, $color: var(--gray-900));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.active {
|
|
48
|
-
background-color: var(--blue-dark-50);
|
|
49
|
-
@include changeSvg($width: 20, $height: 20, $stroke: var(--blue-dark-500), $flex: none);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@keyframes show-animation {
|
|
58
|
-
from {
|
|
59
|
-
opacity: 0;
|
|
60
|
-
}
|
|
61
|
-
to {
|
|
62
|
-
opacity: 1;
|
|
63
|
-
}
|
|
64
|
-
}
|