@gravity-ui/dynamic-forms 5.19.0 → 5.20.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/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/Controller/Controller.d.ts +11 -0
- package/build/cjs/lib/core/components/Form/Controller/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/Controller/types.d.ts +98 -0
- package/build/cjs/lib/core/components/Form/Controller/utils.d.ts +27 -0
- package/build/cjs/lib/core/components/Form/DynamicField.d.ts +19 -0
- package/build/cjs/lib/core/components/Form/constants.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/index.d.ts +17 -0
- package/build/cjs/lib/core/components/Form/hooks/useControllerMirror.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/hooks/useCreateContext.d.ts +3 -0
- package/build/cjs/lib/core/components/Form/hooks/useCreateSearchContext.d.ts +3 -0
- package/build/cjs/lib/core/components/Form/hooks/useDynamicFieldMirror.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/hooks/useDynamicFormsCtx.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useFormShared.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useFormSharedStore.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useGenerateRandomValue.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useIntegrationFF.d.ts +10 -0
- package/build/cjs/lib/core/components/Form/hooks/useMonaco.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useMutateDFState.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useMutators.d.ts +5 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearch/index.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearch/useSearch.d.ts +4 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearchContext.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/hooks/useSearchStore.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/hooks/useStore.d.ts +10 -0
- package/build/cjs/lib/core/components/Form/hooks/useStoreValue.d.ts +1 -0
- package/build/cjs/lib/core/components/Form/index.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/types/array.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/boolean.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/config.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/context.d.ts +23 -0
- package/build/cjs/lib/core/components/Form/types/field.d.ts +33 -0
- package/build/cjs/lib/core/components/Form/types/index.d.ts +16 -0
- package/build/cjs/lib/core/components/Form/types/input.d.ts +23 -0
- package/build/cjs/lib/core/components/Form/types/layout.d.ts +9 -0
- package/build/cjs/lib/core/components/Form/types/mirror.d.ts +15 -0
- package/build/cjs/lib/core/components/Form/types/mutators.d.ts +29 -0
- package/build/cjs/lib/core/components/Form/types/number.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/object.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/search.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/types/store.d.ts +7 -0
- package/build/cjs/lib/core/components/Form/types/string.d.ts +14 -0
- package/build/cjs/lib/core/components/Form/types/validators.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/types/value.d.ts +8 -0
- package/build/cjs/lib/core/components/Form/utils/common.d.ts +6 -0
- package/build/cjs/lib/core/components/Form/utils/index.d.ts +2 -0
- package/build/cjs/lib/core/components/Form/utils/search.d.ts +3 -0
- package/build/cjs/lib/core/components/View/DynamicView.d.ts +17 -0
- package/build/cjs/lib/core/components/View/ViewController.d.ts +7 -0
- package/build/cjs/lib/core/components/View/helpers.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/index.d.ts +7 -0
- package/build/cjs/lib/core/components/View/hooks/useComponents.d.ts +6 -0
- package/build/cjs/lib/core/components/View/hooks/useCreateContext.d.ts +3 -0
- package/build/cjs/lib/core/components/View/hooks/useDynamicFormsCtx.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/useMonaco.d.ts +1 -0
- package/build/cjs/lib/core/components/View/hooks/useRender.d.ts +15 -0
- package/build/cjs/lib/core/components/View/hooks/useViewShared.d.ts +4 -0
- package/build/cjs/lib/core/components/View/hooks/useViewSharedStore.d.ts +4 -0
- package/build/cjs/lib/core/components/View/index.d.ts +5 -0
- package/build/cjs/lib/core/components/View/types/array.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/boolean.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/config.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/context.d.ts +18 -0
- package/build/cjs/lib/core/components/View/types/index.d.ts +9 -0
- package/build/cjs/lib/core/components/View/types/layout.d.ts +8 -0
- package/build/cjs/lib/core/components/View/types/number.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/object.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/string.d.ts +13 -0
- package/build/cjs/lib/core/components/View/types/views.d.ts +23 -0
- package/build/cjs/lib/core/components/index.d.ts +2 -0
- package/build/cjs/lib/core/constants.d.ts +8 -0
- package/build/cjs/lib/core/helpers.d.ts +7 -0
- package/build/cjs/lib/core/index.d.ts +4 -0
- package/build/cjs/lib/core/types/index.d.ts +2 -0
- package/build/cjs/lib/core/types/specs.d.ts +194 -0
- package/build/cjs/lib/core/types/value.d.ts +5 -0
- package/build/cjs/lib/index.d.ts +2 -0
- package/build/cjs/lib/kit/components/AccordeonCard/AccordeonCard.d.ts +16 -0
- package/build/cjs/lib/kit/components/AccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Card/Card.d.ts +14 -0
- package/build/cjs/lib/kit/components/Card/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/CopyButton/CopyButton.d.ts +11 -0
- package/build/cjs/lib/kit/components/CopyButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ErrorWrapper/ErrorWrapper.d.ts +10 -0
- package/build/cjs/lib/kit/components/ErrorWrapper/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/GenerateRandomValueButton/GenerateRandomValueButton.d.ts +8 -0
- package/build/cjs/lib/kit/components/GenerateRandomValueButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/GroupIndent/GroupIndent.d.ts +5 -0
- package/build/cjs/lib/kit/components/GroupIndent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/cjs/lib/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/ArrayBase.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/ArrayBase/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/CardOneOf/CardOneOf.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/CardOneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Checkbox/Checkbox.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/Checkbox/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/CheckboxGroup.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/CheckboxGroup/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ColorPicker/ColorPicker.d.ts +21 -0
- package/build/cjs/lib/kit/components/Inputs/ColorPicker/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/DateInput/DateInput.d.ts +8 -0
- package/build/cjs/lib/kit/components/Inputs/DateInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/FileInput.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/FileInput/utils.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoHeader.d.ts +11 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputBase.d.ts +9 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/MonacoInputDialog.d.ts +20 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/MonacoInput/useMonacoOptions.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/MultiOneOf.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/MultiOneOf/index.d.ts +1 -0
- package/build/{esm/lib/unstable/kit → cjs/lib/kit/components/Inputs/MultiSelect}/MultiSelect.d.ts +2 -3
- package/build/cjs/lib/kit/components/Inputs/MultiSelect/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Number/Number.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Number/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/NumberWithScale.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/NumberWithScale/useInitial.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectBase/ObjectBase.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectBase/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectValueInput/ObjectValueInput.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/ObjectValueInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/OneOf/OneOf.d.ts +7 -0
- package/build/cjs/lib/kit/components/Inputs/OneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/RadioGroup/RadioGroup.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/RadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/RangeInputPicker.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/RangeInputPickerNumber.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/index.d.ts +3 -0
- package/build/cjs/lib/kit/components/Inputs/RangeInputPicker/types.d.ts +15 -0
- package/build/cjs/lib/kit/components/Inputs/Secret/Secret.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/Secret/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Select/Select.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Select/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Switch/Switch.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/Switch/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/TableArrayInput.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TableArrayInput/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/Text/Text.d.ts +6 -0
- package/build/cjs/lib/kit/components/Inputs/Text/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextArea/TextArea.d.ts +5 -0
- package/build/cjs/lib/kit/components/Inputs/TextArea/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/TextContent.d.ts +12 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TextContent/utils.d.ts +4 -0
- package/build/cjs/lib/kit/components/Inputs/TextLink/TextLink.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TextLink/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/TimeRangeSelector.d.ts +2 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/TimeRangeSelect.d.ts +13 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/TimeRangeSelect/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/components/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Inputs/TimeRangeSelector/utils.d.ts +16 -0
- package/build/cjs/lib/kit/components/Inputs/index.d.ts +26 -0
- package/build/cjs/lib/kit/components/Layouts/Accordeon/Accordeon.d.ts +8 -0
- package/build/cjs/lib/kit/components/Layouts/Accordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/AccordeonCard/AccordeonCardForm.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/AccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/CardAccordeon.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/CardSection.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Column/Column.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Column/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Row/Row.d.ts +4 -0
- package/build/cjs/lib/kit/components/Layouts/Row/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Section/Section.d.ts +15 -0
- package/build/cjs/lib/kit/components/Layouts/Section/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/TableCell/TableCell.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/TableCell/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/Transparent/Transparent.d.ts +3 -0
- package/build/cjs/lib/kit/components/Layouts/Transparent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Layouts/index.d.ts +9 -0
- package/build/cjs/lib/kit/components/LazyLoader/LazyLoader.d.ts +6 -0
- package/build/cjs/lib/kit/components/LazyLoader/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/LongValue/LongValue.d.ts +7 -0
- package/build/cjs/lib/kit/components/LongValue/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/RemoveButton/RemoveButton.d.ts +7 -0
- package/build/cjs/lib/kit/components/RemoveButton/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/SimpleVerticalAccordeon.d.ts +44 -0
- package/build/cjs/lib/kit/components/SimpleVerticalAccordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/TogglerCard/TogglerCard.d.ts +11 -0
- package/build/cjs/lib/kit/components/TogglerCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeon/ViewAccordeon.d.ts +8 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeon/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeonCard/ViewAccordeonCard.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewAccordeonCard/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewCardAccordeon.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewCardSection.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/ViewColumn.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewColumn/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/ViewRow.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewRow/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewSection/ViewSection.d.ts +6 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewSection/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/ViewTableCell.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTableCell/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTransparent/ViewTransparent.d.ts +3 -0
- package/build/cjs/lib/kit/components/ViewLayouts/ViewTransparent/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/ViewLayouts/index.d.ts +9 -0
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/ArrayBaseView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ArrayBaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/BaseView/BaseView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/BaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/CardOneOfView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/CheckboxGroupView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/CheckboxGroupView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ColorPickerView/ColorPickerView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ColorPickerView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/DateView/DateView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/DateView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/FileInputView/FileInputView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/FileInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoBaseView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/MonacoViewDialog.d.ts +15 -0
- package/build/cjs/lib/kit/components/Views/MonacoInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/MultiOneOfView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/MultiOneOfView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/MultiSelectView/MultiSelectView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/MultiSelectView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/NumberWithScaleView/NumberWithScaleView.d.ts +3 -0
- package/build/cjs/lib/kit/components/Views/NumberWithScaleView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/ObjectBaseView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/ObjectBaseView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/ObjectValueInputView/ObjectValueInputView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/ObjectValueInputView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/OneOfView/OneOfView.d.ts +7 -0
- package/build/cjs/lib/kit/components/Views/OneOfView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/RangeInputPickerNumberView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/RangeInputPickerView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/RangeInputPickerView/index.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TableArrayView/TableArrayView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TableArrayView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TextAreaView/TextAreaView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextAreaView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TextContentView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextLinkView/TextLinkView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TextLinkView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/TimeRangeSelectorView/TimeRangeSelectorView.d.ts +2 -0
- package/build/cjs/lib/kit/components/Views/TimeRangeSelectorView/index.d.ts +1 -0
- package/build/cjs/lib/kit/components/Views/index.d.ts +20 -0
- package/build/cjs/lib/kit/components/index.d.ts +14 -0
- package/build/cjs/lib/kit/constants/common.d.ts +13 -0
- package/build/cjs/lib/kit/constants/config.d.ts +3 -0
- package/build/cjs/lib/kit/constants/index.d.ts +2 -0
- package/build/cjs/lib/kit/hooks/index.d.ts +2 -0
- package/build/cjs/lib/kit/hooks/useErrorChecker.d.ts +8 -0
- package/build/cjs/lib/kit/hooks/useOneOf/index.d.ts +1 -0
- package/build/cjs/lib/kit/hooks/useOneOf/useOneOf.d.ts +12 -0
- package/build/cjs/lib/kit/i18n/configure.d.ts +12 -0
- package/build/cjs/lib/kit/i18n/index.d.ts +2 -0
- package/build/cjs/lib/kit/index.d.ts +6 -0
- package/build/cjs/lib/kit/utils/bigIntMath.d.ts +2 -0
- package/build/cjs/lib/kit/utils/cn.d.ts +2 -0
- package/build/cjs/lib/kit/utils/common.d.ts +6 -0
- package/build/cjs/lib/kit/utils/index.d.ts +5 -0
- package/build/cjs/lib/kit/utils/objectInline.d.ts +4 -0
- package/build/cjs/lib/kit/utils/objectKeys.d.ts +4 -0
- package/build/cjs/lib/kit/validators/helpers.d.ts +7 -0
- package/build/cjs/lib/kit/validators/index.d.ts +2 -0
- package/build/cjs/lib/kit/validators/messages.d.ts +2 -0
- package/build/cjs/lib/kit/validators/types.d.ts +20 -0
- package/build/cjs/lib/kit/validators/validators.d.ts +42 -0
- package/build/cjs/lib/unstable/core/Entity/Entity.d.ts +10 -0
- package/build/cjs/lib/unstable/core/Entity/index.d.ts +3 -0
- package/build/cjs/lib/unstable/core/Entity/index.js +3 -1
- package/build/cjs/lib/unstable/core/Entity/types.d.ts +27 -0
- package/build/cjs/lib/unstable/core/Entity/utils.d.ts +3 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/SchemaRenderer.d.ts +5 -0
- package/build/cjs/lib/unstable/core/SchemaRenderer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/core/constants.d.ts +22 -0
- package/build/cjs/lib/unstable/core/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/index.js +3 -1
- package/build/cjs/lib/unstable/core/types/components.d.ts +29 -0
- package/build/cjs/lib/unstable/core/types/config.d.ts +36 -0
- package/build/cjs/lib/unstable/core/types/helpers.d.ts +18 -0
- package/build/cjs/lib/unstable/core/types/index.d.ts +5 -0
- package/build/cjs/lib/unstable/core/types/schema.d.ts +1186 -0
- package/build/cjs/lib/unstable/core/types/validation.d.ts +39 -0
- package/build/cjs/lib/unstable/core/types/values.d.ts +4 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/constants.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useEntitiesState.d.ts +7 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/hooks/useSchemaRendererMutators.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/index.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/async-validation.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/async-validation/types.d.ts +34 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/external-errors.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/external-errors/types.d.ts +25 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/index.d.ts +13 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/schema-mutators.d.ts +3 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/schema-mutators/types.d.ts +26 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/trigger-fields.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/mutators/trigger-fields/types.d.ts +6 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/types.d.ts +22 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/useSchemaRenderer.d.ts +37 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/common.d.ts +1 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-ajv-validate.d.ts +11 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/get-validate.d.ts +14 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/index.d.ts +2 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-error.d.ts +10 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-ajv-validate-errors.d.ts +20 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-entity-parameters-error.d.ts +15 -0
- package/build/cjs/lib/unstable/core/useSchemaRenderer/utils/process-errors-state.d.ts +12 -0
- package/build/cjs/lib/unstable/core/utils/common.d.ts +49 -0
- package/build/cjs/lib/unstable/core/utils/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +12 -5
- package/build/cjs/lib/unstable/kit/components/ArrayRemoveButton/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.css +20 -0
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/components/ControlContainer/ControlContainer.js +14 -0
- package/build/cjs/lib/unstable/kit/components/ControlContainer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/ControlContainer/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.css +2 -32
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/ControlError/ControlError.js +5 -5
- package/build/cjs/lib/unstable/kit/components/ControlError/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/HTMLContent.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/HTMLContent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.css +8 -0
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/WrapperContainer.js +13 -0
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/components/WrapperContainer/index.js +5 -0
- package/build/cjs/lib/unstable/kit/components/index.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/components/index.js +5 -1
- package/build/cjs/lib/unstable/kit/constants/config.d.ts +155 -0
- package/build/cjs/lib/unstable/kit/constants/config.js +45 -6
- package/build/cjs/lib/unstable/kit/constants/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Alert/Alert.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/Alert/Alert.js +27 -0
- package/build/cjs/lib/unstable/kit/controls/Alert/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Alert/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +20 -17
- package/build/cjs/lib/unstable/kit/controls/ArrayBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.css +39 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/ArrayTable.js +88 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ArrayTable/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.css +7 -1
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Checkbox/Checkbox.js +8 -4
- package/build/cjs/lib/unstable/kit/controls/Checkbox/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +8 -2
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +11 -6
- package/build/cjs/lib/unstable/kit/controls/CheckboxGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.css +6 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +7 -6
- package/build/cjs/lib/unstable/kit/controls/ColorPicker/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.css +2 -2
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/DateInput/DateInput.js +14 -13
- package/build/cjs/lib/unstable/kit/controls/DateInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/DotValue/DotValue.d.ts +5 -0
- package/build/cjs/lib/unstable/kit/controls/DotValue/DotValue.js +30 -0
- package/build/cjs/lib/unstable/kit/controls/DotValue/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/DotValue/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.css +14 -0
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/FewOfNested.js +63 -0
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/FewOfNested/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/FileInput/FileInput.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/controls/FileInput/FileInput.js +53 -0
- package/build/cjs/lib/unstable/kit/controls/FileInput/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/FileInput/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Label/Label.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/Label/Label.js +28 -0
- package/build/cjs/lib/unstable/kit/controls/Label/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Label/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +5 -2
- package/build/cjs/lib/unstable/kit/controls/MultiSelect/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/NumberBase.css +3 -0
- package/build/{esm/lib/unstable/kit/controls/NumberBase/Number.d.ts → cjs/lib/unstable/kit/controls/NumberBase/NumberBase.d.ts} +1 -1
- package/build/cjs/lib/unstable/kit/controls/NumberBase/NumberBase.js +16 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/NumberBase/index.js +2 -2
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +6 -24
- package/build/cjs/lib/unstable/kit/controls/ObjectBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.css +8 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/ObjectInline.js +25 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/ObjectInline/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.css +14 -0
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.d.ts +12 -0
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/OneOfNested.js +64 -0
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/OneOfNested/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Password/Password.js +6 -2
- package/build/cjs/lib/unstable/kit/controls/Password/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +12 -2
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +4 -4
- package/build/cjs/lib/unstable/kit/controls/RadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +7 -0
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +11 -9
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.css +6 -0
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.js +29 -0
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/SegmentedRadioGroup/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/Select/Select.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/Select/Select.js +6 -3
- package/build/cjs/lib/unstable/kit/controls/Select/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.js +7 -5
- package/build/cjs/lib/unstable/kit/controls/Slider/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/StringBase/StringBase.js +4 -1
- package/build/cjs/lib/unstable/kit/controls/StringBase/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.css +8 -2
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/Switch/Switch.js +8 -4
- package/build/cjs/lib/unstable/kit/controls/Switch/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.css +3 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/controls/TextArea/TextArea.js +4 -1
- package/build/cjs/lib/unstable/kit/controls/TextArea/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.css +10 -0
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.d.ts +9 -0
- package/build/cjs/lib/unstable/kit/controls/TextContent/TextContent.js +29 -0
- package/build/cjs/lib/unstable/kit/controls/TextContent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/controls/TextContent/index.js +5 -0
- package/build/cjs/lib/unstable/kit/controls/index.d.ts +26 -0
- package/build/cjs/lib/unstable/kit/controls/index.js +21 -1
- package/build/cjs/lib/unstable/kit/utils/cn.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/utils/common.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/utils/common.js +5 -1
- package/build/cjs/lib/unstable/kit/utils/index.d.ts +2 -0
- package/build/cjs/lib/unstable/kit/utils/index.js +2 -1
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.css +35 -0
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.d.ts +10 -0
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/Accordeon.js +39 -0
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Accordeon/index.js +5 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.css +3 -6
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.d.ts +6 -0
- package/build/cjs/lib/unstable/kit/wrappers/Row/Row.js +7 -6
- package/build/cjs/lib/unstable/kit/wrappers/Row/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.css +23 -0
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.d.ts +8 -0
- package/build/cjs/lib/unstable/kit/wrappers/Section/Section.js +36 -0
- package/build/cjs/lib/unstable/kit/wrappers/Section/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/Section/index.js +5 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.d.ts +3 -0
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/Transparent.js +6 -4
- package/build/cjs/lib/unstable/kit/wrappers/Transparent/index.d.ts +1 -0
- package/build/cjs/lib/unstable/kit/wrappers/index.d.ts +4 -0
- package/build/cjs/lib/unstable/kit/wrappers/index.js +5 -1
- package/build/cjs/unstable.d.ts +4 -0
- package/build/esm/lib/unstable/core/Entity/index.d.ts +1 -0
- package/build/esm/lib/unstable/core/Entity/index.js +1 -0
- package/build/esm/lib/unstable/core/index.d.ts +2 -2
- package/build/esm/lib/unstable/core/index.js +2 -2
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/ArrayRemoveButton/ArrayRemoveButton.js +12 -5
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.css +20 -0
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.d.ts +8 -0
- package/build/esm/lib/unstable/kit/components/ControlContainer/ControlContainer.js +12 -0
- package/build/esm/lib/unstable/kit/components/ControlContainer/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/ControlContainer/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.css +2 -32
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.d.ts +0 -2
- package/build/esm/lib/unstable/kit/components/ControlError/ControlError.js +6 -6
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.css +8 -0
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.d.ts +7 -0
- package/build/esm/lib/unstable/kit/components/WrapperContainer/WrapperContainer.js +11 -0
- package/build/esm/lib/unstable/kit/components/WrapperContainer/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/components/WrapperContainer/index.js +1 -0
- package/build/esm/lib/unstable/kit/components/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/components/index.js +2 -0
- package/build/esm/lib/unstable/kit/constants/config.d.ts +43 -0
- package/build/esm/lib/unstable/kit/constants/config.js +47 -8
- package/build/esm/lib/unstable/kit/controls/Alert/Alert.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/Alert/Alert.js +24 -0
- package/build/esm/lib/unstable/kit/controls/Alert/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Alert/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/ArrayBase/ArrayBase.js +21 -18
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.css +39 -0
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/ArrayTable/ArrayTable.js +85 -0
- package/build/esm/lib/unstable/kit/controls/ArrayTable/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/ArrayTable/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.css +7 -1
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.d.ts +2 -2
- package/build/esm/lib/unstable/kit/controls/Checkbox/Checkbox.js +11 -7
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.css +8 -2
- package/build/esm/lib/unstable/kit/controls/CheckboxGroup/CheckboxGroup.js +13 -8
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.css +6 -0
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.d.ts +3 -2
- package/build/esm/lib/unstable/kit/controls/ColorPicker/ColorPicker.js +11 -9
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.css +2 -2
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.d.ts +2 -2
- package/build/esm/lib/unstable/kit/controls/DateInput/DateInput.js +16 -15
- package/build/esm/lib/unstable/kit/controls/DotValue/DotValue.d.ts +5 -0
- package/build/esm/lib/unstable/kit/controls/DotValue/DotValue.js +26 -0
- package/build/esm/lib/unstable/kit/controls/DotValue/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/DotValue/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.css +14 -0
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/FewOfNested/FewOfNested.js +60 -0
- package/build/esm/lib/unstable/kit/controls/FewOfNested/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/FewOfNested/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/FileInput/FileInput.d.ts +7 -0
- package/build/esm/lib/unstable/kit/controls/FileInput/FileInput.js +50 -0
- package/build/esm/lib/unstable/kit/controls/FileInput/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/FileInput/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Label/Label.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/Label/Label.js +25 -0
- package/build/esm/lib/unstable/kit/controls/Label/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/Label/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.d.ts +2 -2
- package/build/esm/lib/unstable/kit/controls/MultiSelect/MultiSelect.js +6 -3
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.css +3 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.d.ts +7 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/NumberBase.js +13 -0
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.d.ts +1 -1
- package/build/esm/lib/unstable/kit/controls/NumberBase/index.js +1 -1
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.d.ts +0 -1
- package/build/esm/lib/unstable/kit/controls/ObjectBase/ObjectBase.js +7 -25
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.css +8 -0
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/ObjectInline/ObjectInline.js +22 -0
- package/build/esm/lib/unstable/kit/controls/ObjectInline/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/ObjectInline/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.css +14 -0
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.d.ts +13 -0
- package/build/esm/lib/unstable/kit/controls/OneOfNested/OneOfNested.js +61 -0
- package/build/esm/lib/unstable/kit/controls/OneOfNested/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/OneOfNested/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Password/Password.css +3 -0
- package/build/esm/lib/unstable/kit/controls/Password/Password.d.ts +2 -1
- package/build/esm/lib/unstable/kit/controls/Password/Password.js +8 -3
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.css +12 -2
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.d.ts +2 -2
- package/build/esm/lib/unstable/kit/controls/RadioGroup/RadioGroup.js +7 -7
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.d.ts +2 -3
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.js +13 -12
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.css +6 -0
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.d.ts +9 -0
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/SegmentedRadioGroup.js +27 -0
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/SegmentedRadioGroup/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/Select/Select.d.ts +3 -3
- package/build/esm/lib/unstable/kit/controls/Select/Select.js +7 -4
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.d.ts +2 -3
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.js +9 -8
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.css +3 -0
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.d.ts +2 -1
- package/build/esm/lib/unstable/kit/controls/StringBase/StringBase.js +6 -2
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.css +8 -2
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.d.ts +2 -2
- package/build/esm/lib/unstable/kit/controls/Switch/Switch.js +11 -7
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.css +3 -0
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.d.ts +3 -2
- package/build/esm/lib/unstable/kit/controls/TextArea/TextArea.js +7 -3
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.css +10 -0
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.d.ts +10 -0
- package/build/esm/lib/unstable/kit/controls/TextContent/TextContent.js +27 -0
- package/build/esm/lib/unstable/kit/controls/TextContent/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/controls/TextContent/index.js +1 -0
- package/build/esm/lib/unstable/kit/controls/index.d.ts +10 -0
- package/build/esm/lib/unstable/kit/controls/index.js +10 -0
- package/build/esm/lib/unstable/kit/utils/common.d.ts +1 -0
- package/build/esm/lib/unstable/kit/utils/common.js +3 -0
- package/build/esm/lib/unstable/kit/utils/index.d.ts +1 -1
- package/build/esm/lib/unstable/kit/utils/index.js +1 -1
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.css +35 -0
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.d.ts +11 -0
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/Accordeon.js +37 -0
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Accordeon/index.js +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.css +3 -6
- package/build/esm/lib/unstable/kit/wrappers/Row/Row.js +9 -8
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.css +23 -0
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.d.ts +9 -0
- package/build/esm/lib/unstable/kit/wrappers/Section/Section.js +34 -0
- package/build/esm/lib/unstable/kit/wrappers/Section/index.d.ts +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Section/index.js +1 -0
- package/build/esm/lib/unstable/kit/wrappers/Transparent/Transparent.js +8 -6
- package/build/esm/lib/unstable/kit/wrappers/index.d.ts +2 -0
- package/build/esm/lib/unstable/kit/wrappers/index.js +2 -0
- package/package.json +1 -1
- package/build/cjs/lib/unstable/kit/Accordeon.js +0 -31
- package/build/cjs/lib/unstable/kit/Any.js +0 -21
- package/build/cjs/lib/unstable/kit/ArrayBase.css +0 -23
- package/build/cjs/lib/unstable/kit/ArrayBase.js +0 -101
- package/build/cjs/lib/unstable/kit/MultiSelect.css +0 -6
- package/build/cjs/lib/unstable/kit/MultiSelect.js +0 -66
- package/build/cjs/lib/unstable/kit/ObjectBase.css +0 -10
- package/build/cjs/lib/unstable/kit/ObjectBase.js +0 -71
- package/build/cjs/lib/unstable/kit/Row.css +0 -73
- package/build/cjs/lib/unstable/kit/Row.js +0 -50
- package/build/cjs/lib/unstable/kit/Text.js +0 -259
- package/build/cjs/lib/unstable/kit/config.js +0 -68
- package/build/cjs/lib/unstable/kit/controls/NumberBase/Number.js +0 -12
- package/build/cjs/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +0 -3
- package/build/cjs/lib/unstable/kit/controls/Slider/Slider.css +0 -3
- package/build/esm/lib/unstable/kit/Accordeon.d.ts +0 -3
- package/build/esm/lib/unstable/kit/Accordeon.js +0 -26
- package/build/esm/lib/unstable/kit/Any.d.ts +0 -2
- package/build/esm/lib/unstable/kit/Any.js +0 -16
- package/build/esm/lib/unstable/kit/ArrayBase.css +0 -23
- package/build/esm/lib/unstable/kit/ArrayBase.d.ts +0 -3
- package/build/esm/lib/unstable/kit/ArrayBase.js +0 -97
- package/build/esm/lib/unstable/kit/MultiSelect.css +0 -6
- package/build/esm/lib/unstable/kit/MultiSelect.js +0 -62
- package/build/esm/lib/unstable/kit/ObjectBase.css +0 -10
- package/build/esm/lib/unstable/kit/ObjectBase.d.ts +0 -8
- package/build/esm/lib/unstable/kit/ObjectBase.js +0 -66
- package/build/esm/lib/unstable/kit/Row.css +0 -73
- package/build/esm/lib/unstable/kit/Row.d.ts +0 -11
- package/build/esm/lib/unstable/kit/Row.js +0 -47
- package/build/esm/lib/unstable/kit/Text.d.ts +0 -6
- package/build/esm/lib/unstable/kit/Text.js +0 -255
- package/build/esm/lib/unstable/kit/config.d.ts +0 -95
- package/build/esm/lib/unstable/kit/config.js +0 -65
- package/build/esm/lib/unstable/kit/controls/NumberBase/Number.js +0 -8
- package/build/esm/lib/unstable/kit/controls/RangeSlider/RangeSlider.css +0 -3
- package/build/esm/lib/unstable/kit/controls/Slider/Slider.css +0 -3
|
@@ -3,31 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ObjectBase = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const icons_1 = require("@gravity-ui/icons");
|
|
7
|
-
const uikit_1 = require("@gravity-ui/uikit");
|
|
8
6
|
const core_1 = require("../../../core");
|
|
9
7
|
const components_1 = require("../../components");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return (react_1.default.createElement(
|
|
15
|
-
|
|
16
|
-
controlProps.addButtonText || null));
|
|
17
|
-
}, [
|
|
18
|
-
controlProps.addButtonText,
|
|
19
|
-
controlProps.disabled,
|
|
20
|
-
input.onChange,
|
|
21
|
-
schema.default,
|
|
22
|
-
schema.readOnly,
|
|
23
|
-
]);
|
|
24
|
-
return (react_1.default.createElement(components_1.ControlError, { errorMessage: meta.error, validationState: (0, utils_1.getValidationState)(meta) },
|
|
25
|
-
react_1.default.createElement(uikit_1.Flex, { direction: "column", gap: 2 },
|
|
26
|
-
react_1.default.createElement(uikit_1.Flex, { direction: "column" },
|
|
27
|
-
(controlProps.order || Object.keys(schema.properties || {})).map((property) => {
|
|
28
|
-
var _a;
|
|
29
|
-
return (react_1.default.createElement(core_1.Entity, { name: `${input.name ? input.name + '.' : ''}${property}`, schema: (_a = schema.properties) === null || _a === void 0 ? void 0 : _a[property], key: property }));
|
|
30
|
-
}),
|
|
31
|
-
input.value ? null : addButton))));
|
|
8
|
+
const Component = ({ controlProps, input, schema, }) => {
|
|
9
|
+
const { name } = input;
|
|
10
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "by-child" }, (controlProps.order || Object.keys(schema.properties || {})).map((property) => {
|
|
11
|
+
var _a;
|
|
12
|
+
return (react_1.default.createElement(core_1.Entity, { name: `${name ? name + '.' : ''}${property}`, schema: (_a = schema.properties) === null || _a === void 0 ? void 0 : _a[property], key: property }));
|
|
13
|
+
})));
|
|
32
14
|
};
|
|
33
15
|
exports.ObjectBase = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ObjectBase, type ObjectBaseProps } from './ObjectBase';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type JsonSchemaObject } from '../../../core';
|
|
3
|
+
export interface ObjectInlineProps {
|
|
4
|
+
delimiter?: string | Record<string, string>;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
order?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const ObjectInline: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaObject<any>, ObjectInlineProps, {}>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectInline = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
8
|
+
const isString_1 = tslib_1.__importDefault(require("lodash/isString"));
|
|
9
|
+
const core_1 = require("../../../core");
|
|
10
|
+
const components_1 = require("../../components");
|
|
11
|
+
const utils_1 = require("../../utils");
|
|
12
|
+
const b = (0, utils_1.block)('object-inline');
|
|
13
|
+
const Component = ({ controlProps, input, schema }) => {
|
|
14
|
+
const { delimiter, order } = controlProps;
|
|
15
|
+
const { name } = input;
|
|
16
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max", className: b() },
|
|
17
|
+
react_1.default.createElement(uikit_1.Flex, { className: b('items'), direction: "row", alignItems: "flex-start", gap: 2 }, (order || Object.keys(schema.properties || {})).map((property, index, array) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return (react_1.default.createElement(react_1.default.Fragment, { key: property },
|
|
20
|
+
react_1.default.createElement(core_1.Entity, { name: `${name ? name + '.' : ''}${property}`, schema: (_a = schema.properties) === null || _a === void 0 ? void 0 : _a[property] }),
|
|
21
|
+
(0, isString_1.default)(delimiter) && index + 1 !== array.length ? (react_1.default.createElement(uikit_1.Text, { className: b('delimiter') }, delimiter)) : null,
|
|
22
|
+
(0, isObject_1.default)(delimiter) && delimiter[property] ? (react_1.default.createElement(uikit_1.Text, { className: b('delimiter') }, delimiter[property])) : null));
|
|
23
|
+
}))));
|
|
24
|
+
};
|
|
25
|
+
exports.ObjectInline = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ObjectInline, type ObjectInlineProps } from './ObjectInline';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectInline = void 0;
|
|
4
|
+
var ObjectInline_1 = require("./ObjectInline");
|
|
5
|
+
Object.defineProperty(exports, "ObjectInline", { enumerable: true, get: function () { return ObjectInline_1.ObjectInline; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.sr-one-of-nested__content_with-indent {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-left: calc(var(--g-spacing-base) * 7);
|
|
4
|
+
}
|
|
5
|
+
.sr-one-of-nested__content_with-indent:before {
|
|
6
|
+
content: "";
|
|
7
|
+
display: block;
|
|
8
|
+
width: 1px;
|
|
9
|
+
height: calc(100% + var(--g-spacing-base) * 2);
|
|
10
|
+
background-color: var(--g-color-line-generic);
|
|
11
|
+
position: absolute;
|
|
12
|
+
left: calc(var(--g-spacing-base) * 3 + 1.5px);
|
|
13
|
+
bottom: 0;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type JsonSchema, type JsonSchemaObject } from '../../../core';
|
|
3
|
+
export interface OneOfNestedProps {
|
|
4
|
+
toggler: JsonSchema;
|
|
5
|
+
booleanToKey?: {
|
|
6
|
+
true: string;
|
|
7
|
+
false: string;
|
|
8
|
+
};
|
|
9
|
+
withIndent?: boolean;
|
|
10
|
+
togglerArrayRemoveButton?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const OneOfNested: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaObject<any>, OneOfNestedProps, {}>>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OneOfNested = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const core_1 = require("../../../core");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('one-of-nested');
|
|
10
|
+
const Component = ({ controlProps, input, meta, schema, Wrapper, wrapperProps, }) => {
|
|
11
|
+
var _a;
|
|
12
|
+
const { name, value } = input;
|
|
13
|
+
const { booleanToKey, togglerArrayRemoveButton = false, toggler: togglerSchema = {}, withIndent = false, } = controlProps;
|
|
14
|
+
const { config } = (0, core_1.useEntitiesState)(name);
|
|
15
|
+
const [togglerValue, setTogglerValue] = react_1.default.useState(Object.keys(value || schema.properties || {})[0] || '');
|
|
16
|
+
const toggler = react_1.default.useMemo(() => {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
let result = null;
|
|
19
|
+
const formKit = (0, core_1.getRenderKit)({ config, schema: togglerSchema })[core_1.SchemaRendererMode.Form];
|
|
20
|
+
const togglerInput = Object.assign(Object.assign({}, input), { name: togglerArrayRemoveButton ? name : `${name}._____toggler`, value: (_b = (((_a = togglerSchema.entityParameters) === null || _a === void 0 ? void 0 : _a.type) === core_1.EntityType.Boolean &&
|
|
21
|
+
booleanToKey &&
|
|
22
|
+
booleanToKey.true === togglerValue)) !== null && _b !== void 0 ? _b : togglerValue, onChange: (value) => {
|
|
23
|
+
const nextValue = `${value}`;
|
|
24
|
+
setTogglerValue((booleanToKey === null || booleanToKey === void 0 ? void 0 : booleanToKey[nextValue]) || nextValue);
|
|
25
|
+
} });
|
|
26
|
+
const togglerMeta = Object.assign(Object.assign({}, meta), { error: undefined });
|
|
27
|
+
if (formKit.Component) {
|
|
28
|
+
if (formKit.independent) {
|
|
29
|
+
result = (react_1.default.createElement(formKit.Component, { input: togglerInput, meta: togglerMeta, schema: togglerSchema, controlProps: formKit.props, Wrapper: formKit.Wrapper, wrapperProps: formKit.wrapperProps }));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
result = (react_1.default.createElement(formKit.Component, { input: togglerInput, meta: togglerMeta, schema: togglerSchema, controlProps: formKit.props }));
|
|
33
|
+
if (formKit.Wrapper) {
|
|
34
|
+
result = (react_1.default.createElement(formKit.Wrapper, { input: togglerInput, meta: togglerMeta, schema: togglerSchema, wrapperProps: formKit.wrapperProps }, result));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}, [
|
|
40
|
+
booleanToKey,
|
|
41
|
+
config,
|
|
42
|
+
name,
|
|
43
|
+
input,
|
|
44
|
+
meta,
|
|
45
|
+
togglerArrayRemoveButton,
|
|
46
|
+
togglerSchema,
|
|
47
|
+
togglerValue,
|
|
48
|
+
]);
|
|
49
|
+
const wrapperInput = react_1.default.useMemo(() => {
|
|
50
|
+
if (!togglerArrayRemoveButton) {
|
|
51
|
+
return input;
|
|
52
|
+
}
|
|
53
|
+
return Object.assign(Object.assign({}, input), { name: `${name}._____wrapper` });
|
|
54
|
+
}, [name, input, togglerArrayRemoveButton]);
|
|
55
|
+
let content = (react_1.default.createElement(components_1.ControlContainer, { stretch: "by-child" },
|
|
56
|
+
toggler,
|
|
57
|
+
react_1.default.createElement("div", { className: b('content', { 'with-indent': withIndent }) },
|
|
58
|
+
react_1.default.createElement(core_1.Entity, { name: `${name}.${togglerValue}`, schema: (_a = schema.properties) === null || _a === void 0 ? void 0 : _a[togglerValue] }))));
|
|
59
|
+
if (Wrapper) {
|
|
60
|
+
content = (react_1.default.createElement(Wrapper, { input: wrapperInput, meta: meta, schema: schema, wrapperProps: wrapperProps || {} }, content));
|
|
61
|
+
}
|
|
62
|
+
return content;
|
|
63
|
+
};
|
|
64
|
+
exports.OneOfNested = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OneOfNested, type OneOfNestedProps } from './OneOfNested';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OneOfNested = void 0;
|
|
4
|
+
var OneOfNested_1 = require("./OneOfNested");
|
|
5
|
+
Object.defineProperty(exports, "OneOfNested", { enumerable: true, get: function () { return OneOfNested_1.OneOfNested; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PasswordInputProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface PasswordProps extends Omit<PasswordInputProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Password: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, PasswordProps, {}>>;
|
|
@@ -4,9 +4,13 @@ exports.Password = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('password');
|
|
8
10
|
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
9
|
-
var _a
|
|
10
|
-
|
|
11
|
+
var _a;
|
|
12
|
+
const { name, onBlur, onChange, onFocus, value } = input;
|
|
13
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max", className: b({ error: (0, utils_1.getBooleanValidationState)(meta) }) },
|
|
14
|
+
react_1.default.createElement(uikit_1.PasswordInput, Object.assign({ autoComplete: "new-password", placeholder: (_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0], disabled: schema.readOnly, hasClear: true }, controlProps, { value: value !== null && value !== void 0 ? value : '', onFocus: onFocus, onBlur: onBlur, onUpdate: onChange, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: name }))));
|
|
11
15
|
};
|
|
12
16
|
exports.Password = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Password, type PasswordProps } from './Password';
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
.sr-radio-
|
|
2
|
-
|
|
1
|
+
.sr-radio-group_direction_horizontal {
|
|
2
|
+
min-height: 28px;
|
|
3
|
+
padding-top: 1px;
|
|
4
|
+
}
|
|
5
|
+
.sr-radio-group_direction_vertical {
|
|
6
|
+
padding-top: 7px;
|
|
7
|
+
}
|
|
8
|
+
.sr-radio-group_error .g-radio-group .g-radio_checked .g-radio__indicator:hover::before {
|
|
9
|
+
border: 1px solid var(--g-color-text-danger);
|
|
10
|
+
}
|
|
11
|
+
.sr-radio-group_error .g-radio-group .g-radio_checked .g-radio__indicator::before {
|
|
12
|
+
border: 1px solid var(--g-color-text-danger);
|
|
3
13
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type RadioGroupProps as UIKitRadioGroupProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface RadioGroupProps extends Omit<UIKitRadioGroupProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'qa'> {
|
|
5
|
+
enumDescriptions?: Record<string, string>;
|
|
6
|
+
optionsDisabled?: Record<string, boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const RadioGroup: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, RadioGroupProps, {}>>;
|
|
@@ -8,7 +8,8 @@ const components_1 = require("../../components");
|
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('radio-group');
|
|
10
10
|
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
11
|
-
const {
|
|
11
|
+
const { name, onBlur, onChange, onFocus, value } = input;
|
|
12
|
+
const { enumDescriptions, optionsDisabled, direction = 'horizontal' } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["enumDescriptions", "optionsDisabled", "direction"]);
|
|
12
13
|
const options = react_1.default.useMemo(() => {
|
|
13
14
|
var _a;
|
|
14
15
|
return (_a = schema.enum) === null || _a === void 0 ? void 0 : _a.map((value) => ({
|
|
@@ -17,8 +18,7 @@ const Component = ({ controlProps, input, meta, schema, }) => {
|
|
|
17
18
|
disabled: optionsDisabled === null || optionsDisabled === void 0 ? void 0 : optionsDisabled[value],
|
|
18
19
|
}));
|
|
19
20
|
}, [enumDescriptions, optionsDisabled, schema.enum]);
|
|
20
|
-
return (react_1.default.createElement(components_1.
|
|
21
|
-
react_1.default.createElement(uikit_1.
|
|
22
|
-
react_1.default.createElement(uikit_1.RadioGroup, Object.assign({ options: options, disabled: schema.readOnly }, restControlProps, { value: input.value, onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: input.onChange, qa: input.name })))));
|
|
21
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "fit", className: b({ error: (0, utils_1.getBooleanValidationState)(meta), direction }), justifyContent: "center" },
|
|
22
|
+
react_1.default.createElement(uikit_1.RadioGroup, Object.assign({ options: options, disabled: schema.readOnly }, restControlProps, { value: value, onFocus: onFocus, onBlur: onBlur, onUpdate: onChange, direction: direction, qa: name }))));
|
|
23
23
|
};
|
|
24
24
|
exports.RadioGroup = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroup, type RadioGroupProps } from './RadioGroup';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SliderProps as UIKitSliderProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaObject } from '../../../core';
|
|
4
|
+
export interface RangeSliderProps extends Omit<UIKitSliderProps, 'defaultValue' | 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
propertyKeys?: [string, string];
|
|
6
|
+
}
|
|
7
|
+
export declare const RangeSlider: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaObject<any>, RangeSliderProps, {}>>;
|
|
@@ -4,10 +4,11 @@ exports.RangeSlider = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
8
|
-
const b = (0, utils_1.block)('range-slider');
|
|
9
9
|
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11
|
+
const { name, onBlur, onChange, onFocus, value: inputValue } = input;
|
|
11
12
|
const { propertyKeys } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["propertyKeys"]);
|
|
12
13
|
const [fromKey, toKey] = propertyKeys || ['from', 'to'];
|
|
13
14
|
const min = ((_a = schema.properties) === null || _a === void 0 ? void 0 : _a[fromKey]) && 'minimum' in schema.properties[fromKey]
|
|
@@ -16,18 +17,19 @@ const Component = ({ controlProps, input, meta, schema, }) => {
|
|
|
16
17
|
const max = ((_d = schema.properties) === null || _d === void 0 ? void 0 : _d[toKey]) && 'maximum' in schema.properties[toKey]
|
|
17
18
|
? (_f = (_e = schema.properties) === null || _e === void 0 ? void 0 : _e[toKey]) === null || _f === void 0 ? void 0 : _f.maximum
|
|
18
19
|
: undefined;
|
|
19
|
-
const value = isNaN(Number(
|
|
20
|
+
const value = isNaN(Number(inputValue === null || inputValue === void 0 ? void 0 : inputValue[fromKey])) || isNaN(Number(inputValue === null || inputValue === void 0 ? void 0 : inputValue[toKey]))
|
|
20
21
|
? undefined
|
|
21
|
-
: [Number(
|
|
22
|
-
const defaultValue = isNaN(Number((
|
|
22
|
+
: [Number(inputValue === null || inputValue === void 0 ? void 0 : inputValue[fromKey]), Number(inputValue === null || inputValue === void 0 ? void 0 : inputValue[toKey])];
|
|
23
|
+
const defaultValue = isNaN(Number((_g = schema.default) === null || _g === void 0 ? void 0 : _g[fromKey])) || isNaN(Number((_h = schema.default) === null || _h === void 0 ? void 0 : _h[toKey]))
|
|
23
24
|
? undefined
|
|
24
|
-
: [Number((
|
|
25
|
+
: [Number((_j = schema.default) === null || _j === void 0 ? void 0 : _j[fromKey]), Number((_k = schema.default) === null || _k === void 0 ? void 0 : _k[toKey])];
|
|
25
26
|
const onUpdate = react_1.default.useCallback((next) => {
|
|
26
27
|
if (!Array.isArray(next)) {
|
|
27
28
|
return;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
}, [fromKey, toKey,
|
|
31
|
-
return (react_1.default.createElement(
|
|
30
|
+
onChange({ [fromKey]: next[0], [toKey]: next[1] });
|
|
31
|
+
}, [fromKey, toKey, onChange]);
|
|
32
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max" },
|
|
33
|
+
react_1.default.createElement(uikit_1.Slider, Object.assign({ min: min, max: max, step: 1, marks: 2, disabled: schema.readOnly, tooltipDisplay: "on" }, restControlProps, { defaultValue: defaultValue, value: value, onFocus: onFocus, onBlur: onBlur, onUpdate: onUpdate, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: name }))));
|
|
32
34
|
};
|
|
33
35
|
exports.RangeSlider = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RangeSlider, type RangeSliderProps } from './RangeSlider';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.sr-segmented-radio-group_error .g-segmented-radio-group .g-segmented-radio-group__option_checked:hover::after {
|
|
2
|
+
border: 1px solid var(--g-color-text-danger);
|
|
3
|
+
}
|
|
4
|
+
.sr-segmented-radio-group_error .g-segmented-radio-group .g-segmented-radio-group__option_checked::after {
|
|
5
|
+
border: 1px solid var(--g-color-text-danger);
|
|
6
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SegmentedRadioGroupProps as UIKitSegmentedRadioGroupProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface SegmentedRadioGroupProps extends Omit<UIKitSegmentedRadioGroupProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'qa'> {
|
|
5
|
+
enumDescriptions?: Record<string, string>;
|
|
6
|
+
optionsDisabled?: Record<string, boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare const SegmentedRadioGroup: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, SegmentedRadioGroupProps, {}>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentedRadioGroup = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
+
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('segmented-radio-group');
|
|
10
|
+
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
11
|
+
const { name, onBlur, onChange, onFocus, value } = input;
|
|
12
|
+
const { enumDescriptions, optionsDisabled } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["enumDescriptions", "optionsDisabled"]);
|
|
13
|
+
const options = react_1.default.useMemo(() => {
|
|
14
|
+
var _a;
|
|
15
|
+
return (_a = schema.enum) === null || _a === void 0 ? void 0 : _a.map((value) => ({
|
|
16
|
+
value,
|
|
17
|
+
content: (enumDescriptions === null || enumDescriptions === void 0 ? void 0 : enumDescriptions[value]) || value,
|
|
18
|
+
disabled: optionsDisabled === null || optionsDisabled === void 0 ? void 0 : optionsDisabled[value],
|
|
19
|
+
}));
|
|
20
|
+
}, [enumDescriptions, optionsDisabled, schema.enum]);
|
|
21
|
+
const onUpdate = react_1.default.useCallback((value) => {
|
|
22
|
+
onFocus();
|
|
23
|
+
onChange(value);
|
|
24
|
+
onBlur();
|
|
25
|
+
}, [onBlur, onChange, onFocus]);
|
|
26
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max", className: b({ error: (0, utils_1.getBooleanValidationState)(meta) }) },
|
|
27
|
+
react_1.default.createElement(uikit_1.SegmentedRadioGroup, Object.assign({ width: "max", disabled: schema.readOnly, options: options }, restControlProps, { value: value, onFocus: onFocus, onBlur: onBlur, onUpdate: onUpdate, qa: name }))));
|
|
28
|
+
};
|
|
29
|
+
exports.SegmentedRadioGroup = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentedRadioGroup, type SegmentedRadioGroupProps } from './SegmentedRadioGroup';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentedRadioGroup = void 0;
|
|
4
|
+
var SegmentedRadioGroup_1 = require("./SegmentedRadioGroup");
|
|
5
|
+
Object.defineProperty(exports, "SegmentedRadioGroup", { enumerable: true, get: function () { return SegmentedRadioGroup_1.SegmentedRadioGroup; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SelectProps as UIKitSelectProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface SelectProps extends Omit<UIKitSelectProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'multiple' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
enumDescriptions?: Record<string, string>;
|
|
6
|
+
optionsMeta?: Record<string, string>;
|
|
7
|
+
options?: UIKitSelectProps['options'];
|
|
8
|
+
}
|
|
9
|
+
export declare const Select: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, SelectProps, {}>>;
|
|
@@ -5,12 +5,14 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
7
|
const isString_1 = tslib_1.__importDefault(require("lodash/isString"));
|
|
8
|
+
const components_1 = require("../../components");
|
|
8
9
|
const utils_1 = require("../../utils");
|
|
9
10
|
const Component = ({ controlProps, input, meta, schema }) => {
|
|
10
11
|
var _a, _b;
|
|
12
|
+
const { name, onBlur, onChange, onFocus, value: inputValue } = input;
|
|
11
13
|
const { enumDescriptions, optionsMeta } = controlProps, restControlProps = tslib_1.__rest(controlProps, ["enumDescriptions", "optionsMeta"]);
|
|
12
|
-
const value = react_1.default.useMemo(() => ((0, isString_1.default)(
|
|
13
|
-
const onUpdate = react_1.default.useCallback((v) =>
|
|
14
|
+
const value = react_1.default.useMemo(() => ((0, isString_1.default)(inputValue) ? [inputValue] : undefined), [inputValue]);
|
|
15
|
+
const onUpdate = react_1.default.useCallback((v) => onChange(v[0]), [onChange]);
|
|
14
16
|
const options = react_1.default.useMemo(() => {
|
|
15
17
|
var _a;
|
|
16
18
|
return (_a = schema.enum) === null || _a === void 0 ? void 0 : _a.map((value) => {
|
|
@@ -27,6 +29,7 @@ const Component = ({ controlProps, input, meta, schema }) => {
|
|
|
27
29
|
}, [enumDescriptions, optionsMeta, schema.enum]);
|
|
28
30
|
const renderOption = react_1.default.useCallback((option) => (react_1.default.createElement(react_1.default.Fragment, { key: option.value }, option.content || option.text || option.value)), []);
|
|
29
31
|
const getOptionHeight = react_1.default.useCallback((option) => { var _a; return (((_a = option.data) === null || _a === void 0 ? void 0 : _a.optionMeta) ? 44 : 28); }, []);
|
|
30
|
-
return (react_1.default.createElement(
|
|
32
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max" },
|
|
33
|
+
react_1.default.createElement(uikit_1.Select, Object.assign({ width: "max", options: options, filterable: (((_a = schema.enum) === null || _a === void 0 ? void 0 : _a.length) || 0) > 9, renderOption: renderOption, getOptionHeight: getOptionHeight, placeholder: (_b = schema.examples) === null || _b === void 0 ? void 0 : _b[0], disabled: schema.readOnly }, restControlProps, { value: value, onFocus: onFocus, onBlur: onBlur, onUpdate: onUpdate, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: name }))));
|
|
31
34
|
};
|
|
32
35
|
exports.Select = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select, type SelectProps } from './Select';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SliderProps as UIKitSliderProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaNumber } from '../../../core';
|
|
4
|
+
export interface SliderProps extends Omit<UIKitSliderProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Slider: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaNumber<any>, SliderProps, {}>>;
|
|
@@ -4,16 +4,18 @@ exports.Slider = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
8
|
-
const b = (0, utils_1.block)('slider');
|
|
9
9
|
const Component = ({ controlProps, input, meta, schema }) => {
|
|
10
|
-
const
|
|
10
|
+
const { name, onBlur, onChange, onFocus, value: inputValue } = input;
|
|
11
|
+
const value = isNaN(Number(inputValue)) ? undefined : Number(inputValue);
|
|
11
12
|
const onUpdate = react_1.default.useCallback((next) => {
|
|
12
13
|
if (Array.isArray(next)) {
|
|
13
14
|
return;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
}, [
|
|
17
|
-
return (react_1.default.createElement(
|
|
16
|
+
onChange(next);
|
|
17
|
+
}, [onChange]);
|
|
18
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max" },
|
|
19
|
+
react_1.default.createElement(uikit_1.Slider, Object.assign({ min: schema.minimum, max: schema.maximum, step: 1, marks: 2, disabled: schema.readOnly, tooltipDisplay: "on" }, controlProps, { value: value, onFocus: onFocus, onBlur: onBlur, onUpdate: onUpdate, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: name }))));
|
|
18
20
|
};
|
|
19
21
|
exports.Slider = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Slider, type SliderProps } from './Slider';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextInputProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface StringBaseProps extends Omit<TextInputProps, 'type' | 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const StringBase: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, StringBaseProps, {}>>;
|
|
@@ -4,9 +4,12 @@ exports.StringBase = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('string-base');
|
|
8
10
|
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
9
11
|
var _a, _b;
|
|
10
|
-
return (react_1.default.createElement(
|
|
12
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max", className: b({ error: (0, utils_1.getBooleanValidationState)(meta) }) },
|
|
13
|
+
react_1.default.createElement(uikit_1.TextInput, Object.assign({ placeholder: (_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0], disabled: schema.readOnly, hasClear: true }, controlProps, { value: (_b = input.value) !== null && _b !== void 0 ? _b : '', onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: input.onChange, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: input.name, type: "text" }))));
|
|
11
14
|
};
|
|
12
15
|
exports.StringBase = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StringBase, type StringBaseProps } from './StringBase';
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
.sr-switch {
|
|
2
2
|
min-height: 28px;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
}
|
|
4
|
+
.sr-switch_error .g-switch .g-switch__indicator:hover::before {
|
|
5
|
+
border: 1px solid var(--g-color-text-danger);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
.sr-switch_error .g-switch .g-switch__indicator::before {
|
|
9
|
+
border: 1px solid var(--g-color-text-danger);
|
|
10
|
+
box-sizing: border-box;
|
|
5
11
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SwitchProps as UIKitSwitchProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaBoolean } from '../../../core';
|
|
4
|
+
export interface SwitchProps extends Omit<UIKitSwitchProps, 'checked' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const Switch: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaBoolean<any>, SwitchProps, {}>>;
|
|
@@ -8,9 +8,13 @@ const components_1 = require("../../components");
|
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const b = (0, utils_1.block)('switch');
|
|
10
10
|
const Component = ({ controlProps, input, schema, meta, }) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const { name, onBlur, onChange, onFocus, value } = input;
|
|
12
|
+
const onUpdate = react_1.default.useCallback((value) => {
|
|
13
|
+
onFocus();
|
|
14
|
+
onChange(value);
|
|
15
|
+
onBlur();
|
|
16
|
+
}, [onBlur, onChange, onFocus]);
|
|
17
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "fit", className: b({ error: (0, utils_1.getBooleanValidationState)(meta) }), justifyContent: "center" },
|
|
18
|
+
react_1.default.createElement(uikit_1.Switch, Object.assign({ disabled: schema.readOnly }, controlProps, { checked: value !== null && value !== void 0 ? value : false, onFocus: onFocus, onBlur: onBlur, onUpdate: onUpdate, qa: name }))));
|
|
15
19
|
};
|
|
16
20
|
exports.Switch = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch, type SwitchProps } from './Switch';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextAreaProps as UIKitTextAreaProps } from '@gravity-ui/uikit';
|
|
3
|
+
import type { JsonSchemaString } from '../../../core';
|
|
4
|
+
export interface TextAreaProps extends Omit<UIKitTextAreaProps, 'value' | 'onFocus' | 'onBlur' | 'onChange' | 'onUpdate' | 'errorMessage' | 'validationState' | 'qa'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const TextArea: React.NamedExoticComponent<import("../../../core").ControlProps<JsonSchemaString<any>, TextAreaProps, {}>>;
|
|
@@ -4,9 +4,12 @@ exports.TextArea = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const uikit_1 = require("@gravity-ui/uikit");
|
|
7
|
+
const components_1 = require("../../components");
|
|
7
8
|
const utils_1 = require("../../utils");
|
|
9
|
+
const b = (0, utils_1.block)('text-area');
|
|
8
10
|
const Component = ({ controlProps, input, meta, schema, }) => {
|
|
9
11
|
var _a, _b;
|
|
10
|
-
return (react_1.default.createElement(
|
|
12
|
+
return (react_1.default.createElement(components_1.ControlContainer, { stretch: "max", className: b({ error: (0, utils_1.getBooleanValidationState)(meta) }) },
|
|
13
|
+
react_1.default.createElement(uikit_1.TextArea, Object.assign({ maxRows: 20, minRows: 0, placeholder: (_a = schema.examples) === null || _a === void 0 ? void 0 : _a[0], disabled: schema.readOnly, hasClear: true }, controlProps, { value: (_b = input.value) !== null && _b !== void 0 ? _b : '', onFocus: input.onFocus, onBlur: input.onBlur, onUpdate: input.onChange, errorMessage: undefined, validationState: (0, utils_1.getValidationState)(meta), qa: input.name }))));
|
|
11
14
|
};
|
|
12
15
|
exports.TextArea = react_1.default.memo(Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextArea, type TextAreaProps } from './TextArea';
|