intelicoreact 1.6.2 → 1.6.4
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/dist/ArrayElement.d.ts +13 -0
- package/dist/AsyncReturnType.d.ts +17 -0
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.interface.js +4 -1
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +69 -14
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.stories.js +30 -7
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.test.js +43 -34
- package/dist/Atomic/FormElements/ActionAlert/index.js +17 -2
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.interface.js +4 -1
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +26 -11
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.stories.js +35 -12
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.test.js +29 -20
- package/dist/Atomic/FormElements/AdvancedStatus/index.js +17 -2
- package/dist/Atomic/FormElements/Calendar/Calendar.js +109 -53
- package/dist/Atomic/FormElements/Calendar/Calendar.props.js +4 -1
- package/dist/Atomic/FormElements/Calendar/Calendar.stories.js +74 -10
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.js +4 -1
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +27 -12
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.stories.js +39 -16
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.test.js +46 -37
- package/dist/Atomic/FormElements/CheckboxInput/index.js +17 -2
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.interface.js +4 -1
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +24 -9
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.stories.js +33 -10
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.test.js +34 -25
- package/dist/Atomic/FormElements/CheckboxesLine/index.js +17 -2
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +160 -104
- package/dist/Atomic/FormElements/Datepicker/Datepicker.stories.js +31 -8
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +89 -33
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +154 -98
- package/dist/Atomic/FormElements/Dropdown/Dropdown.stories.js +82 -18
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +25 -10
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +138 -82
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.stories.js +79 -15
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +69 -13
- package/dist/Atomic/FormElements/FileLoader/FileLoader.stories.js +86 -22
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +69 -13
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +71 -15
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +91 -35
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.stories.js +82 -18
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +40 -25
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.stories.js +79 -15
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +78 -22
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.stories.js +33 -10
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +73 -17
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.stories.js +73 -9
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +75 -19
- package/dist/Atomic/FormElements/Input/Input.js +100 -45
- package/dist/Atomic/FormElements/Input/Input.stories.js +73 -9
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +85 -29
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.stories.js +78 -14
- package/dist/Atomic/FormElements/InputColor/InputColor.js +30 -15
- package/dist/Atomic/FormElements/InputColor/InputColor.stories.js +73 -9
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.interface.js +4 -1
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +73 -17
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.stories.js +52 -14
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.test.js +45 -36
- package/dist/Atomic/FormElements/InputCurrency/index.js +16 -1
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +128 -72
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +75 -11
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +30 -15
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +182 -126
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +98 -42
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +24 -9
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +144 -53
- package/dist/Atomic/FormElements/InputLink/InputLink.js +76 -20
- package/dist/Atomic/FormElements/InputLink/InputLink.stories.js +73 -9
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +20 -2
- package/dist/Atomic/FormElements/InputMask/InputMask.js +158 -103
- package/dist/Atomic/FormElements/InputMask/InputMask.stories.js +81 -17
- package/dist/Atomic/FormElements/InputMask/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask/functions.js +59 -14
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +129 -73
- package/dist/Atomic/FormElements/InputMask2/InputMask2.stories.js +77 -13
- package/dist/Atomic/FormElements/InputMask2/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask2/functions.js +59 -14
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +133 -77
- package/dist/Atomic/FormElements/InputMask3/InputMask3.stories.js +79 -15
- package/dist/Atomic/FormElements/InputMask3/config.js +1 -0
- package/dist/Atomic/FormElements/InputMask3/functions.js +59 -14
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +79 -23
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.stories.js +72 -8
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +81 -25
- package/dist/Atomic/FormElements/InputsRow/InputsRow.stories.js +31 -8
- package/dist/Atomic/FormElements/Label/Label.interface.js +4 -1
- package/dist/Atomic/FormElements/Label/Label.js +31 -16
- package/dist/Atomic/FormElements/Label/Label.stories.js +30 -7
- package/dist/Atomic/FormElements/Label/Label.test.js +46 -37
- package/dist/Atomic/FormElements/Label/index.js +17 -2
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +124 -68
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.stories.js +74 -10
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +67 -11
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.stories.js +73 -9
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +105 -49
- package/dist/Atomic/FormElements/NumericInput/NumericInput.stories.js +75 -11
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +67 -11
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.stories.js +31 -8
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +33 -18
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.stories.js +73 -9
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +27 -12
- package/dist/Atomic/FormElements/RadioInput/RadioInput.stories.js +31 -8
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +25 -10
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.stories.js +73 -9
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +92 -36
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +85 -21
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +81 -25
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.stories.js +74 -10
- package/dist/Atomic/FormElements/RangeList/RangeList.js +89 -34
- package/dist/Atomic/FormElements/RangeList/RangeList.stories.js +81 -14
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +37 -14
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +120 -64
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.js +102 -38
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +137 -81
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.stories.js +82 -18
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +26 -11
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.stories.js +85 -21
- package/dist/Atomic/FormElements/Switcher/Switcher.js +31 -16
- package/dist/Atomic/FormElements/Switcher/Switcher.stories.js +74 -10
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +26 -11
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +24 -9
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +68 -13
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.stories.js +74 -10
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +64 -8
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.stories.js +75 -11
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +26 -11
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.stories.js +76 -12
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +81 -25
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.stories.js +78 -14
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +11 -1
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +30 -15
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.stories.js +76 -12
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +70 -14
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.stories.js +73 -9
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +208 -152
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.stories.js +80 -16
- package/dist/Atomic/FormElements/Text/Text.js +25 -10
- package/dist/Atomic/FormElements/Text/Text.stories.js +30 -7
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +27 -12
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.stories.js +74 -10
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.test.js +26 -17
- package/dist/Atomic/FormElements/Textarea/Textarea.js +69 -13
- package/dist/Atomic/FormElements/Textarea/Textarea.stories.js +75 -11
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +77 -22
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.stories.js +76 -12
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +27 -12
- package/dist/Atomic/FormElements/TimeRange/TimeRange.interface.js +4 -1
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +79 -23
- package/dist/Atomic/FormElements/TimeRange/TimeRange.stories.js +30 -7
- package/dist/Atomic/FormElements/TimeRange/TimeRange.test.js +59 -50
- package/dist/Atomic/FormElements/TimeRange/index.js +17 -2
- package/dist/Atomic/FormElements/UserContacts/UserContact.test.js +77 -68
- package/dist/Atomic/FormElements/UserContacts/UserContacts.interface.js +4 -1
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +79 -23
- package/dist/Atomic/FormElements/UserContacts/UserContacts.stories.js +31 -8
- package/dist/Atomic/FormElements/UserContacts/index.js +17 -2
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +71 -15
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.stories.js +78 -14
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +39 -24
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +45 -30
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.stories.js +81 -17
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +11 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +45 -30
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.stories.js +82 -18
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +11 -1
- package/dist/Atomic/Layout/Header/Header.js +83 -27
- package/dist/Atomic/Layout/Header/Header.stories.js +31 -8
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +107 -51
- package/dist/Atomic/Layout/MainMenu/MainMenu.stories.js +31 -8
- package/dist/Atomic/Layout/Spinner/Spinner.interface.js +4 -1
- package/dist/Atomic/Layout/Spinner/Spinner.js +28 -13
- package/dist/Atomic/Layout/Spinner/Spinner.stories.js +30 -7
- package/dist/Atomic/Layout/Spinner/Spinner.test.js +22 -13
- package/dist/Atomic/Layout/Spinner/index.js +17 -2
- package/dist/Atomic/UI/Accordion/Accordion.interface.js +4 -1
- package/dist/Atomic/UI/Accordion/Accordion.js +77 -21
- package/dist/Atomic/UI/Accordion/Accordion.stories.js +36 -10
- package/dist/Atomic/UI/Accordion/Accordion.test.js +18 -9
- package/dist/Atomic/UI/Accordion/AccordionItem.js +84 -28
- package/dist/Atomic/UI/Accordion/AccordionItem.test.js +18 -9
- package/dist/Atomic/UI/Accordion/index.js +17 -2
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +99 -43
- package/dist/Atomic/UI/AccordionTable/AccordionTable.stories.js +80 -16
- package/dist/Atomic/UI/AccordionText/AccordionText.js +73 -18
- package/dist/Atomic/UI/AccordionText/AccordionText.stories.js +59 -36
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +94 -38
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +70 -14
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.stories.js +31 -8
- package/dist/Atomic/UI/Alert/Alert.js +78 -22
- package/dist/Atomic/UI/Alert/Alert.stories.js +38 -12
- package/dist/Atomic/UI/Arrow/Arrow.js +78 -22
- package/dist/Atomic/UI/Arrow/Arrow.stories.js +31 -8
- package/dist/Atomic/UI/Box/Box.js +22 -8
- package/dist/Atomic/UI/Box/Box.stories.js +41 -18
- package/dist/Atomic/UI/Button/Button.js +24 -9
- package/dist/Atomic/UI/Button/Button.stories.js +32 -9
- package/dist/Atomic/UI/Button/Button.test.js +51 -42
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +30 -15
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.stories.js +35 -13
- package/dist/Atomic/UI/Chart/Chart.js +105 -49
- package/dist/Atomic/UI/Chart/Chart.stories.js +31 -8
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +44 -8
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +30 -15
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +34 -9
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +41 -16
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +24 -3
- package/dist/Atomic/UI/Chart/partial/utils.js +45 -13
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +76 -20
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.stories.js +32 -9
- package/dist/Atomic/UI/DateTime/DateTime.js +70 -14
- package/dist/Atomic/UI/DateTime/DateTime.stories.js +32 -9
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +65 -14
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +62 -6
- package/dist/Atomic/UI/DoubleString/DoubleString.js +85 -29
- package/dist/Atomic/UI/DoubleString/DoubleString.stories.js +39 -13
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.js +4 -1
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +58 -7
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.stories.js +72 -8
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.test.js +24 -15
- package/dist/Atomic/UI/DynamicIcon/index.js +17 -2
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +101 -46
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.stories.js +72 -8
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +41 -12
- package/dist/Atomic/UI/Hint/Hint.interface.js +4 -1
- package/dist/Atomic/UI/Hint/Hint.js +93 -37
- package/dist/Atomic/UI/Hint/Hint.stories.js +38 -15
- package/dist/Atomic/UI/Hint/Hint.test.js +13 -4
- package/dist/Atomic/UI/Hint/index.js +17 -2
- package/dist/Atomic/UI/Hint/partials/_utils.js +36 -11
- package/dist/Atomic/UI/Modal/Modal.interface.js +4 -1
- package/dist/Atomic/UI/Modal/Modal.js +61 -35
- package/dist/Atomic/UI/Modal/Modal.stories.js +85 -38
- package/dist/Atomic/UI/Modal/ModalHOC.js +68 -12
- package/dist/Atomic/UI/Modal/ModalHOC.stories.js +59 -27
- package/dist/Atomic/UI/Modal/ModalHOC.test.js +47 -38
- package/dist/Atomic/UI/Modal/index.js +26 -4
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +63 -7
- package/dist/Atomic/UI/Modal/partials/ModalFooter.test.js +40 -31
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +71 -15
- package/dist/Atomic/UI/Modal/partials/ModalTitle.test.js +39 -30
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +34 -19
- package/dist/Atomic/UI/Modal/partials/useMobileModal.test.js +28 -19
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.js +34 -25
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.interface.js +4 -1
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +73 -17
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.stories.js +184 -101
- package/dist/Atomic/UI/MonoAccordion/index.js +17 -2
- package/dist/Atomic/UI/NavLine/NavLine.interface.js +4 -1
- package/dist/Atomic/UI/NavLine/NavLine.js +102 -46
- package/dist/Atomic/UI/NavLine/NavLine.stories.js +116 -32
- package/dist/Atomic/UI/NavLine/NavLine.test.js +53 -44
- package/dist/Atomic/UI/NavLine/index.js +17 -2
- package/dist/Atomic/UI/PageTitle/PageTitle.interface.js +4 -1
- package/dist/Atomic/UI/PageTitle/PageTitle.js +34 -19
- package/dist/Atomic/UI/PageTitle/PageTitle.stories.js +33 -10
- package/dist/Atomic/UI/PageTitle/PageTitle.test.js +51 -42
- package/dist/Atomic/UI/PageTitle/index.js +17 -2
- package/dist/Atomic/UI/PieChart/PieChart.js +35 -66
- package/dist/Atomic/UI/PieChart/PieChart.scss +11 -87
- package/dist/Atomic/UI/PieChart/PieChart.stories.js +81 -56
- package/dist/Atomic/UI/Price/Price.interface.js +4 -1
- package/dist/Atomic/UI/Price/Price.js +24 -9
- package/dist/Atomic/UI/Price/Price.stories.js +30 -7
- package/dist/Atomic/UI/Price/Price.test.js +21 -12
- package/dist/Atomic/UI/Price/index.js +17 -2
- package/dist/Atomic/UI/PriceRange/PriceRange.interface.js +4 -1
- package/dist/Atomic/UI/PriceRange/PriceRange.js +26 -11
- package/dist/Atomic/UI/PriceRange/PriceRange.stories.js +30 -7
- package/dist/Atomic/UI/PriceRange/PriceRange.test.js +18 -9
- package/dist/Atomic/UI/PriceRange/index.js +17 -2
- package/dist/Atomic/UI/ProgressLine/ProgressLine.interface.js +4 -1
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +32 -17
- package/dist/Atomic/UI/ProgressLine/ProgressLine.stories.js +30 -7
- package/dist/Atomic/UI/ProgressLine/ProgressLine.test.js +18 -9
- package/dist/Atomic/UI/ProgressLine/index.js +17 -2
- package/dist/Atomic/UI/Status/Status.interface.js +4 -1
- package/dist/Atomic/UI/Status/Status.js +31 -16
- package/dist/Atomic/UI/Status/Status.stories.js +34 -8
- package/dist/Atomic/UI/Status/Status.test.js +32 -23
- package/dist/Atomic/UI/Status/index.js +17 -2
- package/dist/Atomic/UI/Table/Partials/TdCell.js +79 -23
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +32 -17
- package/dist/Atomic/UI/Table/Partials/TdRow.js +81 -25
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +75 -19
- package/dist/Atomic/UI/Table/Table.js +32 -17
- package/dist/Atomic/UI/Table/Table.stories.js +73 -9
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +74 -18
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +28 -13
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +16 -6
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +32 -17
- package/dist/Atomic/UI/Tag/Tag.interface.js +4 -1
- package/dist/Atomic/UI/Tag/Tag.js +80 -24
- package/dist/Atomic/UI/Tag/Tag.stories.js +38 -15
- package/dist/Atomic/UI/Tag/Tag.test.js +30 -21
- package/dist/Atomic/UI/Tag/index.js +17 -2
- package/dist/Atomic/UI/TagList/TagList.js +84 -28
- package/dist/Atomic/UI/TagList/TagList.stories.js +80 -16
- package/dist/Atomic/UI/UserBox/UserBox.interface.js +4 -1
- package/dist/Atomic/UI/UserBox/UserBox.js +37 -22
- package/dist/Atomic/UI/UserBox/UserBox.stories.js +30 -7
- package/dist/Atomic/UI/UserBox/UserBox.test.js +74 -24
- package/dist/Atomic/UI/UserBox/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/WizardStepper.stories.js +34 -11
- package/dist/Atomic/UI/WizardStepper/constructor.js +34 -11
- package/dist/Atomic/UI/WizardStepper/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +31 -16
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +12 -2
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +39 -25
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +34 -19
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +17 -2
- package/dist/Atomic/UI/WizardStepper/ui/icons.js +39 -24
- package/dist/Atomic/UI/WizardStepper/ui/index.js +17 -2
- package/dist/Classes/AbortableFetch.js +12 -2
- package/dist/Classes/AnimatedHandler.js +11 -1
- package/dist/Classes/RESTAPI/index.js +24 -9
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +12 -2
- package/dist/Classes/RESTAPI/partials/ApiBase.js +18 -3
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +25 -10
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +22 -7
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +20 -5
- package/dist/Classes/RESTAPI/partials/Utils.js +14 -4
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +18 -3
- package/dist/Classes/RESTAPI/partials/_utils.js +43 -10
- package/dist/Constants/index.constants.js +40 -7
- package/dist/DeepPartial.d.ts +40 -0
- package/dist/DeepReadonly.d.ts +38 -0
- package/dist/DeepRequired.d.ts +50 -0
- package/dist/Flatten.d.ts +34 -0
- package/dist/FunctionType.d.ts +37 -0
- package/dist/Functions/Portal.js +62 -6
- package/dist/Functions/customEventListener.js +1 -0
- package/dist/Functions/dateTime.js +31 -21
- package/dist/Functions/fieldValueFormatters.js +79 -61
- package/dist/Functions/guards/assertions.js +19 -4
- package/dist/Functions/guards/safeValue.js +21 -6
- package/dist/Functions/guards/typeGuards.js +12 -2
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +55 -4
- package/dist/Functions/locale/createTranslator.js +13 -3
- package/dist/Functions/operations.js +11 -1
- package/dist/Functions/presets/inputMaskPresets.js +12 -2
- package/dist/Functions/presets/inputPresets.js +14 -4
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +24 -32
- package/dist/Functions/schemas.js +77 -15
- package/dist/Functions/useBodyScrollLock.js +13 -3
- package/dist/Functions/useClickOutside.js +13 -3
- package/dist/Functions/useDebounce.js +55 -4
- package/dist/Functions/useFieldFocus.js +17 -7
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +18 -3
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +11 -1
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +18 -3
- package/dist/Functions/useFormTools/functions/General.js +11 -1
- package/dist/Functions/useFormTools/functions/RenderFields.js +16 -6
- package/dist/Functions/useFormTools/functions/usePrevious.js +14 -4
- package/dist/Functions/useFormTools/index.js +50 -35
- package/dist/Functions/useInputHighlightError.js +68 -9
- package/dist/Functions/useIsMobile/index.js +17 -2
- package/dist/Functions/useIsMobile/useIsMobile.js +14 -4
- package/dist/Functions/useIsMobile/useIsMobile.test.js +18 -9
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +21 -6
- package/dist/Functions/useKeyPress/useHandleKeyPress.test.js +20 -11
- package/dist/Functions/useKeyPress/useKeyPress.js +16 -6
- package/dist/Functions/useKeyPress/useKeyPress.test.js +25 -16
- package/dist/Functions/useLocalStorage.js +13 -3
- package/dist/Functions/useLocationParams.js +14 -4
- package/dist/Functions/useMediaQuery.js +13 -3
- package/dist/Functions/useMetaInfo.js +27 -9
- package/dist/Functions/useMouseUpOutside.js +13 -3
- package/dist/Functions/useOnlineStatus.js +14 -4
- package/dist/Functions/usePasswordChecker.js +69 -13
- package/dist/Functions/usePrevious.js +14 -4
- package/dist/Functions/useResize.js +15 -5
- package/dist/Functions/useScrollTo.js +15 -5
- package/dist/Functions/useToggle.js +16 -6
- package/dist/Functions/utils.js +173 -67
- package/dist/If.d.ts +34 -0
- package/dist/KeysType.d.ts +10 -0
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +57 -6
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +57 -6
- package/dist/Molecular/CustomIcons/components/AppStore.js +59 -8
- package/dist/Molecular/CustomIcons/components/Arrow.js +62 -11
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +55 -4
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +56 -5
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +56 -5
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +55 -4
- package/dist/Molecular/CustomIcons/components/Bell.js +55 -4
- package/dist/Molecular/CustomIcons/components/Button.js +55 -4
- package/dist/Molecular/CustomIcons/components/Campaigns.js +55 -4
- package/dist/Molecular/CustomIcons/components/Check.js +55 -4
- package/dist/Molecular/CustomIcons/components/Check2.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +55 -4
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +58 -7
- package/dist/Molecular/CustomIcons/components/Close.js +56 -5
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +60 -9
- package/dist/Molecular/CustomIcons/components/Delete.js +55 -4
- package/dist/Molecular/CustomIcons/components/Edit.js +55 -4
- package/dist/Molecular/CustomIcons/components/Email.js +59 -8
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +60 -9
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +59 -8
- package/dist/Molecular/CustomIcons/components/Flows.js +55 -4
- package/dist/Molecular/CustomIcons/components/Gift.js +56 -5
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +59 -8
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +59 -8
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +56 -5
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +56 -5
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +56 -5
- package/dist/Molecular/CustomIcons/components/Home.js +56 -5
- package/dist/Molecular/CustomIcons/components/Home2.js +56 -5
- package/dist/Molecular/CustomIcons/components/Key.js +55 -4
- package/dist/Molecular/CustomIcons/components/Landers.js +56 -5
- package/dist/Molecular/CustomIcons/components/Lock.js +55 -4
- package/dist/Molecular/CustomIcons/components/Mail.js +57 -6
- package/dist/Molecular/CustomIcons/components/Mastercard.js +67 -16
- package/dist/Molecular/CustomIcons/components/Minus.js +58 -7
- package/dist/Molecular/CustomIcons/components/Offers.js +55 -4
- package/dist/Molecular/CustomIcons/components/Pause.js +58 -7
- package/dist/Molecular/CustomIcons/components/PayPal.js +61 -10
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +59 -8
- package/dist/Molecular/CustomIcons/components/Phone.js +58 -7
- package/dist/Molecular/CustomIcons/components/Play.js +58 -7
- package/dist/Molecular/CustomIcons/components/Plus.js +58 -7
- package/dist/Molecular/CustomIcons/components/Profile.js +56 -5
- package/dist/Molecular/CustomIcons/components/QRCode.js +59 -8
- package/dist/Molecular/CustomIcons/components/Rectangle.js +55 -4
- package/dist/Molecular/CustomIcons/components/Revert.js +56 -5
- package/dist/Molecular/CustomIcons/components/Star.js +55 -4
- package/dist/Molecular/CustomIcons/components/Star2.js +55 -4
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +57 -6
- package/dist/Molecular/CustomIcons/components/Trash.js +55 -4
- package/dist/Molecular/CustomIcons/components/TrashRed.js +55 -4
- package/dist/Molecular/CustomIcons/components/Triggers.js +55 -4
- package/dist/Molecular/CustomIcons/components/User.js +56 -5
- package/dist/Molecular/CustomIcons/components/Visa.js +61 -10
- package/dist/Molecular/CustomIcons/components/X.js +55 -4
- package/dist/Molecular/CustomIcons/index.js +78 -61
- package/dist/Molecular/FormElement/FormElement.js +28 -13
- package/dist/Molecular/FormElement/FormElement.stories.js +33 -10
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +74 -19
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.stories.js +81 -17
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +13 -3
- package/dist/Molecular/InputAddress/InputAddress.js +139 -83
- package/dist/Molecular/InputAddress/InputAddress.stories.js +78 -14
- package/dist/Molecular/InputPassword/InputPassword.js +73 -17
- package/dist/Molecular/InputPassword/InputPassword.stories.js +72 -8
- package/dist/NonNullableType.d.ts +13 -0
- package/dist/ObjectType.d.ts +9 -0
- package/dist/OnlyObjectKeys.d.ts +65 -0
- package/dist/PrettyPrint.d.ts +29 -0
- package/dist/RequiredFields.d.ts +21 -0
- package/dist/TupleType.d.ts +10 -0
- package/dist/ValuesType.d.ts +10 -0
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.d.ts +7 -3
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.stories.d.ts +15 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/base.interface.js +4 -1
- package/dist/types/base.types.js +4 -1
- package/package.json +4 -3
- package/dist/Atomic/UI/PieChart/PieChar.interface.js +0 -1
- package/dist/Atomic/UI/PieChart/PieChart.test.js +0 -133
- package/dist/Atomic/UI/PieChart/index.js +0 -5
- package/dist/lib/src/Atomic/UI/PieChart/PieChar.interface.d.ts +0 -36
- package/dist/lib/src/Atomic/UI/PieChart/PieChart.test.d.ts +0 -1
- package/dist/lib/src/Atomic/UI/PieChart/index.d.ts +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PrettyPrint } from './PrettyPrint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Извлекает тип элементов массива.
|
|
5
|
+
* @template T - Тип массива
|
|
6
|
+
* @example
|
|
7
|
+
* type Numbers = number[]
|
|
8
|
+
* type NumberType = ArrayElement<Numbers> // number
|
|
9
|
+
*
|
|
10
|
+
* type MixedArray = (string | number)[]
|
|
11
|
+
* type ElementType = ArrayElement<MixedArray> // string | number
|
|
12
|
+
*/
|
|
13
|
+
export type ArrayElement<T> = PrettyPrint<T extends (infer U)[] ? U : never>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PrettyPrint } from './PrettyPrint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Извлекает тип значения, возвращаемого асинхронной функцией.
|
|
5
|
+
* @template T - Тип асинхронной функции
|
|
6
|
+
* @example
|
|
7
|
+
* async function fetchUser() {
|
|
8
|
+
* return { id: 1, name: 'John' }
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
* type User = AsyncReturnType<typeof fetchUser>
|
|
12
|
+
* { id: number; name: string }
|
|
13
|
+
*
|
|
14
|
+
* type Response = AsyncReturnType<() => Promise<string>>
|
|
15
|
+
* string
|
|
16
|
+
*/
|
|
17
|
+
export type AsyncReturnType<T extends (...args: any) => Promise<any>> = PrettyPrint<T extends (...args: any) => Promise<infer R> ? R : never>
|
|
@@ -1,31 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
13
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
14
|
+
const _Button = /*#__PURE__*/ _interop_require_default(require("../../UI/Button/Button"));
|
|
15
|
+
require("./ActionAlert.scss");
|
|
16
|
+
function _interop_require_default(obj) {
|
|
17
|
+
return obj && obj.__esModule ? obj : {
|
|
18
|
+
default: obj
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
22
|
+
if (typeof WeakMap !== "function") return null;
|
|
23
|
+
var cacheBabelInterop = new WeakMap();
|
|
24
|
+
var cacheNodeInterop = new WeakMap();
|
|
25
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
26
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
27
|
+
})(nodeInterop);
|
|
28
|
+
}
|
|
29
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
30
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
34
|
+
return {
|
|
35
|
+
default: obj
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
39
|
+
if (cache && cache.has(obj)) {
|
|
40
|
+
return cache.get(obj);
|
|
41
|
+
}
|
|
42
|
+
var newObj = {
|
|
43
|
+
__proto__: null
|
|
44
|
+
};
|
|
45
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
46
|
+
for(var key in obj){
|
|
47
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
48
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
49
|
+
if (desc && (desc.get || desc.set)) {
|
|
50
|
+
Object.defineProperty(newObj, key, desc);
|
|
51
|
+
} else {
|
|
52
|
+
newObj[key] = obj[key];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
newObj.default = obj;
|
|
57
|
+
if (cache) {
|
|
58
|
+
cache.set(obj, newObj);
|
|
59
|
+
}
|
|
60
|
+
return newObj;
|
|
61
|
+
}
|
|
7
62
|
const ActionAlert = ({ message, className, buttonsClassName, date, noButtons, children, variant = 'default', testId = 'alert', buttons })=>{
|
|
8
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
9
64
|
role: "alert",
|
|
10
65
|
"data-testid": testId,
|
|
11
|
-
className:
|
|
66
|
+
className: (0, _classnames.default)(`action-alert action-alert--${variant}`, className),
|
|
12
67
|
children: [
|
|
13
|
-
/*#__PURE__*/
|
|
68
|
+
/*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
14
69
|
className: "action-alert__message-box",
|
|
15
70
|
children: [
|
|
16
|
-
date && /*#__PURE__*/
|
|
71
|
+
date && /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
17
72
|
className: "action-alert__time",
|
|
18
73
|
children: date
|
|
19
74
|
}),
|
|
20
|
-
/*#__PURE__*/
|
|
75
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
21
76
|
className: "action-alert__message",
|
|
22
77
|
children: message || children
|
|
23
78
|
})
|
|
24
79
|
]
|
|
25
80
|
}),
|
|
26
|
-
/*#__PURE__*/
|
|
81
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
27
82
|
className: buttonsClassName,
|
|
28
|
-
children: typeof buttons !== 'undefined' && (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && !noButtons && buttons.map((item)=>/*#__PURE__*/
|
|
83
|
+
children: typeof buttons !== 'undefined' && (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && !noButtons && buttons.map((item)=>/*#__PURE__*/ (0, _react.createElement)(_Button.default, {
|
|
29
84
|
style: {
|
|
30
85
|
backgroundColor: item.buttonColor,
|
|
31
86
|
borderColor: item.buttonColor
|
|
@@ -40,4 +95,4 @@ const ActionAlert = ({ message, className, buttonsClassName, date, noButtons, ch
|
|
|
40
95
|
]
|
|
41
96
|
});
|
|
42
97
|
};
|
|
43
|
-
|
|
98
|
+
const _default = ActionAlert;
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
TemplateActionAlert: function() {
|
|
13
|
+
return TemplateActionAlert;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
21
|
+
require("../../../../../scss/main.scss");
|
|
22
|
+
function _interop_require_default(obj) {
|
|
23
|
+
return obj && obj.__esModule ? obj : {
|
|
24
|
+
default: obj
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const _default = {
|
|
5
28
|
title: 'Form Elements/ActionAlert',
|
|
6
|
-
component:
|
|
29
|
+
component: _ActionAlert.default,
|
|
7
30
|
argTypes: {
|
|
8
31
|
variant: {
|
|
9
32
|
description: 'string: ["reject", "pending", "confirm", "default"]. optional',
|
|
@@ -37,10 +60,10 @@ export default {
|
|
|
37
60
|
}
|
|
38
61
|
}
|
|
39
62
|
};
|
|
40
|
-
const Template = (args)=>/*#__PURE__*/
|
|
63
|
+
const Template = (args)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
41
64
|
...args
|
|
42
65
|
});
|
|
43
|
-
|
|
66
|
+
const TemplateActionAlert = Template.bind({});
|
|
44
67
|
TemplateActionAlert.args = {
|
|
45
68
|
className: 'test-class',
|
|
46
69
|
date: '08.15.22 15:55',
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
6
|
+
const _react = require("@testing-library/react");
|
|
7
|
+
require("@testing-library/jest-dom");
|
|
8
|
+
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
9
|
+
function _interop_require_default(obj) {
|
|
10
|
+
return obj && obj.__esModule ? obj : {
|
|
11
|
+
default: obj
|
|
12
|
+
};
|
|
13
|
+
}
|
|
5
14
|
const mockButtons = [
|
|
6
15
|
{
|
|
7
16
|
key: 'button1',
|
|
@@ -18,104 +27,104 @@ const mockButtons = [
|
|
|
18
27
|
];
|
|
19
28
|
describe('actionAlert component', ()=>{
|
|
20
29
|
it('renders with default props', ()=>{
|
|
21
|
-
render(/*#__PURE__*/
|
|
30
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
22
31
|
message: "Test Alert"
|
|
23
32
|
}));
|
|
24
|
-
const alert = screen.getByTestId('alert');
|
|
33
|
+
const alert = _react.screen.getByTestId('alert');
|
|
25
34
|
expect(alert).toBeInTheDocument();
|
|
26
35
|
expect(alert).toHaveClass('action-alert action-alert--default');
|
|
27
|
-
expect(screen.getByText('Test Alert')).toBeInTheDocument();
|
|
36
|
+
expect(_react.screen.getByText('Test Alert')).toBeInTheDocument();
|
|
28
37
|
});
|
|
29
38
|
it('renders with a custom variant', ()=>{
|
|
30
|
-
render(/*#__PURE__*/
|
|
39
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
31
40
|
message: "Warning!",
|
|
32
41
|
variant: "warning"
|
|
33
42
|
}));
|
|
34
|
-
const alert = screen.getByTestId('alert');
|
|
43
|
+
const alert = _react.screen.getByTestId('alert');
|
|
35
44
|
expect(alert).toHaveClass('action-alert--warning');
|
|
36
45
|
});
|
|
37
46
|
it('renders with date', ()=>{
|
|
38
|
-
render(/*#__PURE__*/
|
|
47
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
39
48
|
message: "With Date",
|
|
40
49
|
date: "2024-12-30"
|
|
41
50
|
}));
|
|
42
|
-
const dateElement = screen.getByText('2024-12-30');
|
|
51
|
+
const dateElement = _react.screen.getByText('2024-12-30');
|
|
43
52
|
expect(dateElement).toBeInTheDocument();
|
|
44
53
|
expect(dateElement).toHaveClass('action-alert__time');
|
|
45
54
|
});
|
|
46
55
|
it('renders with buttons', ()=>{
|
|
47
|
-
render(/*#__PURE__*/
|
|
56
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
48
57
|
buttons: mockButtons
|
|
49
58
|
}));
|
|
50
|
-
const buttons = screen.getAllByRole('button');
|
|
59
|
+
const buttons = _react.screen.getAllByRole('button');
|
|
51
60
|
expect(buttons).toHaveLength(mockButtons.length);
|
|
52
61
|
mockButtons.forEach((btn)=>{
|
|
53
|
-
expect(screen.getByText(btn.buttonLabel)).toBeInTheDocument();
|
|
62
|
+
expect(_react.screen.getByText(btn.buttonLabel)).toBeInTheDocument();
|
|
54
63
|
});
|
|
55
64
|
});
|
|
56
65
|
it('calls button onClick handlers', ()=>{
|
|
57
|
-
render(/*#__PURE__*/
|
|
66
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
58
67
|
buttons: mockButtons
|
|
59
68
|
}));
|
|
60
|
-
const buttons = screen.getAllByRole('button');
|
|
61
|
-
fireEvent.click(buttons[0]);
|
|
62
|
-
fireEvent.click(buttons[1]);
|
|
69
|
+
const buttons = _react.screen.getAllByRole('button');
|
|
70
|
+
_react.fireEvent.click(buttons[0]);
|
|
71
|
+
_react.fireEvent.click(buttons[1]);
|
|
63
72
|
expect(mockButtons[0].onClick).toHaveBeenCalledTimes(1);
|
|
64
73
|
expect(mockButtons[1].onClick).toHaveBeenCalledTimes(1);
|
|
65
74
|
});
|
|
66
75
|
it('does not render buttons when noButtons is true', ()=>{
|
|
67
|
-
render(/*#__PURE__*/
|
|
76
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
68
77
|
noButtons: true,
|
|
69
78
|
buttons: mockButtons
|
|
70
79
|
}));
|
|
71
|
-
const buttons = screen.queryAllByRole('button');
|
|
80
|
+
const buttons = _react.screen.queryAllByRole('button');
|
|
72
81
|
expect(buttons).toHaveLength(0);
|
|
73
82
|
});
|
|
74
83
|
it('renders children when message is not provided', ()=>{
|
|
75
|
-
render(/*#__PURE__*/
|
|
76
|
-
children: /*#__PURE__*/
|
|
84
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
85
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
77
86
|
children: "Custom Content"
|
|
78
87
|
})
|
|
79
88
|
}));
|
|
80
|
-
const customContent = screen.getByText('Custom Content');
|
|
89
|
+
const customContent = _react.screen.getByText('Custom Content');
|
|
81
90
|
expect(customContent).toBeInTheDocument();
|
|
82
91
|
});
|
|
83
92
|
it('applies additional className to the root element', ()=>{
|
|
84
|
-
render(/*#__PURE__*/
|
|
93
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
85
94
|
className: "custom-class"
|
|
86
95
|
}));
|
|
87
|
-
const alert = screen.getByTestId('alert');
|
|
96
|
+
const alert = _react.screen.getByTestId('alert');
|
|
88
97
|
expect(alert).toHaveClass('custom-class');
|
|
89
98
|
});
|
|
90
99
|
it('applies buttonsClassName to the buttons container', ()=>{
|
|
91
|
-
render(/*#__PURE__*/
|
|
100
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
92
101
|
buttons: mockButtons,
|
|
93
102
|
buttonsClassName: "buttons-custom-class"
|
|
94
103
|
}));
|
|
95
|
-
const buttonsContainer = screen.getByTestId('alert').querySelector('.buttons-custom-class');
|
|
104
|
+
const buttonsContainer = _react.screen.getByTestId('alert').querySelector('.buttons-custom-class');
|
|
96
105
|
expect(buttonsContainer).toBeInTheDocument();
|
|
97
106
|
});
|
|
98
107
|
it('renders correctly with no props', ()=>{
|
|
99
|
-
render(/*#__PURE__*/
|
|
100
|
-
const alert = screen.getByTestId('alert');
|
|
108
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {}));
|
|
109
|
+
const alert = _react.screen.getByTestId('alert');
|
|
101
110
|
expect(alert).toBeInTheDocument();
|
|
102
111
|
expect(alert).toHaveClass('action-alert--default');
|
|
103
112
|
});
|
|
104
113
|
it('handles missing buttons gracefully', ()=>{
|
|
105
|
-
render(/*#__PURE__*/
|
|
114
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
106
115
|
noButtons: true
|
|
107
116
|
}));
|
|
108
|
-
const buttons = screen.queryAllByRole('button');
|
|
117
|
+
const buttons = _react.screen.queryAllByRole('button');
|
|
109
118
|
expect(buttons).toHaveLength(0);
|
|
110
119
|
});
|
|
111
120
|
it('handles long messages with children and ellipsis', ()=>{
|
|
112
|
-
render(/*#__PURE__*/
|
|
113
|
-
children: /*#__PURE__*/
|
|
121
|
+
(0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_ActionAlert.default, {
|
|
122
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
|
|
114
123
|
className: "text-ellipsis",
|
|
115
124
|
children: "This is a very long custom content that should be truncated."
|
|
116
125
|
})
|
|
117
126
|
}));
|
|
118
|
-
const text = screen.getByText('This is a very long custom content that should be truncated.');
|
|
127
|
+
const text = _react.screen.getByText('This is a very long custom content that should be truncated.');
|
|
119
128
|
expect(text).toHaveClass('text-ellipsis');
|
|
120
129
|
});
|
|
121
130
|
});
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _ActionAlert = /*#__PURE__*/ _interop_require_default(require("./ActionAlert"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _default = _ActionAlert.default;
|
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
13
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
14
|
+
const _Status = /*#__PURE__*/ _interop_require_default(require("../../UI/Status/Status"));
|
|
15
|
+
const _TextSwitcher = /*#__PURE__*/ _interop_require_default(require("../TextSwitcher/TextSwitcher"));
|
|
16
|
+
require("./AdvancedStatus.scss");
|
|
17
|
+
function _interop_require_default(obj) {
|
|
18
|
+
return obj && obj.__esModule ? obj : {
|
|
19
|
+
default: obj
|
|
20
|
+
};
|
|
21
|
+
}
|
|
7
22
|
const RC = 'advanced-status';
|
|
8
23
|
const AdvancedStatus = ({ onChange, inactiveText, activeText, value, disabled = false, isPrimary = false, primaryStatusText, className, testId = RC, ...props })=>{
|
|
9
24
|
const isUndefined = value === undefined || value === null;
|
|
10
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
|
|
11
26
|
...props,
|
|
12
27
|
"data-testid": testId,
|
|
13
|
-
className:
|
|
28
|
+
className: (0, _classnames.default)(RC, {
|
|
14
29
|
'advanced-status_undefined': isUndefined,
|
|
15
30
|
'advanced-status_disabled': disabled
|
|
16
31
|
}, className),
|
|
17
32
|
children: [
|
|
18
|
-
/*#__PURE__*/
|
|
33
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_TextSwitcher.default, {
|
|
19
34
|
onChange: onChange,
|
|
20
35
|
isActive: value || false,
|
|
21
36
|
inactiveText: inactiveText,
|
|
22
37
|
activeText: activeText,
|
|
23
38
|
className: "advanced-status__switcher"
|
|
24
39
|
}),
|
|
25
|
-
isPrimary && /*#__PURE__*/
|
|
40
|
+
isPrimary && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Status.default, {
|
|
26
41
|
className: "advanced-status__status",
|
|
27
42
|
status: "warning",
|
|
28
43
|
children: primaryStatusText
|
|
@@ -30,4 +45,4 @@ const AdvancedStatus = ({ onChange, inactiveText, activeText, value, disabled =
|
|
|
30
45
|
]
|
|
31
46
|
});
|
|
32
47
|
};
|
|
33
|
-
|
|
48
|
+
const _default = AdvancedStatus;
|
|
@@ -1,10 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
TemplateAdvancedStatus: function() {
|
|
13
|
+
return TemplateAdvancedStatus;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return _default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _react = require("react");
|
|
21
|
+
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
22
|
+
require("../../../../../scss/main.scss");
|
|
23
|
+
function _interop_require_default(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
default: obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const _default = {
|
|
6
29
|
title: 'Form Elements/AdvancedStatus',
|
|
7
|
-
component:
|
|
30
|
+
component: _AdvancedStatus.default,
|
|
8
31
|
argTypes: {
|
|
9
32
|
value: {
|
|
10
33
|
description: 'boolean. optional'
|
|
@@ -18,25 +41,25 @@ export default {
|
|
|
18
41
|
}
|
|
19
42
|
};
|
|
20
43
|
function Template(args) {
|
|
21
|
-
const [value, setValue] = useState(null);
|
|
44
|
+
const [value, setValue] = (0, _react.useState)(null);
|
|
22
45
|
const buttonStyles = {
|
|
23
46
|
border: '1px solid black',
|
|
24
47
|
padding: '10px',
|
|
25
48
|
marginTop: '10px'
|
|
26
49
|
};
|
|
27
|
-
useEffect(()=>{
|
|
50
|
+
(0, _react.useEffect)(()=>{
|
|
28
51
|
if (value === null) setTimeout(()=>setValue(args.value), 1500);
|
|
29
52
|
}, [
|
|
30
53
|
value
|
|
31
54
|
]);
|
|
32
|
-
return /*#__PURE__*/
|
|
55
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
33
56
|
children: [
|
|
34
|
-
/*#__PURE__*/
|
|
57
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
35
58
|
...args,
|
|
36
59
|
value: value,
|
|
37
60
|
onChange: setValue
|
|
38
61
|
}),
|
|
39
|
-
/*#__PURE__*/
|
|
62
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
|
|
40
63
|
style: buttonStyles,
|
|
41
64
|
disabled: value === null,
|
|
42
65
|
onClick: ()=>setValue(null),
|
|
@@ -45,7 +68,7 @@ function Template(args) {
|
|
|
45
68
|
]
|
|
46
69
|
});
|
|
47
70
|
}
|
|
48
|
-
|
|
71
|
+
const TemplateAdvancedStatus = Template.bind({});
|
|
49
72
|
TemplateAdvancedStatus.args = {
|
|
50
73
|
value: false,
|
|
51
74
|
className: 'test-class',
|
|
@@ -1,39 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
6
|
+
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
7
|
+
const _react1 = require("@testing-library/react");
|
|
8
|
+
require("@testing-library/jest-dom");
|
|
9
|
+
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
10
|
+
function _interop_require_default(obj) {
|
|
11
|
+
return obj && obj.__esModule ? obj : {
|
|
12
|
+
default: obj
|
|
13
|
+
};
|
|
14
|
+
}
|
|
6
15
|
// Мокаем компонент Status, если он не нужен для тестов
|
|
7
|
-
jest.mock('../../UI/Status/Status', ()=>({ children })=>/*#__PURE__*/
|
|
16
|
+
jest.mock('../../UI/Status/Status', ()=>({ children })=>/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
|
|
8
17
|
children: children
|
|
9
18
|
}));
|
|
10
19
|
describe('advancedStatus Component', ()=>{
|
|
11
20
|
it('renders without crashing', ()=>{
|
|
12
|
-
render(/*#__PURE__*/
|
|
21
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
13
22
|
onChange: ()=>{},
|
|
14
23
|
inactiveText: "Inactive",
|
|
15
24
|
activeText: "Active",
|
|
16
25
|
value: true
|
|
17
26
|
}));
|
|
18
|
-
expect(screen.getByTestId('advanced-status')).toBeInTheDocument();
|
|
27
|
+
expect(_react1.screen.getByTestId('advanced-status')).toBeInTheDocument();
|
|
19
28
|
});
|
|
20
29
|
it('renders with correct text based on value', ()=>{
|
|
21
|
-
render(/*#__PURE__*/
|
|
30
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
22
31
|
onChange: ()=>{},
|
|
23
32
|
inactiveText: "Inactive",
|
|
24
33
|
activeText: "Active",
|
|
25
34
|
value: true
|
|
26
35
|
}));
|
|
27
36
|
// Проверяем, что отображается "Active"
|
|
28
|
-
expect(screen.getByText('Active')).toBeInTheDocument();
|
|
29
|
-
render(/*#__PURE__*/
|
|
37
|
+
expect(_react1.screen.getByText('Active')).toBeInTheDocument();
|
|
38
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
30
39
|
onChange: ()=>{},
|
|
31
40
|
inactiveText: "Inactive",
|
|
32
41
|
activeText: "Active",
|
|
33
42
|
value: false
|
|
34
43
|
}));
|
|
35
44
|
// Проверяем, что отображается "Inactive"
|
|
36
|
-
const inactiveElements = screen.getAllByText('Inactive');
|
|
45
|
+
const inactiveElements = _react1.screen.getAllByText('Inactive');
|
|
37
46
|
expect(inactiveElements.length).toBeGreaterThan(0); // Проверяем, что хотя бы один элемент присутствует
|
|
38
47
|
inactiveElements.forEach((element)=>{
|
|
39
48
|
expect(element).toBeInTheDocument();
|
|
@@ -41,17 +50,17 @@ describe('advancedStatus Component', ()=>{
|
|
|
41
50
|
});
|
|
42
51
|
it('should call onChange when clicked', ()=>{
|
|
43
52
|
const onChangeMock = jest.fn();
|
|
44
|
-
render(/*#__PURE__*/
|
|
53
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
45
54
|
onChange: onChangeMock,
|
|
46
55
|
inactiveText: "Inactive",
|
|
47
56
|
activeText: "Active",
|
|
48
57
|
value: false
|
|
49
58
|
}));
|
|
50
|
-
fireEvent.click(screen.getByText('Inactive'));
|
|
59
|
+
_react1.fireEvent.click(_react1.screen.getByText('Inactive'));
|
|
51
60
|
expect(onChangeMock).toHaveBeenCalledTimes(1);
|
|
52
61
|
});
|
|
53
62
|
it('applies correct class names based on props', ()=>{
|
|
54
|
-
const { container } = render(/*#__PURE__*/
|
|
63
|
+
const { container } = (0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
55
64
|
onChange: ()=>{},
|
|
56
65
|
inactiveText: "Inactive",
|
|
57
66
|
activeText: "Active",
|
|
@@ -63,17 +72,17 @@ describe('advancedStatus Component', ()=>{
|
|
|
63
72
|
expect(container.firstChild).toHaveClass('custom-class');
|
|
64
73
|
});
|
|
65
74
|
it('does not render Status component when isPrimary is false', ()=>{
|
|
66
|
-
render(/*#__PURE__*/
|
|
75
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
67
76
|
onChange: ()=>{},
|
|
68
77
|
inactiveText: "Inactive",
|
|
69
78
|
activeText: "Active",
|
|
70
79
|
value: true,
|
|
71
80
|
isPrimary: false
|
|
72
81
|
}));
|
|
73
|
-
expect(screen.queryByText('warning')).not.toBeInTheDocument();
|
|
82
|
+
expect(_react1.screen.queryByText('warning')).not.toBeInTheDocument();
|
|
74
83
|
});
|
|
75
84
|
it('renders Status component when isPrimary is true', ()=>{
|
|
76
|
-
render(/*#__PURE__*/
|
|
85
|
+
(0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
77
86
|
onChange: ()=>{},
|
|
78
87
|
inactiveText: "Inactive",
|
|
79
88
|
activeText: "Active",
|
|
@@ -81,10 +90,10 @@ describe('advancedStatus Component', ()=>{
|
|
|
81
90
|
isPrimary: true,
|
|
82
91
|
primaryStatusText: "Primary Status"
|
|
83
92
|
}));
|
|
84
|
-
expect(screen.getByText('Primary Status')).toBeInTheDocument();
|
|
93
|
+
expect(_react1.screen.getByText('Primary Status')).toBeInTheDocument();
|
|
85
94
|
});
|
|
86
95
|
it('applies undefined styles if value is undefined or null', ()=>{
|
|
87
|
-
const { container } = render(/*#__PURE__*/
|
|
96
|
+
const { container } = (0, _react1.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(_AdvancedStatus.default, {
|
|
88
97
|
onChange: ()=>{},
|
|
89
98
|
inactiveText: "Inactive",
|
|
90
99
|
activeText: "Active",
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _AdvancedStatus = /*#__PURE__*/ _interop_require_default(require("./AdvancedStatus"));
|
|
12
|
+
function _interop_require_default(obj) {
|
|
13
|
+
return obj && obj.__esModule ? obj : {
|
|
14
|
+
default: obj
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const _default = _AdvancedStatus.default;
|