From 351de7d70d8b10a324bb5f2061971976f701a624 Mon Sep 17 00:00:00 2001 From: Siarhei Yelin Date: Wed, 7 Dec 2022 12:26:03 +0300 Subject: [PATCH] Change the way how "*.doc.ts(x)" modules export things. Related to #859. --- app/src/common/docs/ComponentEditor.tsx | 3 ++- epam-promo/components/buttons/docs/button.doc.tsx | 2 +- epam-promo/components/buttons/docs/iconButton.doc.tsx | 2 +- epam-promo/components/buttons/docs/linkButton.doc.ts | 2 +- epam-promo/components/buttons/docs/tabButton.doc.ts | 2 +- epam-promo/components/buttons/docs/verticalTabButton.doc.ts | 2 +- epam-promo/components/datePickers/docs/datePicker.doc.tsx | 2 +- epam-promo/components/datePickers/docs/rangeDatePicker.doc.tsx | 2 +- epam-promo/components/inputs/docs/checkbox.doc.ts | 2 +- epam-promo/components/inputs/docs/multiSwitch.doc.tsx | 2 +- epam-promo/components/inputs/docs/numericInput.doc.ts | 2 +- epam-promo/components/inputs/docs/radioInput.doc.ts | 2 +- epam-promo/components/inputs/docs/rating.doc.ts | 2 +- epam-promo/components/inputs/docs/searchInput.doc.ts | 2 +- epam-promo/components/inputs/docs/switch.doc.ts | 2 +- epam-promo/components/inputs/docs/textArea.doc.ts | 2 +- epam-promo/components/inputs/docs/textInput.doc.ts | 2 +- epam-promo/components/inputs/docs/timePicker.doc.ts | 2 +- epam-promo/components/layout/FlexItems/docs/flexRow.doc.tsx | 2 +- epam-promo/components/layout/FlexItems/docs/panel.doc.tsx | 2 +- epam-promo/components/layout/docs/accordion.doc.tsx | 2 +- epam-promo/components/layout/docs/blocker.doc.ts | 2 +- epam-promo/components/layout/docs/checkboxGroup.doc.ts | 2 +- epam-promo/components/layout/docs/controlGroup.doc.tsx | 2 +- epam-promo/components/layout/docs/iconContainer.doc.tsx | 2 +- epam-promo/components/layout/docs/labeledInput.doc.tsx | 2 +- epam-promo/components/layout/docs/radioGroup.doc.ts | 2 +- epam-promo/components/navigation/docs/anchor.doc.tsx | 2 +- epam-promo/components/navigation/docs/mainMenu.doc.tsx | 2 +- epam-promo/components/overlays/docs/alert.doc.tsx | 2 +- epam-promo/components/overlays/docs/dropdown.doc.tsx | 2 +- epam-promo/components/overlays/docs/dropdownContainer.doc.tsx | 2 +- epam-promo/components/overlays/docs/modalFooter.doc.tsx | 2 +- epam-promo/components/overlays/docs/modalHeader.doc.tsx | 2 +- epam-promo/components/overlays/docs/notificationCard.doc.tsx | 2 +- epam-promo/components/overlays/docs/tooltip.doc.tsx | 2 +- epam-promo/components/pickers/docs/pickerInput.doc.tsx | 2 +- epam-promo/components/pickers/docs/pickerModal.doc.tsx | 2 +- epam-promo/components/pickers/docs/pickerToggler.doc.tsx | 2 +- epam-promo/components/tables/docs/dataTableCell.doc.tsx | 2 +- epam-promo/components/tables/docs/dataTableHeaderCell.doc.tsx | 2 +- epam-promo/components/tables/docs/dataTableHeaderRow.doc.tsx | 2 +- epam-promo/components/tables/docs/dataTableRow.doc.tsx | 2 +- epam-promo/components/typography/docs/richTextView.doc.tsx | 2 +- epam-promo/components/typography/docs/text.doc.tsx | 2 +- epam-promo/components/typography/docs/textPlaceholder.doc.tsx | 2 +- epam-promo/components/widgets/docs/avatar.doc.tsx | 2 +- epam-promo/components/widgets/docs/avatarStack.doc.tsx | 2 +- epam-promo/components/widgets/docs/badge.doc.tsx | 2 +- epam-promo/components/widgets/docs/paginator.doc.tsx | 2 +- epam-promo/components/widgets/docs/spinner.doc.tsx | 2 +- epam-promo/components/widgets/docs/tag.doc.tsx | 2 +- loveship/components/buttons/docs/button.doc.tsx | 2 +- loveship/components/buttons/docs/iconButton.doc.ts | 2 +- loveship/components/buttons/docs/linkButton.doc.tsx | 2 +- loveship/components/buttons/docs/tabButton.doc.ts | 2 +- loveship/components/buttons/docs/verticalTabButton.doc.ts | 2 +- loveship/components/datePickers/docs/calendar.doc.ts | 2 +- loveship/components/datePickers/docs/datePicker.doc.tsx | 2 +- loveship/components/datePickers/docs/rangeDatePicker.doc.tsx | 2 +- loveship/components/inputs/Slider/docs/rangeSlider.doc.ts | 2 +- loveship/components/inputs/Slider/docs/slider.doc.ts | 2 +- loveship/components/inputs/docs/checkbox.doc.tsx | 2 +- loveship/components/inputs/docs/multiSwitch.doc.tsx | 2 +- loveship/components/inputs/docs/numericInput.doc.ts | 2 +- loveship/components/inputs/docs/radioInput.doc.tsx | 2 +- loveship/components/inputs/docs/rating.doc.ts | 2 +- loveship/components/inputs/docs/searchInput.doc.ts | 2 +- loveship/components/inputs/docs/sliderRating.doc.tsx | 2 +- loveship/components/inputs/docs/switch.doc.ts | 2 +- loveship/components/inputs/docs/textArea.doc.ts | 2 +- loveship/components/inputs/docs/textInput.doc.ts | 2 +- loveship/components/inputs/docs/timePicker.doc.ts | 2 +- loveship/components/layout/FlexItems/docs/flexRow.doc.tsx | 2 +- loveship/components/layout/FlexItems/docs/panel.doc.tsx | 2 +- loveship/components/layout/docs/accordion.doc.tsx | 2 +- loveship/components/layout/docs/blocker.doc.ts | 2 +- loveship/components/layout/docs/checkboxGroup.doc.ts | 2 +- loveship/components/layout/docs/controlGroup.doc.tsx | 2 +- loveship/components/layout/docs/iconContainer.doc.tsx | 2 +- loveship/components/layout/docs/labeledInput.doc.tsx | 2 +- loveship/components/layout/docs/radioGroup.doc.ts | 2 +- loveship/components/navigation/docs/mainMenu.doc.tsx | 2 +- loveship/components/overlays/docs/alert.doc.tsx | 2 +- loveship/components/overlays/docs/dropdown.doc.tsx | 2 +- loveship/components/overlays/docs/dropdownContainer.doc.tsx | 2 +- loveship/components/overlays/docs/dropdownMenu.doc.tsx | 2 +- loveship/components/overlays/docs/dropdownMenuButton.doc.tsx | 2 +- loveship/components/overlays/docs/modalFooter.doc.tsx | 2 +- loveship/components/overlays/docs/modalHeader.doc.tsx | 2 +- loveship/components/overlays/docs/notificationCard.doc.tsx | 2 +- loveship/components/overlays/docs/snackbarCard.doc.tsx | 2 +- loveship/components/overlays/docs/tooltip.doc.tsx | 2 +- loveship/components/pickers/docs/pickerInput.doc.tsx | 2 +- loveship/components/pickers/docs/pickerList.doc.tsx | 2 +- loveship/components/pickers/docs/pickerModal.doc.tsx | 2 +- loveship/components/pickers/docs/pickerToggler.doc.tsx | 2 +- loveship/components/tables/docs/dataTableCell.doc.tsx | 2 +- loveship/components/tables/docs/dataTableHeaderCell.doc.tsx | 2 +- loveship/components/tables/docs/dataTableHeaderRow.doc.tsx | 2 +- loveship/components/tables/docs/dataTableRow.doc.tsx | 2 +- loveship/components/typography/docs/richTextView.doc.tsx | 2 +- loveship/components/typography/docs/text.doc.tsx | 2 +- loveship/components/typography/docs/textPlaceholder.doc.tsx | 2 +- loveship/components/widgets/docs/avatar.doc.tsx | 2 +- loveship/components/widgets/docs/avatarStack.doc.tsx | 2 +- loveship/components/widgets/docs/badge.doc.ts | 2 +- loveship/components/widgets/docs/carousel.doc.tsx | 2 +- loveship/components/widgets/docs/paginator.doc.tsx | 2 +- loveship/components/widgets/docs/spinner.doc.ts | 2 +- loveship/components/widgets/docs/tag.doc.ts | 2 +- uui/components/buttons/docs/button.doc.tsx | 2 +- uui/components/buttons/docs/linkButton.doc.ts | 2 +- uui/components/inputs/docs/checkbox.doc.ts | 2 +- uui/components/inputs/docs/radioInput.doc.ts | 2 +- uui/components/inputs/docs/switch.doc.ts | 2 +- uui/components/inputs/docs/textInput.doc.ts | 2 +- uui/components/pickers/docs/pickerInput.doc.tsx | 2 +- uui/components/pickers/docs/pickerToggler.doc.tsx | 2 +- uui/components/typography/docs/textPlaceholder.doc.tsx | 2 +- 120 files changed, 121 insertions(+), 120 deletions(-) diff --git a/app/src/common/docs/ComponentEditor.tsx b/app/src/common/docs/ComponentEditor.tsx index a323fa16c9..b7043275c9 100644 --- a/app/src/common/docs/ComponentEditor.tsx +++ b/app/src/common/docs/ComponentEditor.tsx @@ -104,7 +104,8 @@ export class ComponentEditor extends React.Component, super(props); if (this.props.propsDocPath !== undefined) { - requireContext(`${ this.props.propsDocPath }`).then(((module: any) => { + requireContext(`${ this.props.propsDocPath }`).then(((m: any) => { + const module = m.default; module.props.forEach((prop: any) => { if (typeof prop.examples === 'function') { this.propExamples[prop.name] = prop.examples(this.propSamplesCreationContext); diff --git a/epam-promo/components/buttons/docs/button.doc.tsx b/epam-promo/components/buttons/docs/button.doc.tsx index 361bc6acbb..9f2911d284 100644 --- a/epam-promo/components/buttons/docs/button.doc.tsx +++ b/epam-promo/components/buttons/docs/button.doc.tsx @@ -20,4 +20,4 @@ const ButtonDoc = new DocBuilder({ name: 'Button', com .prop('fill', { examples: allFillStyles, defaultValue: 'solid' }) .withContexts(DefaultContext, FormContext); -export = ButtonDoc; \ No newline at end of file +export default ButtonDoc; diff --git a/epam-promo/components/buttons/docs/iconButton.doc.tsx b/epam-promo/components/buttons/docs/iconButton.doc.tsx index 086fb7cb01..858fb86c8d 100644 --- a/epam-promo/components/buttons/docs/iconButton.doc.tsx +++ b/epam-promo/components/buttons/docs/iconButton.doc.tsx @@ -10,4 +10,4 @@ const IconButtonDoc = new DocBuilder({ name: 'IconButton', comp .prop('color', { renderEditor: (editable, examples) => ({ value: i, hex: colors[i] })) } { ...editable } />, examples: allIconColors }) .withContexts(DefaultContext, FormContext); -export = IconButtonDoc; \ No newline at end of file +export default IconButtonDoc; diff --git a/epam-promo/components/buttons/docs/linkButton.doc.ts b/epam-promo/components/buttons/docs/linkButton.doc.ts index c806890e0e..e00154a631 100644 --- a/epam-promo/components/buttons/docs/linkButton.doc.ts +++ b/epam-promo/components/buttons/docs/linkButton.doc.ts @@ -13,4 +13,4 @@ const LinkButtonDoc = new DocBuilder({ name: 'Link ], type: 'string' }) .withContexts(DefaultContext, FormContext); -export = LinkButtonDoc; \ No newline at end of file +export default LinkButtonDoc; diff --git a/epam-promo/components/buttons/docs/tabButton.doc.ts b/epam-promo/components/buttons/docs/tabButton.doc.ts index abe77c44aa..dd6af18f63 100644 --- a/epam-promo/components/buttons/docs/tabButton.doc.ts +++ b/epam-promo/components/buttons/docs/tabButton.doc.ts @@ -16,4 +16,4 @@ const TabButtonDoc = new DocBuilder({ name: 'TabBut .prop('count', { examples: [0, 1, 5, 88, 123] }) .withContexts(TabButtonContext); -export = TabButtonDoc; \ No newline at end of file +export default TabButtonDoc; diff --git a/epam-promo/components/buttons/docs/verticalTabButton.doc.ts b/epam-promo/components/buttons/docs/verticalTabButton.doc.ts index a742f1a336..c5a47e3b8f 100644 --- a/epam-promo/components/buttons/docs/verticalTabButton.doc.ts +++ b/epam-promo/components/buttons/docs/verticalTabButton.doc.ts @@ -16,4 +16,4 @@ const TabButtonDoc = new DocBuilder({ name: 'Vertic .prop('count', { examples: [0, 1, 5, 88, 123] }) .withContexts(VerticalTabButtonContext); -export = TabButtonDoc; \ No newline at end of file +export default TabButtonDoc; diff --git a/epam-promo/components/datePickers/docs/datePicker.doc.tsx b/epam-promo/components/datePickers/docs/datePicker.doc.tsx index d809bc9ab7..8023ed5c00 100644 --- a/epam-promo/components/datePickers/docs/datePicker.doc.tsx +++ b/epam-promo/components/datePickers/docs/datePicker.doc.tsx @@ -52,4 +52,4 @@ const DatePickerDoc = new DocBuilder({ name: 'DatePicker', comp }) .withContexts(DefaultContext, FormContext, TableContext, ResizableContext); -export = DatePickerDoc; +export default DatePickerDoc; diff --git a/epam-promo/components/datePickers/docs/rangeDatePicker.doc.tsx b/epam-promo/components/datePickers/docs/rangeDatePicker.doc.tsx index 1231b826a2..1950790987 100644 --- a/epam-promo/components/datePickers/docs/rangeDatePicker.doc.tsx +++ b/epam-promo/components/datePickers/docs/rangeDatePicker.doc.tsx @@ -103,4 +103,4 @@ const RangeDatePickerDoc = new DocBuilder({ name: 'RangeDa .prop('isHoliday', { examples: [{ name: 'without Holidays', value: () => false }] }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = RangeDatePickerDoc; +export default RangeDatePickerDoc; diff --git a/epam-promo/components/inputs/docs/checkbox.doc.ts b/epam-promo/components/inputs/docs/checkbox.doc.ts index c6e4973f08..baed3efc7a 100644 --- a/epam-promo/components/inputs/docs/checkbox.doc.ts +++ b/epam-promo/components/inputs/docs/checkbox.doc.ts @@ -10,4 +10,4 @@ const CheckboxDoc = new DocBuilder({ name: 'Checkb .prop('indeterminate', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, FormContext, TableContext); -export = CheckboxDoc; \ No newline at end of file +export default CheckboxDoc; diff --git a/epam-promo/components/inputs/docs/multiSwitch.doc.tsx b/epam-promo/components/inputs/docs/multiSwitch.doc.tsx index 7c4d6f894c..fc02c0560e 100644 --- a/epam-promo/components/inputs/docs/multiSwitch.doc.tsx +++ b/epam-promo/components/inputs/docs/multiSwitch.doc.tsx @@ -29,4 +29,4 @@ const multiSwitchDoc = new DocBuilder>({ name: 'MultiSwitc .prop('color', { renderEditor: (editable, examples) => ({ value: i, hex: colors[i] })) } { ...editable } />, examples: ['blue', 'gray50'] }) .withContexts(DefaultContext, FormContext); -export = multiSwitchDoc; +export default multiSwitchDoc; diff --git a/epam-promo/components/inputs/docs/numericInput.doc.ts b/epam-promo/components/inputs/docs/numericInput.doc.ts index 6f9f424f66..36745873bd 100644 --- a/epam-promo/components/inputs/docs/numericInput.doc.ts +++ b/epam-promo/components/inputs/docs/numericInput.doc.ts @@ -15,4 +15,4 @@ const NumericInputDoc = new DocBuilder({ n .prop('disableLocaleFormatting', { defaultValue: false, examples: [true, false] }) .withContexts(DefaultContext, FormContext, TableContext); -export = NumericInputDoc; \ No newline at end of file +export default NumericInputDoc; diff --git a/epam-promo/components/inputs/docs/radioInput.doc.ts b/epam-promo/components/inputs/docs/radioInput.doc.ts index 932cd59405..3ad1ece895 100644 --- a/epam-promo/components/inputs/docs/radioInput.doc.ts +++ b/epam-promo/components/inputs/docs/radioInput.doc.ts @@ -11,4 +11,4 @@ const RadioInputDoc = new DocBuilder({ name: ' .prop('size', { examples: ['12', '18'] }) .withContexts(DefaultContext, FormContext); -export = RadioInputDoc; \ No newline at end of file +export default RadioInputDoc; diff --git a/epam-promo/components/inputs/docs/rating.doc.ts b/epam-promo/components/inputs/docs/rating.doc.ts index 6df17455f8..2bf89c6554 100644 --- a/epam-promo/components/inputs/docs/rating.doc.ts +++ b/epam-promo/components/inputs/docs/rating.doc.ts @@ -13,4 +13,4 @@ const RatingDoc = new DocBuilder({ name: 'Rating', com .prop('hint', { examples: [{ name: 'hint', value: val => `now is ${val} stars` }] }) .withContexts(DefaultContext, FormContext); -export = RatingDoc; \ No newline at end of file +export default RatingDoc; diff --git a/epam-promo/components/inputs/docs/searchInput.doc.ts b/epam-promo/components/inputs/docs/searchInput.doc.ts index 236d78719e..ba2c6e7c9b 100644 --- a/epam-promo/components/inputs/docs/searchInput.doc.ts +++ b/epam-promo/components/inputs/docs/searchInput.doc.ts @@ -18,4 +18,4 @@ const SearchInputDoc = new DocBuilder [ctx.getCallback('onCancel')] }) .prop('mode', { examples: ['cell'] }) .withContexts(DefaultContext, FormContext, ResizableContext, TableContext); -export = SearchInputDoc; \ No newline at end of file +export default SearchInputDoc; diff --git a/epam-promo/components/inputs/docs/switch.doc.ts b/epam-promo/components/inputs/docs/switch.doc.ts index 49e7443b6e..b771811c8a 100644 --- a/epam-promo/components/inputs/docs/switch.doc.ts +++ b/epam-promo/components/inputs/docs/switch.doc.ts @@ -10,4 +10,4 @@ const SwitchDoc = new DocBuilder({ name: 'Switch', com .prop('value', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, FormContext); -export = SwitchDoc; \ No newline at end of file +export default SwitchDoc; diff --git a/epam-promo/components/inputs/docs/textArea.doc.ts b/epam-promo/components/inputs/docs/textArea.doc.ts index 038d16154f..aa314c33b2 100644 --- a/epam-promo/components/inputs/docs/textArea.doc.ts +++ b/epam-promo/components/inputs/docs/textArea.doc.ts @@ -16,4 +16,4 @@ const TextareaDoc = new DocBuilder({ name: 'TextAr .prop('autoSize', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, FormContext, TableContext, ResizableContext); -export = TextareaDoc; \ No newline at end of file +export default TextareaDoc; diff --git a/epam-promo/components/inputs/docs/textInput.doc.ts b/epam-promo/components/inputs/docs/textInput.doc.ts index 4f45adbb20..b58b4cc634 100644 --- a/epam-promo/components/inputs/docs/textInput.doc.ts +++ b/epam-promo/components/inputs/docs/textInput.doc.ts @@ -20,4 +20,4 @@ const TextInputDoc = new DocBuilder({ name: 'Tex .prop('type', { examples: ['text', 'password'], type: 'string', defaultValue: 'text' }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = TextInputDoc; \ No newline at end of file +export default TextInputDoc; diff --git a/epam-promo/components/inputs/docs/timePicker.doc.ts b/epam-promo/components/inputs/docs/timePicker.doc.ts index 97039fbed4..c9e9bbafbd 100644 --- a/epam-promo/components/inputs/docs/timePicker.doc.ts +++ b/epam-promo/components/inputs/docs/timePicker.doc.ts @@ -10,4 +10,4 @@ const TimePickerDoc = new DocBuilder({ name: 'TimePicker', comp .prop('format', { examples: [12, 24], defaultValue: 12 }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = TimePickerDoc; +export default TimePickerDoc; diff --git a/epam-promo/components/layout/FlexItems/docs/flexRow.doc.tsx b/epam-promo/components/layout/FlexItems/docs/flexRow.doc.tsx index 8711e6d134..cf14cf4932 100644 --- a/epam-promo/components/layout/FlexItems/docs/flexRow.doc.tsx +++ b/epam-promo/components/layout/FlexItems/docs/flexRow.doc.tsx @@ -76,4 +76,4 @@ const flexRowDoc = new DocBuilder({ name: 'FlexRow', com .prop('alignItems', { examples: ['top', 'center'] }) .withContexts(DefaultContext); -export = flexRowDoc; +export default flexRowDoc; diff --git a/epam-promo/components/layout/FlexItems/docs/panel.doc.tsx b/epam-promo/components/layout/FlexItems/docs/panel.doc.tsx index 50a1f2a9b2..b9ab76c7f6 100644 --- a/epam-promo/components/layout/FlexItems/docs/panel.doc.tsx +++ b/epam-promo/components/layout/FlexItems/docs/panel.doc.tsx @@ -96,4 +96,4 @@ const panelDoc = new DocBuilder({ name: 'Panel', compon .prop('background', { examples: [{ value: 'white', isDefault: true }, 'gray90'] }) .withContexts(DefaultContext); -export = panelDoc; +export default panelDoc; diff --git a/epam-promo/components/layout/docs/accordion.doc.tsx b/epam-promo/components/layout/docs/accordion.doc.tsx index 0c44d97761..96804746f1 100644 --- a/epam-promo/components/layout/docs/accordion.doc.tsx +++ b/epam-promo/components/layout/docs/accordion.doc.tsx @@ -65,4 +65,4 @@ const accordionDoc = new DocBuilder({ name: 'Acc .prop('mode', { examples: [{ value: 'block', isDefault: true }, 'inline'] }) .withContexts(ResizableContext); -export = accordionDoc; \ No newline at end of file +export default accordionDoc; diff --git a/epam-promo/components/layout/docs/blocker.doc.ts b/epam-promo/components/layout/docs/blocker.doc.ts index a063681603..9689752e66 100644 --- a/epam-promo/components/layout/docs/blocker.doc.ts +++ b/epam-promo/components/layout/docs/blocker.doc.ts @@ -9,4 +9,4 @@ const blockerDoc = new DocBuilder({ name: 'Blocker', component: Bl .prop('hideSpinner', { examples:[true] }) .withContexts(RelativePanelContext); -export = blockerDoc; \ No newline at end of file +export default blockerDoc; diff --git a/epam-promo/components/layout/docs/checkboxGroup.doc.ts b/epam-promo/components/layout/docs/checkboxGroup.doc.ts index 8628bc0adb..10383e91b2 100644 --- a/epam-promo/components/layout/docs/checkboxGroup.doc.ts +++ b/epam-promo/components/layout/docs/checkboxGroup.doc.ts @@ -19,4 +19,4 @@ const checkboxGroupDoc = new DocBuilder>({ name: 'Checkb .prop('direction', { examples:['vertical', 'horizontal'], defaultValue: 'vertical' }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = checkboxGroupDoc; \ No newline at end of file +export default checkboxGroupDoc; diff --git a/epam-promo/components/layout/docs/controlGroup.doc.tsx b/epam-promo/components/layout/docs/controlGroup.doc.tsx index 566110fe1a..2575e5ba7c 100644 --- a/epam-promo/components/layout/docs/controlGroup.doc.tsx +++ b/epam-promo/components/layout/docs/controlGroup.doc.tsx @@ -31,4 +31,4 @@ const controlGroupDoc = new DocBuilder({ name: 'ControlGroup' ] }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = controlGroupDoc; \ No newline at end of file +export default controlGroupDoc; diff --git a/epam-promo/components/layout/docs/iconContainer.doc.tsx b/epam-promo/components/layout/docs/iconContainer.doc.tsx index 39ead2ca50..ab4ab28ac9 100644 --- a/epam-promo/components/layout/docs/iconContainer.doc.tsx +++ b/epam-promo/components/layout/docs/iconContainer.doc.tsx @@ -22,4 +22,4 @@ const iconContainerDoc = new DocBuilder({ .prop('rotate', { examples: ['0', '90cw', '180', '90ccw'], defaultValue: null }) .withContexts(DefaultContext, FormContext); -export = iconContainerDoc; \ No newline at end of file +export default iconContainerDoc; diff --git a/epam-promo/components/layout/docs/labeledInput.doc.tsx b/epam-promo/components/layout/docs/labeledInput.doc.tsx index 49d8611a0c..a1fad2f088 100644 --- a/epam-promo/components/layout/docs/labeledInput.doc.tsx +++ b/epam-promo/components/layout/docs/labeledInput.doc.tsx @@ -20,4 +20,4 @@ const labeledInputDoc = new DocBuilder({ n .prop('validationMessage', { examples: [{ value: 'This field is mandatory', isDefault: true}]}) .withContexts(DefaultContext, ResizableContext, FormContext); -export = labeledInputDoc; \ No newline at end of file +export default labeledInputDoc; diff --git a/epam-promo/components/layout/docs/radioGroup.doc.ts b/epam-promo/components/layout/docs/radioGroup.doc.ts index 14c2d3fc3f..e76d686ad7 100644 --- a/epam-promo/components/layout/docs/radioGroup.doc.ts +++ b/epam-promo/components/layout/docs/radioGroup.doc.ts @@ -21,4 +21,4 @@ const radioGroupDoc = new DocBuilder>({ name: 'RadioGroup', .prop('direction', { examples:['vertical', 'horizontal'], defaultValue: 'vertical' }) .withContexts(DefaultContext, FormContext); -export = radioGroupDoc; \ No newline at end of file +export default radioGroupDoc; diff --git a/epam-promo/components/navigation/docs/anchor.doc.tsx b/epam-promo/components/navigation/docs/anchor.doc.tsx index 663ffe7d81..004853dad1 100644 --- a/epam-promo/components/navigation/docs/anchor.doc.tsx +++ b/epam-promo/components/navigation/docs/anchor.doc.tsx @@ -34,4 +34,4 @@ const AnchorDoc = new DocBuilder({ name: 'Anchor', component: Ancho }) .withContexts(DefaultContext); -export = AnchorDoc; +export default AnchorDoc; diff --git a/epam-promo/components/navigation/docs/mainMenu.doc.tsx b/epam-promo/components/navigation/docs/mainMenu.doc.tsx index 88cf2ecda5..ca38be2a36 100644 --- a/epam-promo/components/navigation/docs/mainMenu.doc.tsx +++ b/epam-promo/components/navigation/docs/mainMenu.doc.tsx @@ -100,4 +100,4 @@ const mainMenuDoc = new DocBuilder({ name: 'MainMe }) .withContexts(ResizableContext); -export = mainMenuDoc; +export default mainMenuDoc; diff --git a/epam-promo/components/overlays/docs/alert.doc.tsx b/epam-promo/components/overlays/docs/alert.doc.tsx index f633d3083f..a207db3485 100644 --- a/epam-promo/components/overlays/docs/alert.doc.tsx +++ b/epam-promo/components/overlays/docs/alert.doc.tsx @@ -55,4 +55,4 @@ const SnackbarCardDoc = new DocBuilder({ name: 'Alert', component: A }) .withContexts(ResizableContext); -export = SnackbarCardDoc; +export default SnackbarCardDoc; diff --git a/epam-promo/components/overlays/docs/dropdown.doc.tsx b/epam-promo/components/overlays/docs/dropdown.doc.tsx index c9babf37ce..846eddcbd7 100644 --- a/epam-promo/components/overlays/docs/dropdown.doc.tsx +++ b/epam-promo/components/overlays/docs/dropdown.doc.tsx @@ -43,4 +43,4 @@ const dropdownMenuDoc = new DocBuilder({ name: 'Dropdown', compon }) .withContexts(DefaultContext); -export = dropdownMenuDoc; +export default dropdownMenuDoc; diff --git a/epam-promo/components/overlays/docs/dropdownContainer.doc.tsx b/epam-promo/components/overlays/docs/dropdownContainer.doc.tsx index c5f4a2a724..4dbab62cec 100644 --- a/epam-promo/components/overlays/docs/dropdownContainer.doc.tsx +++ b/epam-promo/components/overlays/docs/dropdownContainer.doc.tsx @@ -21,4 +21,4 @@ const dropdownContainerDoc = new DocBuilder({ isRequired: true, }).withContexts(DefaultContext); -export = dropdownContainerDoc; \ No newline at end of file +export default dropdownContainerDoc; diff --git a/epam-promo/components/overlays/docs/modalFooter.doc.tsx b/epam-promo/components/overlays/docs/modalFooter.doc.tsx index fa5d5d273e..9931a9b904 100644 --- a/epam-promo/components/overlays/docs/modalFooter.doc.tsx +++ b/epam-promo/components/overlays/docs/modalFooter.doc.tsx @@ -30,4 +30,4 @@ const ModalFooterDoc = new DocBuilder({ name: 'ModalFooter', c }) .withContexts(DefaultContext); -export = ModalFooterDoc; \ No newline at end of file +export default ModalFooterDoc; diff --git a/epam-promo/components/overlays/docs/modalHeader.doc.tsx b/epam-promo/components/overlays/docs/modalHeader.doc.tsx index b2a38ae332..753970ccc6 100644 --- a/epam-promo/components/overlays/docs/modalHeader.doc.tsx +++ b/epam-promo/components/overlays/docs/modalHeader.doc.tsx @@ -33,4 +33,4 @@ const ModalHeaderDoc = new DocBuilder({ name: 'ModalHeader', c }) .withContexts(DefaultContext); -export = ModalHeaderDoc; \ No newline at end of file +export default ModalHeaderDoc; diff --git a/epam-promo/components/overlays/docs/notificationCard.doc.tsx b/epam-promo/components/overlays/docs/notificationCard.doc.tsx index 6c3c0ff246..eeb9f58138 100644 --- a/epam-promo/components/overlays/docs/notificationCard.doc.tsx +++ b/epam-promo/components/overlays/docs/notificationCard.doc.tsx @@ -57,4 +57,4 @@ const SnackbarCardDoc = new DocBuilder({ name: 'Notificat }) .withContexts(DefaultContext); -export = SnackbarCardDoc; +export default SnackbarCardDoc; diff --git a/epam-promo/components/overlays/docs/tooltip.doc.tsx b/epam-promo/components/overlays/docs/tooltip.doc.tsx index 9c72807f7e..0792e9c32c 100644 --- a/epam-promo/components/overlays/docs/tooltip.doc.tsx +++ b/epam-promo/components/overlays/docs/tooltip.doc.tsx @@ -26,4 +26,4 @@ const tooltipDoc = new DocBuilder({ name: 'Tooltip', .prop('color', { examples: ['white', { name: 'gray90', value: 'gray90', isDefault: true }, 'red'] }) .withContexts(DefaultContext); -export = tooltipDoc; \ No newline at end of file +export default tooltipDoc; diff --git a/epam-promo/components/pickers/docs/pickerInput.doc.tsx b/epam-promo/components/pickers/docs/pickerInput.doc.tsx index 7422e2e905..7379fdff9a 100644 --- a/epam-promo/components/pickers/docs/pickerInput.doc.tsx +++ b/epam-promo/components/pickers/docs/pickerInput.doc.tsx @@ -55,4 +55,4 @@ const PickerInputDoc = new DocBuilder & PickerInp ] }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = PickerInputDoc; +export default PickerInputDoc; diff --git a/epam-promo/components/pickers/docs/pickerModal.doc.tsx b/epam-promo/components/pickers/docs/pickerModal.doc.tsx index 0cadd1806a..21ded87238 100644 --- a/epam-promo/components/pickers/docs/pickerModal.doc.tsx +++ b/epam-promo/components/pickers/docs/pickerModal.doc.tsx @@ -65,4 +65,4 @@ const PickerInputDoc = new DocBuilder>({ name: 'Picke ] }) .withContexts(ModalContext); -export = PickerInputDoc; \ No newline at end of file +export default PickerInputDoc; diff --git a/epam-promo/components/pickers/docs/pickerToggler.doc.tsx b/epam-promo/components/pickers/docs/pickerToggler.doc.tsx index 2cf84a3f1b..f510dc40e8 100644 --- a/epam-promo/components/pickers/docs/pickerToggler.doc.tsx +++ b/epam-promo/components/pickers/docs/pickerToggler.doc.tsx @@ -19,4 +19,4 @@ const PickerTogglerDoc = new DocBuilder & PickerTog .prop('placeholder', { examples: ['Select Country', 'Select Person'], type: 'string', defaultValue: 'Please select' }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = PickerTogglerDoc; \ No newline at end of file +export default PickerTogglerDoc; diff --git a/epam-promo/components/tables/docs/dataTableCell.doc.tsx b/epam-promo/components/tables/docs/dataTableCell.doc.tsx index 04b7854b15..99dfb0ffda 100644 --- a/epam-promo/components/tables/docs/dataTableCell.doc.tsx +++ b/epam-promo/components/tables/docs/dataTableCell.doc.tsx @@ -41,4 +41,4 @@ const DataTableCellDoc = new DocBuilder( }) .withContexts(ResizableContext, DefaultContext, FormContext, TableContext); -export = DataTableCellDoc; \ No newline at end of file +export default DataTableCellDoc; diff --git a/epam-promo/components/tables/docs/dataTableHeaderCell.doc.tsx b/epam-promo/components/tables/docs/dataTableHeaderCell.doc.tsx index 627231fdc1..1e694817e9 100644 --- a/epam-promo/components/tables/docs/dataTableHeaderCell.doc.tsx +++ b/epam-promo/components/tables/docs/dataTableHeaderCell.doc.tsx @@ -50,4 +50,4 @@ const DataTableHeaderCellDoc = new DocBuilder({ n }) .withContexts(TableContext, ResizableContext, DefaultContext); -export = DataTableRowDoc; \ No newline at end of file +export default DataTableRowDoc; diff --git a/epam-promo/components/typography/docs/richTextView.doc.tsx b/epam-promo/components/typography/docs/richTextView.doc.tsx index af97ce8efb..c674547d2a 100644 --- a/epam-promo/components/typography/docs/richTextView.doc.tsx +++ b/epam-promo/components/typography/docs/richTextView.doc.tsx @@ -133,4 +133,4 @@ export const MyComponent =
` } }) .withContexts(DefaultContext); -export = textDoc; +export default textDoc; diff --git a/epam-promo/components/typography/docs/text.doc.tsx b/epam-promo/components/typography/docs/text.doc.tsx index 3b22c3482d..da39a5828c 100644 --- a/epam-promo/components/typography/docs/text.doc.tsx +++ b/epam-promo/components/typography/docs/text.doc.tsx @@ -21,4 +21,4 @@ const textDoc = new DocBuilder({ name: 'Text', component: }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = textDoc; \ No newline at end of file +export default textDoc; diff --git a/epam-promo/components/typography/docs/textPlaceholder.doc.tsx b/epam-promo/components/typography/docs/textPlaceholder.doc.tsx index bfc7b0f66e..96352d3a4a 100644 --- a/epam-promo/components/typography/docs/textPlaceholder.doc.tsx +++ b/epam-promo/components/typography/docs/textPlaceholder.doc.tsx @@ -14,4 +14,4 @@ const textPlaceholderDoc = new DocBuilder({ name: 'TextPla .prop('isNotAnimated', { examples: [true, false] }) .withContexts(DefaultContext, FormContext); -export = textPlaceholderDoc; \ No newline at end of file +export default textPlaceholderDoc; diff --git a/epam-promo/components/widgets/docs/avatar.doc.tsx b/epam-promo/components/widgets/docs/avatar.doc.tsx index 07da84bab3..3ab5f8e03c 100644 --- a/epam-promo/components/widgets/docs/avatar.doc.tsx +++ b/epam-promo/components/widgets/docs/avatar.doc.tsx @@ -23,4 +23,4 @@ const AvatarDoc = new DocBuilder({ name: 'Avatar', component: Avata }) .withContexts(DefaultContext); -export = AvatarDoc; \ No newline at end of file +export default AvatarDoc; diff --git a/epam-promo/components/widgets/docs/avatarStack.doc.tsx b/epam-promo/components/widgets/docs/avatarStack.doc.tsx index 4457a216cc..79399525ac 100644 --- a/epam-promo/components/widgets/docs/avatarStack.doc.tsx +++ b/epam-promo/components/widgets/docs/avatarStack.doc.tsx @@ -65,4 +65,4 @@ const AvatarStackDoc = new DocBuilder({ name: 'AvatarStack', c }) .withContexts(DefaultContext); -export = AvatarStackDoc; \ No newline at end of file +export default AvatarStackDoc; diff --git a/epam-promo/components/widgets/docs/badge.doc.tsx b/epam-promo/components/widgets/docs/badge.doc.tsx index 0736e1abd2..932b3f1a6b 100644 --- a/epam-promo/components/widgets/docs/badge.doc.tsx +++ b/epam-promo/components/widgets/docs/badge.doc.tsx @@ -21,4 +21,4 @@ const badgeDoc = new DocBuilder({ name: 'Badge', compon .prop('size', { examples: ['18', '24', '30', '36', '42', '48'], defaultValue: '36' }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = badgeDoc; \ No newline at end of file +export default badgeDoc; diff --git a/epam-promo/components/widgets/docs/paginator.doc.tsx b/epam-promo/components/widgets/docs/paginator.doc.tsx index 9f3cf168e7..fb476620fb 100644 --- a/epam-promo/components/widgets/docs/paginator.doc.tsx +++ b/epam-promo/components/widgets/docs/paginator.doc.tsx @@ -10,4 +10,4 @@ const paginatorDoc = new DocBuilder({name: 'Paginator', componen .prop('totalPages', { examples: [5 , 8, { value: 10, isDefault: true }, 100, 1000], isRequired: true }) .withContexts(DefaultContext); -export = paginatorDoc; \ No newline at end of file +export default paginatorDoc; diff --git a/epam-promo/components/widgets/docs/spinner.doc.tsx b/epam-promo/components/widgets/docs/spinner.doc.tsx index 888f1bf4cc..a8c1975934 100644 --- a/epam-promo/components/widgets/docs/spinner.doc.tsx +++ b/epam-promo/components/widgets/docs/spinner.doc.tsx @@ -9,4 +9,4 @@ const spinnerDoc = new DocBuilder({ name: 'Spinner', .prop('color', { renderEditor: (editable, examples) => ({ value: i, hex: colors[i] })) } { ...editable } />, examples: allSpinnerColors }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = spinnerDoc; \ No newline at end of file +export default spinnerDoc; diff --git a/epam-promo/components/widgets/docs/tag.doc.tsx b/epam-promo/components/widgets/docs/tag.doc.tsx index 4ae9460d27..e09df1228b 100644 --- a/epam-promo/components/widgets/docs/tag.doc.tsx +++ b/epam-promo/components/widgets/docs/tag.doc.tsx @@ -15,4 +15,4 @@ const tagDoc = new DocBuilder({ name: 'Tag', component: T .prop('size', { examples : ['18', '24', '30', '36', '42', '48'], defaultValue: '36' }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = tagDoc; \ No newline at end of file +export default tagDoc; diff --git a/loveship/components/buttons/docs/button.doc.tsx b/loveship/components/buttons/docs/button.doc.tsx index 04a27f0ded..c3fc34f59e 100644 --- a/loveship/components/buttons/docs/button.doc.tsx +++ b/loveship/components/buttons/docs/button.doc.tsx @@ -24,4 +24,4 @@ const ButtonDoc = new DocBuilder({ name: 'Button', com .prop('fill', { examples: allFillStyles, defaultValue: 'solid' }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = ButtonDoc; \ No newline at end of file +export default ButtonDoc; diff --git a/loveship/components/buttons/docs/iconButton.doc.ts b/loveship/components/buttons/docs/iconButton.doc.ts index 610390fe04..d2f5ab7884 100644 --- a/loveship/components/buttons/docs/iconButton.doc.ts +++ b/loveship/components/buttons/docs/iconButton.doc.ts @@ -6,4 +6,4 @@ const IconButtonDoc = new DocBuilder({ name: 'IconButton', comp .implements([onClickDoc, isDisabledDoc, isInvalidDoc, iCanRedirectDoc, colorDoc, iconDoc]) .withContexts(DefaultContext, FormContext); -export = IconButtonDoc; \ No newline at end of file +export default IconButtonDoc; diff --git a/loveship/components/buttons/docs/linkButton.doc.tsx b/loveship/components/buttons/docs/linkButton.doc.tsx index 8edd99e79f..59c3effb8d 100644 --- a/loveship/components/buttons/docs/linkButton.doc.tsx +++ b/loveship/components/buttons/docs/linkButton.doc.tsx @@ -13,4 +13,4 @@ const LinkButtonDoc = new DocBuilder({ name: 'Link ], type: 'string' }) .withContexts(DefaultContext, FormContext); -export = LinkButtonDoc; \ No newline at end of file +export default LinkButtonDoc; diff --git a/loveship/components/buttons/docs/tabButton.doc.ts b/loveship/components/buttons/docs/tabButton.doc.ts index 4bfda8f858..6d4d1eb845 100644 --- a/loveship/components/buttons/docs/tabButton.doc.ts +++ b/loveship/components/buttons/docs/tabButton.doc.ts @@ -17,4 +17,4 @@ const TabButtonDoc = new DocBuilder({ name: 'TabBut .prop('theme', { examples: (['light', 'dark']), defaultValue: 'light' }) .withContexts(TabButtonContext); -export = TabButtonDoc; \ No newline at end of file +export default TabButtonDoc; diff --git a/loveship/components/buttons/docs/verticalTabButton.doc.ts b/loveship/components/buttons/docs/verticalTabButton.doc.ts index d99b8e77de..85f2aeffed 100644 --- a/loveship/components/buttons/docs/verticalTabButton.doc.ts +++ b/loveship/components/buttons/docs/verticalTabButton.doc.ts @@ -17,4 +17,4 @@ const TabButtonDoc = new DocBuilder({ name: 'TabBut .prop('theme', { examples: (['light', 'dark']), defaultValue: 'light' }) .withContexts(VerticalTabButtonContext); -export = TabButtonDoc; \ No newline at end of file +export default TabButtonDoc; diff --git a/loveship/components/datePickers/docs/calendar.doc.ts b/loveship/components/datePickers/docs/calendar.doc.ts index cc4c27db6c..ade4f1443b 100644 --- a/loveship/components/datePickers/docs/calendar.doc.ts +++ b/loveship/components/datePickers/docs/calendar.doc.ts @@ -18,4 +18,4 @@ const DatepickerDoc = new DocBuilder>({ name: 'Calendar', c .prop('hideAnotherMonths', {examples: [true, false]}) .withContexts(DefaultContext, FormContext, ResizableContext); -export = DatepickerDoc; +export default DatepickerDoc; diff --git a/loveship/components/datePickers/docs/datePicker.doc.tsx b/loveship/components/datePickers/docs/datePicker.doc.tsx index a3b19a3181..e5bd65a409 100644 --- a/loveship/components/datePickers/docs/datePicker.doc.tsx +++ b/loveship/components/datePickers/docs/datePicker.doc.tsx @@ -51,4 +51,4 @@ const DatePickerDoc = new DocBuilder({ name: 'DatePicker', comp }) .withContexts(DefaultContext, FormContext, ResizableContext, TableContext); -export = DatePickerDoc; +export default DatePickerDoc; diff --git a/loveship/components/datePickers/docs/rangeDatePicker.doc.tsx b/loveship/components/datePickers/docs/rangeDatePicker.doc.tsx index d9f6cd8b59..01a06f0b49 100644 --- a/loveship/components/datePickers/docs/rangeDatePicker.doc.tsx +++ b/loveship/components/datePickers/docs/rangeDatePicker.doc.tsx @@ -103,4 +103,4 @@ const RangeDatePickerDoc = new DocBuilder({ name: 'RangeDa .prop('isHoliday', { examples: [{ name: 'without Holidays', value: () => false }] }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = RangeDatePickerDoc; +export default RangeDatePickerDoc; diff --git a/loveship/components/inputs/Slider/docs/rangeSlider.doc.ts b/loveship/components/inputs/Slider/docs/rangeSlider.doc.ts index 334de023a2..4651da9b0f 100644 --- a/loveship/components/inputs/Slider/docs/rangeSlider.doc.ts +++ b/loveship/components/inputs/Slider/docs/rangeSlider.doc.ts @@ -12,4 +12,4 @@ const rangeSliderDoc = new DocBuilder & RangeS .prop('splitAt', { examples: [2, 10, 20, { value: 50, isDefault: true }], defaultValue: 50 }) .withContexts(DefaultContext, FormContext); -export = rangeSliderDoc; \ No newline at end of file +export default rangeSliderDoc; diff --git a/loveship/components/inputs/Slider/docs/slider.doc.ts b/loveship/components/inputs/Slider/docs/slider.doc.ts index e8de5bdfc6..adb09b53e9 100644 --- a/loveship/components/inputs/Slider/docs/slider.doc.ts +++ b/loveship/components/inputs/Slider/docs/slider.doc.ts @@ -21,4 +21,4 @@ const sliderDoc = new DocBuilder & SliderMods>({ name: ' }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = sliderDoc; +export default sliderDoc; diff --git a/loveship/components/inputs/docs/checkbox.doc.tsx b/loveship/components/inputs/docs/checkbox.doc.tsx index 27e5310d1f..c21596037b 100644 --- a/loveship/components/inputs/docs/checkbox.doc.tsx +++ b/loveship/components/inputs/docs/checkbox.doc.tsx @@ -15,4 +15,4 @@ const CheckboxDoc = new DocBuilder({ name: 'Checkb .prop('indeterminate', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, FormContext, TableContext); -export = CheckboxDoc; \ No newline at end of file +export default CheckboxDoc; diff --git a/loveship/components/inputs/docs/multiSwitch.doc.tsx b/loveship/components/inputs/docs/multiSwitch.doc.tsx index 8154ee7d6b..ac26781b2d 100644 --- a/loveship/components/inputs/docs/multiSwitch.doc.tsx +++ b/loveship/components/inputs/docs/multiSwitch.doc.tsx @@ -30,4 +30,4 @@ const multiSwitchDoc = new DocBuilder>({ name: 'MultiSwitch .prop('color', { renderEditor: (editable, examples) => ({ value: i, hex: colors[i] })) } { ...editable } />, examples: ['sky', 'night600'] }) .withContexts(DefaultContext, FormContext); -export = multiSwitchDoc; +export default multiSwitchDoc; diff --git a/loveship/components/inputs/docs/numericInput.doc.ts b/loveship/components/inputs/docs/numericInput.doc.ts index cdb8228625..0767e5bf6c 100644 --- a/loveship/components/inputs/docs/numericInput.doc.ts +++ b/loveship/components/inputs/docs/numericInput.doc.ts @@ -16,4 +16,4 @@ const NumericInputDoc = new DocBuilder({ n .prop('disableLocaleFormatting', { defaultValue: false, examples: [true, false] }) .withContexts(DefaultContext, FormContext, TableContext, ResizableContext); -export = NumericInputDoc; \ No newline at end of file +export default NumericInputDoc; diff --git a/loveship/components/inputs/docs/radioInput.doc.tsx b/loveship/components/inputs/docs/radioInput.doc.tsx index 6bccdb7845..790e784ae9 100644 --- a/loveship/components/inputs/docs/radioInput.doc.tsx +++ b/loveship/components/inputs/docs/radioInput.doc.tsx @@ -11,4 +11,4 @@ const RadioInputDoc = new DocBuilder({ name: ' .prop('theme', { examples: (['light', 'dark']), defaultValue: 'light' }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = RadioInputDoc; \ No newline at end of file +export default RadioInputDoc; diff --git a/loveship/components/inputs/docs/rating.doc.ts b/loveship/components/inputs/docs/rating.doc.ts index 6df17455f8..2bf89c6554 100644 --- a/loveship/components/inputs/docs/rating.doc.ts +++ b/loveship/components/inputs/docs/rating.doc.ts @@ -13,4 +13,4 @@ const RatingDoc = new DocBuilder({ name: 'Rating', com .prop('hint', { examples: [{ name: 'hint', value: val => `now is ${val} stars` }] }) .withContexts(DefaultContext, FormContext); -export = RatingDoc; \ No newline at end of file +export default RatingDoc; diff --git a/loveship/components/inputs/docs/searchInput.doc.ts b/loveship/components/inputs/docs/searchInput.doc.ts index 9c89aa5860..1dd7bfe389 100644 --- a/loveship/components/inputs/docs/searchInput.doc.ts +++ b/loveship/components/inputs/docs/searchInput.doc.ts @@ -17,4 +17,4 @@ const SearchInputDoc = new DocBuilder [ctx.getCallback('onAccept')] }) .prop('onCancel', { examples: ctx => [ctx.getCallback('onCancel')] }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = SearchInputDoc; \ No newline at end of file +export default SearchInputDoc; diff --git a/loveship/components/inputs/docs/sliderRating.doc.tsx b/loveship/components/inputs/docs/sliderRating.doc.tsx index 3c3a4ab61a..df1818804a 100644 --- a/loveship/components/inputs/docs/sliderRating.doc.tsx +++ b/loveship/components/inputs/docs/sliderRating.doc.tsx @@ -22,4 +22,4 @@ const SliderRatingDoc = new DocBuilder>({ name: 'Slide ]}) .withContexts(DefaultContext, FormContext); -export = SliderRatingDoc; \ No newline at end of file +export default SliderRatingDoc; diff --git a/loveship/components/inputs/docs/switch.doc.ts b/loveship/components/inputs/docs/switch.doc.ts index e1985bb2f0..aaf40bb8ba 100644 --- a/loveship/components/inputs/docs/switch.doc.ts +++ b/loveship/components/inputs/docs/switch.doc.ts @@ -11,4 +11,4 @@ const SwitchDoc = new DocBuilder({ name: 'Switch', com .prop('value', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, ResizableContext, FormContext); -export = SwitchDoc; \ No newline at end of file +export default SwitchDoc; diff --git a/loveship/components/inputs/docs/textArea.doc.ts b/loveship/components/inputs/docs/textArea.doc.ts index 265c22d103..4408aa027d 100644 --- a/loveship/components/inputs/docs/textArea.doc.ts +++ b/loveship/components/inputs/docs/textArea.doc.ts @@ -17,4 +17,4 @@ const TextareaDoc = new DocBuilder({ name: 'TextAr .prop('autoSize', { examples: [true, false], defaultValue: false }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = TextareaDoc; \ No newline at end of file +export default TextareaDoc; diff --git a/loveship/components/inputs/docs/textInput.doc.ts b/loveship/components/inputs/docs/textInput.doc.ts index 3993eba5eb..aacdb20a00 100644 --- a/loveship/components/inputs/docs/textInput.doc.ts +++ b/loveship/components/inputs/docs/textInput.doc.ts @@ -20,4 +20,4 @@ const TextInputDoc = new DocBuilder({ name: 'Tex .prop('type', { examples: ['text', 'password'], type: 'string', defaultValue: 'text' }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = TextInputDoc; \ No newline at end of file +export default TextInputDoc; diff --git a/loveship/components/inputs/docs/timePicker.doc.ts b/loveship/components/inputs/docs/timePicker.doc.ts index 39f8cf90ae..56885a752f 100644 --- a/loveship/components/inputs/docs/timePicker.doc.ts +++ b/loveship/components/inputs/docs/timePicker.doc.ts @@ -10,4 +10,4 @@ const TimePickerDoc = new DocBuilder({ name: 'TimePicker', comp .prop('format', { examples: [12, 24], defaultValue: 12 }) .withContexts(DefaultContext, ResizableContext, FormContext, TableContext); -export = TimePickerDoc; \ No newline at end of file +export default TimePickerDoc; diff --git a/loveship/components/layout/FlexItems/docs/flexRow.doc.tsx b/loveship/components/layout/FlexItems/docs/flexRow.doc.tsx index 9648f2cf86..e05fbdc5c1 100644 --- a/loveship/components/layout/FlexItems/docs/flexRow.doc.tsx +++ b/loveship/components/layout/FlexItems/docs/flexRow.doc.tsx @@ -77,4 +77,4 @@ const flexRowDoc = new DocBuilder({ name: 'FlexRow', com .prop('type', { examples:['form', 'panel'], defaultValue: 'panel' }) .withContexts(DefaultContext, ResizableContext); -export = flexRowDoc; +export default flexRowDoc; diff --git a/loveship/components/layout/FlexItems/docs/panel.doc.tsx b/loveship/components/layout/FlexItems/docs/panel.doc.tsx index ec8ce9a5a3..89d9dd7f05 100644 --- a/loveship/components/layout/FlexItems/docs/panel.doc.tsx +++ b/loveship/components/layout/FlexItems/docs/panel.doc.tsx @@ -73,4 +73,4 @@ const panelDoc = new DocBuilder({ name: 'Panel', compon .prop('background', { examples: [{ value: 'white', isDefault: true }, 'night50'] }) .withContexts(ResizableContext, DefaultContext); -export = panelDoc; +export default panelDoc; diff --git a/loveship/components/layout/docs/accordion.doc.tsx b/loveship/components/layout/docs/accordion.doc.tsx index a9c909f363..3cc88503d3 100644 --- a/loveship/components/layout/docs/accordion.doc.tsx +++ b/loveship/components/layout/docs/accordion.doc.tsx @@ -65,4 +65,4 @@ const accordionDoc = new DocBuilder({ name: 'Acc .prop('mode', { examples: [{ value: 'block', isDefault: true }, 'inline'] }) .withContexts(ResizableContext); -export = accordionDoc; \ No newline at end of file +export default accordionDoc; diff --git a/loveship/components/layout/docs/blocker.doc.ts b/loveship/components/layout/docs/blocker.doc.ts index a063681603..9689752e66 100644 --- a/loveship/components/layout/docs/blocker.doc.ts +++ b/loveship/components/layout/docs/blocker.doc.ts @@ -9,4 +9,4 @@ const blockerDoc = new DocBuilder({ name: 'Blocker', component: Bl .prop('hideSpinner', { examples:[true] }) .withContexts(RelativePanelContext); -export = blockerDoc; \ No newline at end of file +export default blockerDoc; diff --git a/loveship/components/layout/docs/checkboxGroup.doc.ts b/loveship/components/layout/docs/checkboxGroup.doc.ts index 0c522ac722..e300d655dc 100644 --- a/loveship/components/layout/docs/checkboxGroup.doc.ts +++ b/loveship/components/layout/docs/checkboxGroup.doc.ts @@ -20,4 +20,4 @@ const checkboxGroupDoc = new DocBuilder>({ name: 'Checkb .prop('direction', { examples:['vertical', 'horizontal'], defaultValue: 'vertical' }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = checkboxGroupDoc; \ No newline at end of file +export default checkboxGroupDoc; diff --git a/loveship/components/layout/docs/controlGroup.doc.tsx b/loveship/components/layout/docs/controlGroup.doc.tsx index 1cd8759026..f10e30ef33 100644 --- a/loveship/components/layout/docs/controlGroup.doc.tsx +++ b/loveship/components/layout/docs/controlGroup.doc.tsx @@ -31,4 +31,4 @@ const controlGroupDoc = new DocBuilder({ name: 'ControlGroup' ] }) .withContexts(DefaultContext, FormContext, ResizableContext); -export = controlGroupDoc; \ No newline at end of file +export default controlGroupDoc; diff --git a/loveship/components/layout/docs/iconContainer.doc.tsx b/loveship/components/layout/docs/iconContainer.doc.tsx index cbe85c41b3..36bc8dd207 100644 --- a/loveship/components/layout/docs/iconContainer.doc.tsx +++ b/loveship/components/layout/docs/iconContainer.doc.tsx @@ -23,4 +23,4 @@ const iconContainerDoc = new DocBuilder({ .prop('rotate', { examples: ['0', '90cw', '180', '90ccw'], defaultValue: null }) .withContexts(DefaultContext, FormContext); -export = iconContainerDoc; \ No newline at end of file +export default iconContainerDoc; diff --git a/loveship/components/layout/docs/labeledInput.doc.tsx b/loveship/components/layout/docs/labeledInput.doc.tsx index 4b806f9117..be11744818 100644 --- a/loveship/components/layout/docs/labeledInput.doc.tsx +++ b/loveship/components/layout/docs/labeledInput.doc.tsx @@ -22,4 +22,4 @@ const labeledInputDoc = new DocBuilder({ n .prop('validationMessage', { examples: [{ value: 'This field is mandatory', isDefault: true}]}) .withContexts(DefaultContext, ResizableContext, FormContext); -export = labeledInputDoc; \ No newline at end of file +export default labeledInputDoc; diff --git a/loveship/components/layout/docs/radioGroup.doc.ts b/loveship/components/layout/docs/radioGroup.doc.ts index 14c2d3fc3f..e76d686ad7 100644 --- a/loveship/components/layout/docs/radioGroup.doc.ts +++ b/loveship/components/layout/docs/radioGroup.doc.ts @@ -21,4 +21,4 @@ const radioGroupDoc = new DocBuilder>({ name: 'RadioGroup', .prop('direction', { examples:['vertical', 'horizontal'], defaultValue: 'vertical' }) .withContexts(DefaultContext, FormContext); -export = radioGroupDoc; \ No newline at end of file +export default radioGroupDoc; diff --git a/loveship/components/navigation/docs/mainMenu.doc.tsx b/loveship/components/navigation/docs/mainMenu.doc.tsx index bbcc0cc9db..247fc31bd5 100644 --- a/loveship/components/navigation/docs/mainMenu.doc.tsx +++ b/loveship/components/navigation/docs/mainMenu.doc.tsx @@ -69,4 +69,4 @@ const mainMenuDoc = new DocBuilder({ name: 'MainMe }) .withContexts(ResizableContext); -export = mainMenuDoc; +export default mainMenuDoc; diff --git a/loveship/components/overlays/docs/alert.doc.tsx b/loveship/components/overlays/docs/alert.doc.tsx index a363627335..955b4faa36 100644 --- a/loveship/components/overlays/docs/alert.doc.tsx +++ b/loveship/components/overlays/docs/alert.doc.tsx @@ -59,4 +59,4 @@ const SnackbarCardDoc = new DocBuilder({ name: 'Alert', component: A }) .withContexts(ResizableContext); -export = SnackbarCardDoc; \ No newline at end of file +export default SnackbarCardDoc; diff --git a/loveship/components/overlays/docs/dropdown.doc.tsx b/loveship/components/overlays/docs/dropdown.doc.tsx index 80173b846a..4b5623f156 100644 --- a/loveship/components/overlays/docs/dropdown.doc.tsx +++ b/loveship/components/overlays/docs/dropdown.doc.tsx @@ -48,4 +48,4 @@ const dropdownMenuDoc = new DocBuilder({ n }) .withContexts(DefaultContext); -export = dropdownMenuDoc; +export default dropdownMenuDoc; diff --git a/loveship/components/overlays/docs/dropdownContainer.doc.tsx b/loveship/components/overlays/docs/dropdownContainer.doc.tsx index e519d8e31c..f8ac6e5e88 100644 --- a/loveship/components/overlays/docs/dropdownContainer.doc.tsx +++ b/loveship/components/overlays/docs/dropdownContainer.doc.tsx @@ -29,4 +29,4 @@ const dropdownContainerDoc = new DocBuilder({ isRequired: true, }).withContexts(DefaultContext); -export = dropdownContainerDoc; \ No newline at end of file +export default dropdownContainerDoc; diff --git a/loveship/components/overlays/docs/dropdownMenu.doc.tsx b/loveship/components/overlays/docs/dropdownMenu.doc.tsx index cf4f1e9aed..80603fbd8f 100644 --- a/loveship/components/overlays/docs/dropdownMenu.doc.tsx +++ b/loveship/components/overlays/docs/dropdownMenu.doc.tsx @@ -28,4 +28,4 @@ const dropdownMenuDoc = new DocBuilder({ n }], isRequired: true }) .withContexts(MainMenuContext, DefaultContext); -export = dropdownMenuDoc; +export default dropdownMenuDoc; diff --git a/loveship/components/overlays/docs/dropdownMenuButton.doc.tsx b/loveship/components/overlays/docs/dropdownMenuButton.doc.tsx index f8f15ac534..5b20b72a86 100644 --- a/loveship/components/overlays/docs/dropdownMenuButton.doc.tsx +++ b/loveship/components/overlays/docs/dropdownMenuButton.doc.tsx @@ -15,4 +15,4 @@ const dropdownMenuButtonDoc = new DocBuilder .prop('noIcon', { examples: [true] }) .withContexts(DropdownMenuContext); -export = dropdownMenuButtonDoc; \ No newline at end of file +export default dropdownMenuButtonDoc; diff --git a/loveship/components/overlays/docs/modalFooter.doc.tsx b/loveship/components/overlays/docs/modalFooter.doc.tsx index 7bd0380275..f1c0a0a122 100644 --- a/loveship/components/overlays/docs/modalFooter.doc.tsx +++ b/loveship/components/overlays/docs/modalFooter.doc.tsx @@ -31,4 +31,4 @@ const ModalFooterDoc = new DocBuilder({ name: 'ModalFooter', c }) .withContexts(DefaultContext); -export = ModalFooterDoc; \ No newline at end of file +export default ModalFooterDoc; diff --git a/loveship/components/overlays/docs/modalHeader.doc.tsx b/loveship/components/overlays/docs/modalHeader.doc.tsx index 77e5040616..4306c2f78c 100644 --- a/loveship/components/overlays/docs/modalHeader.doc.tsx +++ b/loveship/components/overlays/docs/modalHeader.doc.tsx @@ -33,4 +33,4 @@ const ModalHeaderDoc = new DocBuilder({ name: 'ModalHeader', c }) .withContexts(DefaultContext); -export = ModalHeaderDoc; \ No newline at end of file +export default ModalHeaderDoc; diff --git a/loveship/components/overlays/docs/notificationCard.doc.tsx b/loveship/components/overlays/docs/notificationCard.doc.tsx index 6e7a080fd5..2a648211bb 100644 --- a/loveship/components/overlays/docs/notificationCard.doc.tsx +++ b/loveship/components/overlays/docs/notificationCard.doc.tsx @@ -54,4 +54,4 @@ const SnackbarCardDoc = new DocBuilder({ name: 'Notificat }) .withContexts(DefaultContext); -export = SnackbarCardDoc; \ No newline at end of file +export default SnackbarCardDoc; diff --git a/loveship/components/overlays/docs/snackbarCard.doc.tsx b/loveship/components/overlays/docs/snackbarCard.doc.tsx index 5b334e631e..f1f61ca526 100644 --- a/loveship/components/overlays/docs/snackbarCard.doc.tsx +++ b/loveship/components/overlays/docs/snackbarCard.doc.tsx @@ -32,4 +32,4 @@ const SnackbarCardDoc = new DocBuilder({ name: 'SnackbarCard' }) .withContexts(DefaultContext); -export = SnackbarCardDoc; \ No newline at end of file +export default SnackbarCardDoc; diff --git a/loveship/components/overlays/docs/tooltip.doc.tsx b/loveship/components/overlays/docs/tooltip.doc.tsx index d04ddfec61..f26fde9a97 100644 --- a/loveship/components/overlays/docs/tooltip.doc.tsx +++ b/loveship/components/overlays/docs/tooltip.doc.tsx @@ -24,4 +24,4 @@ const tooltipDoc = new DocBuilder({ name: 'Tooltip', .prop('color', { examples: ['white', 'night900'] }) .withContexts(DefaultContext); -export = tooltipDoc; \ No newline at end of file +export default tooltipDoc; diff --git a/loveship/components/pickers/docs/pickerInput.doc.tsx b/loveship/components/pickers/docs/pickerInput.doc.tsx index 9cf1ae14cf..a33e8b6f5a 100644 --- a/loveship/components/pickers/docs/pickerInput.doc.tsx +++ b/loveship/components/pickers/docs/pickerInput.doc.tsx @@ -71,4 +71,4 @@ const PickerInputDoc = new DocBuilder & PickerInp .prop('autoFocus', { examples: [true, { value: false, isDefault: true}] }) .withContexts(DefaultContext, ResizableContext, TableContext, FormContext); -export = PickerInputDoc; +export default PickerInputDoc; diff --git a/loveship/components/pickers/docs/pickerList.doc.tsx b/loveship/components/pickers/docs/pickerList.doc.tsx index e6e0b8435a..5c851fcbff 100644 --- a/loveship/components/pickers/docs/pickerList.doc.tsx +++ b/loveship/components/pickers/docs/pickerList.doc.tsx @@ -41,4 +41,4 @@ const PickerListDoc = new DocBuilder & PickerListBaseP .prop('noOptionsMessage', { examples: [{ value: No results found