@gravity-ui/dynamic-forms 5.0.0 → 5.2.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/DynamicField.js +7 -2
- package/build/cjs/lib/core/components/Form/hooks/useIntegrationFF.js +3 -2
- package/build/cjs/lib/core/components/Form/hooks/useSearch/useSearch.css +1 -1
- package/build/cjs/lib/core/components/Form/types/value.js +0 -1
- package/build/cjs/lib/kit/components/AccordeonCard/AccordeonCard.css +1 -1
- package/build/cjs/lib/kit/components/Card/Card.css +2 -2
- package/build/cjs/lib/kit/components/CopyButton/CopyButton.css +1 -1
- package/build/cjs/lib/kit/components/GroupIndent/GroupIndent.css +3 -3
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +2 -2
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +3 -3
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.js +1 -1
- package/build/cjs/lib/kit/components/Inputs/FileInput/FileInput.css +1 -1
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +1 -1
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +1 -1
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +1 -1
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +1 -1
- package/build/cjs/lib/kit/components/Inputs/OneOf/OneOf.css +4 -4
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +2 -2
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.js +1 -1
- package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.js +1 -1
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.js +1 -1
- package/build/cjs/lib/kit/components/Layouts/Column/Column.css +4 -4
- package/build/cjs/lib/kit/components/Layouts/Column/Column.js +1 -1
- package/build/cjs/lib/kit/components/Layouts/Row/Row.css +6 -6
- package/build/cjs/lib/kit/components/Layouts/Row/Row.js +1 -1
- package/build/cjs/lib/kit/components/Layouts/Section/Section.css +2 -2
- package/build/cjs/lib/kit/components/Layouts/Section/Section.js +1 -1
- package/build/cjs/lib/kit/components/Layouts/Transparent/Transparent.css +2 -2
- package/build/cjs/lib/kit/components/LongValue/LongValue.js +2 -4
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +4 -4
- package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.css +2 -2
- package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.js +1 -1
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +1 -1
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +1 -1
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +1 -1
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.js +1 -1
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +1 -1
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +1 -1
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +2 -2
- package/build/cjs/lib/kit/components/Views/DateView/DateView.js +1 -1
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +1 -1
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.js +1 -1
- package/build/cjs/lib/kit/components/Views/MultiSelectView/MultiSelectView.js +1 -1
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.js +1 -1
- package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.css +1 -1
- package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.js +1 -1
- package/build/cjs/lib/kit/components/Views/TextAreaView/TextAreaView.css +1 -1
- package/build/cjs/lib/kit/hooks/useOneOf/useOneOf.css +1 -1
- package/build/cjs/lib/kit/utils/common.js +1 -1
- package/build/esm/lib/core/components/Form/Controller/Controller.d.ts +2 -2
- package/build/esm/lib/core/components/Form/Controller/types.d.ts +2 -2
- package/build/esm/lib/core/components/Form/Controller/utils.d.ts +3 -3
- package/build/esm/lib/core/components/Form/DynamicField.d.ts +3 -2
- package/build/esm/lib/core/components/Form/DynamicField.js +7 -2
- package/build/esm/lib/core/components/Form/hooks/useControllerMirror.d.ts +1 -1
- package/build/esm/lib/core/components/Form/hooks/useCreateContext.d.ts +1 -1
- package/build/esm/lib/core/components/Form/hooks/useCreateSearchContext.d.ts +1 -1
- package/build/esm/lib/core/components/Form/hooks/useDynamicFieldMirror.d.ts +1 -1
- package/build/esm/lib/core/components/Form/hooks/useIntegrationFF.d.ts +9 -2
- package/build/esm/lib/core/components/Form/hooks/useIntegrationFF.js +3 -2
- package/build/esm/lib/core/components/Form/hooks/useMutators.d.ts +1 -1
- package/build/esm/lib/core/components/Form/hooks/useSearch/useSearch.css +1 -1
- package/build/esm/lib/core/components/Form/hooks/useSearch/useSearch.d.ts +2 -2
- package/build/esm/lib/core/components/Form/hooks/useStore.d.ts +1 -1
- package/build/esm/lib/core/components/Form/types/array.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/boolean.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/config.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/context.d.ts +3 -3
- package/build/esm/lib/core/components/Form/types/field.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/input.d.ts +3 -3
- package/build/esm/lib/core/components/Form/types/layout.d.ts +3 -3
- package/build/esm/lib/core/components/Form/types/mirror.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/mutators.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/number.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/object.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/search.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/store.d.ts +1 -1
- package/build/esm/lib/core/components/Form/types/string.d.ts +2 -2
- package/build/esm/lib/core/components/Form/types/validators.d.ts +1 -1
- package/build/esm/lib/core/components/Form/types/value.d.ts +1 -1
- package/build/esm/lib/core/components/Form/types/value.js +1 -1
- package/build/esm/lib/core/components/Form/utils/common.d.ts +1 -1
- package/build/esm/lib/core/components/Form/utils/search.d.ts +1 -1
- package/build/esm/lib/core/components/View/DynamicView.d.ts +2 -2
- package/build/esm/lib/core/components/View/ViewController.d.ts +1 -1
- package/build/esm/lib/core/components/View/hooks/useComponents.d.ts +2 -2
- package/build/esm/lib/core/components/View/hooks/useCreateContext.d.ts +1 -1
- package/build/esm/lib/core/components/View/hooks/useRender.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/array.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/boolean.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/config.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/context.d.ts +3 -3
- package/build/esm/lib/core/components/View/types/layout.d.ts +3 -3
- package/build/esm/lib/core/components/View/types/number.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/object.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/string.d.ts +2 -2
- package/build/esm/lib/core/components/View/types/views.d.ts +3 -3
- package/build/esm/lib/core/helpers.d.ts +1 -1
- package/build/esm/lib/core/types/specs.d.ts +3 -3
- package/build/esm/lib/kit/components/AccordeonCard/AccordeonCard.css +1 -1
- package/build/esm/lib/kit/components/Card/Card.css +2 -2
- package/build/esm/lib/kit/components/CopyButton/CopyButton.css +1 -1
- package/build/esm/lib/kit/components/CopyButton/CopyButton.d.ts +1 -1
- package/build/esm/lib/kit/components/ErrorWrapper/ErrorWrapper.d.ts +1 -1
- package/build/esm/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.d.ts +1 -1
- package/build/esm/lib/kit/components/GroupIndent/GroupIndent.css +3 -3
- package/build/esm/lib/kit/components/Inputs/ArrayBase/ArrayBase.css +2 -2
- package/build/esm/lib/kit/components/Inputs/ArrayBase/ArrayBase.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/CardOneOf/CardOneOf.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/CardOneOf/CardOneOf.js +1 -1
- package/build/esm/lib/kit/components/Inputs/Checkbox/Checkbox.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.css +3 -3
- package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.js +1 -1
- package/build/esm/lib/kit/components/Inputs/DateInput/DateInput.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/FileInput/FileInput.css +1 -1
- package/build/esm/lib/kit/components/Inputs/FileInput/FileInput.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/FileInput/utils.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoHeader.css +1 -1
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.css +1 -1
- package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.css +1 -1
- package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.js +1 -1
- package/build/esm/lib/kit/components/Inputs/MultiSelect/MultiSelect.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.css +1 -1
- package/build/esm/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/NumberWithScale/useInitial.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/ObjectBase/ObjectBase.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/ObjectBase/ObjectBase.js +1 -1
- package/build/esm/lib/kit/components/Inputs/ObjectValueInput/ObjectValueInput.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.css +4 -4
- package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/OneOf/OneOf.js +1 -1
- package/build/esm/lib/kit/components/Inputs/Secret/Secret.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/Select/Select.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/Switch/Switch.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.css +2 -2
- package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.js +1 -1
- package/build/esm/lib/kit/components/Inputs/Text/Text.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/TextArea/TextArea.d.ts +2 -2
- package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TextContent/TextContent.js +1 -1
- package/build/esm/lib/kit/components/Inputs/TextLink/TextLink.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TextLink/TextLink.js +1 -1
- package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.js +1 -1
- package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.d.ts +1 -1
- package/build/esm/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.js +1 -1
- package/build/esm/lib/kit/components/Layouts/Accordeon/Accordeon.d.ts +2 -2
- package/build/esm/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/CardAccordeon.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/CardSection.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Column/Column.css +4 -4
- package/build/esm/lib/kit/components/Layouts/Column/Column.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Column/Column.js +2 -2
- package/build/esm/lib/kit/components/Layouts/Row/Row.css +6 -6
- package/build/esm/lib/kit/components/Layouts/Row/Row.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Row/Row.js +2 -2
- package/build/esm/lib/kit/components/Layouts/Section/Section.css +2 -2
- package/build/esm/lib/kit/components/Layouts/Section/Section.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Section/Section.js +2 -2
- package/build/esm/lib/kit/components/Layouts/TableCell/TableCell.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.css +2 -2
- package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.d.ts +1 -1
- package/build/esm/lib/kit/components/Layouts/Transparent/Transparent.js +1 -1
- package/build/esm/lib/kit/components/LongValue/LongValue.js +2 -4
- package/build/esm/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.css +4 -4
- package/build/esm/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.d.ts +1 -1
- package/build/esm/lib/kit/components/TogglerCard/TogglerCard.css +2 -2
- package/build/esm/lib/kit/components/TogglerCard/TogglerCard.js +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewAccordeon/ViewAccordeon.d.ts +2 -2
- package/build/esm/lib/kit/components/ViewLayouts/ViewAccordeonCard/ViewAccordeonCard.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewCardAccordeon.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewCardSection.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.css +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.js +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.css +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewRow/ViewRow.js +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewSection/ViewSection.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.css +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.d.ts +1 -1
- package/build/esm/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.css +1 -1
- package/build/esm/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/BaseView/BaseView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/CardOneOfView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.css +2 -2
- package/build/esm/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/DateView/DateView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/DateView/DateView.js +1 -1
- package/build/esm/lib/kit/components/Views/FileInputView/FileInputView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoBaseView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.css +1 -1
- package/build/esm/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.js +1 -1
- package/build/esm/lib/kit/components/Views/MultiSelectView/MultiSelectView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/MultiSelectView/MultiSelectView.js +1 -1
- package/build/esm/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.js +1 -1
- package/build/esm/lib/kit/components/Views/ObjectValueInputView/ObjectValueInputView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/OneOfView/OneOfView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.css +1 -1
- package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/TableArrayView/TableArrayView.js +1 -1
- package/build/esm/lib/kit/components/Views/TextAreaView/TextAreaView.css +1 -1
- package/build/esm/lib/kit/components/Views/TextAreaView/TextAreaView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/TextContentView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/TextLinkView/TextLinkView.d.ts +1 -1
- package/build/esm/lib/kit/components/Views/TimeRangeSelectorView/TimeRangeSelectorView.d.ts +1 -1
- package/build/esm/lib/kit/constants/config.d.ts +1 -1
- package/build/esm/lib/kit/hooks/useErrorChecker.d.ts +1 -1
- package/build/esm/lib/kit/hooks/useOneOf/useOneOf.css +1 -1
- package/build/esm/lib/kit/hooks/useOneOf/useOneOf.d.ts +1 -1
- package/build/esm/lib/kit/utils/common.d.ts +1 -1
- package/build/esm/lib/kit/utils/common.js +2 -2
- package/build/esm/lib/kit/utils/objectInline.d.ts +1 -1
- package/build/esm/lib/kit/validators/validators.d.ts +2 -2
- package/package.json +10 -9
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
width: var(--df-row-width, 500px);
|
|
23
23
|
max-width: var(--df-row-max-width, 500px);
|
|
24
|
-
margin-bottom: var(--df-spacing-inputs,
|
|
24
|
+
margin-bottom: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
25
25
|
}
|
|
26
26
|
.df-row:last-child {
|
|
27
27
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
.df-row__title {
|
|
48
48
|
word-break: break-word;
|
|
49
|
-
margin-right: var(--df-row-title-margin-right,
|
|
49
|
+
margin-right: var(--df-row-title-margin-right, var(--g-spacing-half));
|
|
50
50
|
}
|
|
51
51
|
.df-row__title_required::after {
|
|
52
52
|
content: "*";
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}
|
|
59
59
|
.df-row__note-inner {
|
|
60
60
|
position: absolute;
|
|
61
|
-
margin-top: var(--df-row-note-inner-margin-top,
|
|
61
|
+
margin-top: var(--df-row-note-inner-margin-top, var(--g-spacing-0));
|
|
62
62
|
}
|
|
63
63
|
.df-row__note-inner .g-help-popover {
|
|
64
64
|
display: flex;
|
|
@@ -70,19 +70,19 @@
|
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
flex-grow: 1;
|
|
73
|
-
margin-left: var(--df-row-right-margin-left,
|
|
73
|
+
margin-left: var(--df-row-right-margin-left, var(--g-spacing-4));
|
|
74
74
|
}
|
|
75
75
|
.df-row__right-inner {
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: space-around;
|
|
78
78
|
}
|
|
79
79
|
.df-row__description {
|
|
80
|
-
margin-top: var(--df-row-description-margin-top,
|
|
80
|
+
margin-top: var(--df-row-description-margin-top, var(--g-spacing-2));
|
|
81
81
|
color: var(--g-color-text-secondary);
|
|
82
82
|
word-break: break-word;
|
|
83
83
|
}
|
|
84
84
|
.df-row__remove-button {
|
|
85
|
-
margin-left: var(--df-remove-button-margin-left,
|
|
85
|
+
margin-left: var(--df-remove-button-margin-left, var(--g-spacing-1));
|
|
86
86
|
}
|
|
87
87
|
.df-row__required-mark {
|
|
88
88
|
color: var(--g-color-text-danger);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
2
2
|
import './Row.css';
|
|
3
3
|
export declare const Row: <T extends FieldValue, S extends Spec<any, undefined, undefined>>(props: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
4
4
|
export declare const RowVerbose: <T extends FieldValue, S extends Spec<any, undefined, undefined>>(props: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TrashBin } from '@gravity-ui/icons';
|
|
3
3
|
import { Button, HelpMark, Icon, Text } from '@gravity-ui/uikit';
|
|
4
|
-
import { isArrayItem, isArraySpec, isObjectSpec, withGenerateButton
|
|
4
|
+
import { isArrayItem, isArraySpec, isObjectSpec, withGenerateButton } from '../../../../core';
|
|
5
5
|
import { ErrorWrapper, GenerateRandomValueButton } from '../../../components';
|
|
6
|
-
import { block } from '../../../utils';
|
|
7
6
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
7
|
+
import { block } from '../../../utils';
|
|
8
8
|
import './Row.css';
|
|
9
9
|
const b = block('row');
|
|
10
10
|
const RowBase = ({ name, spec, input, meta, verboseDescription, children, }) => {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
max-width: 300px;
|
|
44
44
|
}
|
|
45
45
|
.df-section__note {
|
|
46
|
-
margin-left: var(--df-section-note-margin-left,
|
|
46
|
+
margin-left: var(--df-section-note-margin-left, var(--g-spacing-1));
|
|
47
47
|
}
|
|
48
48
|
.df-section__note .g-help-popover {
|
|
49
49
|
display: flex;
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
margin-top: var(--df-section-description-margin-top, var(--g-spacing-1));
|
|
56
56
|
}
|
|
57
57
|
.df-section__remove-button {
|
|
58
|
-
margin-left: var(--df-remove-button-margin-left,
|
|
58
|
+
margin-left: var(--df-remove-button-margin-left, var(--g-spacing-1));
|
|
59
59
|
}
|
|
@@ -2,10 +2,10 @@ import { __rest } from "tslib";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HelpMark, Popover, Text } from '@gravity-ui/uikit';
|
|
4
4
|
import { GroupIndent } from '../../';
|
|
5
|
-
import { RemoveButton } from '../../RemoveButton';
|
|
6
5
|
import { COMMON_POPOVER_PLACEMENT, COMMON_TITLE_MAX_WIDTH, ErrorWrapper } from '../../../';
|
|
7
|
-
import { isArrayItem, isArraySpec, isObjectSpec
|
|
6
|
+
import { isArrayItem, isArraySpec, isObjectSpec } from '../../../../core';
|
|
8
7
|
import { block } from '../../../utils';
|
|
8
|
+
import { RemoveButton } from '../../RemoveButton';
|
|
9
9
|
import './Section.css';
|
|
10
10
|
const b = block('section');
|
|
11
11
|
const SectionBase = (_a) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
2
2
|
export declare const TableCell: <T extends FieldValue, S extends Spec<any, undefined, undefined>>({ name, meta, children, }: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-transparent {
|
|
21
21
|
display: flex;
|
|
22
|
-
margin-bottom: var(--df-spacing-inputs,
|
|
22
|
+
margin-bottom: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
23
23
|
}
|
|
24
24
|
.df-transparent:last-child {
|
|
25
25
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
width: auto;
|
|
35
35
|
}
|
|
36
36
|
.df-transparent__remove-button {
|
|
37
|
-
margin-left: var(--df-remove-button-margin-left,
|
|
37
|
+
margin-left: var(--df-remove-button-margin-left, var(--g-spacing-1));
|
|
38
38
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
2
2
|
import './Transparent.css';
|
|
3
3
|
export declare const Transparent: <T extends FieldValue, S extends Spec<any, undefined, undefined>>({ name, spec, input, meta, children, }: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TrashBin } from '@gravity-ui/icons';
|
|
3
3
|
import { Button, Icon } from '@gravity-ui/uikit';
|
|
4
|
-
import { isArrayItem, isArraySpec, isObjectSpec, withGenerateButton
|
|
4
|
+
import { isArrayItem, isArraySpec, isObjectSpec, withGenerateButton } from '../../../../core';
|
|
5
5
|
import { ErrorWrapper, GenerateRandomValueButton } from '../../../components';
|
|
6
6
|
import { block } from '../../../utils';
|
|
7
7
|
import './Transparent.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import once from 'lodash/once';
|
|
4
3
|
import { Text } from '@gravity-ui/uikit';
|
|
4
|
+
import once from 'lodash/once';
|
|
5
5
|
import { block } from '../../utils';
|
|
6
6
|
import './LongValue.css';
|
|
7
7
|
const b = block('long-value');
|
|
@@ -54,7 +54,5 @@ export const LongValue = (_a) => {
|
|
|
54
54
|
}
|
|
55
55
|
return;
|
|
56
56
|
}, [value]);
|
|
57
|
-
return (React.createElement(Text, Object.assign({ as: "div" }, restProps, { ref: ref, className: b({ open, long }, className),
|
|
58
|
-
// @ts-ignore
|
|
59
|
-
onClick: long ? handleClick : undefined }), value));
|
|
57
|
+
return (React.createElement(Text, Object.assign({ as: "div" }, restProps, { ref: ref, className: b({ open, long }, className), onClick: long ? handleClick : undefined }), value));
|
|
60
58
|
};
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
.df-simple-vertical-accordeon_branch .df-simple-vertical-accordeon__body {
|
|
27
27
|
padding-left: var(--df-simple-vertical-accordeon-body-padding-left, var(--g-spacing-5));
|
|
28
|
-
margin-left: var(--df-simple-vertical-accordeon-body-margin-left,
|
|
28
|
+
margin-left: var(--df-simple-vertical-accordeon-body-margin-left, var(--g-spacing-1));
|
|
29
29
|
border-left: 1px solid var(--g-color-line-generic-accent);
|
|
30
30
|
}
|
|
31
31
|
.df-simple-vertical-accordeon__header {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
align-items: center;
|
|
34
34
|
}
|
|
35
35
|
.df-simple-vertical-accordeon__header-inner {
|
|
36
|
-
margin-left: var(--df-simple-vertical-accordeon-header-inner-margin-left, -
|
|
36
|
+
margin-left: var(--df-simple-vertical-accordeon-header-inner-margin-left, calc(-1 * var(--g-spacing-3)));
|
|
37
37
|
max-width: var(--df-simple-vertical-accordeon-header-inner-max-width, 533px);
|
|
38
38
|
}
|
|
39
39
|
.df-simple-vertical-accordeon__header .g-popover__handler {
|
|
40
40
|
display: flex;
|
|
41
41
|
}
|
|
42
42
|
.df-simple-vertical-accordeon__tooltip {
|
|
43
|
-
margin: var(--df-simple-vertical-accordeon-tooltip-margin, var(--g-spacing-0)
|
|
43
|
+
margin: var(--df-simple-vertical-accordeon-tooltip-margin, var(--g-spacing-0) var(--g-spacing-1));
|
|
44
44
|
}
|
|
45
45
|
.df-simple-vertical-accordeon__popover {
|
|
46
46
|
padding: var(--g-spacing-2);
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
.df-simple-vertical-accordeon__body {
|
|
55
55
|
margin-top: var(--df-simple-vertical-accordeon-body-margin-top, var(--g-spacing-1));
|
|
56
|
-
padding-top: var(--df-simple-vertical-accordeon-body-padding-top,
|
|
56
|
+
padding-top: var(--df-simple-vertical-accordeon-body-padding-top, var(--g-spacing-1));
|
|
57
57
|
}
|
|
58
58
|
.df-simple-vertical-accordeon__body_hidden {
|
|
59
59
|
display: none;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-toggler-card {
|
|
21
21
|
width: var(--df-toggler-card-width, 254px);
|
|
22
|
-
padding: var(--df-toggler-card-padding,
|
|
22
|
+
padding: var(--df-toggler-card-padding, var(--g-spacing-2));
|
|
23
23
|
height: var(--df-toggler-card-height, 88px);
|
|
24
24
|
}
|
|
25
25
|
.df-toggler-card__header {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
align-items: baseline;
|
|
29
29
|
}
|
|
30
30
|
.df-toggler-card__text {
|
|
31
|
-
margin: var(--df-toggler-card-text-margin, var(--g-spacing-3)
|
|
31
|
+
margin: var(--df-toggler-card-text-margin, var(--g-spacing-3) var(--g-spacing-4) var(--g-spacing-0) var(--g-spacing-0));
|
|
32
32
|
display: block;
|
|
33
33
|
height: var(--df-toggler-card-text-height, 36px);
|
|
34
34
|
overflow: hidden;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Card, HelpMark, Text } from '@gravity-ui/uikit';
|
|
3
|
-
import { block } from '../../utils';
|
|
4
3
|
import { COMMON_POPOVER_PLACEMENT } from '../../constants/common';
|
|
4
|
+
import { block } from '../../utils';
|
|
5
5
|
import './TogglerCard.css';
|
|
6
6
|
const b = block('toggler-card');
|
|
7
7
|
export const TogglerCard = ({ description, title, text, onClick, disabled, selected, }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { ArrayValue, ObjectValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { TextProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { ArrayValue, ObjectValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
3
3
|
interface ViewAccordeonLayoutProps {
|
|
4
4
|
variantTitle?: TextProps['variant'];
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArrayViewLayoutProps, ObjectViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { ArrayViewLayoutProps, ObjectViewLayoutProps } from '../../../../core';
|
|
2
2
|
export declare const ViewAccordeonCard: <T extends ArrayViewLayoutProps | ObjectViewLayoutProps>({ value, name, spec, children, }: T) => JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArrayViewLayoutProps, ObjectViewLayoutProps } from '../../../core';
|
|
1
|
+
import type { ArrayViewLayoutProps, ObjectViewLayoutProps } from '../../../core';
|
|
2
2
|
export declare const ViewCardAccordeon: <T extends ArrayViewLayoutProps | ObjectViewLayoutProps>({ name, value, spec, children, }: T) => JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../core';
|
|
2
2
|
export declare const ViewCardSection: <T extends FormValue, S extends Spec<any, undefined, undefined>>({ name, value, spec, children, }: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
margin-inline-start: var(--df-view-column-note-margin-inline-start, var(--g-spacing-half));
|
|
51
51
|
}
|
|
52
52
|
.df-view-column__second-row > .df-view-transparent {
|
|
53
|
-
margin-bottom: var(--df-view-column-second-row-child-view-transperant-margin-bottom,
|
|
53
|
+
margin-bottom: var(--df-view-column-second-row-child-view-transperant-margin-bottom, var(--g-spacing-2));
|
|
54
54
|
}
|
|
55
55
|
.df-view-column__second-row > .df-view-transparent:last-child {
|
|
56
56
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
2
2
|
import './ViewColumn.css';
|
|
3
3
|
export declare const ViewColumn: <T extends FormValue, S extends Spec<any, undefined, undefined>>({ value, spec, children, }: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { HelpMark, Text } from '@gravity-ui/uikit';
|
|
3
3
|
import { useDynamicFormsCtx } from '../../../../core';
|
|
4
4
|
import { CopyButton } from '../../../../kit';
|
|
5
|
-
import { block, isNotEmptyValue } from '../../../utils';
|
|
6
5
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
6
|
+
import { block, isNotEmptyValue } from '../../../utils';
|
|
7
7
|
import './ViewColumn.css';
|
|
8
8
|
const b = block('view-column');
|
|
9
9
|
export const ViewColumn = ({ value, spec, children, }) => {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
text-overflow: ellipsis;
|
|
69
69
|
}
|
|
70
70
|
.df-view-row__right > .df-view-transparent {
|
|
71
|
-
margin-bottom: var(--df-view-row-right-child-view-transparent-margin-bottom,
|
|
71
|
+
margin-bottom: var(--df-view-row-right-child-view-transparent-margin-bottom, var(--g-spacing-2));
|
|
72
72
|
}
|
|
73
73
|
.df-view-row__right > .df-view-transparent:last-child {
|
|
74
74
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
2
2
|
import './ViewRow.css';
|
|
3
3
|
export declare const ViewRow: <T extends FormValue, S extends Spec<any, undefined, undefined>>({ value, spec, children, }: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { HelpMark, Text } from '@gravity-ui/uikit';
|
|
3
3
|
import { useDynamicFormsCtx } from '../../../../core';
|
|
4
4
|
import { CopyButton } from '../../../../kit';
|
|
5
|
-
import { block, isNotEmptyValue } from '../../../utils';
|
|
6
5
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
6
|
+
import { block, isNotEmptyValue } from '../../../utils';
|
|
7
7
|
import './ViewRow.css';
|
|
8
8
|
const b = block('view-row');
|
|
9
9
|
export const ViewRow = ({ value, spec, children, }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
2
2
|
export declare const ViewSection: <T extends FormValue, S extends Spec<any, undefined, undefined>>(props: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
3
3
|
export declare const ViewSection2: <T extends FormValue, S extends Spec<any, undefined, undefined>>(props: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
4
4
|
export declare const ViewGroup: <T extends FormValue, S extends Spec<any, undefined, undefined>>(props: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
50
50
|
}
|
|
51
51
|
.df-view-table-cell__inner > .df-view-transparent {
|
|
52
|
-
margin-bottom: var(--df-view-table-cell-inner-child-view-transparent-margin-bottom,
|
|
52
|
+
margin-bottom: var(--df-view-table-cell-inner-child-view-transparent-margin-bottom, var(--g-spacing-2));
|
|
53
53
|
}
|
|
54
54
|
.df-view-table-cell__inner > .df-view-transparent:last-child {
|
|
55
55
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
2
2
|
import './ViewTableCell.css';
|
|
3
3
|
export declare const ViewTableCell: <T extends FormValue, S extends Spec<any, undefined, undefined>>({ value, spec, children, }: ViewLayoutProps<T, S>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
1
|
+
import type { FormValue, Spec, ViewLayoutProps } from '../../../../core';
|
|
2
2
|
import './ViewTransparent.css';
|
|
3
3
|
export declare const ViewTransparent: <T extends FormValue, S extends Spec<any, undefined, undefined>>({ value, spec, children, }: ViewLayoutProps<T, S>) => JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BooleanViewProps, NumberViewProps, StringViewProps } from '../../../../core';
|
|
2
|
+
import type { BooleanViewProps, NumberViewProps, StringViewProps } from '../../../../core';
|
|
3
3
|
export declare const BaseView: <T extends BooleanViewProps | NumberViewProps | StringViewProps>({ value, spec, linkValue, }: React.PropsWithChildren<T>) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentView } from '../../../core';
|
|
1
|
+
import type { ObjectIndependentView } from '../../../core';
|
|
2
2
|
export declare const CardOneOfView: ObjectIndependentView;
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
}
|
|
23
23
|
.df-checkbox-group-view > *:not(:last-child) {
|
|
24
|
-
margin-right: var(--df-checkbox-group-view-child-margin-right,
|
|
24
|
+
margin-right: var(--df-checkbox-group-view-child-margin-right, var(--g-spacing-3));
|
|
25
25
|
}
|
|
26
26
|
.df-checkbox-group-view_vertical {
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
align-items: flex-start;
|
|
29
29
|
}
|
|
30
30
|
.df-checkbox-group-view_vertical > *:not(:last-child) {
|
|
31
|
-
margin: var(--df-checkbox-group-view-vertical-child-margin, var(--g-spacing-0) var(--g-spacing-0)
|
|
31
|
+
margin: var(--df-checkbox-group-view-vertical-child-margin, var(--g-spacing-0) var(--g-spacing-0) var(--g-spacing-2));
|
|
32
32
|
}
|
|
33
33
|
.df-checkbox-group-view__popover {
|
|
34
34
|
padding: var(--g-spacing-2);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { BaseView, DEFAULT_DATE_FORMAT } from '../../../components';
|
|
4
3
|
import { dateTimeParse } from '@gravity-ui/date-utils';
|
|
5
4
|
import isObject from 'lodash/isObject';
|
|
5
|
+
import { BaseView, DEFAULT_DATE_FORMAT } from '../../../components';
|
|
6
6
|
export const DateView = (_a) => {
|
|
7
7
|
var { value, spec } = _a, restProps = __rest(_a, ["value", "spec"]);
|
|
8
8
|
const { printFormat = DEFAULT_DATE_FORMAT, outputFormat, timeZone, } = spec.viewSpec.dateInput || {};
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-monaco-view-dialog .g-dialog-footer {
|
|
21
|
-
padding: var(--df-monaco-view-dialog-footer-padding,
|
|
21
|
+
padding: var(--df-monaco-view-dialog-footer-padding, var(--g-spacing-4));
|
|
22
22
|
}
|
|
23
23
|
.df-monaco-view-dialog__container {
|
|
24
24
|
border: 1px solid var(--g-color-line-generic);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
3
3
|
import './MultiOneOfView.css';
|
|
4
4
|
export interface MultiOneOfViewProps extends ObjectIndependentViewProps {
|
|
5
5
|
withoutIndent?: boolean;
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Popover, Text } from '@gravity-ui/uikit';
|
|
3
3
|
import isObjectLike from 'lodash/isObjectLike';
|
|
4
4
|
import { ViewController } from '../../../../core';
|
|
5
|
+
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
5
6
|
import { block } from '../../../utils';
|
|
6
7
|
import { GroupIndent } from '../../GroupIndent';
|
|
7
|
-
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
8
8
|
import './MultiOneOfView.css';
|
|
9
9
|
const b = block('multi-oneof-view');
|
|
10
10
|
export const MultiOneOfView = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Popover, Text } from '@gravity-ui/uikit';
|
|
3
|
-
import { block } from '../../../utils';
|
|
4
3
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
4
|
+
import { block } from '../../../utils';
|
|
5
5
|
import './MultiSelectView.css';
|
|
6
6
|
const b = block('multiselect-view');
|
|
7
7
|
export const MultiSelectView = ({ spec, value = [] }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
3
3
|
import './ObjectBaseView.css';
|
|
4
4
|
export interface ObjectBaseViewProps extends ObjectIndependentViewProps {
|
|
5
5
|
inline?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import isObjectLike from 'lodash/isObjectLike';
|
|
4
3
|
import { Text } from '@gravity-ui/uikit';
|
|
4
|
+
import isObjectLike from 'lodash/isObjectLike';
|
|
5
5
|
import { ViewController } from '../../../../core';
|
|
6
6
|
import { block, filterPropertiesForObjectInline } from '../../../utils';
|
|
7
7
|
import './ObjectBaseView.css';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentView } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentView } from '../../../../core';
|
|
2
2
|
export declare const ObjectValueInputView: ObjectIndependentView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentView, ObjectIndependentViewProps } from '../../../../core';
|
|
3
3
|
import './OneOfView.css';
|
|
4
4
|
export interface OneOfViewProps extends ObjectIndependentViewProps {
|
|
5
5
|
withoutIndent?: boolean;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-table-array-view__table {
|
|
21
|
-
margin-bottom: var(--df-table-array-view-table-margin-bottom,
|
|
21
|
+
margin-bottom: var(--df-table-array-view-table-margin-bottom, var(--g-spacing-3));
|
|
22
22
|
}
|
|
23
23
|
.df-table-array-view__cell {
|
|
24
24
|
max-width: var(--df-table-array-view-cell-min-width, 150px);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Flex, HelpMark, Table } from '@gravity-ui/uikit';
|
|
3
3
|
import { ViewController, isArraySpec, isBooleanSpec, isObjectSpec, useDynamicFormsCtx, } from '../../../../core';
|
|
4
|
-
import { block } from '../../../utils';
|
|
5
4
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
5
|
+
import { block } from '../../../utils';
|
|
6
6
|
import './TableArrayView.css';
|
|
7
7
|
const b = block('table-array-view');
|
|
8
8
|
export const TableArrayView = ({ value = [], spec, name }) => {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
cursor: pointer;
|
|
25
25
|
}
|
|
26
26
|
.df-text-area-view__chevron {
|
|
27
|
-
margin: var(--df-text-area-view-chevron-margin,
|
|
27
|
+
margin: var(--df-text-area-view-chevron-margin, var(--g-spacing-half));
|
|
28
28
|
}
|
|
29
29
|
.df-text-area-view__chevron_open {
|
|
30
30
|
transform: rotate(180deg);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StringIndependentView } from '../../../core';
|
|
1
|
+
import type { StringIndependentView } from '../../../core';
|
|
2
2
|
export declare const TextContentView: StringIndependentView;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentView } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentView } from '../../../../core';
|
|
2
2
|
export declare const TextLinkView: ObjectIndependentView;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentView } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentView } from '../../../../core';
|
|
2
2
|
export declare const TimeRangeSelectorView: ObjectIndependentView;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
.df-use-oneof__toggler_card + .df-group-indent > .df-use-search:not(.df-group-indent) {
|
|
25
25
|
padding-top: var(--df-use-oneof-card-child-padding, var(--g-spacing-0));
|
|
26
|
-
margin-top: var(--df-spacing-inputs,
|
|
26
|
+
margin-top: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
27
27
|
}
|
|
28
28
|
.df-use-oneof__card {
|
|
29
29
|
display: flex;
|