@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AlertProps, LabelProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { ColorTextBaseProps } from '@gravity-ui/uikit/build/esm/components/Text/colorText/colorText';
|
|
3
|
-
import { ReadAsMethod, SpecTypes } from '../constants';
|
|
4
|
-
import { ArrayValue, ObjectValue } from './';
|
|
2
|
+
import type { ColorTextBaseProps } from '@gravity-ui/uikit/build/esm/components/Text/colorText/colorText';
|
|
3
|
+
import type { ReadAsMethod, SpecTypes } from '../constants';
|
|
4
|
+
import type { ArrayValue, ObjectValue } from './';
|
|
5
5
|
export interface ArraySpec<LinkType = any, InputComponentProps extends Record<string, any> | undefined = undefined, LayoutComponentProps extends Record<string, any> | undefined = undefined> {
|
|
6
6
|
defaultValue?: ArrayValue;
|
|
7
7
|
type: SpecTypes.Array;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
order: 1;
|
|
89
89
|
}
|
|
90
90
|
.df-accordeon-card__interal-actions {
|
|
91
|
-
margin-right: var(--df-accordeon-card-interal-actions-margin-right,
|
|
91
|
+
margin-right: var(--df-accordeon-card-interal-actions-margin-right, var(--g-spacing-1));
|
|
92
92
|
}
|
|
93
93
|
.df-accordeon-card__toggle-icon_open {
|
|
94
94
|
transform: rotate(180deg);
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
align-items: center;
|
|
65
65
|
}
|
|
66
66
|
.df-card__header-right > * {
|
|
67
|
-
margin-left: var(--df-card-header-right-child-margin-left,
|
|
67
|
+
margin-left: var(--df-card-header-right-child-margin-left, var(--g-spacing-2));
|
|
68
68
|
}
|
|
69
69
|
.df-card__title {
|
|
70
70
|
max-width: var(--df-card-title-max-width, 533px);
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
max-width: 300px;
|
|
77
77
|
}
|
|
78
78
|
.df-card__note {
|
|
79
|
-
margin-left: var(--df-card-note-margin-left,
|
|
79
|
+
margin-left: var(--df-card-note-margin-left, var(--g-spacing-1));
|
|
80
80
|
}
|
|
81
81
|
.df-card__note .gc-help-popover {
|
|
82
82
|
display: flex;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-group-indent {
|
|
21
|
-
padding: var(--df-group-indent-padding,
|
|
22
|
-
margin: var(--df-group-indent-margin, -
|
|
21
|
+
padding: var(--df-group-indent-padding, var(--g-spacing-3) var(--g-spacing-0) var(--g-spacing-0) var(--g-spacing-5));
|
|
22
|
+
margin: var(--df-group-indent-margin, calc(-1 * var(--g-spacing-3)) var(--g-spacing-0) var(--g-spacing-0) var(--g-spacing-1));
|
|
23
23
|
border-left: 1px solid var(--g-color-line-generic-accent);
|
|
24
24
|
}
|
|
25
25
|
.df-group-indent:last-child {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
display: none;
|
|
30
30
|
}
|
|
31
31
|
.df-group-indent > .df-simple-vertical-accordeon_view {
|
|
32
|
-
margin-top: var(--df-group-indent-simple-vertical-accordeon-view-margin-top, -
|
|
32
|
+
margin-top: var(--df-group-indent-simple-vertical-accordeon-view-margin-top, calc(-1 * var(--g-spacing-3)));
|
|
33
33
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
align-items: flex-end;
|
|
26
26
|
}
|
|
27
27
|
.df-array-base__items-wrapper_add-button-down {
|
|
28
|
-
margin-bottom: var(--df-spacing-inputs,
|
|
28
|
+
margin-bottom: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
29
29
|
}
|
|
30
30
|
.df-array-base__items-wrapper_items-primitive {
|
|
31
31
|
min-width: var(--df-array-base-items-primitive-min-width, 100%);
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
min-width: unset;
|
|
35
35
|
}
|
|
36
36
|
.df-array-base__item-prefix {
|
|
37
|
-
margin: var(--df-array-base-item-prefix-margin, -
|
|
37
|
+
margin: var(--df-array-base-item-prefix-margin, calc(-1 * var(--g-spacing-2)) var(--g-spacing-0) var(--g-spacing-2));
|
|
38
38
|
}
|
|
39
39
|
.df-array-base__add-button_right {
|
|
40
40
|
margin-left: var(--df-array-base-add-button-right-margin-left, var(--g-spacing-1));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentInput } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentInput } from '../../../../core';
|
|
2
2
|
export declare const CardOneOf: ObjectIndependentInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import set from 'lodash/set';
|
|
3
3
|
import { Card } from '../../';
|
|
4
|
-
import { Controller, isArrayItem
|
|
4
|
+
import { Controller, isArrayItem } from '../../../../core';
|
|
5
5
|
import { useErrorChecker, useOneOf } from '../../../hooks';
|
|
6
6
|
import { Row } from '../../Layouts';
|
|
7
7
|
import { RemoveButton } from '../../RemoveButton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckboxProps as CheckboxBaseProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { BooleanInput } from '../../../../core';
|
|
1
|
+
import type { CheckboxProps as CheckboxBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { BooleanInput } from '../../../../core';
|
|
3
3
|
import './Checkbox.css';
|
|
4
4
|
export interface CheckboxProps extends Omit<CheckboxBaseProps, 'checked' | 'onChange' | 'onBlur' | 'onFocus' | 'disabled' | 'qa'> {
|
|
5
5
|
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
height: var(--df-checkbox-height, 28px);
|
|
24
24
|
}
|
|
25
25
|
.df-checkbox-group .g-control-label__text {
|
|
26
|
-
margin-inline-start: var(--df-checkbox-margint-start,
|
|
26
|
+
margin-inline-start: var(--df-checkbox-margint-start, var(--g-spacing-1));
|
|
27
27
|
}
|
|
28
28
|
.df-checkbox-group > *:not(:last-child) {
|
|
29
|
-
margin-right: var(--df-checkbox-group-child-margin-right,
|
|
29
|
+
margin-right: var(--df-checkbox-group-child-margin-right, var(--g-spacing-3));
|
|
30
30
|
}
|
|
31
31
|
.df-checkbox-group_vertical {
|
|
32
32
|
flex-direction: column;
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
height: auto;
|
|
36
36
|
}
|
|
37
37
|
.df-checkbox-group_vertical > *:not(:last-child) {
|
|
38
|
-
margin: var(--df-checkbox-group-vertical-child-margin, var(--g-spacing-0) var(--g-spacing-0)
|
|
38
|
+
margin: var(--df-checkbox-group-vertical-child-margin, var(--g-spacing-0) var(--g-spacing-0) var(--g-spacing-2));
|
|
39
39
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayInput } from '../../../../core';
|
|
2
1
|
import { type CheckboxProps as CheckboxBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { ArrayInput } from '../../../../core';
|
|
3
3
|
import './CheckboxGroup.css';
|
|
4
4
|
export interface CheckboxGroupProps extends Omit<CheckboxBaseProps, 'checked' | 'onChange' | 'onBlur' | 'onFocus' | 'disabled' | 'qa' | 'content'> {
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { transformArrIn, transformArrOut } from '../../../../core';
|
|
3
2
|
import { Checkbox } from '@gravity-ui/uikit';
|
|
3
|
+
import { transformArrIn, transformArrOut } from '../../../../core';
|
|
4
4
|
import { block } from '../../../utils';
|
|
5
5
|
import './CheckboxGroup.css';
|
|
6
6
|
const b = block('checkbox-group');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DatePickerProps } from '@gravity-ui/date-components';
|
|
3
|
-
import { StringInputProps } from '../../../../core';
|
|
2
|
+
import type { DatePickerProps } from '@gravity-ui/date-components';
|
|
3
|
+
import type { StringInputProps } from '../../../../core';
|
|
4
4
|
import './DateInput.css';
|
|
5
5
|
export declare const DEFAULT_DATE_FORMAT = "DD.MM.YYYY HH:mm";
|
|
6
6
|
export interface DateProps extends Omit<DatePickerProps, 'value' | 'disabled' | 'placeholder' | 'qa'> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ReadAsMethod } from '../../../../core';
|
|
1
|
+
import type { ReadAsMethod } from '../../../../core';
|
|
2
2
|
export declare function readFile(file: Blob, readAsMethod?: ReadAsMethod): Promise<string | ArrayBuffer | null>;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
height: var(--df-monaco-header-height, 52px);
|
|
22
22
|
display: flex;
|
|
23
23
|
justify-content: space-between;
|
|
24
|
-
padding: var(--df-monaco-header-padding,
|
|
24
|
+
padding: var(--df-monaco-header-padding, var(--g-spacing-4));
|
|
25
25
|
align-items: center;
|
|
26
26
|
background-color: var(--g-color-base-float-hover);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MonacoEditorProps } from 'react-monaco-editor/lib/types';
|
|
3
|
-
import { StringInputProps } from '../../../../core/';
|
|
3
|
+
import type { StringInputProps } from '../../../../core/';
|
|
4
4
|
import './MonacoInputBase.css';
|
|
5
5
|
export interface MonacoInputBaseProps extends StringInputProps {
|
|
6
6
|
MonacoComponent?: React.ComponentType<MonacoEditorProps>;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-monaco-input-dialog .g-dialog-footer {
|
|
21
|
-
padding: var(--df-monaco-input-dialog-dialog-footer-padding,
|
|
21
|
+
padding: var(--df-monaco-input-dialog-dialog-footer-padding, var(--g-spacing-2) var(--g-spacing-8) var(--g-spacing-8));
|
|
22
22
|
}
|
|
23
23
|
.df-monaco-input-dialog__container {
|
|
24
24
|
border: 1px solid var(--g-color-line-generic);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
padding: var(--df-multi-oneof-content-flat-padding, var(--g-spacing-0));
|
|
27
27
|
}
|
|
28
28
|
.df-multi-oneof__content_flat > .df-group-indent > .df-use-search {
|
|
29
|
-
margin-top: var(--df-spacing-inputs,
|
|
29
|
+
margin-top: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
30
30
|
}
|
|
31
31
|
.df-multi-oneof__content_flat > .df-group-indent > .df-use-search:empty {
|
|
32
32
|
display: none;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
3
3
|
import './MultiOneOf.css';
|
|
4
4
|
export interface MultiOneOfProps extends ObjectIndependentInputProps {
|
|
5
5
|
withoutIndent?: boolean;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Select } from '@gravity-ui/uikit';
|
|
3
3
|
import isObjectLike from 'lodash/isObjectLike';
|
|
4
4
|
import set from 'lodash/set';
|
|
5
|
-
import { Controller
|
|
5
|
+
import { Controller } from '../../../../core';
|
|
6
6
|
import { block } from '../../../utils';
|
|
7
7
|
import { GroupIndent } from '../../GroupIndent';
|
|
8
8
|
import './MultiOneOf.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { ArrayInput } from '../../../../core';
|
|
1
|
+
import type { SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { ArrayInput } from '../../../../core';
|
|
3
3
|
import './MultiSelect.css';
|
|
4
4
|
export interface MultiSelectProps extends Omit<SelectBaseProps, 'onUpdate' | 'value' | 'onOpenChange' | 'disabled' | 'placeholder' | 'filterPlaceholder' | 'multiple' | 'qa'> {
|
|
5
5
|
withCustomOptions?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
3
3
|
import './ObjectBase.css';
|
|
4
4
|
export interface ObjectBaseProps extends ObjectIndependentInputProps {
|
|
5
5
|
inline?: boolean;
|
|
@@ -4,7 +4,7 @@ import { Plus } from '@gravity-ui/icons';
|
|
|
4
4
|
import { Button, Icon, Text } from '@gravity-ui/uikit';
|
|
5
5
|
import isObjectLike from 'lodash/isObjectLike';
|
|
6
6
|
import set from 'lodash/set';
|
|
7
|
-
import { Controller, transformArrIn
|
|
7
|
+
import { Controller, transformArrIn } from '../../../../core';
|
|
8
8
|
import { block, filterPropertiesForObjectInline } from '../../../utils';
|
|
9
9
|
import './ObjectBase.css';
|
|
10
10
|
const b = block('object-base');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentInput } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentInput } from '../../../../core';
|
|
2
2
|
export declare const ObjectValueInput: ObjectIndependentInput;
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
all: unset;
|
|
29
29
|
}
|
|
30
30
|
.df-oneof_base > .df-group-indent > .df-use-search {
|
|
31
|
-
padding: var(--df-oneof-base-padding,
|
|
32
|
-
margin: var(--df-oneof-base-margin, var(--g-spacing-1) var(--g-spacing-0) var(--g-spacing-5)
|
|
31
|
+
padding: var(--df-oneof-base-padding, var(--g-spacing-3) 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) var(--g-spacing-1));
|
|
33
33
|
border-left: 1px solid var(--g-color-line-generic-accent);
|
|
34
34
|
}
|
|
35
35
|
.df-oneof_base > .df-group-indent > .df-use-search:empty {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
40
40
|
}
|
|
41
41
|
.df-oneof_base > .df-group-indent > .df-use-search > .df-simple-vertical-accordeon_view {
|
|
42
|
-
margin-top: var(--df-oneof-base-simple-vertical-accordeon-margin-top, -
|
|
42
|
+
margin-top: var(--df-oneof-base-simple-vertical-accordeon-margin-top, calc(-1 * var(--g-spacing-3)));
|
|
43
43
|
}
|
|
44
44
|
.df-oneof_flat > .df-group-indent {
|
|
45
45
|
margin: var(--df-oneof-flat-margin, var(--g-spacing-0));
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
padding: var(--df-oneof-flat-padding, var(--g-spacing-0));
|
|
48
48
|
}
|
|
49
49
|
.df-oneof_flat > .df-group-indent > .df-use-search {
|
|
50
|
-
margin-top: var(--df-spacing-inputs,
|
|
50
|
+
margin-top: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
51
51
|
}
|
|
52
52
|
.df-oneof_flat > .df-group-indent > .df-use-search:empty {
|
|
53
53
|
display: none;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
2
|
+
import type { ObjectIndependentInput, ObjectIndependentInputProps } from '../../../../core';
|
|
3
3
|
import './OneOf.css';
|
|
4
4
|
export interface OneOfProps extends ObjectIndependentInputProps {
|
|
5
5
|
withoutIndent?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import set from 'lodash/set';
|
|
3
3
|
import { GroupIndent } from '../../';
|
|
4
|
-
import { Controller
|
|
4
|
+
import { Controller } from '../../../../core';
|
|
5
5
|
import { useOneOf } from '../../../hooks';
|
|
6
6
|
import { block } from '../../../utils';
|
|
7
7
|
import './OneOf.css';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentInput } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentInput } from '../../../../core';
|
|
2
2
|
export declare const Secret: ObjectIndependentInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { StringInput } from '../../../../core';
|
|
1
|
+
import type { SelectProps as SelectBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { StringInput } from '../../../../core';
|
|
3
3
|
import './Select.css';
|
|
4
4
|
export interface SelectProps extends Omit<SelectBaseProps, 'onUpdate' | 'value' | 'onOpenChange' | 'disabled' | 'placeholder' | 'filterPlaceholder' | 'multiple' | 'qa'> {
|
|
5
5
|
withCustomOptions?: boolean;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-table-array__table {
|
|
21
|
-
margin-bottom: var(--df-table-array-table-margin-bottom,
|
|
21
|
+
margin-bottom: var(--df-table-array-table-margin-bottom, var(--g-spacing-2));
|
|
22
22
|
}
|
|
23
23
|
.df-table-array__table .g-table__cell {
|
|
24
24
|
border-bottom: 0px transparent;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
min-width: var(--df-table-array-cell-min-width, 150px);
|
|
41
41
|
}
|
|
42
42
|
.df-table-array__cell_arr, .df-table-array__cell_obj {
|
|
43
|
-
padding-left: var(--df-table-array-cell-obj-padding-left,
|
|
43
|
+
padding-left: var(--df-table-array-cell-obj-padding-left, var(--g-spacing-half));
|
|
44
44
|
}
|
|
45
45
|
.df-table-array__cell_arr .yc-text-input,
|
|
46
46
|
.df-table-array__cell_arr .g-text-input,
|
|
@@ -5,8 +5,8 @@ import noop from 'lodash/noop';
|
|
|
5
5
|
import set from 'lodash/set';
|
|
6
6
|
import { Controller, OBJECT_ARRAY_CNT, OBJECT_ARRAY_FLAG, isArraySpec, isBooleanSpec, isObjectSpec, transformArrIn, } from '../../../../core';
|
|
7
7
|
import { useSearchContext } from '../../../../core/components/Form/hooks';
|
|
8
|
-
import { block } from '../../../utils';
|
|
9
8
|
import { COMMON_POPOVER_PLACEMENT } from '../../../constants/common';
|
|
9
|
+
import { block } from '../../../utils';
|
|
10
10
|
import './TableArrayInput.css';
|
|
11
11
|
const b = block('table-array');
|
|
12
12
|
export const TableArrayInput = ({ spec, name, arrayInput, input }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextInputProps as TextInputBaseProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { NumberInputProps, StringInputProps } from '../../../../core';
|
|
1
|
+
import type { TextInputProps as TextInputBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { NumberInputProps, StringInputProps } from '../../../../core';
|
|
3
3
|
export interface TextProps extends Omit<TextInputBaseProps, 'value' | 'onBlur' | 'onFocus' | 'onUpdate' | 'disabled' | 'placeholder' | 'qa'> {
|
|
4
4
|
}
|
|
5
5
|
export declare const Text: <T extends NumberInputProps<TextProps> | StringInputProps<TextProps>>({ name, input: { value, onBlur, onChange, onFocus }, spec, inputProps, }: T) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextAreaProps as TextAreaBaseProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { StringInput } from '../../../../core';
|
|
1
|
+
import type { TextAreaProps as TextAreaBaseProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { StringInput } from '../../../../core';
|
|
3
3
|
export interface TextAreaProps extends Omit<TextAreaBaseProps, 'value' | 'onBlur' | 'onFocus' | 'onUpdate' | 'disabled' | 'placeholder' | 'qa'> {
|
|
4
4
|
}
|
|
5
5
|
export declare const TextArea: StringInput<TextAreaProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StringIndependentInput, StringSpec } from '../../../../core';
|
|
2
|
+
import type { StringIndependentInput, StringSpec } from '../../../../core';
|
|
3
3
|
import './TextContent.css';
|
|
4
4
|
export interface TextContentComponentProps {
|
|
5
5
|
spec: StringSpec;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { isEmpty } from 'lodash';
|
|
3
2
|
import { Alert, Label, Text } from '@gravity-ui/uikit';
|
|
3
|
+
import { isEmpty } from 'lodash';
|
|
4
4
|
import cloneDeep from 'lodash/cloneDeep';
|
|
5
5
|
import { block } from '../../../utils';
|
|
6
6
|
import { LazyLoader } from '../../LazyLoader';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentInput } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentInput } from '../../../../core';
|
|
2
2
|
export declare const TextLink: ObjectIndependentInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cloneDeep from 'lodash/cloneDeep';
|
|
3
3
|
import set from 'lodash/set';
|
|
4
|
-
import { Controller, isStringSpec
|
|
4
|
+
import { Controller, isStringSpec } from '../../../../core';
|
|
5
5
|
const TEXT_LINK_PROPERTY_NAME = 'text';
|
|
6
6
|
export const TextLink = (props) => {
|
|
7
7
|
var _a;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ObjectIndependentInput } from '../../../../core';
|
|
1
|
+
import type { ObjectIndependentInput } from '../../../../core';
|
|
2
2
|
export declare const TimeRangeSelector: ObjectIndependentInput;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Text } from '@gravity-ui/uikit';
|
|
3
3
|
import isString from 'lodash/isString';
|
|
4
4
|
import set from 'lodash/set';
|
|
5
|
-
import { isStringSpec
|
|
5
|
+
import { isStringSpec } from '../../../../core';
|
|
6
6
|
import { END_TIME, START_TIME } from '../../../constants/common';
|
|
7
7
|
import { TimeRangeSelect } from './components';
|
|
8
8
|
import { filterTimeArray, validateArray } from './utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type SelectOption } from '@gravity-ui/uikit';
|
|
3
|
-
import { FieldObjectValue, FieldValue, IndependentInputProps, ObjectSpec, StringSpec } from '../../../../../../core';
|
|
3
|
+
import type { FieldObjectValue, FieldValue, IndependentInputProps, ObjectSpec, StringSpec } from '../../../../../../core';
|
|
4
4
|
import './TimeRangeSelect.css';
|
|
5
5
|
interface TimeRangeSelectProps {
|
|
6
6
|
spec: StringSpec<any, undefined, undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import isString from 'lodash/isString';
|
|
3
2
|
import { Select } from '@gravity-ui/uikit';
|
|
3
|
+
import isString from 'lodash/isString';
|
|
4
4
|
import { block } from '../../../../../utils';
|
|
5
5
|
import { Row } from '../../../../Layouts/Row';
|
|
6
6
|
import './TimeRangeSelect.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextProps } from '@gravity-ui/uikit';
|
|
2
|
-
import { ArrayLayoutProps, ObjectLayoutProps } from '../../../../core';
|
|
1
|
+
import type { TextProps } from '@gravity-ui/uikit';
|
|
2
|
+
import type { ArrayLayoutProps, ObjectLayoutProps } from '../../../../core';
|
|
3
3
|
interface AccordeonLayoutProps {
|
|
4
4
|
variantTitle?: TextProps['variant'];
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ArrayLayoutProps, ObjectLayoutProps } from '../../../../core';
|
|
1
|
+
import type { ArrayLayoutProps, ObjectLayoutProps } from '../../../../core';
|
|
2
2
|
import './AccordeonCardForm.css';
|
|
3
3
|
export declare const AccordeonCardForm: <T extends ArrayLayoutProps<undefined, undefined> | ObjectLayoutProps<undefined, undefined>>({ name, spec, input, children, meta, }: T) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../core';
|
|
2
2
|
export declare const CardAccordeon: <T extends FieldValue, S extends Spec<any, undefined, undefined>>({ name, spec, input, meta, children, }: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../core';
|
|
2
2
|
export declare const CardSection: <T extends FieldValue, S extends Spec<any, undefined, undefined>>({ name, spec, input, meta, children, }: LayoutProps<T, undefined, undefined, S>) => JSX.Element;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/* Border-radius */
|
|
20
20
|
.df-column {
|
|
21
|
-
margin-bottom: var(--df-spacing-inputs,
|
|
21
|
+
margin-bottom: var(--df-spacing-inputs, var(--g-spacing-4));
|
|
22
22
|
}
|
|
23
23
|
.df-column:last-child {
|
|
24
24
|
margin-bottom: var(--df-spacing-last-child, var(--g-spacing-0));
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
.df-column__title {
|
|
44
44
|
word-break: break-word;
|
|
45
|
-
margin-right: var(--df-column-title-margin-right,
|
|
45
|
+
margin-right: var(--df-column-title-margin-right, var(--g-spacing-half));
|
|
46
46
|
}
|
|
47
47
|
.df-column__title_required::after {
|
|
48
48
|
content: "*";
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
.df-column__note-inner {
|
|
55
55
|
position: absolute;
|
|
56
|
-
margin-top: var(--df-column-note-inner-margin-top,
|
|
56
|
+
margin-top: var(--df-column-note-inner-margin-top, var(--g-spacing-0));
|
|
57
57
|
}
|
|
58
58
|
.df-column__note-inner .g-help-popover {
|
|
59
59
|
display: flex;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
justify-content: space-around;
|
|
72
72
|
}
|
|
73
73
|
.df-column__remove-button {
|
|
74
|
-
margin-left: var(--df-remove-button-margin-left,
|
|
74
|
+
margin-left: var(--df-remove-button-margin-left, var(--g-spacing-1));
|
|
75
75
|
}
|
|
76
76
|
.df-column__required-mark {
|
|
77
77
|
color: var(--g-color-text-danger);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
1
|
+
import type { FieldValue, LayoutProps, Spec } from '../../../../core';
|
|
2
2
|
import './Column.css';
|
|
3
3
|
export declare const Column: <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 './Column.css';
|
|
9
9
|
const b = block('column');
|
|
10
10
|
const ColumnBase = ({ name, spec, input, meta, children, }) => {
|