indicator-ui 0.1.47 → 0.1.49
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/README.md +25 -25
- package/dist/index.css +612 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +11938 -8574
- package/dist/index.js.map +1 -1
- package/dist/scss/styles/adaptive/index.scss +142 -142
- package/dist/scss/styles/colors/index.scss +1 -1
- package/dist/scss/styles/colors/primary.scss +54 -54
- package/dist/scss/styles/colors/secondary.scss +12 -12
- package/dist/scss/styles/index.scss +2 -2
- package/dist/scss/styles/mixins/centerInsideContent.scss +6 -6
- package/dist/scss/styles/mixins/changeSvg.scss +25 -25
- package/dist/scss/styles/mixins/fnt-flex.scss +38 -38
- package/dist/scss/styles/mixins/fnt.scss +25 -25
- package/dist/scss/styles/mixins/hiddeScrollBar.scss +9 -9
- package/dist/scss/styles/mixins/index.scss +7 -7
- package/dist/scss/styles/mixins/modify-flex.scss +17 -17
- package/dist/scss/styles/mixins/modify-svg.scss +30 -30
- package/dist/scss/test/global.scss +82 -82
- package/dist/scss/ui/Buttons/styles/mixins/baseButton.scss +48 -48
- package/dist/scss/ui/Buttons/styles/mixins/index.scss +1 -1
- package/dist/scss/ui/Buttons/styles/mixins/properties/index.scss +21 -21
- package/dist/scss/ui/Buttons/styles/mixins/properties/large.scss +28 -28
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-black.scss +47 -47
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-color.scss +47 -47
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-dark-theme.scss +47 -47
- package/dist/scss/ui/Buttons/styles/mixins/properties/link-gray.scss +47 -47
- package/dist/scss/ui/Buttons/styles/mixins/properties/medium.scss +28 -28
- package/dist/scss/ui/Buttons/styles/mixins/properties/primary.scss +59 -59
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-color.scss +72 -72
- package/dist/scss/ui/Buttons/styles/mixins/properties/secondary-gray.scss +90 -90
- package/dist/scss/ui/Buttons/styles/mixins/properties/small.scss +28 -28
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab-active.scss +51 -51
- package/dist/scss/ui/Buttons/styles/mixins/properties/tab.scss +51 -51
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-color.scss +82 -82
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-gray.scss +42 -42
- package/dist/scss/ui/Buttons/styles/mixins/properties/tertiary-white.scss +83 -83
- package/dist/scss/ui/Buttons/styles/mixins/properties/ultra.scss +28 -28
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-link-color.scss +44 -44
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-primary.scss +36 -36
- package/dist/scss/ui/Buttons/styles/mixins/properties/warning-secondary-color.scss +40 -40
- package/dist/scss/ui/CheckboxMark/styles/mixins/base.scss +30 -30
- package/dist/scss/ui/CheckboxMark/styles/mixins/checkbox-mark.scss +95 -95
- package/dist/scss/ui/CheckboxMark/styles/mixins/index.scss +2 -2
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/checkbox.scss +2 -2
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/checked.scss +21 -21
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/correct.scss +48 -48
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/disabled.scss +28 -28
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/error.scss +23 -23
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/incorrect.scss +48 -48
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/indeterminate.scss +18 -18
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/index.scss +7 -7
- package/dist/scss/ui/CheckboxMark/styles/mixins/properties/radio.scss +14 -14
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputField/CustomInput.scss +125 -125
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputField/CustomInputField.scss +32 -32
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputField/CustomTextareaInput.scss +29 -29
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputField/index.scss +1 -1
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputWrapper/CustomInputWrapper.scss +54 -54
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomInputWrapper/config.scss +4 -4
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomOptionsInput/index.scss +47 -47
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomSelectField/CustomSelectField.scss +53 -53
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomSelectField/CustomSelectFieldOption.scss +50 -50
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomSelectField/CustomSelectFieldViewField.scss +27 -27
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomSwitchersField/CustomSwitchersField.scss +16 -16
- package/dist/scss/ui/FormBuilder/styles/CustomFields/CustomSwitchersField/components/option.scss +33 -33
- package/dist/scss/ui/FormBuilder/styles/CustomFields/index.scss +4 -4
- package/dist/scss/ui/InputFields/FlexField/styles/mixins/flexField.scss +150 -150
- package/dist/scss/ui/InputFields/InputFieldWrapper/styles/mixins/inputFieldWrapper.scss +49 -49
- package/dist/scss/ui/MicroButton/styles/mixins/base-button.scss +17 -17
- package/dist/scss/ui/MicroButton/styles/mixins/index.scss +1 -1
- package/dist/scss/ui/MicroButton/styles/mixins/micro-button.scss +68 -68
- package/dist/scss/ui/MicroButton/styles/mixins/properties/blue-light.scss +18 -18
- package/dist/scss/ui/MicroButton/styles/mixins/properties/color-fill.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/color-hover.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/color.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/dark.scss +18 -18
- package/dist/scss/ui/MicroButton/styles/mixins/properties/gray-fill.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/gray.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/index.scss +17 -17
- package/dist/scss/ui/MicroButton/styles/mixins/properties/light.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/red-fill.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/red-hover.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/rose.scss +20 -20
- package/dist/scss/ui/MicroButton/styles/mixins/properties/size-14.scss +11 -11
- package/dist/scss/ui/MicroButton/styles/mixins/properties/size-16.scss +11 -11
- package/dist/scss/ui/MicroButton/styles/mixins/properties/size-20.scss +11 -11
- package/dist/scss/ui/MicroButton/styles/mixins/properties/size-24.scss +11 -11
- package/dist/scss/ui/MicroButton/styles/mixins/properties/size-28.scss +11 -11
- package/dist/scss/ui/Tag/styles/properties/active.scss +15 -15
- package/dist/scss/ui/Tag/styles/properties/base.scss +33 -33
- package/dist/scss/ui/Tag/styles/properties/clicked.scss +2 -2
- package/dist/scss/ui/Tag/styles/properties/hover.scss +4 -4
- package/dist/scss/ui/Tag/styles/properties/index.scss +6 -6
- package/dist/scss/ui/Tag/styles/properties/large.scss +18 -18
- package/dist/scss/ui/Tag/styles/properties/medium.scss +18 -18
- package/dist/scss/ui/Tag/styles/properties/small.scss +18 -18
- package/dist/scss/ui/ToggleBase/styles/mixins/active.scss +12 -12
- package/dist/scss/ui/ToggleBase/styles/mixins/base-button.scss +8 -8
- package/dist/scss/ui/ToggleBase/styles/mixins/base.scss +13 -13
- package/dist/scss/ui/ToggleBase/styles/mixins/disabled.scss +5 -5
- package/dist/scss/ui/ToggleBase/styles/mixins/error.scss +6 -6
- package/dist/scss/ui/ToggleBase/styles/mixins/hover.scss +22 -22
- package/dist/scss/ui/ToggleBase/styles/mixins/index.scss +8 -8
- package/dist/scss/ui/ToggleBase/styles/mixins/large.scss +8 -8
- package/dist/scss/ui/ToggleBase/styles/mixins/medium.scss +8 -8
- package/dist/scss/ui/ToggleBase/styles/mixins/spacer.scss +4 -4
- package/dist/scss/ui/formFields/FormFieldWrapper/styles/mixins/index.scss +1 -0
- package/dist/scss/ui/formFields/FormFieldWrapper/styles/mixins/inputFieldWrapper.scss +50 -0
- package/dist/types/src/hooks/forms/__tests__/lib/getDataByPath.test.d.ts +1 -0
- package/dist/types/src/hooks/forms/__tests__/lib/getFormDataPaths.test.d.ts +1 -0
- package/dist/types/src/hooks/forms/__tests__/lib/setDataByPath.test.d.ts +1 -0
- package/dist/types/src/hooks/forms/__tests__/lib/utils.test.d.ts +1 -0
- package/dist/types/src/hooks/forms/classes/index.d.ts +54 -0
- package/dist/types/src/hooks/forms/index.d.ts +2 -0
- package/dist/types/src/hooks/forms/lib/fieldsProps.d.ts +11 -0
- package/dist/types/src/hooks/forms/lib/getDataByPath.d.ts +4 -0
- package/dist/types/src/hooks/forms/lib/getFormDataPaths.d.ts +5 -0
- package/dist/types/src/hooks/forms/lib/index.d.ts +5 -0
- package/dist/types/src/hooks/forms/lib/scheme.d.ts +16 -0
- package/dist/types/src/hooks/forms/lib/setDataByPath.d.ts +5 -0
- package/dist/types/src/hooks/forms/lib/utils.d.ts +9 -0
- package/dist/types/src/hooks/forms/types/formTypes.d.ts +54 -0
- package/dist/types/src/hooks/forms/types/index.d.ts +2 -3
- package/dist/types/src/hooks/forms/types/scheme.d.ts +155 -0
- package/dist/types/src/hooks/forms/useForm.d.ts +202 -0
- package/dist/types/src/hooks/forms/validateFunctions/config.d.ts +2 -0
- package/dist/types/src/hooks/forms/validateFunctions/index.d.ts +8 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateArray.d.ts +1 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateDateTime.d.ts +7 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateEqualsTo.d.ts +1 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateFile.d.ts +3 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateNum.d.ts +6 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateRequired.d.ts +1 -0
- package/dist/types/src/hooks/forms/validateFunctions/validateStr.d.ts +8 -0
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/lib/tsCheck/index.d.ts +1 -0
- package/dist/types/src/test/pages/FormPage.d.ts +1 -0
- package/dist/types/src/test/pages/index.d.ts +1 -0
- package/dist/types/src/types/mixins.d.ts +10 -0
- package/dist/types/src/ui/formFields/FormField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormField/styles/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormField/ui/FormField.d.ts +6 -0
- package/dist/types/src/ui/formFields/FormField/ui/FormFieldBase.d.ts +19 -0
- package/dist/types/src/ui/formFields/FormField/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/FormFieldWrapper/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormFieldWrapper/styles/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormFieldWrapper/ui/FormFieldWrapper.d.ts +24 -0
- package/dist/types/src/ui/formFields/FormFieldWrapper/ui/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormRadioField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormRadioField/ui/FieldItem.d.ts +11 -0
- package/dist/types/src/ui/formFields/FormRadioField/ui/FormRadioField.d.ts +18 -0
- package/dist/types/src/ui/formFields/FormRadioField/ui/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormSelectField/config/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormSelectField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormSelectField/styles/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormSelectField/ui/FormSelectField.d.ts +8 -0
- package/dist/types/src/ui/formFields/FormSelectField/ui/FormSelectFieldBase.d.ts +21 -0
- package/dist/types/src/ui/formFields/FormSelectField/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/FormSwitcherField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormSwitcherField/ui/FormSwitcherField.d.ts +5 -0
- package/dist/types/src/ui/formFields/FormSwitcherField/ui/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormTextareaField/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormTextareaField/styles/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/FormTextareaField/ui/FormTextareaField.d.ts +14 -0
- package/dist/types/src/ui/formFields/FormTextareaField/ui/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/extends/index.d.ts +1 -0
- package/dist/types/src/ui/formFields/extends/style/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/extends/ui/DropdownArrow.d.ts +6 -0
- package/dist/types/src/ui/formFields/extends/ui/InputInnerButton.d.ts +7 -0
- package/dist/types/src/ui/formFields/extends/ui/index.d.ts +2 -0
- package/dist/types/src/ui/formFields/index.d.ts +6 -0
- package/dist/types/src/ui/index.d.ts +1 -0
- package/docs/CSSVariables/CSSVariables.md +62 -62
- package/docs/CSSVariables/CSSVariablesCalifornia.md +61 -61
- package/docs/ForDev.md +106 -106
- package/docs/FormBuilderDocs.md +204 -204
- package/docs/Notes.md +189 -55
- package/docs/SCSSVariables.md +28 -28
- package/package.json +2 -2
- package/dist/scss/ui/InputFields/index.scss +0 -7
- package/dist/types/src/hooks/forms/useForms.d.ts +0 -3
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin base() {
|
|
4
|
-
width: fit-content;
|
|
5
|
-
height: fit-content;
|
|
6
|
-
gap: 3px;
|
|
7
|
-
border-radius: 6px;
|
|
8
|
-
border: 1px solid var(--gray-300);
|
|
9
|
-
background-color: var(--base-white);
|
|
10
|
-
transition: background-color ease-out 300ms;
|
|
11
|
-
cursor: default;
|
|
12
|
-
flex-wrap: nowrap;
|
|
13
|
-
@include modify-flex($align-items: center);
|
|
14
|
-
|
|
15
|
-
.main {
|
|
16
|
-
flex-wrap: nowrap;
|
|
17
|
-
@include modify-flex($align-items: center);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.label {
|
|
21
|
-
text-wrap: nowrap;
|
|
22
|
-
overflow: hidden;
|
|
23
|
-
text-overflow: ellipsis;
|
|
24
|
-
@include fnt-flex($color: var(--gray-700));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.dotIcon {
|
|
28
|
-
flex: none;
|
|
29
|
-
width: 6px;
|
|
30
|
-
height: 6px;
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
background-color: var(--success-500);
|
|
33
|
-
}
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin base() {
|
|
4
|
+
width: fit-content;
|
|
5
|
+
height: fit-content;
|
|
6
|
+
gap: 3px;
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
border: 1px solid var(--gray-300);
|
|
9
|
+
background-color: var(--base-white);
|
|
10
|
+
transition: background-color ease-out 300ms;
|
|
11
|
+
cursor: default;
|
|
12
|
+
flex-wrap: nowrap;
|
|
13
|
+
@include modify-flex($align-items: center);
|
|
14
|
+
|
|
15
|
+
.main {
|
|
16
|
+
flex-wrap: nowrap;
|
|
17
|
+
@include modify-flex($align-items: center);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.label {
|
|
21
|
+
text-wrap: nowrap;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
@include fnt-flex($color: var(--gray-700));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dotIcon {
|
|
28
|
+
flex: none;
|
|
29
|
+
width: 6px;
|
|
30
|
+
height: 6px;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
background-color: var(--success-500);
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@mixin clicked() {
|
|
2
|
-
cursor: pointer;
|
|
1
|
+
@mixin clicked() {
|
|
2
|
+
cursor: pointer;
|
|
3
3
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin hover() {
|
|
4
|
-
background-color: var(--gray-50);
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin hover() {
|
|
4
|
+
background-color: var(--gray-50);
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@forward "large";
|
|
2
|
-
@forward "small";
|
|
3
|
-
@forward "medium";
|
|
4
|
-
@forward "active";
|
|
5
|
-
@forward "clicked";
|
|
6
|
-
@forward "base";
|
|
1
|
+
@forward "large";
|
|
2
|
+
@forward "small";
|
|
3
|
+
@forward "medium";
|
|
4
|
+
@forward "active";
|
|
5
|
+
@forward "clicked";
|
|
6
|
+
@forward "base";
|
|
7
7
|
@forward "hover";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin large() {
|
|
4
|
-
// С учетом border
|
|
5
|
-
padding: 3px 9px;
|
|
6
|
-
@include fnt-flex($size: 14, $line-height: 20, $weight: 500);
|
|
7
|
-
|
|
8
|
-
.main {
|
|
9
|
-
gap: 6px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.isAction {
|
|
13
|
-
padding-right: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.isCheckbox {
|
|
17
|
-
padding-left: 5px;
|
|
18
|
-
}
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin large() {
|
|
4
|
+
// С учетом border
|
|
5
|
+
padding: 3px 9px;
|
|
6
|
+
@include fnt-flex($size: 14, $line-height: 20, $weight: 500);
|
|
7
|
+
|
|
8
|
+
.main {
|
|
9
|
+
gap: 6px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.isAction {
|
|
13
|
+
padding-right: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.isCheckbox {
|
|
17
|
+
padding-left: 5px;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin medium() {
|
|
4
|
-
// С учетом border
|
|
5
|
-
padding: 1px 8px;
|
|
6
|
-
@include fnt-flex($size: 14, $line-height: 20, $weight: 500, $family: $golos-ui);
|
|
7
|
-
|
|
8
|
-
.main {
|
|
9
|
-
gap: 5px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.isAction {
|
|
13
|
-
padding-right: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.isCheckbox {
|
|
17
|
-
padding-left: 4px;
|
|
18
|
-
}
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin medium() {
|
|
4
|
+
// С учетом border
|
|
5
|
+
padding: 1px 8px;
|
|
6
|
+
@include fnt-flex($size: 14, $line-height: 20, $weight: 500, $family: $golos-ui);
|
|
7
|
+
|
|
8
|
+
.main {
|
|
9
|
+
gap: 5px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.isAction {
|
|
13
|
+
padding-right: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.isCheckbox {
|
|
17
|
+
padding-left: 4px;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin small() {
|
|
4
|
-
// С учетом border
|
|
5
|
-
padding: 2px 7px;
|
|
6
|
-
@include fnt-flex($size: 12, $line-height: 18, $weight: 500, $family: $golos-ui);
|
|
7
|
-
|
|
8
|
-
.main {
|
|
9
|
-
gap: 4px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.isAction {
|
|
13
|
-
padding-right: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.isCheckbox {
|
|
17
|
-
padding-left: 5px;
|
|
18
|
-
}
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin small() {
|
|
4
|
+
// С учетом border
|
|
5
|
+
padding: 2px 7px;
|
|
6
|
+
@include fnt-flex($size: 12, $line-height: 18, $weight: 500, $family: $golos-ui);
|
|
7
|
+
|
|
8
|
+
.main {
|
|
9
|
+
gap: 4px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.isAction {
|
|
13
|
+
padding-right: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.isCheckbox {
|
|
17
|
+
padding-left: 5px;
|
|
18
|
+
}
|
|
19
19
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@mixin active($theme: 'light') {
|
|
2
|
-
@if $theme == 'dark' {
|
|
3
|
-
background-color: var(--rose-500);
|
|
4
|
-
} @else {
|
|
5
|
-
background-color: var(--primary-500);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin active-spacer() {
|
|
10
|
-
flex-grow: 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
@mixin active($theme: 'light') {
|
|
2
|
+
@if $theme == 'dark' {
|
|
3
|
+
background-color: var(--rose-500);
|
|
4
|
+
} @else {
|
|
5
|
+
background-color: var(--primary-500);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin active-spacer() {
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin base-button() {
|
|
4
|
-
flex: none;
|
|
5
|
-
border: 1px solid transparent;
|
|
6
|
-
border-radius: 50%;
|
|
7
|
-
background-color: var(--base-white);
|
|
8
|
-
box-shadow: 0 1px 2px 0 #1018280F, 0 1px 3px 0 #1018281A;
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin base-button() {
|
|
4
|
+
flex: none;
|
|
5
|
+
border: 1px solid transparent;
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
background-color: var(--base-white);
|
|
8
|
+
box-shadow: 0 1px 2px 0 #1018280F, 0 1px 3px 0 #1018281A;
|
|
9
9
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin base($theme: 'light') {
|
|
4
|
-
border-radius: 12px;
|
|
5
|
-
padding: 1px;
|
|
6
|
-
border: 1px solid transparent;
|
|
7
|
-
|
|
8
|
-
@if $theme == 'dark' {
|
|
9
|
-
background-color: var(--gray-iron-500);
|
|
10
|
-
} @else {
|
|
11
|
-
background-color: var(--gray-300);
|
|
12
|
-
}
|
|
13
|
-
@include modify-flex($align-items: center);
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin base($theme: 'light') {
|
|
4
|
+
border-radius: 12px;
|
|
5
|
+
padding: 1px;
|
|
6
|
+
border: 1px solid transparent;
|
|
7
|
+
|
|
8
|
+
@if $theme == 'dark' {
|
|
9
|
+
background-color: var(--gray-iron-500);
|
|
10
|
+
} @else {
|
|
11
|
+
background-color: var(--gray-300);
|
|
12
|
+
}
|
|
13
|
+
@include modify-flex($align-items: center);
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@mixin disabled-base() {
|
|
2
|
-
cursor: default;
|
|
3
|
-
pointer-events: none;
|
|
4
|
-
opacity: 0.5;
|
|
5
|
-
}
|
|
1
|
+
@mixin disabled-base() {
|
|
2
|
+
cursor: default;
|
|
3
|
+
pointer-events: none;
|
|
4
|
+
opacity: 0.5;
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@mixin error-base() {
|
|
2
|
-
background-color: var(--error-200);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
@mixin error-active() {
|
|
6
|
-
background-color: var(--error-500);
|
|
1
|
+
@mixin error-base() {
|
|
2
|
+
background-color: var(--error-200);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin error-active() {
|
|
6
|
+
background-color: var(--error-500);
|
|
7
7
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@mixin hover($theme: "light") {
|
|
2
|
-
@if $theme == "light" {
|
|
3
|
-
background-color: var(--gray-400);
|
|
4
|
-
} @else {
|
|
5
|
-
background-color: var(--gray-iron-600);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin hover-active($theme: "light") {
|
|
10
|
-
@if $theme == "light" {
|
|
11
|
-
background-color: var(--primary-600);
|
|
12
|
-
} @else {
|
|
13
|
-
background-color: var(--rose-600);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin hover-error() {
|
|
18
|
-
background-color: var(--error-300);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin hover-active-error() {
|
|
22
|
-
background-color: var(--error-600);
|
|
1
|
+
@mixin hover($theme: "light") {
|
|
2
|
+
@if $theme == "light" {
|
|
3
|
+
background-color: var(--gray-400);
|
|
4
|
+
} @else {
|
|
5
|
+
background-color: var(--gray-iron-600);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin hover-active($theme: "light") {
|
|
10
|
+
@if $theme == "light" {
|
|
11
|
+
background-color: var(--primary-600);
|
|
12
|
+
} @else {
|
|
13
|
+
background-color: var(--rose-600);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin hover-error() {
|
|
18
|
+
background-color: var(--error-300);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin hover-active-error() {
|
|
22
|
+
background-color: var(--error-600);
|
|
23
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@forward "large";
|
|
2
|
-
@forward "medium";
|
|
3
|
-
@forward "error";
|
|
4
|
-
@forward "active";
|
|
5
|
-
@forward "hover";
|
|
6
|
-
@forward "base-button";
|
|
7
|
-
@forward "base";
|
|
8
|
-
@forward "disabled";
|
|
1
|
+
@forward "large";
|
|
2
|
+
@forward "medium";
|
|
3
|
+
@forward "error";
|
|
4
|
+
@forward "active";
|
|
5
|
+
@forward "hover";
|
|
6
|
+
@forward "base-button";
|
|
7
|
+
@forward "base";
|
|
8
|
+
@forward "disabled";
|
|
9
9
|
@forward "spacer";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin large-base() {
|
|
2
|
-
width: 44px;
|
|
3
|
-
height: 24px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin large-button() {
|
|
7
|
-
width: 20px;
|
|
8
|
-
height: 20px;
|
|
1
|
+
@mixin large-base() {
|
|
2
|
+
width: 44px;
|
|
3
|
+
height: 24px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin large-button() {
|
|
7
|
+
width: 20px;
|
|
8
|
+
height: 20px;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin medium-base() {
|
|
2
|
-
width: 36px;
|
|
3
|
-
height: 20px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@mixin medium-button() {
|
|
7
|
-
width: 16px;
|
|
8
|
-
height: 16px;
|
|
1
|
+
@mixin medium-base() {
|
|
2
|
+
width: 36px;
|
|
3
|
+
height: 20px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin medium-button() {
|
|
7
|
+
width: 16px;
|
|
8
|
+
height: 16px;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '../../../../styles' as *;
|
|
2
|
-
|
|
3
|
-
@mixin spacer() {
|
|
4
|
-
flex-grow: 0;
|
|
1
|
+
@use '../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin spacer() {
|
|
4
|
+
flex-grow: 0;
|
|
5
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "inputFieldWrapper";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../../../../../styles' as *;
|
|
2
|
+
|
|
3
|
+
@mixin insertInputFieldWrapper() {
|
|
4
|
+
.inputFieldWrapper {
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 4px;
|
|
10
|
+
|
|
11
|
+
.labelText {
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
gap: 2px;
|
|
15
|
+
|
|
16
|
+
@include fnt($size: 14, $line-height: 20, $weight: 500, $color: var(--gray-700));
|
|
17
|
+
|
|
18
|
+
.required {
|
|
19
|
+
@include fnt($size: 14, $line-height: 20, $weight: 500, $color: var(--error-500));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.hintText {
|
|
24
|
+
display: flex;
|
|
25
|
+
padding: 0 12px;
|
|
26
|
+
gap: 2px;
|
|
27
|
+
|
|
28
|
+
@include fnt($size: 14, $line-height: 20, $weight: 400, $color: var(--gray-600));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.hintError {
|
|
32
|
+
display: flex;
|
|
33
|
+
padding: 0 12px;
|
|
34
|
+
gap: 2px;
|
|
35
|
+
|
|
36
|
+
@include fnt($size: 14, $line-height: 20, $weight: 400, $color: var(--error-500));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.helperLink {
|
|
40
|
+
display: flex;
|
|
41
|
+
padding: 0 12px;
|
|
42
|
+
gap: 2px;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
@include changeSvg($width: 20, $height: 20, $stroke: var(--primary-500), $flex: none);
|
|
45
|
+
@include fnt($size: 14, $line-height: 20, $weight: 400, $color: var(--primary-500));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@content;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ExtendFormPath, ExtendFormValue, FormErrorsType, FormErrorType, FormPath, FormValidateFunItemType, FormValidateFunListType, FormValidateFunType, FormValue } from "../types";
|
|
2
|
+
export declare class Form<T> {
|
|
3
|
+
private data;
|
|
4
|
+
private defaultValues;
|
|
5
|
+
constructor(data?: T | undefined);
|
|
6
|
+
getFormData(): T | undefined;
|
|
7
|
+
setFormData(data: T | undefined): void;
|
|
8
|
+
get formData(): T | undefined;
|
|
9
|
+
set formData(data: T | undefined);
|
|
10
|
+
hasDefaultValue<const P extends FormPath<T>>(path: P): boolean;
|
|
11
|
+
getDefaultValue<const P extends FormPath<T>>(path: P): {
|
|
12
|
+
default: ExtendFormValue<T | undefined, P>;
|
|
13
|
+
} | undefined;
|
|
14
|
+
setDefaultValue<const P extends ExtendFormPath<T>>(path: P, value: ExtendFormValue<T, P>): void;
|
|
15
|
+
deleteDefaultValue<const P extends ExtendFormPath<T>>(path: P): void;
|
|
16
|
+
clearDefaultValues(): void;
|
|
17
|
+
applyDefaultValue<const P extends ExtendFormPath<T>>(path: P): void;
|
|
18
|
+
applyDefaultValues(): void;
|
|
19
|
+
setField<const P extends FormPath<T>>(path: P, value: FormValue<T, P> | undefined): void;
|
|
20
|
+
getField<const P extends FormPath<T>>(path: P): FormValue<T, P> | undefined;
|
|
21
|
+
clear(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare class FormError<T> {
|
|
24
|
+
private formErrors;
|
|
25
|
+
constructor(errors?: FormErrorsType<T>);
|
|
26
|
+
getErrors(): FormErrorsType<T>;
|
|
27
|
+
get errors(): FormErrorsType<T>;
|
|
28
|
+
setErrors(errors: FormErrorsType<T>): void;
|
|
29
|
+
addErrors(errors: FormErrorsType<T>): void;
|
|
30
|
+
set errors(errors: FormErrorsType<T>);
|
|
31
|
+
getError<const P extends FormPath<T>>(path: P): FormErrorType | undefined;
|
|
32
|
+
setError<const P extends FormPath<T>>(path: P, error: FormErrorType): void;
|
|
33
|
+
deleteError<const P extends FormPath<T>>(keyChain: P): void;
|
|
34
|
+
clear(): void;
|
|
35
|
+
}
|
|
36
|
+
type ValidateResArrayType<T> = FormErrorsType<T>;
|
|
37
|
+
export declare class FormValidateFun<T> {
|
|
38
|
+
private formValidateFunctions;
|
|
39
|
+
private form;
|
|
40
|
+
constructor(form: Form<T>, formValidateFunctions?: FormValidateFunType<T>);
|
|
41
|
+
setForm(form: Form<T>): void;
|
|
42
|
+
private getValueForValidate;
|
|
43
|
+
getFormValidateFunctions(): FormValidateFunType<T>;
|
|
44
|
+
setFormValidateFunctions(newValue: FormValidateFunType<T>): void;
|
|
45
|
+
getValidateFunctions<const P extends ExtendFormPath<T>>(path: P): FormValidateFunListType<ExtendFormValue<T, P>>;
|
|
46
|
+
setValidateFunctions<const P extends ExtendFormPath<T>>(path: P, func: FormValidateFunListType<ExtendFormValue<T, P>>): void;
|
|
47
|
+
deleteValidateFunctions<const P extends ExtendFormPath<T>>(chain: P): void;
|
|
48
|
+
addValidateFunctions<const P extends ExtendFormPath<T>>(chain: P, fun: FormValidateFunItemType<ExtendFormValue<T, P>>): void;
|
|
49
|
+
validate<const P extends ExtendFormPath<T>>(path: P): Promise<ValidateResArrayType<T>>;
|
|
50
|
+
isValid<const P extends ExtendFormPath<T>>(path: P): Promise<boolean>;
|
|
51
|
+
validateAllFields(): Promise<ValidateResArrayType<T>>;
|
|
52
|
+
isFormValid(): Promise<boolean>;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FieldPropsType, FormPath, FormValue } from '../types';
|
|
2
|
+
import { Form, FormError } from "../classes";
|
|
3
|
+
type PropsType<T, P extends FormPath<T>> = {
|
|
4
|
+
path: P;
|
|
5
|
+
form: Form<T>;
|
|
6
|
+
setField: (path: P, value: FormValue<T, P> | undefined) => void;
|
|
7
|
+
formErrors: FormError<T>;
|
|
8
|
+
highlightField: (path: P) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function getFieldPropsType<T, P extends FormPath<T>>(props: PropsType<T, P>): FieldPropsType<FormValue<T, P>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ExtendFormPath, ExtendFormValue, FieldConfigType, FormDefaultValues, FormPath, FormSchemeType, GetProcessArrayFieldValue } from '../types';
|
|
2
|
+
import { Form, FormValidateFun } from '../classes';
|
|
3
|
+
type PropsOptionsType<T> = {
|
|
4
|
+
form: Form<T>;
|
|
5
|
+
formValidateFun: FormValidateFun<T>;
|
|
6
|
+
};
|
|
7
|
+
/** Полностью заменяет валидаторы поля */
|
|
8
|
+
export declare function processValidators<T, F>(path: FormPath<T>, _config: FieldConfigType<T, F>, options: PropsOptionsType<T>): void;
|
|
9
|
+
/** Полностью заменяет валидаторы полей */
|
|
10
|
+
export declare function processScheme<T>(scheme: FormSchemeType<T>, options: PropsOptionsType<T>): void;
|
|
11
|
+
export declare function getArrayExtendBasePath<T, P extends ExtendFormPath<T>>(path: P): GetProcessArrayFieldValue<T, P> | undefined;
|
|
12
|
+
export declare function getArrayExtendPath<T, P extends ExtendFormPath<T>>(path: P): GetProcessArrayFieldValue<T, P> | undefined;
|
|
13
|
+
export declare function getExtendPath<T, P extends FormPath<T>>(path: P): ExtendFormPath<T>;
|
|
14
|
+
export declare function getSortedExtendsPaths<T>(defaultValues: FormDefaultValues<T>): ExtendFormPath<T>[];
|
|
15
|
+
export declare function setExtendValue<T, P extends ExtendFormPath<T>>(formData: T, path: P, value: ExtendFormValue<T, P>): T | undefined;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FormPath, FormValue } from "../types";
|
|
2
|
+
type PropsType<T, P extends FormPath<T>> = [formData: T, keyChain: P, value: FormValue<T, P> | undefined];
|
|
3
|
+
type FunReturnType<T> = T | undefined;
|
|
4
|
+
export declare function setDataByPath<T, const P extends FormPath<T>>(...[formData, path, value]: PropsType<T, P>): FunReturnType<T>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function copyData<T>(data: T): T;
|
|
2
|
+
export declare function getBasePath(path: string): string | null;
|
|
3
|
+
export declare function getBaseRest(path: string): string | null;
|
|
4
|
+
export declare function getArrayIndex(path: string): number | null;
|
|
5
|
+
export declare function getArrayRest(path: string): string | null;
|
|
6
|
+
export declare function getObjectPath(path: string): string | null;
|
|
7
|
+
export declare function getObjectRest(path: string): string | null;
|
|
8
|
+
export declare function isArrayPathValue(path: string): boolean;
|
|
9
|
+
export declare function isObjPathValue(path: string): boolean;
|