linear-react-components-ui 1.1.20-beta.31 → 1.1.20-beta.33
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/package.json +1 -1
- package/lib/@types/Align.d.ts +0 -4
- package/lib/@types/Align.js +0 -5
- package/lib/@types/ButtonTypes.d.ts +0 -3
- package/lib/@types/ButtonTypes.js +0 -5
- package/lib/@types/ColorStyles.d.ts +0 -3
- package/lib/@types/ColorStyles.js +0 -5
- package/lib/@types/DataCombo.d.ts +0 -3
- package/lib/@types/DataCombo.js +0 -5
- package/lib/@types/Icon.d.ts +0 -5
- package/lib/@types/Icon.js +0 -5
- package/lib/@types/LabelStyles.d.ts +0 -3
- package/lib/@types/LabelStyles.js +0 -5
- package/lib/@types/Period.d.ts +0 -6
- package/lib/@types/Period.js +0 -5
- package/lib/@types/PermissionAttr.d.ts +0 -14
- package/lib/@types/PermissionAttr.js +0 -5
- package/lib/@types/PointerEvents.d.ts +0 -3
- package/lib/@types/PointerEvents.js +0 -5
- package/lib/@types/Position.d.ts +0 -3
- package/lib/@types/Position.js +0 -5
- package/lib/@types/PositionAlert.d.ts +0 -3
- package/lib/@types/PositionAlert.js +0 -5
- package/lib/@types/Size.d.ts +0 -3
- package/lib/@types/Size.js +0 -5
- package/lib/@types/SizePixels.d.ts +0 -3
- package/lib/@types/SizePixels.js +0 -5
- package/lib/@types/StorageMock.d.ts +0 -5
- package/lib/@types/StorageMock.js +0 -5
- package/lib/alerts/AlertContainer.d.ts +0 -18
- package/lib/alerts/AlertContainer.js +0 -80
- package/lib/alerts/AlertProvider.d.ts +0 -9
- package/lib/alerts/AlertProvider.js +0 -73
- package/lib/alerts/BaseAlert.d.ts +0 -9
- package/lib/alerts/BaseAlert.js +0 -34
- package/lib/alerts/Message.d.ts +0 -9
- package/lib/alerts/Message.js +0 -114
- package/lib/alerts/helpers.d.ts +0 -9
- package/lib/alerts/helpers.js +0 -9
- package/lib/alerts/index.d.ts +0 -11
- package/lib/alerts/index.js +0 -16
- package/lib/alerts/types.d.ts +0 -51
- package/lib/alerts/types.js +0 -5
- package/lib/alerts/withAlert.d.ts +0 -9
- package/lib/alerts/withAlert.js +0 -24
- package/lib/assets/fonts/Roboto-Black.woff +0 -0
- package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Light.woff +0 -0
- package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/lib/assets/images/logo.png +0 -0
- package/lib/assets/styles/alerts.scss +0 -149
- package/lib/assets/styles/avatar.scss +0 -42
- package/lib/assets/styles/badge.scss +0 -48
- package/lib/assets/styles/button.scss +0 -345
- package/lib/assets/styles/calendar.scss +0 -172
- package/lib/assets/styles/checkbox.scss +0 -108
- package/lib/assets/styles/colorpicker.scss +0 -17
- package/lib/assets/styles/colors.scss +0 -144
- package/lib/assets/styles/commons.scss +0 -138
- package/lib/assets/styles/datepicker.scss +0 -16
- package/lib/assets/styles/dialog.scss +0 -200
- package/lib/assets/styles/drawers.scss +0 -159
- package/lib/assets/styles/dropdown.scss +0 -179
- package/lib/assets/styles/effects.scss +0 -823
- package/lib/assets/styles/error.scss +0 -9
- package/lib/assets/styles/fieldset.scss +0 -96
- package/lib/assets/styles/file.scss +0 -224
- package/lib/assets/styles/floatMenu.scss +0 -17
- package/lib/assets/styles/fonts.scss +0 -86
- package/lib/assets/styles/form.scss +0 -23
- package/lib/assets/styles/gridlayout.scss +0 -2054
- package/lib/assets/styles/hint.scss +0 -30
- package/lib/assets/styles/icon.scss +0 -42
- package/lib/assets/styles/input.scss +0 -156
- package/lib/assets/styles/label.scss +0 -116
- package/lib/assets/styles/labelMessages.scss +0 -81
- package/lib/assets/styles/list.scss +0 -124
- package/lib/assets/styles/multiSelect.scss +0 -125
- package/lib/assets/styles/noPermission.scss +0 -25
- package/lib/assets/styles/numbers.scss +0 -5
- package/lib/assets/styles/panel.scss +0 -95
- package/lib/assets/styles/periodpicker.scss +0 -69
- package/lib/assets/styles/popover.scss +0 -44
- package/lib/assets/styles/progress.scss +0 -72
- package/lib/assets/styles/radio.scss +0 -156
- package/lib/assets/styles/search.scss +0 -13
- package/lib/assets/styles/select.scss +0 -155
- package/lib/assets/styles/shortcuts.scss +0 -59
- package/lib/assets/styles/sidenav.scss +0 -408
- package/lib/assets/styles/skeleton.scss +0 -48
- package/lib/assets/styles/spinner.scss +0 -34
- package/lib/assets/styles/split.scss +0 -80
- package/lib/assets/styles/table.scss +0 -179
- package/lib/assets/styles/tabs.scss +0 -266
- package/lib/assets/styles/textContent.scss +0 -9
- package/lib/assets/styles/toolbar.scss +0 -74
- package/lib/assets/styles/tooltip.scss +0 -95
- package/lib/assets/styles/treetable.scss +0 -100
- package/lib/assets/styles/treeview.scss +0 -96
- package/lib/assets/styles/uitour.scss +0 -112
- package/lib/assets/styles/wizard.scss +0 -125
- package/lib/avatar/index.d.ts +0 -12
- package/lib/avatar/index.js +0 -91
- package/lib/avatar/types.d.ts +0 -31
- package/lib/avatar/types.js +0 -5
- package/lib/badge/index.d.ts +0 -6
- package/lib/badge/index.js +0 -30
- package/lib/badge/types.d.ts +0 -13
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ActivateButton.d.ts +0 -11
- package/lib/buttons/ActivateButton.js +0 -14
- package/lib/buttons/AddButton.d.ts +0 -11
- package/lib/buttons/AddButton.js +0 -18
- package/lib/buttons/Button.d.ts +0 -14
- package/lib/buttons/Button.js +0 -23
- package/lib/buttons/ButtonGroups.d.ts +0 -8
- package/lib/buttons/ButtonGroups.js +0 -17
- package/lib/buttons/CancelButton.d.ts +0 -11
- package/lib/buttons/CancelButton.js +0 -23
- package/lib/buttons/DangerButton.d.ts +0 -11
- package/lib/buttons/DangerButton.js +0 -23
- package/lib/buttons/DefaultButton.d.ts +0 -14
- package/lib/buttons/DefaultButton.js +0 -176
- package/lib/buttons/DestroyButton.d.ts +0 -11
- package/lib/buttons/DestroyButton.js +0 -27
- package/lib/buttons/EditButton.d.ts +0 -11
- package/lib/buttons/EditButton.js +0 -14
- package/lib/buttons/InactivateButton.d.ts +0 -11
- package/lib/buttons/InactivateButton.js +0 -14
- package/lib/buttons/InfoButton.d.ts +0 -11
- package/lib/buttons/InfoButton.js +0 -23
- package/lib/buttons/PrimaryButton.d.ts +0 -11
- package/lib/buttons/PrimaryButton.js +0 -23
- package/lib/buttons/RestoreButton.d.ts +0 -11
- package/lib/buttons/RestoreButton.js +0 -14
- package/lib/buttons/SaveButton.d.ts +0 -11
- package/lib/buttons/SaveButton.js +0 -23
- package/lib/buttons/SuccessButton.d.ts +0 -11
- package/lib/buttons/SuccessButton.js +0 -23
- package/lib/buttons/WarningButton.d.ts +0 -11
- package/lib/buttons/WarningButton.js +0 -23
- package/lib/buttons/button_container/index.d.ts +0 -12
- package/lib/buttons/button_container/index.js +0 -30
- package/lib/buttons/index.d.ts +0 -26
- package/lib/buttons/index.js +0 -108
- package/lib/buttons/split_button/index.d.ts +0 -11
- package/lib/buttons/split_button/index.js +0 -57
- package/lib/buttons/types.d.ts +0 -49
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/DangerCalendar.d.ts +0 -7
- package/lib/calendar/DangerCalendar.js +0 -23
- package/lib/calendar/InfoCalendar.d.ts +0 -7
- package/lib/calendar/InfoCalendar.js +0 -23
- package/lib/calendar/PrimaryCalendar.d.ts +0 -7
- package/lib/calendar/PrimaryCalendar.js +0 -23
- package/lib/calendar/SuccessCalendar.d.ts +0 -7
- package/lib/calendar/SuccessCalendar.js +0 -23
- package/lib/calendar/WarningCalendar.d.ts +0 -7
- package/lib/calendar/WarningCalendar.js +0 -23
- package/lib/calendar/base/Day.d.ts +0 -7
- package/lib/calendar/base/Day.js +0 -32
- package/lib/calendar/base/Month.d.ts +0 -7
- package/lib/calendar/base/Month.js +0 -37
- package/lib/calendar/base/Week.d.ts +0 -7
- package/lib/calendar/base/Week.js +0 -35
- package/lib/calendar/base/helpers.d.ts +0 -62
- package/lib/calendar/base/helpers.js +0 -117
- package/lib/calendar/base/index.d.ts +0 -7
- package/lib/calendar/base/index.js +0 -79
- package/lib/calendar/index.d.ts +0 -13
- package/lib/calendar/index.js +0 -44
- package/lib/calendar/types.d.ts +0 -25
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/index.d.ts +0 -13
- package/lib/checkbox/index.js +0 -145
- package/lib/checkbox/types.d.ts +0 -47
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/Alert.d.ts +0 -9
- package/lib/dialog/Alert.js +0 -28
- package/lib/dialog/Custom.d.ts +0 -9
- package/lib/dialog/Custom.js +0 -56
- package/lib/dialog/Error.d.ts +0 -9
- package/lib/dialog/Error.js +0 -28
- package/lib/dialog/Information.d.ts +0 -9
- package/lib/dialog/Information.js +0 -28
- package/lib/dialog/Question.d.ts +0 -9
- package/lib/dialog/Question.js +0 -60
- package/lib/dialog/Warning.d.ts +0 -9
- package/lib/dialog/Warning.js +0 -28
- package/lib/dialog/base/Content.d.ts +0 -9
- package/lib/dialog/base/Content.js +0 -22
- package/lib/dialog/base/Footer.d.ts +0 -9
- package/lib/dialog/base/Footer.js +0 -12
- package/lib/dialog/base/Header.d.ts +0 -9
- package/lib/dialog/base/Header.js +0 -59
- package/lib/dialog/base/index.d.ts +0 -15
- package/lib/dialog/base/index.js +0 -157
- package/lib/dialog/base/style.js +0 -13
- package/lib/dialog/form/index.d.ts +0 -10
- package/lib/dialog/form/index.js +0 -84
- package/lib/dialog/index.d.ts +0 -16
- package/lib/dialog/index.js +0 -51
- package/lib/dialog/types.d.ts +0 -105
- package/lib/dialog/types.js +0 -5
- package/lib/dialog/wizard/index.d.ts +0 -13
- package/lib/dialog/wizard/index.js +0 -74
- package/lib/dialog/wizard/progressbar.d.ts +0 -13
- package/lib/dialog/wizard/progressbar.js +0 -36
- package/lib/dialog/wizard/step.d.ts +0 -9
- package/lib/dialog/wizard/step.js +0 -22
- package/lib/dialog/wizard/useWizard.d.ts +0 -9
- package/lib/dialog/wizard/useWizard.js +0 -48
- package/lib/drawer/Content.d.ts +0 -10
- package/lib/drawer/Content.js +0 -26
- package/lib/drawer/Drawer.d.ts +0 -10
- package/lib/drawer/Drawer.js +0 -138
- package/lib/drawer/Header.d.ts +0 -10
- package/lib/drawer/Header.js +0 -76
- package/lib/drawer/helpers.d.ts +0 -10
- package/lib/drawer/helpers.js +0 -10
- package/lib/drawer/index.d.ts +0 -12
- package/lib/drawer/index.js +0 -25
- package/lib/drawer/types.d.ts +0 -41
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/Popup.d.ts +0 -6
- package/lib/dropdown/Popup.js +0 -69
- package/lib/dropdown/helper.d.ts +0 -4
- package/lib/dropdown/helper.js +0 -16
- package/lib/dropdown/types.d.ts +0 -44
- package/lib/dropdown/types.js +0 -5
- package/lib/dropdown/withDropdown.d.ts +0 -10
- package/lib/dropdown/withDropdown.js +0 -92
- package/lib/fieldset/index.d.ts +0 -8
- package/lib/fieldset/index.js +0 -83
- package/lib/fieldset/types.d.ts +0 -30
- package/lib/fieldset/types.js +0 -5
- package/lib/form/Field.d.ts +0 -14
- package/lib/form/Field.js +0 -118
- package/lib/form/FieldArray.d.ts +0 -14
- package/lib/form/FieldArray.js +0 -105
- package/lib/form/FieldNumber.d.ts +0 -14
- package/lib/form/FieldNumber.js +0 -68
- package/lib/form/FieldPeriod.d.ts +0 -14
- package/lib/form/FieldPeriod.js +0 -98
- package/lib/form/helpers.d.ts +0 -19
- package/lib/form/helpers.js +0 -50
- package/lib/form/index.d.ts +0 -18
- package/lib/form/index.js +0 -283
- package/lib/form/types.d.ts +0 -243
- package/lib/form/types.js +0 -5
- package/lib/form/withFieldHOC.d.ts +0 -14
- package/lib/form/withFieldHOC.js +0 -71
- package/lib/form/withFormSecurity.d.ts +0 -15
- package/lib/form/withFormSecurity.js +0 -55
- package/lib/gridlayout/GridCol.d.ts +0 -6
- package/lib/gridlayout/GridCol.js +0 -34
- package/lib/gridlayout/GridRow.d.ts +0 -6
- package/lib/gridlayout/GridRow.js +0 -34
- package/lib/gridlayout/index.d.ts +0 -8
- package/lib/gridlayout/index.js +0 -16
- package/lib/gridlayout/types.d.ts +0 -20
- package/lib/gridlayout/types.js +0 -5
- package/lib/hint/helpers.d.ts +0 -3
- package/lib/hint/helpers.js +0 -21
- package/lib/hint/index.d.ts +0 -7
- package/lib/hint/index.js +0 -36
- package/lib/hint/types.d.ts +0 -14
- package/lib/hint/types.js +0 -5
- package/lib/icons/helper.d.ts +0 -632
- package/lib/icons/helper.js +0 -636
- package/lib/icons/index.d.ts +0 -15
- package/lib/icons/index.js +0 -71
- package/lib/icons/types.d.ts +0 -49
- package/lib/icons/types.js +0 -5
- package/lib/index.d.ts +0 -39
- package/lib/index.js +0 -69
- package/lib/inputs/base/InputTextBase.d.ts +0 -11
- package/lib/inputs/base/InputTextBase.js +0 -261
- package/lib/inputs/base/Label.d.ts +0 -14
- package/lib/inputs/base/Label.js +0 -35
- package/lib/inputs/base/helpers.d.ts +0 -17
- package/lib/inputs/base/helpers.js +0 -46
- package/lib/inputs/base/types.d.ts +0 -100
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/index.d.ts +0 -7
- package/lib/inputs/color/index.js +0 -95
- package/lib/inputs/color/types.d.ts +0 -19
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/Dialog.d.ts +0 -13
- package/lib/inputs/date/Dialog.js +0 -25
- package/lib/inputs/date/Dropdown.d.ts +0 -13
- package/lib/inputs/date/Dropdown.js +0 -32
- package/lib/inputs/date/helpers.d.ts +0 -17
- package/lib/inputs/date/helpers.js +0 -31
- package/lib/inputs/date/index.d.ts +0 -13
- package/lib/inputs/date/index.js +0 -251
- package/lib/inputs/date/types.d.ts +0 -62
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/errorMessage/index.d.ts +0 -16
- package/lib/inputs/errorMessage/index.js +0 -26
- package/lib/inputs/file/DefaultFile.d.ts +0 -13
- package/lib/inputs/file/DefaultFile.js +0 -80
- package/lib/inputs/file/DragDropFile.d.ts +0 -13
- package/lib/inputs/file/DragDropFile.js +0 -272
- package/lib/inputs/file/File.d.ts +0 -13
- package/lib/inputs/file/File.js +0 -63
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -13
- package/lib/inputs/file/FileButtonSettings.js +0 -34
- package/lib/inputs/file/helpers.d.ts +0 -13
- package/lib/inputs/file/helpers.js +0 -21
- package/lib/inputs/file/index.d.ts +0 -16
- package/lib/inputs/file/index.js +0 -24
- package/lib/inputs/file/types.d.ts +0 -57
- package/lib/inputs/file/types.js +0 -5
- package/lib/inputs/inputHOC.d.ts +0 -16
- package/lib/inputs/inputHOC.js +0 -44
- package/lib/inputs/mask/BaseMask.d.ts +0 -12
- package/lib/inputs/mask/BaseMask.js +0 -167
- package/lib/inputs/mask/Cnpj.d.ts +0 -15
- package/lib/inputs/mask/Cnpj.js +0 -60
- package/lib/inputs/mask/Cpf.d.ts +0 -15
- package/lib/inputs/mask/Cpf.js +0 -57
- package/lib/inputs/mask/Phone.d.ts +0 -12
- package/lib/inputs/mask/Phone.js +0 -19
- package/lib/inputs/mask/ZipCode.d.ts +0 -12
- package/lib/inputs/mask/ZipCode.js +0 -14
- package/lib/inputs/mask/helpers.d.ts +0 -62
- package/lib/inputs/mask/helpers.js +0 -138
- package/lib/inputs/mask/index.d.ts +0 -17
- package/lib/inputs/mask/index.js +0 -37
- package/lib/inputs/mask/types.d.ts +0 -79
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -13
- package/lib/inputs/multiSelect/ActionButtons.js +0 -51
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -13
- package/lib/inputs/multiSelect/Dropdown.js +0 -136
- package/lib/inputs/multiSelect/helper.d.ts +0 -13
- package/lib/inputs/multiSelect/helper.js +0 -20
- package/lib/inputs/multiSelect/index.d.ts +0 -13
- package/lib/inputs/multiSelect/index.js +0 -218
- package/lib/inputs/multiSelect/types.d.ts +0 -65
- package/lib/inputs/multiSelect/types.js +0 -5
- package/lib/inputs/number/BaseNumber.d.ts +0 -17
- package/lib/inputs/number/BaseNumber.js +0 -70
- package/lib/inputs/number/Currency.d.ts +0 -17
- package/lib/inputs/number/Currency.js +0 -22
- package/lib/inputs/number/Decimal.d.ts +0 -17
- package/lib/inputs/number/Decimal.js +0 -11
- package/lib/inputs/number/format_number.d.ts +0 -5
- package/lib/inputs/number/format_number.js +0 -27
- package/lib/inputs/number/index.d.ts +0 -19
- package/lib/inputs/number/index.js +0 -64
- package/lib/inputs/number/types.d.ts +0 -39
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/Dialog.d.ts +0 -14
- package/lib/inputs/period/Dialog.js +0 -25
- package/lib/inputs/period/Dropdown.d.ts +0 -14
- package/lib/inputs/period/Dropdown.js +0 -28
- package/lib/inputs/period/PeriodList.d.ts +0 -14
- package/lib/inputs/period/PeriodList.js +0 -61
- package/lib/inputs/period/helper.d.ts +0 -22
- package/lib/inputs/period/helper.js +0 -66
- package/lib/inputs/period/index.d.ts +0 -14
- package/lib/inputs/period/index.js +0 -423
- package/lib/inputs/period/types.d.ts +0 -73
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/search/index.d.ts +0 -16
- package/lib/inputs/search/index.js +0 -129
- package/lib/inputs/select/ActionButtons.d.ts +0 -16
- package/lib/inputs/select/ActionButtons.js +0 -38
- package/lib/inputs/select/Dropdown.d.ts +0 -16
- package/lib/inputs/select/Dropdown.js +0 -112
- package/lib/inputs/select/helper.d.ts +0 -25
- package/lib/inputs/select/helper.js +0 -108
- package/lib/inputs/select/index.d.ts +0 -13
- package/lib/inputs/select/index.js +0 -42
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -13
- package/lib/inputs/select/multiple/Selecteds.js +0 -25
- package/lib/inputs/select/multiple/index.d.ts +0 -13
- package/lib/inputs/select/multiple/index.js +0 -276
- package/lib/inputs/select/simple/index.d.ts +0 -13
- package/lib/inputs/select/simple/index.js +0 -302
- package/lib/inputs/select/types.d.ts +0 -119
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/index.d.ts +0 -12
- package/lib/inputs/text/index.js +0 -13
- package/lib/inputs/text/types.d.ts +0 -25
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/index.d.ts +0 -12
- package/lib/inputs/textarea/index.js +0 -25
- package/lib/inputs/textarea/types.d.ts +0 -16
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.d.ts +0 -157
- package/lib/inputs/types.js +0 -5
- package/lib/internals/colorStyles.d.ts +0 -9
- package/lib/internals/colorStyles.js +0 -14
- package/lib/internals/constants.d.ts +0 -11
- package/lib/internals/constants.js +0 -15
- package/lib/internals/types.d.ts +0 -25
- package/lib/internals/types.js +0 -5
- package/lib/internals/withTooltip.d.ts +0 -12
- package/lib/internals/withTooltip.js +0 -172
- package/lib/labelMessages/index.d.ts +0 -9
- package/lib/labelMessages/index.js +0 -60
- package/lib/labelMessages/types.d.ts +0 -20
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/DangerLabel.d.ts +0 -11
- package/lib/labels/DangerLabel.js +0 -23
- package/lib/labels/DefaultLabel.d.ts +0 -14
- package/lib/labels/DefaultLabel.js +0 -55
- package/lib/labels/InfoLabel.d.ts +0 -11
- package/lib/labels/InfoLabel.js +0 -23
- package/lib/labels/PrimaryLabel.d.ts +0 -11
- package/lib/labels/PrimaryLabel.js +0 -23
- package/lib/labels/SuccessLabel.d.ts +0 -11
- package/lib/labels/SuccessLabel.js +0 -23
- package/lib/labels/WarningLabel.d.ts +0 -11
- package/lib/labels/WarningLabel.js +0 -23
- package/lib/labels/index.d.ts +0 -18
- package/lib/labels/index.js +0 -52
- package/lib/labels/label_container/index.d.ts +0 -12
- package/lib/labels/label_container/index.js +0 -22
- package/lib/labels/types.d.ts +0 -26
- package/lib/labels/types.js +0 -5
- package/lib/list/Header.d.ts +0 -10
- package/lib/list/Header.js +0 -23
- package/lib/list/Item.d.ts +0 -13
- package/lib/list/Item.js +0 -154
- package/lib/list/Separator.d.ts +0 -3
- package/lib/list/Separator.js +0 -12
- package/lib/list/helpers.d.ts +0 -15
- package/lib/list/helpers.js +0 -14
- package/lib/list/index.d.ts +0 -13
- package/lib/list/index.js +0 -182
- package/lib/list/types.d.ts +0 -72
- package/lib/list/types.js +0 -5
- package/lib/menus/float/MenuItem.d.ts +0 -9
- package/lib/menus/float/MenuItem.js +0 -69
- package/lib/menus/float/SubMenuContainer.js +0 -77
- package/lib/menus/float/helpers.d.ts +0 -9
- package/lib/menus/float/helpers.js +0 -10
- package/lib/menus/float/index.d.ts +0 -40
- package/lib/menus/float/index.js +0 -68
- package/lib/menus/float/types.d.ts +0 -30
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/index.d.ts +0 -12
- package/lib/menus/index.js +0 -9
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -12
- package/lib/menus/sidenav/ExpandMenu.js +0 -27
- package/lib/menus/sidenav/MenuLink.d.ts +0 -15
- package/lib/menus/sidenav/MenuLink.js +0 -29
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -12
- package/lib/menus/sidenav/NavMenuGroup.js +0 -26
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -15
- package/lib/menus/sidenav/NavMenuItem.js +0 -150
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -12
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -47
- package/lib/menus/sidenav/helpers.d.ts +0 -14
- package/lib/menus/sidenav/helpers.js +0 -18
- package/lib/menus/sidenav/index.d.ts +0 -16
- package/lib/menus/sidenav/index.js +0 -184
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -26
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -116
- package/lib/menus/sidenav/types.d.ts +0 -90
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/noPermission/index.d.ts +0 -3
- package/lib/noPermission/index.js +0 -23
- package/lib/panel/Content.d.ts +0 -10
- package/lib/panel/Content.js +0 -79
- package/lib/panel/DangerPanel.d.ts +0 -10
- package/lib/panel/DangerPanel.js +0 -15
- package/lib/panel/Default.d.ts +0 -10
- package/lib/panel/Default.js +0 -67
- package/lib/panel/Header.d.ts +0 -10
- package/lib/panel/Header.js +0 -77
- package/lib/panel/InfoPanel.d.ts +0 -10
- package/lib/panel/InfoPanel.js +0 -15
- package/lib/panel/PrimaryPanel.d.ts +0 -10
- package/lib/panel/PrimaryPanel.js +0 -15
- package/lib/panel/SuccessPanel.d.ts +0 -10
- package/lib/panel/SuccessPanel.js +0 -15
- package/lib/panel/ToolBar.d.ts +0 -10
- package/lib/panel/ToolBar.js +0 -22
- package/lib/panel/WarningPanel.d.ts +0 -10
- package/lib/panel/WarningPanel.js +0 -15
- package/lib/panel/helpers.d.ts +0 -11
- package/lib/panel/helpers.js +0 -25
- package/lib/panel/index.d.ts +0 -18
- package/lib/panel/index.js +0 -59
- package/lib/panel/types.d.ts +0 -47
- package/lib/panel/types.js +0 -5
- package/lib/permissionValidations.d.ts +0 -14
- package/lib/permissionValidations.js +0 -59
- package/lib/popover/PopoverText.d.ts +0 -10
- package/lib/popover/PopoverText.js +0 -20
- package/lib/popover/PopoverTitle.d.ts +0 -10
- package/lib/popover/PopoverTitle.js +0 -17
- package/lib/popover/index.d.ts +0 -15
- package/lib/popover/index.js +0 -63
- package/lib/popover/types.d.ts +0 -24
- package/lib/popover/types.js +0 -5
- package/lib/progress/Bar.d.ts +0 -6
- package/lib/progress/Bar.js +0 -74
- package/lib/progress/index.d.ts +0 -7
- package/lib/progress/index.js +0 -38
- package/lib/progress/types.d.ts +0 -37
- package/lib/progress/types.js +0 -5
- package/lib/radio/index.d.ts +0 -13
- package/lib/radio/index.js +0 -113
- package/lib/radio/types.d.ts +0 -28
- package/lib/radio/types.js +0 -5
- package/lib/shortcuts/index.d.ts +0 -7
- package/lib/shortcuts/index.js +0 -28
- package/lib/shortcuts/types.d.ts +0 -12
- package/lib/shortcuts/types.js +0 -5
- package/lib/skeleton/SkeletonContainer.d.ts +0 -7
- package/lib/skeleton/SkeletonContainer.js +0 -23
- package/lib/skeleton/index.d.ts +0 -8
- package/lib/skeleton/index.js +0 -54
- package/lib/skeleton/types.d.ts +0 -21
- package/lib/skeleton/types.js +0 -5
- package/lib/spinner/SpinnerLoading.d.ts +0 -7
- package/lib/spinner/SpinnerLoading.js +0 -219
- package/lib/spinner/index.d.ts +0 -7
- package/lib/spinner/index.js +0 -60
- package/lib/spinner/types.d.ts +0 -20
- package/lib/spinner/types.js +0 -5
- package/lib/split/Split.d.ts +0 -6
- package/lib/split/Split.js +0 -292
- package/lib/split/SplitSide.d.ts +0 -6
- package/lib/split/SplitSide.js +0 -42
- package/lib/split/helpers.d.ts +0 -10
- package/lib/split/helpers.js +0 -10
- package/lib/split/index.d.ts +0 -8
- package/lib/split/index.js +0 -17
- package/lib/split/types.d.ts +0 -34
- package/lib/split/types.js +0 -5
- package/lib/table/Body.d.ts +0 -6
- package/lib/table/Body.js +0 -71
- package/lib/table/Header.d.ts +0 -6
- package/lib/table/Header.js +0 -90
- package/lib/table/HeaderColumn.d.ts +0 -6
- package/lib/table/HeaderColumn.js +0 -55
- package/lib/table/Row.d.ts +0 -6
- package/lib/table/Row.js +0 -78
- package/lib/table/RowColumn.d.ts +0 -6
- package/lib/table/RowColumn.js +0 -81
- package/lib/table/helpers.d.ts +0 -8
- package/lib/table/helpers.js +0 -15
- package/lib/table/index.d.ts +0 -11
- package/lib/table/index.js +0 -154
- package/lib/table/types.d.ts +0 -97
- package/lib/table/types.js +0 -5
- package/lib/tabs/DropdownTabs.d.ts +0 -11
- package/lib/tabs/DropdownTabs.js +0 -73
- package/lib/tabs/Menu.d.ts +0 -11
- package/lib/tabs/Menu.js +0 -46
- package/lib/tabs/MenuTabs.d.ts +0 -11
- package/lib/tabs/MenuTabs.js +0 -84
- package/lib/tabs/Panel.d.ts +0 -11
- package/lib/tabs/Panel.js +0 -84
- package/lib/tabs/context.d.ts +0 -12
- package/lib/tabs/context.js +0 -127
- package/lib/tabs/index.d.ts +0 -12
- package/lib/tabs/index.js +0 -70
- package/lib/tabs/tabHelpers.d.ts +0 -12
- package/lib/tabs/tabHelpers.js +0 -75
- package/lib/tabs/types.d.ts +0 -98
- package/lib/tabs/types.js +0 -5
- package/lib/tabs/useTabs.d.ts +0 -11
- package/lib/tabs/useTabs.js +0 -11
- package/lib/textContent/index.d.ts +0 -22
- package/lib/textContent/index.js +0 -42
- package/lib/toolbar/ButtonBar.d.ts +0 -12
- package/lib/toolbar/ButtonBar.js +0 -66
- package/lib/toolbar/LabelBar.d.ts +0 -12
- package/lib/toolbar/LabelBar.js +0 -58
- package/lib/toolbar/Separator.d.ts +0 -3
- package/lib/toolbar/Separator.js +0 -12
- package/lib/toolbar/ToolBarGroup.d.ts +0 -12
- package/lib/toolbar/ToolBarGroup.js +0 -19
- package/lib/toolbar/helpers.d.ts +0 -12
- package/lib/toolbar/helpers.js +0 -9
- package/lib/toolbar/index.d.ts +0 -16
- package/lib/toolbar/index.js +0 -65
- package/lib/toolbar/types.d.ts +0 -46
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/index.d.ts +0 -6
- package/lib/tooltip/index.js +0 -63
- package/lib/tooltip/types.d.ts +0 -17
- package/lib/tooltip/types.js +0 -5
- package/lib/treetable/Body.d.ts +0 -3
- package/lib/treetable/Body.js +0 -34
- package/lib/treetable/Header.d.ts +0 -3
- package/lib/treetable/Header.js +0 -24
- package/lib/treetable/Row.d.ts +0 -7
- package/lib/treetable/Row.js +0 -209
- package/lib/treetable/helpers.d.ts +0 -19
- package/lib/treetable/helpers.js +0 -32
- package/lib/treetable/index.d.ts +0 -8
- package/lib/treetable/index.js +0 -28
- package/lib/treetable/types.d.js +0 -5
- package/lib/treeview/Header.d.ts +0 -7
- package/lib/treeview/Header.js +0 -21
- package/lib/treeview/Node.d.ts +0 -7
- package/lib/treeview/Node.js +0 -245
- package/lib/treeview/constants.d.ts +0 -7
- package/lib/treeview/constants.js +0 -9
- package/lib/treeview/index.d.ts +0 -9
- package/lib/treeview/index.js +0 -320
- package/lib/treeview/types.d.ts +0 -108
- package/lib/treeview/types.js +0 -5
- package/lib/types.d-73cece43.d.ts +0 -46
- package/lib/uitour/helpers.d.ts +0 -8
- package/lib/uitour/helpers.js +0 -12
- package/lib/uitour/index.d.ts +0 -7
- package/lib/uitour/index.js +0 -255
- package/lib/uitour/types.d.ts +0 -38
- package/lib/uitour/types.js +0 -5
package/lib/icons/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IconProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PointerEvents.js';
|
|
4
|
-
import '../@types/SizePixels.js';
|
|
5
|
-
import '../@types/Icon.js';
|
|
6
|
-
import './helper.js';
|
|
7
|
-
import '../@types/Position.js';
|
|
8
|
-
import '../@types/ColorStyles.js';
|
|
9
|
-
|
|
10
|
-
declare const _default: {
|
|
11
|
-
(props: IconProps): JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|
package/lib/icons/index.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _helper = _interopRequireDefault(require("./helper"));
|
|
9
|
-
var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
|
|
10
|
-
require("../assets/styles/icon.scss");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
const listIcon = _helper.default;
|
|
15
|
-
const disabledIconColor = 'rgb(193, 193, 193)';
|
|
16
|
-
const Icon = _ref => {
|
|
17
|
-
let {
|
|
18
|
-
name,
|
|
19
|
-
onClick,
|
|
20
|
-
svgStruct,
|
|
21
|
-
size = 16,
|
|
22
|
-
style = {},
|
|
23
|
-
visible = true,
|
|
24
|
-
disabled = false,
|
|
25
|
-
customClass = '',
|
|
26
|
-
customClassForContainer = '',
|
|
27
|
-
colorStyle = 'default',
|
|
28
|
-
color,
|
|
29
|
-
viewBox,
|
|
30
|
-
pointerEvents = 'none',
|
|
31
|
-
targetRef,
|
|
32
|
-
tooltip
|
|
33
|
-
} = _ref;
|
|
34
|
-
const isUsingColorStyle = colorStyle !== 'default';
|
|
35
|
-
const colorFromProp = isUsingColorStyle || !color ? undefined : color;
|
|
36
|
-
const refSvg = (0, _react.useRef)(null);
|
|
37
|
-
const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct?.viewbox;
|
|
38
|
-
const getPaths = () => name ? listIcon[name].paths : svgStruct?.paths;
|
|
39
|
-
const getSvg = () => /*#__PURE__*/_react.default.createElement("svg", {
|
|
40
|
-
"data-testid": "icon",
|
|
41
|
-
"data-color-style": colorStyle,
|
|
42
|
-
onClick: () => {
|
|
43
|
-
if (onClick && !disabled) onClick();
|
|
44
|
-
},
|
|
45
|
-
ref: r => {
|
|
46
|
-
refSvg.current = r;
|
|
47
|
-
},
|
|
48
|
-
width: `${size}px`,
|
|
49
|
-
height: `${size}px`,
|
|
50
|
-
fill: disabled ? disabledIconColor : colorFromProp,
|
|
51
|
-
viewBox: viewBox || viewBoxFromIconOrSvgStrcut,
|
|
52
|
-
className: `icon-component ${customClass}`,
|
|
53
|
-
pointerEvents: pointerEvents,
|
|
54
|
-
style: style
|
|
55
|
-
}, getPaths()?.map(value => /*#__PURE__*/_react.default.createElement("path", {
|
|
56
|
-
"data-testid": "icon-path",
|
|
57
|
-
d: value,
|
|
58
|
-
key: value
|
|
59
|
-
})));
|
|
60
|
-
if (color && colorStyle !== 'default') throw new Error('Expected only one of the two properties: colorStyle or color');
|
|
61
|
-
if (!name && !svgStruct) throw new Error('One of the "name" and "svgStruct" props must be filled');
|
|
62
|
-
if (!visible) return null;
|
|
63
|
-
if (!tooltip) return getSvg();
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className: `icon-component-container ${customClassForContainer}`,
|
|
66
|
-
ref: r => {
|
|
67
|
-
if (targetRef && r) targetRef(r);
|
|
68
|
-
}
|
|
69
|
-
}, getSvg());
|
|
70
|
-
};
|
|
71
|
-
var _default = exports.default = (0, _withTooltip.default)(Icon);
|
package/lib/icons/types.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { PointerEvents } from '../@types/PointerEvents.js';
|
|
3
|
-
import { SizePixels } from '../@types/SizePixels.js';
|
|
4
|
-
import { IconNames } from '../@types/Icon.js';
|
|
5
|
-
import { Position } from '../@types/Position.js';
|
|
6
|
-
import { ColorStyles } from '../@types/ColorStyles.js';
|
|
7
|
-
import './helper.js';
|
|
8
|
-
|
|
9
|
-
type ListIconType = {
|
|
10
|
-
[name: string]: {
|
|
11
|
-
viewbox: string;
|
|
12
|
-
paths: Array<string>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
type SvgStruct = {
|
|
16
|
-
viewbox: string;
|
|
17
|
-
paths: Array<string>;
|
|
18
|
-
};
|
|
19
|
-
type BaseIconProps = {
|
|
20
|
-
size?: SizePixels;
|
|
21
|
-
customClass?: string;
|
|
22
|
-
customClassForContainer?: string;
|
|
23
|
-
style?: CSSProperties;
|
|
24
|
-
visible?: boolean;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
pointerEvents?: PointerEvents;
|
|
27
|
-
viewBox?: string;
|
|
28
|
-
onClick?: () => void;
|
|
29
|
-
tooltipPosition?: Exclude<Position, 'center'>;
|
|
30
|
-
tooltipWidth?: string | number;
|
|
31
|
-
tooltip?: string;
|
|
32
|
-
targetRef?: (ref: HTMLDivElement) => void;
|
|
33
|
-
};
|
|
34
|
-
type ColorProps = ({
|
|
35
|
-
colorStyle?: ColorStyles | 'default';
|
|
36
|
-
color?: null;
|
|
37
|
-
} | {
|
|
38
|
-
color?: string;
|
|
39
|
-
colorStyle?: undefined;
|
|
40
|
-
});
|
|
41
|
-
type IconProps = BaseIconProps & ColorProps & ({
|
|
42
|
-
name: IconNames;
|
|
43
|
-
svgStruct?: null;
|
|
44
|
-
} | {
|
|
45
|
-
svgStruct: SvgStruct;
|
|
46
|
-
name?: null;
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export { IconProps, ListIconType };
|
package/lib/icons/types.js
DELETED
package/lib/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export { default as Panel } from './panel/Default.js';
|
|
2
|
-
export { default as Toolbar } from './toolbar/index.js';
|
|
3
|
-
export { default as Button } from './buttons/Button.js';
|
|
4
|
-
export { default as Label } from './labels/DefaultLabel.js';
|
|
5
|
-
export { default as Icon } from './icons/index.js';
|
|
6
|
-
export { default as List } from './list/index.js';
|
|
7
|
-
export { default as Radio } from './radio/index.js';
|
|
8
|
-
export { default as Tab } from './tabs/index.js';
|
|
9
|
-
export { default as Dialog } from './dialog/base/index.js';
|
|
10
|
-
import './panel/types.js';
|
|
11
|
-
import 'react';
|
|
12
|
-
import './@types/PermissionAttr.js';
|
|
13
|
-
import './internals/colorStyles.js';
|
|
14
|
-
import './@types/Icon.js';
|
|
15
|
-
import './icons/helper.js';
|
|
16
|
-
import './toolbar/ToolBarGroup.js';
|
|
17
|
-
import './toolbar/types.js';
|
|
18
|
-
import './@types/ButtonTypes.js';
|
|
19
|
-
import './@types/Position.js';
|
|
20
|
-
import './@types/Size.js';
|
|
21
|
-
import './treeview/types.js';
|
|
22
|
-
import './toolbar/Separator.js';
|
|
23
|
-
import './toolbar/ButtonBar.js';
|
|
24
|
-
import './toolbar/LabelBar.js';
|
|
25
|
-
import './buttons/types.js';
|
|
26
|
-
import './labels/types.js';
|
|
27
|
-
import './icons/types.js';
|
|
28
|
-
import './@types/PointerEvents.js';
|
|
29
|
-
import './@types/SizePixels.js';
|
|
30
|
-
import './@types/ColorStyles.js';
|
|
31
|
-
import './list/Header.js';
|
|
32
|
-
import './list/types.js';
|
|
33
|
-
import './list/Item.js';
|
|
34
|
-
import './list/Separator.js';
|
|
35
|
-
import './radio/types.js';
|
|
36
|
-
import './tabs/Panel.js';
|
|
37
|
-
import './tabs/types.js';
|
|
38
|
-
import './dialog/types.js';
|
|
39
|
-
import './@types/Align.js';
|
package/lib/index.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Button", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _buttons.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "Dialog", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _base.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "Icon", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _icons.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "Label", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _labels.default;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "List", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _list.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "Panel", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _panel.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "Radio", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _radio.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "Tab", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _tabs.default;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "Toolbar", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _toolbar.default;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
var _panel = _interopRequireDefault(require("./panel"));
|
|
61
|
-
var _toolbar = _interopRequireDefault(require("./toolbar"));
|
|
62
|
-
var _buttons = _interopRequireDefault(require("./buttons"));
|
|
63
|
-
var _labels = _interopRequireDefault(require("./labels"));
|
|
64
|
-
var _icons = _interopRequireDefault(require("./icons"));
|
|
65
|
-
var _list = _interopRequireDefault(require("./list"));
|
|
66
|
-
var _radio = _interopRequireDefault(require("./radio"));
|
|
67
|
-
var _tabs = _interopRequireDefault(require("./tabs"));
|
|
68
|
-
var _base = _interopRequireDefault(require("./dialog/base"));
|
|
69
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/Align.js';
|
|
4
|
-
import '../../@types/Period.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../../internals/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
declare const _default: (props: IBaseProps) => JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { _default as default };
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
var _inputHOC = _interopRequireDefault(require("../inputHOC"));
|
|
10
|
-
require("../../assets/styles/input.scss");
|
|
11
|
-
var helpers = _interopRequireWildcard(require("./helpers"));
|
|
12
|
-
var _withTooltip = _interopRequireDefault(require("../../internals/withTooltip"));
|
|
13
|
-
var _permissionValidations = require("../../permissionValidations");
|
|
14
|
-
var _hint = _interopRequireDefault(require("../../hint"));
|
|
15
|
-
var _errorMessage = require("../errorMessage");
|
|
16
|
-
var _textContent = _interopRequireDefault(require("../../textContent"));
|
|
17
|
-
var _popover = _interopRequireDefault(require("../../popover"));
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
22
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
26
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
|
-
const InputTextBase = props => {
|
|
28
|
-
const {
|
|
29
|
-
textAlign = 'left',
|
|
30
|
-
value,
|
|
31
|
-
type = 'text',
|
|
32
|
-
readOnly = false,
|
|
33
|
-
placeHolder,
|
|
34
|
-
required,
|
|
35
|
-
leftElements,
|
|
36
|
-
rightElements,
|
|
37
|
-
children,
|
|
38
|
-
customClass,
|
|
39
|
-
customClassForInputContent,
|
|
40
|
-
customClassForLabel,
|
|
41
|
-
customClassForSideButtons,
|
|
42
|
-
inputRef,
|
|
43
|
-
inputBaseRef,
|
|
44
|
-
label,
|
|
45
|
-
labelUppercase,
|
|
46
|
-
hint,
|
|
47
|
-
hintPosition = 'below',
|
|
48
|
-
errorMessages,
|
|
49
|
-
visible = true,
|
|
50
|
-
permissionAttr,
|
|
51
|
-
onDeniedActions,
|
|
52
|
-
handlerSetOnDenied,
|
|
53
|
-
targetRef,
|
|
54
|
-
skeletonize = false,
|
|
55
|
-
style,
|
|
56
|
-
styleForInputContent,
|
|
57
|
-
styleForWrapper,
|
|
58
|
-
styleForLabel,
|
|
59
|
-
styleForSideButtons,
|
|
60
|
-
disabled = false,
|
|
61
|
-
autoFocus,
|
|
62
|
-
maxLength,
|
|
63
|
-
name,
|
|
64
|
-
id,
|
|
65
|
-
multiple = false,
|
|
66
|
-
accept,
|
|
67
|
-
onChange,
|
|
68
|
-
onDragOver,
|
|
69
|
-
onDrop,
|
|
70
|
-
onDragLeave,
|
|
71
|
-
onClick,
|
|
72
|
-
readOnlyClass,
|
|
73
|
-
autoComplete = 'on',
|
|
74
|
-
themePopover = 'light',
|
|
75
|
-
popoverAlign = 'left'
|
|
76
|
-
} = props;
|
|
77
|
-
let propsInput;
|
|
78
|
-
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
79
|
-
const labelRef = (0, _react.useRef)(null);
|
|
80
|
-
const onDenied = onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
81
|
-
const {
|
|
82
|
-
hideContent,
|
|
83
|
-
unvisible
|
|
84
|
-
} = onDenied;
|
|
85
|
-
const [showTooltip, setShowTooltip] = (0, _react.useState)(false);
|
|
86
|
-
(0, _react.useEffect)(() => {
|
|
87
|
-
if (handlerSetOnDenied) handlerSetOnDenied(onDenied);
|
|
88
|
-
}, []);
|
|
89
|
-
const applyTabIndex = () => readOnly ? -1 : 0;
|
|
90
|
-
const shouldDisable = () => disabled || onDenied.disabled;
|
|
91
|
-
const shouldBeReadOnly = () => readOnly || onDenied.readOnly;
|
|
92
|
-
const inputProps = () => {
|
|
93
|
-
const disableCallbacks = shouldBeReadOnly() || shouldDisable() || hideContent;
|
|
94
|
-
propsInput = {
|
|
95
|
-
value: hideContent ? '' : value,
|
|
96
|
-
accept,
|
|
97
|
-
type,
|
|
98
|
-
readOnly: shouldBeReadOnly(),
|
|
99
|
-
placeholder: placeHolder,
|
|
100
|
-
disabled: shouldDisable() || hideContent,
|
|
101
|
-
autoFocus,
|
|
102
|
-
maxLength,
|
|
103
|
-
name,
|
|
104
|
-
id,
|
|
105
|
-
multiple,
|
|
106
|
-
className: helpers.getInputClass({
|
|
107
|
-
textAlign,
|
|
108
|
-
readOnly,
|
|
109
|
-
readOnlyClass
|
|
110
|
-
}),
|
|
111
|
-
ref: r => {
|
|
112
|
-
if (inputRef) {
|
|
113
|
-
if (!_lodash.default.isFunction(inputRef)) {
|
|
114
|
-
inputRef.current = r;
|
|
115
|
-
} else {
|
|
116
|
-
inputRef(r);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (targetRef) targetRef(r);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
if (!disableCallbacks) {
|
|
123
|
-
propsInput = _objectSpread(_objectSpread({}, propsInput), {}, {
|
|
124
|
-
onFocus: e => {
|
|
125
|
-
props.onInputReceiveFocus?.();
|
|
126
|
-
if (props.onFocus) props.onFocus(e);
|
|
127
|
-
},
|
|
128
|
-
onBlur: e => {
|
|
129
|
-
props.onInputLostFocus?.();
|
|
130
|
-
if (props.onBlur) props.onBlur(e);
|
|
131
|
-
},
|
|
132
|
-
onKeyDown: e => {
|
|
133
|
-
if (props.onKeyDown) props.onKeyDown(e);
|
|
134
|
-
},
|
|
135
|
-
onKeyPress: e => {
|
|
136
|
-
if (props.onKeyPress) props.onKeyPress(e);
|
|
137
|
-
},
|
|
138
|
-
onChange: e => {
|
|
139
|
-
if (onChange) onChange(e);
|
|
140
|
-
},
|
|
141
|
-
onDragOver: e => {
|
|
142
|
-
if (onDragOver) onDragOver(e);
|
|
143
|
-
},
|
|
144
|
-
onDrop: e => {
|
|
145
|
-
if (onDrop) onDrop(e);
|
|
146
|
-
},
|
|
147
|
-
onDragLeave: e => {
|
|
148
|
-
if (onDragLeave) onDragLeave(e);
|
|
149
|
-
},
|
|
150
|
-
onClick: e => {
|
|
151
|
-
if (onClick) onClick(e);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return propsInput;
|
|
156
|
-
};
|
|
157
|
-
const onHoverLabel = e => {
|
|
158
|
-
const target = e.target;
|
|
159
|
-
if (target.offsetWidth < target.scrollWidth) {
|
|
160
|
-
setShowTooltip(true);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
(0, _react.useEffect)(() => {
|
|
164
|
-
const resize = new ResizeObserver(_ref => {
|
|
165
|
-
let [element] = _ref;
|
|
166
|
-
const {
|
|
167
|
-
target
|
|
168
|
-
} = element;
|
|
169
|
-
setShowTooltip(prevState => {
|
|
170
|
-
var overflowing = target.clientWidth < target.scrollWidth;
|
|
171
|
-
return prevState === overflowing ? prevState : overflowing;
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
if (labelRef.current) {
|
|
175
|
-
resize.observe(labelRef.current);
|
|
176
|
-
}
|
|
177
|
-
return () => {
|
|
178
|
-
if (resize) {
|
|
179
|
-
resize.disconnect();
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
}, []);
|
|
183
|
-
if (labelRef.current) {
|
|
184
|
-
const element = labelRef.current;
|
|
185
|
-
const overflowing = element.offsetWidth < element.scrollWidth;
|
|
186
|
-
if (overflowing && !showTooltip) {
|
|
187
|
-
setShowTooltip(true);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
if (!visible || unvisible) return null;
|
|
191
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
192
|
-
style: style,
|
|
193
|
-
className: `input-base-component ${skeletonize ? '-skeletonized' : ''} ${customClass}`,
|
|
194
|
-
ref: inputBaseRef
|
|
195
|
-
}, label && /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
-
className: "labelcontainer",
|
|
197
|
-
style: {
|
|
198
|
-
textAlign: textAlign === 'center' ? 'left' : textAlign
|
|
199
|
-
}
|
|
200
|
-
}, /*#__PURE__*/_react.default.createElement(_textContent.default, {
|
|
201
|
-
labelRef: labelRef,
|
|
202
|
-
required: required,
|
|
203
|
-
label: label,
|
|
204
|
-
onHoverLabel: onHoverLabel,
|
|
205
|
-
className: customClassForLabel,
|
|
206
|
-
labelUppercase: labelUppercase,
|
|
207
|
-
tooltip: label.toString(),
|
|
208
|
-
tooltipPosition: "top"
|
|
209
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
210
|
-
className: "text-content",
|
|
211
|
-
style: {
|
|
212
|
-
display: 'flex'
|
|
213
|
-
}
|
|
214
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
215
|
-
className: `label ${customClassForLabel} ${labelUppercase && ' -uppercase'}`,
|
|
216
|
-
style: {
|
|
217
|
-
alignSelf: 'center'
|
|
218
|
-
}
|
|
219
|
-
}, label, required && /*#__PURE__*/_react.default.createElement("span", {
|
|
220
|
-
className: "-requiredlabel"
|
|
221
|
-
}, "*"), !!hint && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
222
|
-
theme: themePopover,
|
|
223
|
-
align: popoverAlign,
|
|
224
|
-
customClass: "-hint",
|
|
225
|
-
iconColor: "#03bde2",
|
|
226
|
-
style: {
|
|
227
|
-
margin: '0px 5px',
|
|
228
|
-
height: 'auto',
|
|
229
|
-
width: 20
|
|
230
|
-
}
|
|
231
|
-
}, hint))), /*#__PURE__*/_react.default.createElement(_textContent.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
232
|
-
"data-testid": "testInputWrapper",
|
|
233
|
-
style: styleForWrapper,
|
|
234
|
-
className: helpers.getInputWrapperClass(_objectSpread(_objectSpread({}, props), {}, {
|
|
235
|
-
disabled: shouldDisable() || hideContent
|
|
236
|
-
}))
|
|
237
|
-
}, leftElements && /*#__PURE__*/_react.default.createElement("div", {
|
|
238
|
-
style: styleForSideButtons,
|
|
239
|
-
className: `sidebuttons ${customClassForSideButtons}`
|
|
240
|
-
}, leftElements), /*#__PURE__*/_react.default.createElement("div", {
|
|
241
|
-
"data-testid": "testInputContent",
|
|
242
|
-
style: styleForInputContent,
|
|
243
|
-
className: `inputcontent ${customClassForInputContent}`
|
|
244
|
-
}, type === 'textarea' ? /*#__PURE__*/_react.default.createElement("textarea", _extends({
|
|
245
|
-
rows: props.rows,
|
|
246
|
-
cols: props.cols,
|
|
247
|
-
tabIndex: applyTabIndex()
|
|
248
|
-
}, inputProps())) : /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
249
|
-
autoComplete: autoComplete,
|
|
250
|
-
tabIndex: applyTabIndex(),
|
|
251
|
-
"data-testid": "teste-123"
|
|
252
|
-
}, inputProps())), children), helpers.getRightElements(errorMessages || [], skeletonize, rightElements)), /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
253
|
-
disabled: disabled,
|
|
254
|
-
visible: !!hint && hintPosition === 'below',
|
|
255
|
-
customClass: "hint",
|
|
256
|
-
description: hint
|
|
257
|
-
}), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
258
|
-
messages: errorMessages
|
|
259
|
-
}));
|
|
260
|
-
};
|
|
261
|
-
var _default = exports.default = (0, _inputHOC.default)((0, _withTooltip.default)(InputTextBase));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputLabelProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/Align.js';
|
|
4
|
-
import '../../@types/Period.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../../internals/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
declare const _default: {
|
|
10
|
-
(props: InputLabelProps): JSX.Element;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { _default as default };
|
package/lib/inputs/base/Label.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _withTooltip = _interopRequireDefault(require("../../internals/withTooltip"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const Label = props => {
|
|
11
|
-
const {
|
|
12
|
-
label,
|
|
13
|
-
styleForLabel,
|
|
14
|
-
customClassForLabel,
|
|
15
|
-
labelUppercase,
|
|
16
|
-
required,
|
|
17
|
-
targetRef,
|
|
18
|
-
labelRef,
|
|
19
|
-
onHoverLabel
|
|
20
|
-
} = props;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement("span", {
|
|
22
|
-
style: styleForLabel,
|
|
23
|
-
ref: ref => {
|
|
24
|
-
if (ref) {
|
|
25
|
-
if (labelRef) labelRef.current = ref;
|
|
26
|
-
if (targetRef) targetRef(ref);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
onMouseEnter: onHoverLabel,
|
|
30
|
-
className: `label ${customClassForLabel} ${labelUppercase && ' -uppercase'}`
|
|
31
|
-
}, label, required && /*#__PURE__*/_react.default.createElement("span", {
|
|
32
|
-
className: "-requiredlabel"
|
|
33
|
-
}, "*"));
|
|
34
|
-
};
|
|
35
|
-
var _default = exports.default = (0, _withTooltip.default)(Label);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from './types.js';
|
|
2
|
-
import { TextAlign } from '../../@types/Align.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/Period.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../../internals/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
declare const getInputClass: ({ textAlign, readOnly, readOnlyClass, }: {
|
|
10
|
-
textAlign?: TextAlign | undefined;
|
|
11
|
-
readOnly?: boolean | undefined;
|
|
12
|
-
readOnlyClass?: string | undefined;
|
|
13
|
-
}) => string;
|
|
14
|
-
declare const getInputWrapperClass: (props: IBaseProps) => string;
|
|
15
|
-
declare const getRightElements: (errorMessages: string[], skeletonize: boolean, rightElements?: JSX.Element | JSX.Element[]) => JSX.Element[] | null;
|
|
16
|
-
|
|
17
|
-
export { getInputClass, getInputWrapperClass, getRightElements };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getRightElements = exports.getInputWrapperClass = exports.getInputClass = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const getInputClass = _ref => {
|
|
11
|
-
let {
|
|
12
|
-
textAlign,
|
|
13
|
-
readOnly,
|
|
14
|
-
readOnlyClass
|
|
15
|
-
} = _ref;
|
|
16
|
-
return `textinput text-align-${textAlign} ${readOnlyClass} ${readOnly ? ' -readonly' : ''}`;
|
|
17
|
-
};
|
|
18
|
-
exports.getInputClass = getInputClass;
|
|
19
|
-
const getInputWrapperClass = props => {
|
|
20
|
-
const {
|
|
21
|
-
inputHasFocus,
|
|
22
|
-
customClassForWrapper,
|
|
23
|
-
rounded,
|
|
24
|
-
errorMessages,
|
|
25
|
-
disabled
|
|
26
|
-
} = props;
|
|
27
|
-
return `inputwrapper ${inputHasFocus && ' -focusable'}
|
|
28
|
-
${customClassForWrapper}
|
|
29
|
-
${errorMessages && errorMessages.length > 0 && ' -requirederror'}
|
|
30
|
-
${rounded && ' -roundedborders'}
|
|
31
|
-
${disabled && ' -disabled'}`;
|
|
32
|
-
};
|
|
33
|
-
exports.getInputWrapperClass = getInputWrapperClass;
|
|
34
|
-
const getRightElements = (errorMessages, skeletonize, rightElements) => {
|
|
35
|
-
let elements = rightElements || [];
|
|
36
|
-
if (skeletonize) return null;
|
|
37
|
-
if (!_lodash.default.isArray(elements)) {
|
|
38
|
-
elements = [elements];
|
|
39
|
-
}
|
|
40
|
-
elements = elements.map((element, index) => element && /*#__PURE__*/_react.default.cloneElement(element, {
|
|
41
|
-
key: `rightelement-${index + 1}`
|
|
42
|
-
}));
|
|
43
|
-
if (errorMessages) return elements;
|
|
44
|
-
return elements;
|
|
45
|
-
};
|
|
46
|
-
exports.getRightElements = getRightElements;
|