@gravity-ui/dynamic-forms 4.14.3 → 4.16.0
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/build/cjs/lib/core/components/Form/hooks/useSearch/useSearch.css +21 -2
- package/build/cjs/lib/kit/components/AccordeonCard/AccordeonCard.css +28 -9
- package/build/cjs/lib/kit/components/Card/Card.css +30 -11
- package/build/cjs/lib/kit/components/CopyButton/CopyButton.css +19 -0
- package/build/cjs/lib/kit/components/ErrorWrapper/ErrorWrapper.css +21 -2
- package/build/cjs/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.css +20 -1
- package/build/cjs/lib/kit/components/GroupIndent/GroupIndent.css +23 -7
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +23 -5
- package/build/cjs/lib/kit/components/Inputs/Checkbox/Checkbox.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +23 -5
- package/build/cjs/lib/kit/components/Inputs/DateInput/DateInput.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/FileInput/FileInput.css +21 -2
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +21 -2
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +21 -2
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +23 -4
- package/build/cjs/lib/kit/components/Inputs/MultiSelect/MultiSelect.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +21 -2
- package/build/cjs/lib/kit/components/Inputs/ObjectBase/ObjectBase.css +24 -6
- package/build/cjs/lib/kit/components/Inputs/OneOf/OneOf.css +27 -11
- package/build/cjs/lib/kit/components/Inputs/Select/Select.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/Switch/Switch.css +20 -1
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +25 -6
- package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.css +21 -2
- package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.js +10 -1
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.css +19 -0
- package/build/cjs/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.css +20 -1
- package/build/cjs/lib/kit/components/Layouts/Column/Column.css +81 -0
- package/build/cjs/lib/kit/components/Layouts/Column/Column.js +34 -0
- package/build/cjs/lib/kit/components/Layouts/Column/index.js +4 -0
- package/build/cjs/lib/kit/components/Layouts/Row/Row.css +31 -12
- package/build/cjs/lib/kit/components/Layouts/Section/Section.css +28 -9
- package/build/cjs/lib/kit/components/Layouts/Transparent/Transparent.css +23 -4
- package/build/cjs/lib/kit/components/Layouts/index.js +1 -0
- package/build/cjs/lib/kit/components/LongValue/LongValue.css +20 -1
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +28 -9
- package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.css +24 -6
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +60 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +24 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/index.js +4 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +50 -12
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +42 -4
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.css +42 -4
- package/build/cjs/lib/kit/components/ViewLayouts/index.js +1 -0
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +20 -1
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +24 -6
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoBaseView.css +20 -1
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +21 -2
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.css +25 -6
- package/build/cjs/lib/kit/components/Views/MultiSelectView/MultiSelectView.css +22 -3
- package/build/cjs/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.css +21 -2
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.css +22 -4
- package/build/cjs/lib/kit/components/Views/OneOfView/OneOfView.css +23 -4
- package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.css +23 -4
- package/build/cjs/lib/kit/components/Views/TextAreaView/TextAreaView.css +20 -1
- package/build/cjs/lib/kit/constants/config.js +10 -0
- package/build/cjs/lib/kit/hooks/useOneOf/useOneOf.css +24 -5
- package/build/cjs/lib/kit/styles/mixins.css +19 -0
- package/build/cjs/lib/kit/styles/variables.css +19 -0
- package/build/cjs/lib/kit/utils/common.js +6 -2
- package/build/esm/lib/core/components/Form/hooks/useSearch/useSearch.css +21 -2
- package/build/esm/lib/core/components/Form/types/field.d.ts +1 -0
- package/build/esm/lib/core/types/specs.d.ts +3 -1
- package/build/esm/lib/kit/components/AccordeonCard/AccordeonCard.css +28 -9
- package/build/esm/lib/kit/components/Card/Card.css +30 -11
- package/build/esm/lib/kit/components/CopyButton/CopyButton.css +19 -0
- package/build/esm/lib/kit/components/ErrorWrapper/ErrorWrapper.css +21 -2
- package/build/esm/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.css +20 -1
- package/build/esm/lib/kit/components/GroupIndent/GroupIndent.css +23 -7
- package/build/esm/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +23 -5
- package/build/esm/lib/kit/components/Inputs/Checkbox/Checkbox.css +20 -1
- package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +23 -5
- package/build/esm/lib/kit/components/Inputs/DateInput/DateInput.css +20 -1
- package/build/esm/lib/kit/components/Inputs/FileInput/FileInput.css +21 -2
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +21 -2
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.css +20 -1
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +21 -2
- package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +23 -4
- package/build/esm/lib/kit/components/Inputs/MultiSelect/MultiSelect.css +20 -1
- package/build/esm/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +21 -2
- package/build/esm/lib/kit/components/Inputs/ObjectBase/ObjectBase.css +24 -6
- package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.css +27 -11
- package/build/esm/lib/kit/components/Inputs/Select/Select.css +20 -1
- package/build/esm/lib/kit/components/Inputs/Switch/Switch.css +20 -1
- package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +25 -6
- package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.css +21 -2
- package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.js +11 -2
- package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.css +19 -0
- package/build/esm/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.css +20 -1
- package/build/esm/lib/kit/components/Layouts/Column/Column.css +81 -0
- package/build/esm/lib/kit/components/Layouts/Column/Column.d.ts +3 -0
- package/build/esm/lib/kit/components/Layouts/Column/Column.js +30 -0
- package/build/esm/lib/kit/components/Layouts/Column/index.d.ts +1 -0
- package/build/esm/lib/kit/components/Layouts/Column/index.js +1 -0
- package/build/esm/lib/kit/components/Layouts/Row/Row.css +31 -12
- package/build/esm/lib/kit/components/Layouts/Section/Section.css +28 -9
- package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.css +23 -4
- package/build/esm/lib/kit/components/Layouts/index.d.ts +1 -0
- package/build/esm/lib/kit/components/Layouts/index.js +1 -0
- package/build/esm/lib/kit/components/LongValue/LongValue.css +20 -1
- package/build/esm/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +28 -9
- package/build/esm/lib/kit/components/TogglerCard/TogglerCard.css +24 -6
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +60 -0
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.d.ts +3 -0
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +20 -0
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/index.d.ts +1 -0
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/index.js +1 -0
- package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +50 -12
- package/build/esm/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +42 -4
- package/build/esm/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.css +42 -4
- package/build/esm/lib/kit/components/ViewLayouts/index.d.ts +1 -0
- package/build/esm/lib/kit/components/ViewLayouts/index.js +1 -0
- package/build/esm/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +20 -1
- package/build/esm/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +24 -6
- package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoBaseView.css +20 -1
- package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +21 -2
- package/build/esm/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.css +25 -6
- package/build/esm/lib/kit/components/Views/MultiSelectView/MultiSelectView.css +22 -3
- package/build/esm/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.css +21 -2
- package/build/esm/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.css +22 -4
- package/build/esm/lib/kit/components/Views/OneOfView/OneOfView.css +23 -4
- package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.css +23 -4
- package/build/esm/lib/kit/components/Views/TextAreaView/TextAreaView.css +20 -1
- package/build/esm/lib/kit/constants/config.js +11 -1
- package/build/esm/lib/kit/hooks/useOneOf/useOneOf.css +24 -5
- package/build/esm/lib/kit/styles/mixins.css +19 -0
- package/build/esm/lib/kit/styles/variables.css +19 -0
- package/build/esm/lib/kit/utils/common.js +6 -2
- package/package.json +1 -1
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-number-with-scale__wrapper {
|
|
2
21
|
display: flex;
|
|
3
22
|
}
|
|
4
23
|
.df-number-with-scale__select {
|
|
5
|
-
max-width: 102px;
|
|
6
|
-
margin-left: 5px;
|
|
24
|
+
max-width: var(--df-number-with-scale-select-max-width, 102px);
|
|
25
|
+
margin-left: var(--df-number-with-scale-select-margin-left, 5px);
|
|
7
26
|
}
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-object-base__content_inline {
|
|
2
21
|
display: flex;
|
|
3
22
|
}
|
|
4
23
|
.df-object-base__content_inline > .df-use-search {
|
|
5
|
-
width: 150px;
|
|
6
|
-
margin
|
|
7
|
-
margin-right: 8px;
|
|
24
|
+
width: var(--df-object-base-inline-width, 150px);
|
|
25
|
+
margin: var(--df-object-base-inline-margin, var(--g-spacing-0) var(--g-spacing-2) var(--g-spacing-0) var(--g-spacing-0));
|
|
8
26
|
}
|
|
9
27
|
.df-object-base__content_inline > .df-use-search:last-child {
|
|
10
|
-
margin-
|
|
28
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
11
29
|
}
|
|
12
30
|
.df-object-base__delimiter {
|
|
13
|
-
height: 28px;
|
|
31
|
+
height: var(--df-object-base-delimiter-height, 28px);
|
|
14
32
|
display: flex;
|
|
15
|
-
margin-right:
|
|
33
|
+
margin-right: var(--df-object-base-delimiter-margin-right, var(--g-spacing-2));
|
|
16
34
|
align-items: center;
|
|
17
35
|
white-space: nowrap;
|
|
18
36
|
}
|
|
@@ -1,37 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-oneof {
|
|
2
21
|
display: flex;
|
|
3
22
|
flex-direction: column;
|
|
4
23
|
}
|
|
5
24
|
.df-oneof:last-child > .df-group-indent {
|
|
6
|
-
margin-bottom: 0;
|
|
25
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
7
26
|
}
|
|
8
27
|
.df-oneof_base > .df-group-indent {
|
|
9
28
|
all: unset;
|
|
10
29
|
}
|
|
11
30
|
.df-oneof_base > .df-group-indent > .df-use-search {
|
|
12
|
-
padding
|
|
13
|
-
|
|
14
|
-
margin-top: 4px;
|
|
15
|
-
margin-bottom: 20px;
|
|
16
|
-
margin-left: 5px;
|
|
31
|
+
padding: var(--df-oneof-base-padding, 11px var(--g-spacing-0) var(--g-spacing-0) var(--g-spacing-5));
|
|
32
|
+
margin: var(--df-oneof-base-margin, var(--g-spacing-1) var(--g-spacing-0) var(--g-spacing-5) 5px);
|
|
17
33
|
border-left: 1px solid var(--g-color-line-generic-accent);
|
|
18
34
|
}
|
|
19
35
|
.df-oneof_base > .df-group-indent > .df-use-search:empty {
|
|
20
36
|
display: none;
|
|
21
37
|
}
|
|
22
38
|
.df-oneof_base > .df-group-indent > .df-use-search:last-child {
|
|
23
|
-
margin-bottom: 0;
|
|
39
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
24
40
|
}
|
|
25
41
|
.df-oneof_base > .df-group-indent > .df-use-search > .df-simple-vertical-accordeon_view {
|
|
26
|
-
margin-top: -10px;
|
|
42
|
+
margin-top: var(--df-oneof-base-simple-vertical-accordeon-margin-top, -10px);
|
|
27
43
|
}
|
|
28
44
|
.df-oneof_flat > .df-group-indent {
|
|
29
|
-
margin: 0;
|
|
45
|
+
margin: var(--df-oneof-flat-margin, var(--g-spacing-0));
|
|
30
46
|
border-left: none;
|
|
31
|
-
padding: 0;
|
|
47
|
+
padding: var(--df-oneof-flat-padding, var(--g-spacing-0));
|
|
32
48
|
}
|
|
33
49
|
.df-oneof_flat > .df-group-indent > .df-use-search {
|
|
34
|
-
margin-top: 15px;
|
|
50
|
+
margin-top: var(--df-spacing-inputs, 15px);
|
|
35
51
|
}
|
|
36
52
|
.df-oneof_flat > .df-group-indent > .df-use-search:empty {
|
|
37
53
|
display: none;
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-select {
|
|
2
|
-
max-width: 305px;
|
|
21
|
+
max-width: var(--df-select-max-width, 305px);
|
|
3
22
|
}
|
|
4
23
|
.df-select__meta-text {
|
|
5
24
|
display: block;
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-switch {
|
|
2
|
-
height: 28px;
|
|
21
|
+
height: var(--df-switch-height, 28px);
|
|
3
22
|
display: flex;
|
|
4
23
|
align-items: center;
|
|
5
24
|
}
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-table-array__table {
|
|
2
|
-
margin-bottom: 10px;
|
|
21
|
+
margin-bottom: var(--df-table-array-table-margin-bottom, 10px);
|
|
3
22
|
}
|
|
4
23
|
.df-table-array__table .g-table__cell {
|
|
5
24
|
border-bottom: 0px transparent;
|
|
@@ -17,11 +36,11 @@
|
|
|
17
36
|
.df-table-array__cell .g-select-control,
|
|
18
37
|
.df-table-array__cell .yc-select,
|
|
19
38
|
.df-table-array__cell .g-select {
|
|
20
|
-
max-width: 150px;
|
|
21
|
-
min-width: 150px;
|
|
39
|
+
max-width: var(--df-table-array-cell-max-width, 150px);
|
|
40
|
+
min-width: var(--df-table-array-cell-min-width, 150px);
|
|
22
41
|
}
|
|
23
42
|
.df-table-array__cell_arr, .df-table-array__cell_obj {
|
|
24
|
-
padding-left: 3px;
|
|
43
|
+
padding-left: var(--df-table-array-cell-obj-padding-left, 3px);
|
|
25
44
|
}
|
|
26
45
|
.df-table-array__cell_arr .yc-text-input,
|
|
27
46
|
.df-table-array__cell_arr .g-text-input,
|
|
@@ -37,12 +56,12 @@
|
|
|
37
56
|
max-width: unset;
|
|
38
57
|
}
|
|
39
58
|
.df-table-array__cell_arr > .simple-vertical-accordeon, .df-table-array__cell_obj > .simple-vertical-accordeon {
|
|
40
|
-
margin-bottom: 0;
|
|
59
|
+
margin-bottom: var(--df-table-array-cell-obj-simple-vertical-accordeon-margin-bottom, var(--g-spacing-0));
|
|
41
60
|
}
|
|
42
61
|
.df-table-array__cell_bool {
|
|
43
62
|
max-width: 50px;
|
|
44
63
|
min-width: 50px;
|
|
45
64
|
}
|
|
46
65
|
.df-table-array__idx {
|
|
47
|
-
padding-top: 6px;
|
|
66
|
+
padding-top: var(--df-table-array-idx-padding-top, 6px);
|
|
48
67
|
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-text-content.g-label {
|
|
2
21
|
height: auto;
|
|
3
22
|
width: auto;
|
|
@@ -9,11 +28,11 @@
|
|
|
9
28
|
.df-text-content__icon {
|
|
10
29
|
display: flex;
|
|
11
30
|
align-items: center;
|
|
12
|
-
margin-right:
|
|
31
|
+
margin-right: var(--df-text-content-icon-margin-right, var(--g-spacing-1));
|
|
13
32
|
}
|
|
14
33
|
.df-text-content__wrapper {
|
|
15
34
|
display: flex;
|
|
16
35
|
}
|
|
17
36
|
.df-text-content__separator {
|
|
18
|
-
margin: 0
|
|
37
|
+
margin: var(--df-text-content-separator-margin, var(--g-spacing-0) var(--g-spacing-1));
|
|
19
38
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TextContent = exports.TextContentComponent = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const lodash_1 = require("lodash");
|
|
6
7
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
8
|
const cloneDeep_1 = tslib_1.__importDefault(require("lodash/cloneDeep"));
|
|
8
9
|
const utils_1 = require("../../../utils");
|
|
@@ -18,7 +19,15 @@ const TextContentComponent = ({ spec, value, Layout, }) => {
|
|
|
18
19
|
}
|
|
19
20
|
const iconLib = (textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.icon) ? (react_1.default.createElement(LazyLoader_1.LazyLoader, { component: (0, utils_2.loadIcon)(textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.icon) })) : null;
|
|
20
21
|
let content = react_1.default.createElement("span", { dangerouslySetInnerHTML: { __html: text } });
|
|
21
|
-
if (textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.
|
|
22
|
+
if (textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.themeAlert) {
|
|
23
|
+
const titleAlert = (textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.titleAlert) || !(0, lodash_1.isEmpty)(textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.titleAlert)
|
|
24
|
+
? textContentParams.titleAlert
|
|
25
|
+
: undefined;
|
|
26
|
+
content = (react_1.default.createElement(uikit_1.Alert, { icon: iconLib, message: content,
|
|
27
|
+
// If the title is an empty line, then you need to explicitly write undefined, otherwise there will be an additional indent
|
|
28
|
+
title: titleAlert, theme: textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.themeAlert }));
|
|
29
|
+
}
|
|
30
|
+
else if (textContentParams === null || textContentParams === void 0 ? void 0 : textContentParams.themeLabel) {
|
|
22
31
|
content = (react_1.default.createElement(uikit_1.Label, { size: "m", theme: textContentParams.themeLabel, className: b(), value: value, icon: iconLib }, content));
|
|
23
32
|
}
|
|
24
33
|
else {
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-time-range-select__select {
|
|
2
21
|
min-width: 100px;
|
|
3
22
|
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-accordeon-card-form__accordeon-card-body {
|
|
2
|
-
padding-right:
|
|
21
|
+
padding-right: var(--df-accordeon-card-form-body-padding-right, var(--g-spacing-8));
|
|
3
22
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
20
|
+
.df-column {
|
|
21
|
+
margin-bottom: var(--df-spacing-inputs, 15px);
|
|
22
|
+
}
|
|
23
|
+
.df-column:last-child {
|
|
24
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
25
|
+
}
|
|
26
|
+
.df-column__first-row {
|
|
27
|
+
min-height: var(--df-column-first-row-min-height, 28px);
|
|
28
|
+
display: flex;
|
|
29
|
+
margin-bottom: auto;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
.df-column__first-row-inner {
|
|
34
|
+
display: inline;
|
|
35
|
+
margin-top: auto;
|
|
36
|
+
margin-bottom: auto;
|
|
37
|
+
}
|
|
38
|
+
.df-column__first-row::after {
|
|
39
|
+
content: "";
|
|
40
|
+
width: 100%;
|
|
41
|
+
flex-shrink: 1;
|
|
42
|
+
}
|
|
43
|
+
.df-column__title {
|
|
44
|
+
word-break: break-word;
|
|
45
|
+
margin-right: var(--df-column-title-margin-right, 3px);
|
|
46
|
+
}
|
|
47
|
+
.df-column__title_required::after {
|
|
48
|
+
content: "*";
|
|
49
|
+
color: var(--g-color-text-danger);
|
|
50
|
+
}
|
|
51
|
+
.df-column__note {
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
.df-column__note-inner {
|
|
55
|
+
position: absolute;
|
|
56
|
+
margin-top: var(--df-column-note-inner-margin-top, 1px);
|
|
57
|
+
}
|
|
58
|
+
.df-column__note-inner .g-help-popover {
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
.df-column__note-inner .g-help-popover > span {
|
|
62
|
+
display: flex;
|
|
63
|
+
}
|
|
64
|
+
.df-column__second-row {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
flex-grow: 1;
|
|
68
|
+
}
|
|
69
|
+
.df-column__second-row-inner {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: space-around;
|
|
72
|
+
}
|
|
73
|
+
.df-column__remove-button {
|
|
74
|
+
margin-left: var(--df-remove-button-margin-left, 5px);
|
|
75
|
+
}
|
|
76
|
+
.df-column__required-mark {
|
|
77
|
+
color: var(--g-color-text-danger);
|
|
78
|
+
}
|
|
79
|
+
.df-column__error-wrapper {
|
|
80
|
+
min-width: 100%;
|
|
81
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Column = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const components_1 = require("@gravity-ui/components");
|
|
7
|
+
const icons_1 = require("@gravity-ui/icons");
|
|
8
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
9
|
+
const core_1 = require("../../../../core");
|
|
10
|
+
const components_2 = require("../../../components");
|
|
11
|
+
const utils_1 = require("../../../utils");
|
|
12
|
+
const b = (0, utils_1.block)('column');
|
|
13
|
+
const ColumnBase = ({ name, spec, input, meta, children, }) => {
|
|
14
|
+
const arrayItem = react_1.default.useMemo(() => (0, core_1.isArrayItem)(name), [name]);
|
|
15
|
+
const generateButton = react_1.default.useMemo(() => (0, core_1.withGenerateButton)(spec), [spec]);
|
|
16
|
+
return (react_1.default.createElement("div", { className: b() },
|
|
17
|
+
react_1.default.createElement("div", { className: b('first-row') },
|
|
18
|
+
react_1.default.createElement("div", { className: b('first-row-inner') },
|
|
19
|
+
react_1.default.createElement(uikit_1.Text, { className: b('title', { required: spec.required }) }, spec.viewSpec.layoutTitle),
|
|
20
|
+
spec.viewSpec.layoutDescription ? (react_1.default.createElement("span", { className: b('note') },
|
|
21
|
+
react_1.default.createElement(uikit_1.Text, { className: b('note-inner') },
|
|
22
|
+
react_1.default.createElement(components_1.HelpPopover, { htmlContent: spec.viewSpec.layoutDescription, placement: ['bottom', 'top'] })))) : null)),
|
|
23
|
+
react_1.default.createElement("div", { className: b('second-row') },
|
|
24
|
+
react_1.default.createElement("div", { className: b('second-row-inner') },
|
|
25
|
+
react_1.default.createElement(components_2.ErrorWrapper, { name: name, meta: meta, withoutChildErrorStyles:
|
|
26
|
+
// TODO: remove condition spec.viewSpec.type !== 'select'
|
|
27
|
+
((0, core_1.isArraySpec)(spec) && spec.viewSpec.type !== 'select') ||
|
|
28
|
+
(0, core_1.isObjectSpec)(spec), className: b('error-wrapper') }, children),
|
|
29
|
+
generateButton ? (react_1.default.createElement(components_2.GenerateRandomValueButton, { spec: spec, onChange: input.onChange })) : null,
|
|
30
|
+
arrayItem ? (react_1.default.createElement(uikit_1.Button, { view: "flat-secondary", className: b('remove-button'), onClick: input.onDrop, qa: `${name}-remove-item` },
|
|
31
|
+
react_1.default.createElement(uikit_1.Icon, { data: icons_1.TrashBin, size: 16 }))) : null))));
|
|
32
|
+
};
|
|
33
|
+
const Column = (props) => react_1.default.createElement(ColumnBase, Object.assign({}, props));
|
|
34
|
+
exports.Column = Column;
|
|
@@ -1,15 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-row {
|
|
2
21
|
display: flex;
|
|
3
|
-
width: 500px;
|
|
4
|
-
max-width: 500px;
|
|
5
|
-
margin-bottom: 15px;
|
|
22
|
+
width: var(--df-row-width, 500px);
|
|
23
|
+
max-width: var(--df-row-max-width, 500px);
|
|
24
|
+
margin-bottom: var(--df-spacing-inputs, 15px);
|
|
6
25
|
}
|
|
7
26
|
.df-row:last-child {
|
|
8
|
-
margin-bottom: 0;
|
|
27
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
9
28
|
}
|
|
10
29
|
.df-row__left {
|
|
11
|
-
width: 180px;
|
|
12
|
-
min-height: 28px;
|
|
30
|
+
width: var(--df-row-left-width, 180px);
|
|
31
|
+
min-height: var(--df-row-left-min-height, 28px);
|
|
13
32
|
display: flex;
|
|
14
33
|
margin-bottom: auto;
|
|
15
34
|
flex-direction: column;
|
|
@@ -27,19 +46,19 @@
|
|
|
27
46
|
}
|
|
28
47
|
.df-row__title {
|
|
29
48
|
word-break: break-word;
|
|
30
|
-
margin-right: 3px;
|
|
49
|
+
margin-right: var(--df-row-title-margin-right, 3px);
|
|
31
50
|
}
|
|
32
51
|
.df-row__title_required::after {
|
|
33
52
|
content: "*";
|
|
34
53
|
color: var(--g-color-text-danger);
|
|
35
54
|
}
|
|
36
55
|
.df-row__note {
|
|
37
|
-
padding-right:
|
|
56
|
+
padding-right: var(--df-row-note-padding-right, var(--g-spacing-4));
|
|
38
57
|
position: relative;
|
|
39
58
|
}
|
|
40
59
|
.df-row__note-inner {
|
|
41
60
|
position: absolute;
|
|
42
|
-
margin-top: 1px;
|
|
61
|
+
margin-top: var(--df-row-note-inner-margin-top, 1px);
|
|
43
62
|
}
|
|
44
63
|
.df-row__note-inner .g-help-popover {
|
|
45
64
|
display: flex;
|
|
@@ -51,19 +70,19 @@
|
|
|
51
70
|
display: flex;
|
|
52
71
|
flex-direction: column;
|
|
53
72
|
flex-grow: 1;
|
|
54
|
-
margin-left: 15px;
|
|
73
|
+
margin-left: var(--df-row-right-margin-left, 15px);
|
|
55
74
|
}
|
|
56
75
|
.df-row__right-inner {
|
|
57
76
|
display: flex;
|
|
58
77
|
justify-content: space-around;
|
|
59
78
|
}
|
|
60
79
|
.df-row__description {
|
|
61
|
-
margin-top: 10px;
|
|
80
|
+
margin-top: var(--df-row-description-margin-top, 10px);
|
|
62
81
|
color: var(--g-color-text-secondary);
|
|
63
82
|
word-break: break-word;
|
|
64
83
|
}
|
|
65
84
|
.df-row__remove-button {
|
|
66
|
-
margin-left: 5px;
|
|
85
|
+
margin-left: var(--df-remove-button-margin-left, 5px);
|
|
67
86
|
}
|
|
68
87
|
.df-row__required-mark {
|
|
69
88
|
color: var(--g-color-text-danger);
|
|
@@ -1,22 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@mixin variables {
|
|
3
|
+
--g-spacing-base: 4px;
|
|
4
|
+
|
|
5
|
+
--g-spacing-0: calc(var(--g-spacing-base) * 0); //0px
|
|
6
|
+
--g-spacing-half: calc(var(--g-spacing-base) * 0.5); //2px
|
|
7
|
+
--g-spacing-1: var(--g-spacing-base); // 4px
|
|
8
|
+
--g-spacing-2: calc(var(--g-spacing-base) * 2); // 8px
|
|
9
|
+
--g-spacing-3: calc(var(--g-spacing-base) * 3); // 12px
|
|
10
|
+
--g-spacing-4: calc(var(--g-spacing-base) * 4); // 16px
|
|
11
|
+
--g-spacing-5: calc(var(--g-spacing-base) * 5); // 20px
|
|
12
|
+
--g-spacing-6: calc(var(--g-spacing-base) * 6); // 24px
|
|
13
|
+
--g-spacing-7: calc(var(--g-spacing-base) * 7); // 28px
|
|
14
|
+
--g-spacing-8: calc(var(--g-spacing-base) * 8); // 32px
|
|
15
|
+
--g-spacing-9: calc(var(--g-spacing-base) * 9); // 36px
|
|
16
|
+
--g-spacing-10: calc(var(--g-spacing-base) * 10); // 40px
|
|
17
|
+
}
|
|
18
|
+
*/
|
|
19
|
+
/* Border-radius */
|
|
1
20
|
.df-section {
|
|
2
|
-
margin-bottom:
|
|
21
|
+
margin-bottom: var(--df-spacing-inputs-section, var(--g-spacing-5));
|
|
3
22
|
}
|
|
4
23
|
.df-section:last-child {
|
|
5
|
-
margin-bottom: 0;
|
|
24
|
+
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
6
25
|
}
|
|
7
26
|
.df-section__header {
|
|
8
27
|
display: flex;
|
|
9
28
|
align-items: center;
|
|
10
|
-
margin-bottom:
|
|
29
|
+
margin-bottom: var(--df-section-header-margin-bottom, var(--g-spacing-5));
|
|
11
30
|
}
|
|
12
31
|
.df-section__header_size_s {
|
|
13
|
-
height: 18px;
|
|
32
|
+
height: var(--df-section-header-size-s, 18px);
|
|
14
33
|
}
|
|
15
34
|
.df-section__header_size_m {
|
|
16
|
-
height: 20px;
|
|
35
|
+
height: var(--df-section-header-size-m, 20px);
|
|
17
36
|
}
|
|
18
37
|
.df-section__title {
|
|
19
|
-
max-width: 533px;
|
|
38
|
+
max-width: var(--df-section-title-max-width, 533px);
|
|
20
39
|
}
|
|
21
40
|
.df-section__title-popover {
|
|
22
41
|
display: flex;
|
|
@@ -26,7 +45,7 @@
|
|
|
26
45
|
display: flex;
|
|
27
46
|
}
|
|
28
47
|
.df-section__note {
|
|
29
|
-
margin-left: 5px;
|
|
48
|
+
margin-left: var(--df-section-note-margin-left, 5px);
|
|
30
49
|
}
|
|
31
50
|
.df-section__note .g-help-popover {
|
|
32
51
|
display: flex;
|
|
@@ -35,8 +54,8 @@
|
|
|
35
54
|
display: flex;
|
|
36
55
|
}
|
|
37
56
|
.df-section__description {
|
|
38
|
-
margin-top:
|
|
57
|
+
margin-top: var(--df-section-description-margin-top, var(--g-spacing-1));
|
|
39
58
|
}
|
|
40
59
|
.df-section__remove-button {
|
|
41
|
-
margin-left: 5px;
|
|
60
|
+
margin-left: var(--df-remove-button-margin-left, 5px);
|
|
42
61
|
}
|