@zohodesk/dot 1.9.2 → 1.9.3
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/README.md +15 -0
- package/_react-cli.config.js +27 -0
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +425 -422
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +16 -16
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +425 -422
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +16 -16
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +425 -422
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +16 -16
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +16 -16
- package/cbt.config.js +41 -0
- package/es/AlphabeticList/AlphabeticList.module.css +0 -0
- package/es/AttachmentViewer/AttachmentViewer.js +20 -24
- package/es/AudioPlayer/Timer/__tests__/Timer.spec.js +1 -2
- package/es/AudioPlayer/__tests__/AudioPlayer.spec.js +39 -38
- package/es/ChannelIcon/ChannelIcon.js +11 -13
- package/es/DotProvider/DotProvider.js +4 -2
- package/es/Drawer/Drawer.js +5 -4
- package/es/ExternalLink/ExternalLink.js +5 -4
- package/es/ExternalLink/ExternalLink.module.css +0 -0
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.js +12 -14
- package/es/IconButton/IconButton.js +5 -4
- package/es/Link/Link.js +10 -8
- package/es/Message/Message.js +5 -4
- package/es/Onboarding/Onboarding.js +25 -33
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/Separator/Separator.module.css +5 -5
- package/es/TagWithIcon/TagWithIcon.module.css +2 -2
- package/es/ToastMessage/ToastMessage.js +4 -2
- package/es/ToastMessage/ToastMessage.module.css +0 -0
- package/es/actions/AutoClose.js +1 -2
- package/es/alert/AlertLookup/AlertLookup.js +12 -14
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +5 -4
- package/es/avatar/AvatarStatus/AvatarStatus.js +8 -7
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +9 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +14 -17
- package/es/dot_layer.module.css +1 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +24 -28
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +13 -15
- package/es/form/fields/CurrencyField/CurrencyField.js +12 -14
- package/es/form/fields/DateField/DateField.js +13 -14
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +12 -13
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +17 -19
- package/es/form/fields/SelectField/SelectField.js +13 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +20 -20
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +13 -14
- package/es/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -11
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +10 -11
- package/es/form/fields/TextareaField/TextareaField.js +14 -15
- package/es/form/fields/ValidationMessage/ValidationMessage.js +4 -2
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +6 -4
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +17 -10
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/GridStencils/GridStencils.module.css +14 -5
- package/es/list/ListLayout/ListLayout.js +5 -4
- package/es/list/SecondaryText/AccountName.js +6 -4
- package/es/list/SecondaryText/ContactName.js +6 -4
- package/es/list/SecondaryText/Email.js +5 -4
- package/es/list/SecondaryText/PhoneNumber.js +5 -4
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/Subject/Subject.js +5 -4
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +11 -7
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/es/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/es/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/es/list/status/StatusListItem/props/propTypes.js +2 -1
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/Lookup/Lookup.js +5 -4
- package/es/lookup/Lookup/Lookup.module.css +0 -0
- package/es/lookup/header/Search/Search.js +3 -5
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/Text/TableText.module.css +0 -0
- package/es/setup/table/Text/Text.js +0 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +9 -8
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +7 -6
- package/lib/AlphabeticList/AlphabeticList.module.css +0 -0
- package/lib/Drawer/Drawer.js +0 -0
- package/lib/ExternalLink/ExternalLink.js +0 -0
- package/lib/ExternalLink/ExternalLink.module.css +0 -0
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/Link/Link.js +0 -0
- package/lib/PlusIcon/PlusIcon.js +0 -0
- package/lib/Separator/Separator.module.css +5 -5
- package/lib/TagWithIcon/TagWithIcon.module.css +2 -2
- package/lib/ToastMessage/ToastMessage.js +0 -0
- package/lib/ToastMessage/ToastMessage.module.css +0 -0
- package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
- package/lib/dot_layer.module.css +1 -1
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +0 -0
- package/lib/form/layout/Field/Field.js +0 -0
- package/lib/form/layout/Section/Section.js +0 -0
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +16 -10
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/GridStencils/GridStencils.module.css +14 -5
- package/lib/list/SecondaryText/Website.js +0 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +7 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +38 -17
- package/lib/list/status/StatusListItem/__tests__/__snapshots__/StatusListItem.spec.js.snap +30 -23
- package/lib/list/status/StatusListItem/props/defaultProps.js +2 -1
- package/lib/list/status/StatusListItem/props/propTypes.js +2 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
- package/lib/lookup/Lookup/Lookup.js +0 -0
- package/lib/lookup/Lookup/Lookup.module.css +0 -0
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +0 -0
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +0 -0
- package/lib/setup/helptips/Link/Link.js +0 -0
- package/lib/setup/helptips/Title/Title.js +0 -0
- package/lib/setup/table/Text/TableText.module.css +0 -0
- package/lib/setup/table/Text/Text.js +0 -0
- package/package.json +16 -20
- package/es/v1/ActionButton/ActionButton.js +0 -155
- package/es/v1/ActionButton/props/defaultProps.js +0 -19
- package/es/v1/ActionButton/props/propTypes.js +0 -37
- package/es/v1/AlphabeticList/AlphabeticList.js +0 -94
- package/es/v1/AlphabeticList/props/defaultProps.js +0 -12
- package/es/v1/AlphabeticList/props/propTypes.js +0 -23
- package/es/v1/Attachment/Attachment.js +0 -96
- package/es/v1/Attachment/props/defaultProps.js +0 -8
- package/es/v1/Attachment/props/propTypes.js +0 -18
- package/es/v1/AttachmentViewer/AttachmentImage.js +0 -81
- package/es/v1/AttachmentViewer/AttachmentViewer.js +0 -626
- package/es/v1/AttachmentViewer/props/defaultProps.js +0 -11
- package/es/v1/AttachmentViewer/props/propTypes.js +0 -36
- package/es/v1/ChannelIcon/ChannelIcon.js +0 -93
- package/es/v1/ChannelIcon/props/defaultProps.js +0 -7
- package/es/v1/ChannelIcon/props/propTypes.js +0 -25
- package/es/v1/Drawer/Drawer.js +0 -270
- package/es/v1/Drawer/props/defaultProps.js +0 -23
- package/es/v1/Drawer/props/propTypes.js +0 -53
- package/es/v1/ExternalLink/ExternalLink.js +0 -48
- package/es/v1/ExternalLink/props/defaultProps.js +0 -5
- package/es/v1/ExternalLink/props/propTypes.js +0 -12
- package/es/v1/FlipCard/FlipCard.js +0 -132
- package/es/v1/FlipCard/props/defaultProps.js +0 -5
- package/es/v1/FlipCard/props/propTypes.js +0 -37
- package/es/v1/FormAction/FormAction.js +0 -75
- package/es/v1/FormAction/props/defaultProps.js +0 -5
- package/es/v1/FormAction/props/propTypes.js +0 -8
- package/es/v1/FreezeLayer/FreezeLayer.js +0 -74
- package/es/v1/FreezeLayer/props/defaultProps.js +0 -9
- package/es/v1/FreezeLayer/props/propTypes.js +0 -19
- package/es/v1/GlobalNotification/GlobalNotification.js +0 -144
- package/es/v1/GlobalNotification/props/defaultProps.js +0 -6
- package/es/v1/GlobalNotification/props/propTypes.js +0 -42
- package/es/v1/IconButton/IconButton.js +0 -112
- package/es/v1/IconButton/props/defaultProps.js +0 -17
- package/es/v1/IconButton/props/propTypes.js +0 -33
- package/es/v1/Image/Image.js +0 -36
- package/es/v1/Image/props/defaultProps.js +0 -4
- package/es/v1/Image/props/propTypes.js +0 -15
- package/es/v1/ImportantNotes/ImportantNotes.js +0 -41
- package/es/v1/ImportantNotes/props/defaultProps.js +0 -6
- package/es/v1/ImportantNotes/props/propTypes.js +0 -10
- package/es/v1/Link/Link.js +0 -93
- package/es/v1/Link/props/defaultProps.js +0 -5
- package/es/v1/Link/props/propTypes.js +0 -18
- package/es/v1/Loader/Loader.js +0 -15
- package/es/v1/Message/Message.js +0 -91
- package/es/v1/Message/props/defaultProps.js +0 -4
- package/es/v1/Message/props/propTypes.js +0 -20
- package/es/v1/MessageBanner/MessageBanner.js +0 -60
- package/es/v1/MessageBanner/props/defaultProps.js +0 -7
- package/es/v1/MessageBanner/props/propTypes.js +0 -13
- package/es/v1/NewStar/NewStar.js +0 -61
- package/es/v1/NewStar/props/defaultProps.js +0 -4
- package/es/v1/NewStar/props/propTypes.js +0 -6
- package/es/v1/PlusIcon/PlusIcon.js +0 -32
- package/es/v1/PlusIcon/props/defaultProps.js +0 -8
- package/es/v1/PlusIcon/props/propTypes.js +0 -11
- package/es/v1/Separator/Separator.js +0 -53
- package/es/v1/Separator/props/defaultProps.js +0 -12
- package/es/v1/Separator/props/propTypes.js +0 -11
- package/es/v1/TagWithIcon/TagWithIcon.js +0 -39
- package/es/v1/TagWithIcon/props/defaultProps.js +0 -8
- package/es/v1/TagWithIcon/props/propTypes.js +0 -13
- package/es/v1/ToastMessage/ToastMessage.js +0 -201
- package/es/v1/ToastMessage/props/defaultProps.js +0 -18
- package/es/v1/ToastMessage/props/propTypes.js +0 -40
- package/es/v1/Upload/Upload.js +0 -69
- package/es/v1/Upload/props/defaultProps.js +0 -7
- package/es/v1/Upload/props/propTypes.js +0 -17
- package/es/v1/actions/AutoClose.js +0 -44
- package/es/v1/actions/props/defaultProps.js +0 -3
- package/es/v1/actions/props/propTypes.js +0 -8
- package/es/v1/alert/AlertClose/AlertClose.js +0 -43
- package/es/v1/alert/AlertClose/props/propTypes.js +0 -8
- package/es/v1/alert/AlertHeader/AlertHeader.js +0 -82
- package/es/v1/alert/AlertHeader/props/defaultProps.js +0 -12
- package/es/v1/alert/AlertHeader/props/propTypes.js +0 -20
- package/es/v1/alert/AlertLookup/AlertLookup.js +0 -166
- package/es/v1/alert/AlertLookup/props/defaultProps.js +0 -13
- package/es/v1/alert/AlertLookup/props/propTypes.js +0 -36
- package/es/v1/alert/alertIcons/AlarmAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/AlertIcons.js +0 -57
- package/es/v1/alert/alertIcons/DangerAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/ErrorAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/InfoAlertIcon.js +0 -74
- package/es/v1/alert/alertIcons/NotificationAlertIcon.js +0 -70
- package/es/v1/alert/alertIcons/SuccessAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/WarningAlertIcon.js +0 -65
- package/es/v1/alert/alertIcons/index.js +0 -8
- package/es/v1/alert/alertIcons/props/defaultProps.js +0 -27
- package/es/v1/alert/alertIcons/props/propTypes.js +0 -34
- package/es/v1/alert/index.js +0 -2
- package/es/v1/avatar/AvatarClose/AvatarClose.js +0 -47
- package/es/v1/avatar/AvatarClose/props/defaultProps.js +0 -7
- package/es/v1/avatar/AvatarClose/props/propTypes.js +0 -15
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +0 -51
- package/es/v1/avatar/AvatarCollision/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarCollision/props/propTypes.js +0 -17
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +0 -48
- package/es/v1/avatar/AvatarIcon/props/defaultProps.js +0 -14
- package/es/v1/avatar/AvatarIcon/props/propTypes.js +0 -20
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -59
- package/es/v1/avatar/AvatarStatus/props/defaultProps.js +0 -12
- package/es/v1/avatar/AvatarStatus/props/propTypes.js +0 -26
- package/es/v1/avatar/AvatarThread/AvatarThread.js +0 -72
- package/es/v1/avatar/AvatarThread/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarThread/props/propTypes.js +0 -30
- package/es/v1/avatar/AvatarUser/AvatarUser.js +0 -110
- package/es/v1/avatar/AvatarUser/props/defaultProps.js +0 -8
- package/es/v1/avatar/AvatarUser/props/propTypes.js +0 -35
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -94
- package/es/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -9
- package/es/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -25
- package/es/v1/avatar/index.js +0 -7
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -880
- package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -29
- package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -83
- package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -64
- package/es/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -10
- package/es/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -21
- package/es/v1/emptystate/EditionPage/EditionPage.js +0 -51
- package/es/v1/emptystate/EditionPage/props/defaultProps.js +0 -5
- package/es/v1/emptystate/EditionPage/props/propTypes.js +0 -11
- package/es/v1/errorstate/Inconvenience/Inconvenience.js +0 -60
- package/es/v1/errorstate/Inconvenience/props/defaultProps.js +0 -8
- package/es/v1/errorstate/Inconvenience/props/propTypes.js +0 -16
- package/es/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -64
- package/es/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -8
- package/es/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -64
- package/es/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -16
- package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
- package/es/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -9
- package/es/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -17
- package/es/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -64
- package/es/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -8
- package/es/v1/errorstate/UrlNotFound/props/propTypes.js +0 -16
- package/es/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -64
- package/es/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -8
- package/es/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -16
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -130
- package/es/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -12
- package/es/v1/form/fields/CheckBoxField/props/propTypes.js +0 -29
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +0 -160
- package/es/v1/form/fields/CurrencyField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/CurrencyField/props/propTypes.js +0 -39
- package/es/v1/form/fields/DateField/DateField.js +0 -164
- package/es/v1/form/fields/DateField/props/defaultProps.js +0 -19
- package/es/v1/form/fields/DateField/props/propTypes.js +0 -39
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +0 -66
- package/es/v1/form/fields/FieldContainer/props/defaultProps.js +0 -6
- package/es/v1/form/fields/FieldContainer/props/propTypes.js +0 -24
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -190
- package/es/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/MultiSelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/PhoneField/PhoneField.js +0 -161
- package/es/v1/form/fields/PhoneField/props/defaultProps.js +0 -16
- package/es/v1/form/fields/PhoneField/props/propTypes.js +0 -47
- package/es/v1/form/fields/RadioField/RadioField.js +0 -144
- package/es/v1/form/fields/RadioField/props/defaultProps.js +0 -13
- package/es/v1/form/fields/RadioField/props/propTypes.js +0 -33
- package/es/v1/form/fields/RadioField/useRadio.js +0 -44
- package/es/v1/form/fields/SelectField/SelectField.js +0 -160
- package/es/v1/form/fields/SelectField/props/defaultProps.js +0 -18
- package/es/v1/form/fields/SelectField/props/propTypes.js +0 -50
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -333
- package/es/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -57
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -276
- package/es/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -23
- package/es/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -71
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +0 -144
- package/es/v1/form/fields/TextBoxField/props/defaultProps.js +0 -17
- package/es/v1/form/fields/TextBoxField/props/propTypes.js +0 -44
- package/es/v1/form/fields/TextEditor/TextEditor.js +0 -418
- package/es/v1/form/fields/TextEditor/props/defaultProps.js +0 -16
- package/es/v1/form/fields/TextEditor/props/propTypes.js +0 -53
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +0 -159
- package/es/v1/form/fields/TextEditorField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextEditorField/props/propTypes.js +0 -59
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -163
- package/es/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -9
- package/es/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -40
- package/es/v1/form/fields/TextareaField/TextareaField.js +0 -140
- package/es/v1/form/fields/TextareaField/props/defaultProps.js +0 -15
- package/es/v1/form/fields/TextareaField/props/propTypes.js +0 -35
- package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -58
- package/es/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -7
- package/es/v1/form/fields/ValidationMessage/props/propTypes.js +0 -16
- package/es/v1/form/fields/index.js +0 -16
- package/es/v1/form/fields/props/FieldCommonDefaultProps.js +0 -10
- package/es/v1/form/fields/props/FieldCommonPropTypes.js +0 -17
- package/es/v1/form/layout/Field/Field.js +0 -29
- package/es/v1/form/layout/Field/props/defaultProps.js +0 -4
- package/es/v1/form/layout/Field/props/propTypes.js +0 -10
- package/es/v1/form/layout/Section/Section.js +0 -30
- package/es/v1/form/layout/Section/props/propTypes.js +0 -11
- package/es/v1/form/layout/index.js +0 -2
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -174
- package/es/v1/layout/SetupDetailLayout/index.js +0 -4
- package/es/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -20
- package/es/v1/layout/SetupDetailLayout/props/propTypes.js +0 -40
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +0 -126
- package/es/v1/layout/SubtabLayout/index.js +0 -4
- package/es/v1/layout/SubtabLayout/props/defaultProps.js +0 -25
- package/es/v1/layout/SubtabLayout/props/propTypes.js +0 -40
- package/es/v1/list/AvatarFlip/AvatarFlip.js +0 -73
- package/es/v1/list/AvatarFlip/props/defaultProps.js +0 -6
- package/es/v1/list/AvatarFlip/props/propTypes.js +0 -29
- package/es/v1/list/BluePrintStatus/BluePrintStatus.js +0 -21
- package/es/v1/list/BluePrintStatus/props/propTypes.js +0 -4
- package/es/v1/list/Comment/Comment.js +0 -35
- package/es/v1/list/Comment/props/defaultProps.js +0 -4
- package/es/v1/list/Comment/props/propTypes.js +0 -7
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -85
- package/es/v1/list/DepartmentDropDown/props/defaultProps.js +0 -7
- package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -24
- package/es/v1/list/Dot/Dot.js +0 -15
- package/es/v1/list/Dot/props/defaultProps.js +0 -4
- package/es/v1/list/Dot/props/propTypes.js +0 -5
- package/es/v1/list/DotNew/DotNew.js +0 -22
- package/es/v1/list/DotNew/props/defaultProps.js +0 -3
- package/es/v1/list/DotNew/props/propTypes.js +0 -6
- package/es/v1/list/GridStencils/GridStencils.js +0 -31
- package/es/v1/list/GridStencils/props/propTypes.js +0 -8
- package/es/v1/list/Icons/AddNewIcon.js +0 -25
- package/es/v1/list/Icons/CompleteIcon.js +0 -27
- package/es/v1/list/Icons/DeleteIcon.js +0 -28
- package/es/v1/list/Icons/EditIcon.js +0 -28
- package/es/v1/list/Icons/FloatingIcons.js +0 -23
- package/es/v1/list/Icons/ReadUnreadIcon.js +0 -32
- package/es/v1/list/Icons/SmartIcon.js +0 -25
- package/es/v1/list/Icons/index.js +0 -7
- package/es/v1/list/Icons/props/defaultProps.js +0 -6
- package/es/v1/list/Icons/props/propTypes.js +0 -53
- package/es/v1/list/ListLayout/ListLayout.js +0 -68
- package/es/v1/list/ListLayout/props/defaultProps.js +0 -11
- package/es/v1/list/ListLayout/props/propTypes.js +0 -27
- package/es/v1/list/ListStencils/ListStencils.js +0 -44
- package/es/v1/list/ListStencils/props/defaultProps.js +0 -3
- package/es/v1/list/ListStencils/props/propTypes.js +0 -4
- package/es/v1/list/SecondaryText/AccountName.js +0 -77
- package/es/v1/list/SecondaryText/ContactName.js +0 -76
- package/es/v1/list/SecondaryText/DepartmentText.js +0 -18
- package/es/v1/list/SecondaryText/Email.js +0 -47
- package/es/v1/list/SecondaryText/HappinessRating.js +0 -23
- package/es/v1/list/SecondaryText/PhoneNumber.js +0 -51
- package/es/v1/list/SecondaryText/PriorityText.js +0 -21
- package/es/v1/list/SecondaryText/SecondaryText.js +0 -27
- package/es/v1/list/SecondaryText/StatusText.js +0 -22
- package/es/v1/list/SecondaryText/TicketId.js +0 -41
- package/es/v1/list/SecondaryText/Website.js +0 -35
- package/es/v1/list/SecondaryText/index.js +0 -11
- package/es/v1/list/SecondaryText/props/defaultProps.js +0 -44
- package/es/v1/list/SecondaryText/props/propTypes.js +0 -142
- package/es/v1/list/SecondryPanel/SecondryPanel.js +0 -87
- package/es/v1/list/SecondryPanel/props/defaultProps.js +0 -18
- package/es/v1/list/SecondryPanel/props/propTypes.js +0 -27
- package/es/v1/list/SentimentStatus/SentimentStatus.js +0 -23
- package/es/v1/list/SentimentStatus/props/propTypes.js +0 -5
- package/es/v1/list/Subject/Subject.js +0 -52
- package/es/v1/list/Subject/props/defaultProps.js +0 -8
- package/es/v1/list/Subject/props/propTypes.js +0 -20
- package/es/v1/list/TagNew/TagNew.js +0 -24
- package/es/v1/list/TagNew/props/defaultProps.js +0 -4
- package/es/v1/list/TagNew/props/propTypes.js +0 -8
- package/es/v1/list/Thread/Thread.js +0 -33
- package/es/v1/list/Thread/props/defaultProps.js +0 -4
- package/es/v1/list/Thread/props/propTypes.js +0 -8
- package/es/v1/list/index.js +0 -16
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +0 -307
- package/es/v1/list/status/StatusDropdown/props/defaultProps.js +0 -22
- package/es/v1/list/status/StatusDropdown/props/propTypes.js +0 -60
- package/es/v1/list/status/StatusListItem/StatusListItem.js +0 -108
- package/es/v1/list/status/StatusListItem/props/defaultProps.js +0 -16
- package/es/v1/list/status/StatusListItem/props/propTypes.js +0 -31
- package/es/v1/list/status/index.js +0 -2
- package/es/v1/lookup/EmptyPage/EmptyPage.js +0 -54
- package/es/v1/lookup/EmptyPage/props/defaultProps.js +0 -4
- package/es/v1/lookup/EmptyPage/props/propTypes.js +0 -5
- package/es/v1/lookup/Lookup/Lookup.js +0 -116
- package/es/v1/lookup/Lookup/props/defaultProps.js +0 -9
- package/es/v1/lookup/Lookup/props/propTypes.js +0 -24
- package/es/v1/lookup/Section/Section.js +0 -18
- package/es/v1/lookup/Section/props/propTypes.js +0 -6
- package/es/v1/lookup/header/Close/Close.js +0 -30
- package/es/v1/lookup/header/Close/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Close/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -89
- package/es/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -9
- package/es/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -20
- package/es/v1/lookup/header/Search/Search.js +0 -179
- package/es/v1/lookup/header/Search/props/defaultProps.js +0 -5
- package/es/v1/lookup/header/Search/props/propTypes.js +0 -28
- package/es/v1/lookup/header/TicketHeader/TicketHeader.js +0 -108
- package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/TicketHeader/props/propTypes.js +0 -21
- package/es/v1/lookup/header/Title/Title.js +0 -27
- package/es/v1/lookup/header/Title/props/defaultProps.js +0 -3
- package/es/v1/lookup/header/Title/props/propTypes.js +0 -6
- package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -194
- package/es/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -10
- package/es/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -27
- package/es/v1/lookup/header/index.js +0 -5
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +0 -190
- package/es/v1/notification/DesktopNotification/props/defaultProps.js +0 -17
- package/es/v1/notification/DesktopNotification/props/propTypes.js +0 -43
- package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -91
- package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -7
- package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -13
- package/es/v1/setup/header/Button/Button.js +0 -24
- package/es/v1/setup/header/Button/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Button/props/propTypes.js +0 -7
- package/es/v1/setup/header/Link/Link.js +0 -32
- package/es/v1/setup/header/Link/props/defaultProps.js +0 -4
- package/es/v1/setup/header/Link/props/propTypes.js +0 -8
- package/es/v1/setup/header/Search/Search.js +0 -60
- package/es/v1/setup/header/Search/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Search/props/propTypes.js +0 -12
- package/es/v1/setup/header/Views/Views.js +0 -34
- package/es/v1/setup/header/Views/props/defaultProps.js +0 -6
- package/es/v1/setup/header/Views/props/propTypes.js +0 -9
- package/es/v1/setup/header/index.js +0 -4
- package/es/v1/setup/helptips/Description/Description.js +0 -12
- package/es/v1/setup/helptips/Description/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/Link/Link.js +0 -29
- package/es/v1/setup/helptips/Link/props/propTypes.js +0 -7
- package/es/v1/setup/helptips/ListGroup/ListGroup.js +0 -27
- package/es/v1/setup/helptips/ListGroup/props/propTypes.js +0 -5
- package/es/v1/setup/helptips/Title/Title.js +0 -12
- package/es/v1/setup/helptips/Title/props/propTypes.js +0 -4
- package/es/v1/setup/helptips/index.js +0 -4
- package/es/v1/setup/index.js +0 -6
- package/es/v1/setup/table/Table/Table.js +0 -22
- package/es/v1/setup/table/Table/props/defaultProps.js +0 -4
- package/es/v1/setup/table/Table/props/propTypes.js +0 -6
- package/es/v1/setup/table/TableBody/TableBody.js +0 -26
- package/es/v1/setup/table/TableBody/props/defaultProps.js +0 -3
- package/es/v1/setup/table/TableBody/props/propTypes.js +0 -7
- package/es/v1/setup/table/TableData/TableData.js +0 -31
- package/es/v1/setup/table/TableData/props/defaultProps.js +0 -5
- package/es/v1/setup/table/TableData/props/propTypes.js +0 -11
- package/es/v1/setup/table/TableHead/TableHead.js +0 -31
- package/es/v1/setup/table/TableHead/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableHead/props/propTypes.js +0 -8
- package/es/v1/setup/table/TableRow/TableRow.js +0 -36
- package/es/v1/setup/table/TableRow/props/defaultProps.js +0 -4
- package/es/v1/setup/table/TableRow/props/propTypes.js +0 -11
- package/es/v1/setup/table/Text/Text.js +0 -50
- package/es/v1/setup/table/Text/props/defaultProps.js +0 -7
- package/es/v1/setup/table/Text/props/propTypes.js +0 -13
- package/es/v1/setup/table/index.js +0 -5
- package/es/v1/svg/PlusIcon.js +0 -25
- package/es/v1/svg/SnippetIcon.js +0 -27
- package/es/v1/svg/TemplateIcon.js +0 -28
- package/es/v1/svg/index.js +0 -3
- package/es/v1/svg/props/defaultProps.js +0 -15
- package/es/v1/svg/props/propTypes.js +0 -16
- package/es/v1/utils/ChannelIconMapping.js +0 -129
- package/es/v1/utils/General.js +0 -45
- package/es/v1/utils/editorUtils.js +0 -193
- package/lib/v1/ActionButton/ActionButton.js +0 -173
- package/lib/v1/ActionButton/props/defaultProps.js +0 -26
- package/lib/v1/ActionButton/props/propTypes.js +0 -48
- package/lib/v1/AlphabeticList/AlphabeticList.js +0 -113
- package/lib/v1/AlphabeticList/props/defaultProps.js +0 -20
- package/lib/v1/AlphabeticList/props/propTypes.js +0 -50
- package/lib/v1/Attachment/Attachment.js +0 -110
- package/lib/v1/Attachment/props/defaultProps.js +0 -15
- package/lib/v1/Attachment/props/propTypes.js +0 -29
- package/lib/v1/AttachmentViewer/AttachmentImage.js +0 -117
- package/lib/v1/AttachmentViewer/AttachmentViewer.js +0 -713
- package/lib/v1/AttachmentViewer/props/defaultProps.js +0 -19
- package/lib/v1/AttachmentViewer/props/propTypes.js +0 -48
- package/lib/v1/ChannelIcon/ChannelIcon.js +0 -114
- package/lib/v1/ChannelIcon/props/defaultProps.js +0 -14
- package/lib/v1/ChannelIcon/props/propTypes.js +0 -36
- package/lib/v1/Drawer/Drawer.js +0 -302
- package/lib/v1/Drawer/props/defaultProps.js +0 -32
- package/lib/v1/Drawer/props/propTypes.js +0 -67
- package/lib/v1/ExternalLink/ExternalLink.js +0 -57
- package/lib/v1/ExternalLink/props/defaultProps.js +0 -12
- package/lib/v1/ExternalLink/props/propTypes.js +0 -23
- package/lib/v1/FlipCard/FlipCard.js +0 -149
- package/lib/v1/FlipCard/props/defaultProps.js +0 -12
- package/lib/v1/FlipCard/props/propTypes.js +0 -48
- package/lib/v1/FormAction/FormAction.js +0 -102
- package/lib/v1/FormAction/props/defaultProps.js +0 -12
- package/lib/v1/FormAction/props/propTypes.js +0 -19
- package/lib/v1/FreezeLayer/FreezeLayer.js +0 -94
- package/lib/v1/FreezeLayer/props/defaultProps.js +0 -16
- package/lib/v1/FreezeLayer/props/propTypes.js +0 -31
- package/lib/v1/GlobalNotification/GlobalNotification.js +0 -187
- package/lib/v1/GlobalNotification/props/defaultProps.js +0 -13
- package/lib/v1/GlobalNotification/props/propTypes.js +0 -58
- package/lib/v1/IconButton/IconButton.js +0 -149
- package/lib/v1/IconButton/props/defaultProps.js +0 -24
- package/lib/v1/IconButton/props/propTypes.js +0 -43
- package/lib/v1/Image/Image.js +0 -48
- package/lib/v1/Image/props/defaultProps.js +0 -11
- package/lib/v1/Image/props/propTypes.js +0 -26
- package/lib/v1/ImportantNotes/ImportantNotes.js +0 -55
- package/lib/v1/ImportantNotes/props/defaultProps.js +0 -13
- package/lib/v1/ImportantNotes/props/propTypes.js +0 -21
- package/lib/v1/Link/Link.js +0 -116
- package/lib/v1/Link/props/defaultProps.js +0 -12
- package/lib/v1/Link/props/propTypes.js +0 -29
- package/lib/v1/Loader/Loader.js +0 -27
- package/lib/v1/Message/Message.js +0 -113
- package/lib/v1/Message/props/defaultProps.js +0 -11
- package/lib/v1/Message/props/propTypes.js +0 -41
- package/lib/v1/MessageBanner/MessageBanner.js +0 -75
- package/lib/v1/MessageBanner/props/defaultProps.js +0 -14
- package/lib/v1/MessageBanner/props/propTypes.js +0 -24
- package/lib/v1/NewStar/NewStar.js +0 -74
- package/lib/v1/NewStar/props/defaultProps.js +0 -11
- package/lib/v1/NewStar/props/propTypes.js +0 -17
- package/lib/v1/PlusIcon/PlusIcon.js +0 -45
- package/lib/v1/PlusIcon/props/defaultProps.js +0 -15
- package/lib/v1/PlusIcon/props/propTypes.js +0 -22
- package/lib/v1/Separator/Separator.js +0 -66
- package/lib/v1/Separator/props/defaultProps.js +0 -19
- package/lib/v1/Separator/props/propTypes.js +0 -22
- package/lib/v1/TagWithIcon/TagWithIcon.js +0 -53
- package/lib/v1/TagWithIcon/props/defaultProps.js +0 -15
- package/lib/v1/TagWithIcon/props/propTypes.js +0 -24
- package/lib/v1/ToastMessage/ToastMessage.js +0 -246
- package/lib/v1/ToastMessage/props/defaultProps.js +0 -25
- package/lib/v1/ToastMessage/props/propTypes.js +0 -51
- package/lib/v1/Upload/Upload.js +0 -83
- package/lib/v1/Upload/props/defaultProps.js +0 -14
- package/lib/v1/Upload/props/propTypes.js +0 -28
- package/lib/v1/actions/AutoClose.js +0 -75
- package/lib/v1/actions/props/defaultProps.js +0 -10
- package/lib/v1/actions/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertClose/AlertClose.js +0 -62
- package/lib/v1/alert/AlertClose/props/propTypes.js +0 -19
- package/lib/v1/alert/AlertHeader/AlertHeader.js +0 -107
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +0 -19
- package/lib/v1/alert/AlertHeader/props/propTypes.js +0 -31
- package/lib/v1/alert/AlertLookup/AlertLookup.js +0 -187
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +0 -20
- package/lib/v1/alert/AlertLookup/props/propTypes.js +0 -47
- package/lib/v1/alert/alertIcons/AlarmAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/AlertIcons.js +0 -78
- package/lib/v1/alert/alertIcons/DangerAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/ErrorAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/InfoAlertIcon.js +0 -86
- package/lib/v1/alert/alertIcons/NotificationAlertIcon.js +0 -82
- package/lib/v1/alert/alertIcons/SuccessAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/WarningAlertIcon.js +0 -77
- package/lib/v1/alert/alertIcons/index.js +0 -71
- package/lib/v1/alert/alertIcons/props/defaultProps.js +0 -41
- package/lib/v1/alert/alertIcons/props/propTypes.js +0 -52
- package/lib/v1/alert/index.js +0 -23
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +0 -61
- package/lib/v1/avatar/AvatarClose/props/defaultProps.js +0 -14
- package/lib/v1/avatar/AvatarClose/props/propTypes.js +0 -26
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +0 -65
- package/lib/v1/avatar/AvatarCollision/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarCollision/props/propTypes.js +0 -28
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +0 -63
- package/lib/v1/avatar/AvatarIcon/props/defaultProps.js +0 -21
- package/lib/v1/avatar/AvatarIcon/props/propTypes.js +0 -31
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -73
- package/lib/v1/avatar/AvatarStatus/props/defaultProps.js +0 -19
- package/lib/v1/avatar/AvatarStatus/props/propTypes.js +0 -35
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +0 -85
- package/lib/v1/avatar/AvatarThread/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarThread/props/propTypes.js +0 -41
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +0 -122
- package/lib/v1/avatar/AvatarUser/props/defaultProps.js +0 -15
- package/lib/v1/avatar/AvatarUser/props/propTypes.js +0 -46
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +0 -109
- package/lib/v1/avatar/AvatarWithTeam/props/defaultProps.js +0 -16
- package/lib/v1/avatar/AvatarWithTeam/props/propTypes.js +0 -36
- package/lib/v1/avatar/index.js +0 -63
- package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +0 -946
- package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +0 -36
- package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +0 -94
- package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +0 -77
- package/lib/v1/emptystate/CommonEmptyState/props/defaultProps.js +0 -17
- package/lib/v1/emptystate/CommonEmptyState/props/propTypes.js +0 -32
- package/lib/v1/emptystate/EditionPage/EditionPage.js +0 -64
- package/lib/v1/emptystate/EditionPage/props/defaultProps.js +0 -12
- package/lib/v1/emptystate/EditionPage/props/propTypes.js +0 -22
- package/lib/v1/errorstate/Inconvenience/Inconvenience.js +0 -76
- package/lib/v1/errorstate/Inconvenience/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/Inconvenience/props/propTypes.js +0 -27
- package/lib/v1/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +0 -80
- package/lib/v1/errorstate/OopsSomethingMiss/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/OopsSomethingMiss/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +0 -80
- package/lib/v1/errorstate/UnableToProcessRequest/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UnableToProcessRequest/props/propTypes.js +0 -27
- package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
- package/lib/v1/errorstate/UnauthorizedLogin/props/defaultProps.js +0 -16
- package/lib/v1/errorstate/UnauthorizedLogin/props/propTypes.js +0 -28
- package/lib/v1/errorstate/UrlNotFound/UrlNotFound.js +0 -80
- package/lib/v1/errorstate/UrlNotFound/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/UrlNotFound/props/propTypes.js +0 -27
- package/lib/v1/errorstate/WillBeRightBack/WillBeRightBack.js +0 -80
- package/lib/v1/errorstate/WillBeRightBack/props/defaultProps.js +0 -15
- package/lib/v1/errorstate/WillBeRightBack/props/propTypes.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +0 -148
- package/lib/v1/form/fields/CheckBoxField/props/defaultProps.js +0 -27
- package/lib/v1/form/fields/CheckBoxField/props/propTypes.js +0 -47
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +0 -194
- package/lib/v1/form/fields/CurrencyField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/CurrencyField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/DateField/DateField.js +0 -183
- package/lib/v1/form/fields/DateField/props/defaultProps.js +0 -34
- package/lib/v1/form/fields/DateField/props/propTypes.js +0 -57
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +0 -87
- package/lib/v1/form/fields/FieldContainer/props/defaultProps.js +0 -22
- package/lib/v1/form/fields/FieldContainer/props/propTypes.js +0 -35
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +0 -208
- package/lib/v1/form/fields/MultiSelectField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/MultiSelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/PhoneField/PhoneField.js +0 -193
- package/lib/v1/form/fields/PhoneField/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/PhoneField/props/propTypes.js +0 -58
- package/lib/v1/form/fields/RadioField/RadioField.js +0 -164
- package/lib/v1/form/fields/RadioField/props/defaultProps.js +0 -20
- package/lib/v1/form/fields/RadioField/props/propTypes.js +0 -44
- package/lib/v1/form/fields/RadioField/useRadio.js +0 -50
- package/lib/v1/form/fields/SelectField/SelectField.js +0 -179
- package/lib/v1/form/fields/SelectField/props/defaultProps.js +0 -33
- package/lib/v1/form/fields/SelectField/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +0 -387
- package/lib/v1/form/fields/TagsMultiSelect/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +0 -68
- package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +0 -317
- package/lib/v1/form/fields/TagsMultiSelectField/props/defaultProps.js +0 -38
- package/lib/v1/form/fields/TagsMultiSelectField/props/propTypes.js +0 -83
- package/lib/v1/form/fields/TextBoxField/TextBoxField.js +0 -163
- package/lib/v1/form/fields/TextBoxField/props/defaultProps.js +0 -32
- package/lib/v1/form/fields/TextBoxField/props/propTypes.js +0 -62
- package/lib/v1/form/fields/TextEditor/TextEditor.js +0 -462
- package/lib/v1/form/fields/TextEditor/props/defaultProps.js +0 -23
- package/lib/v1/form/fields/TextEditor/props/propTypes.js +0 -64
- package/lib/v1/form/fields/TextEditorField/TextEditorField.js +0 -175
- package/lib/v1/form/fields/TextEditorField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextEditorField/props/propTypes.js +0 -67
- package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +0 -204
- package/lib/v1/form/fields/TextEditorWrapper/props/defaultProps.js +0 -16
- package/lib/v1/form/fields/TextEditorWrapper/props/propTypes.js +0 -51
- package/lib/v1/form/fields/TextareaField/TextareaField.js +0 -157
- package/lib/v1/form/fields/TextareaField/props/defaultProps.js +0 -30
- package/lib/v1/form/fields/TextareaField/props/propTypes.js +0 -53
- package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +0 -71
- package/lib/v1/form/fields/ValidationMessage/props/defaultProps.js +0 -14
- package/lib/v1/form/fields/ValidationMessage/props/propTypes.js +0 -27
- package/lib/v1/form/fields/index.js +0 -135
- package/lib/v1/form/fields/props/FieldCommonDefaultProps.js +0 -19
- package/lib/v1/form/fields/props/FieldCommonPropTypes.js +0 -28
- package/lib/v1/form/layout/Field/Field.js +0 -40
- package/lib/v1/form/layout/Field/props/defaultProps.js +0 -11
- package/lib/v1/form/layout/Field/props/propTypes.js +0 -21
- package/lib/v1/form/layout/Section/Section.js +0 -40
- package/lib/v1/form/layout/Section/props/propTypes.js +0 -22
- package/lib/v1/form/layout/index.js +0 -23
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +0 -212
- package/lib/v1/layout/SetupDetailLayout/index.js +0 -37
- package/lib/v1/layout/SetupDetailLayout/props/defaultProps.js +0 -30
- package/lib/v1/layout/SetupDetailLayout/props/propTypes.js +0 -54
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +0 -146
- package/lib/v1/layout/SubtabLayout/index.js +0 -37
- package/lib/v1/layout/SubtabLayout/props/defaultProps.js +0 -35
- package/lib/v1/layout/SubtabLayout/props/propTypes.js +0 -54
- package/lib/v1/list/AvatarFlip/AvatarFlip.js +0 -86
- package/lib/v1/list/AvatarFlip/props/defaultProps.js +0 -13
- package/lib/v1/list/AvatarFlip/props/propTypes.js +0 -40
- package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +0 -33
- package/lib/v1/list/BluePrintStatus/props/propTypes.js +0 -15
- package/lib/v1/list/Comment/Comment.js +0 -49
- package/lib/v1/list/Comment/props/defaultProps.js +0 -11
- package/lib/v1/list/Comment/props/propTypes.js +0 -18
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +0 -102
- package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +0 -14
- package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -35
- package/lib/v1/list/Dot/Dot.js +0 -27
- package/lib/v1/list/Dot/props/defaultProps.js +0 -11
- package/lib/v1/list/Dot/props/propTypes.js +0 -16
- package/lib/v1/list/DotNew/DotNew.js +0 -34
- package/lib/v1/list/DotNew/props/defaultProps.js +0 -10
- package/lib/v1/list/DotNew/props/propTypes.js +0 -17
- package/lib/v1/list/GridStencils/GridStencils.js +0 -42
- package/lib/v1/list/GridStencils/props/propTypes.js +0 -19
- package/lib/v1/list/Icons/AddNewIcon.js +0 -38
- package/lib/v1/list/Icons/CompleteIcon.js +0 -40
- package/lib/v1/list/Icons/DeleteIcon.js +0 -41
- package/lib/v1/list/Icons/EditIcon.js +0 -41
- package/lib/v1/list/Icons/FloatingIcons.js +0 -42
- package/lib/v1/list/Icons/ReadUnreadIcon.js +0 -46
- package/lib/v1/list/Icons/SmartIcon.js +0 -38
- package/lib/v1/list/Icons/index.js +0 -63
- package/lib/v1/list/Icons/props/defaultProps.js +0 -14
- package/lib/v1/list/Icons/props/propTypes.js +0 -70
- package/lib/v1/list/ListLayout/ListLayout.js +0 -82
- package/lib/v1/list/ListLayout/props/defaultProps.js +0 -18
- package/lib/v1/list/ListLayout/props/propTypes.js +0 -39
- package/lib/v1/list/ListStencils/ListStencils.js +0 -57
- package/lib/v1/list/ListStencils/props/defaultProps.js +0 -10
- package/lib/v1/list/ListStencils/props/propTypes.js +0 -15
- package/lib/v1/list/SecondaryText/AccountName.js +0 -86
- package/lib/v1/list/SecondaryText/ContactName.js +0 -94
- package/lib/v1/list/SecondaryText/DepartmentText.js +0 -29
- package/lib/v1/list/SecondaryText/Email.js +0 -53
- package/lib/v1/list/SecondaryText/HappinessRating.js +0 -34
- package/lib/v1/list/SecondaryText/PhoneNumber.js +0 -57
- package/lib/v1/list/SecondaryText/PriorityText.js +0 -33
- package/lib/v1/list/SecondaryText/SecondaryText.js +0 -38
- package/lib/v1/list/SecondaryText/StatusText.js +0 -34
- package/lib/v1/list/SecondaryText/TicketId.js +0 -54
- package/lib/v1/list/SecondaryText/Website.js +0 -48
- package/lib/v1/list/SecondaryText/index.js +0 -95
- package/lib/v1/list/SecondaryText/props/defaultProps.js +0 -59
- package/lib/v1/list/SecondaryText/props/propTypes.js +0 -163
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +0 -104
- package/lib/v1/list/SecondryPanel/props/defaultProps.js +0 -28
- package/lib/v1/list/SecondryPanel/props/propTypes.js +0 -41
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +0 -35
- package/lib/v1/list/SentimentStatus/props/propTypes.js +0 -16
- package/lib/v1/list/Subject/Subject.js +0 -65
- package/lib/v1/list/Subject/props/defaultProps.js +0 -15
- package/lib/v1/list/Subject/props/propTypes.js +0 -31
- package/lib/v1/list/TagNew/TagNew.js +0 -35
- package/lib/v1/list/TagNew/props/defaultProps.js +0 -11
- package/lib/v1/list/TagNew/props/propTypes.js +0 -19
- package/lib/v1/list/Thread/Thread.js +0 -46
- package/lib/v1/list/Thread/props/defaultProps.js +0 -11
- package/lib/v1/list/Thread/props/propTypes.js +0 -19
- package/lib/v1/list/index.js +0 -165
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +0 -363
- package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +0 -29
- package/lib/v1/list/status/StatusDropdown/props/propTypes.js +0 -34
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +0 -124
- package/lib/v1/list/status/StatusListItem/props/defaultProps.js +0 -23
- package/lib/v1/list/status/StatusListItem/props/propTypes.js +0 -42
- package/lib/v1/list/status/index.js +0 -23
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +0 -70
- package/lib/v1/lookup/EmptyPage/props/defaultProps.js +0 -11
- package/lib/v1/lookup/EmptyPage/props/propTypes.js +0 -16
- package/lib/v1/lookup/Lookup/Lookup.js +0 -145
- package/lib/v1/lookup/Lookup/props/defaultProps.js +0 -16
- package/lib/v1/lookup/Lookup/props/propTypes.js +0 -35
- package/lib/v1/lookup/Section/Section.js +0 -30
- package/lib/v1/lookup/Section/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/Close/Close.js +0 -47
- package/lib/v1/lookup/header/Close/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Close/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +0 -116
- package/lib/v1/lookup/header/ModuleHeader/props/defaultProps.js +0 -16
- package/lib/v1/lookup/header/ModuleHeader/props/propTypes.js +0 -31
- package/lib/v1/lookup/header/Search/Search.js +0 -208
- package/lib/v1/lookup/header/Search/props/defaultProps.js +0 -12
- package/lib/v1/lookup/header/Search/props/propTypes.js +0 -40
- package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +0 -133
- package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +0 -32
- package/lib/v1/lookup/header/Title/Title.js +0 -44
- package/lib/v1/lookup/header/Title/props/defaultProps.js +0 -10
- package/lib/v1/lookup/header/Title/props/propTypes.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +0 -239
- package/lib/v1/lookup/header/ViewDropDown/props/defaultProps.js +0 -17
- package/lib/v1/lookup/header/ViewDropDown/props/propTypes.js +0 -38
- package/lib/v1/lookup/header/index.js +0 -47
- package/lib/v1/notification/DesktopNotification/DesktopNotification.js +0 -209
- package/lib/v1/notification/DesktopNotification/props/defaultProps.js +0 -26
- package/lib/v1/notification/DesktopNotification/props/propTypes.js +0 -55
- package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +0 -105
- package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +0 -16
- package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +0 -24
- package/lib/v1/setup/header/Button/Button.js +0 -37
- package/lib/v1/setup/header/Button/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Button/props/propTypes.js +0 -18
- package/lib/v1/setup/header/Link/Link.js +0 -47
- package/lib/v1/setup/header/Link/props/defaultProps.js +0 -11
- package/lib/v1/setup/header/Link/props/propTypes.js +0 -19
- package/lib/v1/setup/header/Search/Search.js +0 -99
- package/lib/v1/setup/header/Search/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Search/props/propTypes.js +0 -23
- package/lib/v1/setup/header/Views/Views.js +0 -47
- package/lib/v1/setup/header/Views/props/defaultProps.js +0 -13
- package/lib/v1/setup/header/Views/props/propTypes.js +0 -20
- package/lib/v1/setup/header/index.js +0 -39
- package/lib/v1/setup/helptips/Description/Description.js +0 -23
- package/lib/v1/setup/helptips/Description/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/Link/Link.js +0 -42
- package/lib/v1/setup/helptips/Link/props/propTypes.js +0 -18
- package/lib/v1/setup/helptips/ListGroup/ListGroup.js +0 -42
- package/lib/v1/setup/helptips/ListGroup/props/propTypes.js +0 -16
- package/lib/v1/setup/helptips/Title/Title.js +0 -23
- package/lib/v1/setup/helptips/Title/props/propTypes.js +0 -15
- package/lib/v1/setup/helptips/index.js +0 -39
- package/lib/v1/setup/index.js +0 -24
- package/lib/v1/setup/table/Table/Table.js +0 -34
- package/lib/v1/setup/table/Table/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/Table/props/propTypes.js +0 -17
- package/lib/v1/setup/table/TableBody/TableBody.js +0 -39
- package/lib/v1/setup/table/TableBody/props/defaultProps.js +0 -10
- package/lib/v1/setup/table/TableBody/props/propTypes.js +0 -18
- package/lib/v1/setup/table/TableData/TableData.js +0 -44
- package/lib/v1/setup/table/TableData/props/defaultProps.js +0 -12
- package/lib/v1/setup/table/TableData/props/propTypes.js +0 -22
- package/lib/v1/setup/table/TableHead/TableHead.js +0 -44
- package/lib/v1/setup/table/TableHead/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableHead/props/propTypes.js +0 -19
- package/lib/v1/setup/table/TableRow/TableRow.js +0 -49
- package/lib/v1/setup/table/TableRow/props/defaultProps.js +0 -11
- package/lib/v1/setup/table/TableRow/props/propTypes.js +0 -22
- package/lib/v1/setup/table/Text/Text.js +0 -64
- package/lib/v1/setup/table/Text/props/defaultProps.js +0 -14
- package/lib/v1/setup/table/Text/props/propTypes.js +0 -24
- package/lib/v1/setup/table/index.js +0 -47
- package/lib/v1/svg/PlusIcon.js +0 -37
- package/lib/v1/svg/SnippetIcon.js +0 -39
- package/lib/v1/svg/TemplateIcon.js +0 -40
- package/lib/v1/svg/index.js +0 -31
- package/lib/v1/svg/props/defaultProps.js +0 -24
- package/lib/v1/svg/props/propTypes.js +0 -29
- package/lib/v1/utils/ChannelIconMapping.js +0 -138
- package/lib/v1/utils/General.js +0 -58
- package/lib/v1/utils/editorUtils.js +0 -224
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const defaultProps = {
|
|
2
|
-
border: 'borderTop',
|
|
3
|
-
type: 'large',
|
|
4
|
-
changeEditorContent: false,
|
|
5
|
-
fontFamily: 'Lato',
|
|
6
|
-
fontSize: '16',
|
|
7
|
-
shouldUpdateContent: true,
|
|
8
|
-
i18nKeys: {},
|
|
9
|
-
needInlineAttachment: false,
|
|
10
|
-
isNightMode: false,
|
|
11
|
-
isReadOnly: false,
|
|
12
|
-
dataSelectorId: 'textEditor',
|
|
13
|
-
customCSS: '',
|
|
14
|
-
isDisabled: false,
|
|
15
|
-
inlineImageProps: {}
|
|
16
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const propTypes = {
|
|
3
|
-
ImgLazyLoad: PropTypes.node,
|
|
4
|
-
blurCallback: PropTypes.func,
|
|
5
|
-
border: PropTypes.oneOf(['borderTop', 'borderAll', 'borderNone']),
|
|
6
|
-
changeEditorContent: PropTypes.bool,
|
|
7
|
-
dataId: PropTypes.string,
|
|
8
|
-
editorCallback: PropTypes.func,
|
|
9
|
-
editorMode: PropTypes.string,
|
|
10
|
-
editorOptions: PropTypes.object,
|
|
11
|
-
fontFamily: PropTypes.oneOf(['Lato', 'Roboto', 'Puvi']),
|
|
12
|
-
fontSize: PropTypes.string,
|
|
13
|
-
getRef: PropTypes.func,
|
|
14
|
-
handleAlertMessage: PropTypes.func,
|
|
15
|
-
i18nKeys: PropTypes.shape({
|
|
16
|
-
fileUploadError: PropTypes.string,
|
|
17
|
-
fileNotSupported: PropTypes.string,
|
|
18
|
-
fileEmptyError: PropTypes.string,
|
|
19
|
-
fileNameLimitExceed: PropTypes.string,
|
|
20
|
-
fileSizeLimitExceed: PropTypes.string
|
|
21
|
-
}),
|
|
22
|
-
id: PropTypes.string,
|
|
23
|
-
initCallback: PropTypes.func,
|
|
24
|
-
isCustomScroll: PropTypes.bool,
|
|
25
|
-
loadingComponent: PropTypes.node,
|
|
26
|
-
mode: PropTypes.string,
|
|
27
|
-
needEditorFocus: PropTypes.bool,
|
|
28
|
-
onChange: PropTypes.func,
|
|
29
|
-
onFocus: PropTypes.func,
|
|
30
|
-
onUpload: PropTypes.func,
|
|
31
|
-
plainTextSwitchCallback: PropTypes.func,
|
|
32
|
-
setInlineAttachmentInProgress: PropTypes.func,
|
|
33
|
-
shouldUpdateContent: PropTypes.bool,
|
|
34
|
-
type: PropTypes.oneOf(['large', 'xlarge', 'medium', 'small', 'mini', 'default']),
|
|
35
|
-
value: PropTypes.string,
|
|
36
|
-
needInlineAttachment: PropTypes.bool,
|
|
37
|
-
isNightMode: PropTypes.bool,
|
|
38
|
-
isReadOnly: PropTypes.bool,
|
|
39
|
-
EDITORURL: PropTypes.string,
|
|
40
|
-
getCSRFCookieName: PropTypes.string,
|
|
41
|
-
getCSRFCookie: PropTypes.string,
|
|
42
|
-
isEditorDefaultOpen: PropTypes.bool,
|
|
43
|
-
toggleEdit: PropTypes.func,
|
|
44
|
-
dataSelectorId: PropTypes.string,
|
|
45
|
-
customInitOption: PropTypes.object,
|
|
46
|
-
customCSS: PropTypes.string,
|
|
47
|
-
isDisabled: PropTypes.bool,
|
|
48
|
-
inlineImageProps: PropTypes.shape({
|
|
49
|
-
allowedFileExtensions: PropTypes.array,
|
|
50
|
-
fileNameMaxCharacters: PropTypes.number,
|
|
51
|
-
fileSizeMaxBytes: PropTypes.number
|
|
52
|
-
})
|
|
53
|
-
};
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/**** Libraries ****/
|
|
2
|
-
import React, { memo, useRef } from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
/**** Components ****/
|
|
6
|
-
|
|
7
|
-
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
|
-
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
9
|
-
import TextEditorWrapper from "../TextEditorWrapper/TextEditorWrapper";
|
|
10
|
-
import FieldContainer from "../FieldContainer/FieldContainer";
|
|
11
|
-
/** Css */
|
|
12
|
-
|
|
13
|
-
import style from "../../../../form/fields/Fields.module.css";
|
|
14
|
-
|
|
15
|
-
const TextEditorField = props => {
|
|
16
|
-
const {
|
|
17
|
-
labelName,
|
|
18
|
-
id,
|
|
19
|
-
isMandatory,
|
|
20
|
-
value,
|
|
21
|
-
validationMessage,
|
|
22
|
-
validationPalette,
|
|
23
|
-
isReadOnly,
|
|
24
|
-
onAttachmentUpload,
|
|
25
|
-
needEditor,
|
|
26
|
-
dataId,
|
|
27
|
-
dataSelectorId,
|
|
28
|
-
isDisabled,
|
|
29
|
-
fieldSize,
|
|
30
|
-
textBoxSize,
|
|
31
|
-
textBoxVariant,
|
|
32
|
-
labelPalette,
|
|
33
|
-
labelCustomClass,
|
|
34
|
-
infoText,
|
|
35
|
-
isLocked,
|
|
36
|
-
lockedInfoText,
|
|
37
|
-
errorType,
|
|
38
|
-
EDITORURL,
|
|
39
|
-
editorMode,
|
|
40
|
-
isCustomScroll,
|
|
41
|
-
initCallback,
|
|
42
|
-
loadingComponent,
|
|
43
|
-
handleAlertMessage,
|
|
44
|
-
editorCallback,
|
|
45
|
-
editorBlurCallback,
|
|
46
|
-
editorOptions,
|
|
47
|
-
onFocus,
|
|
48
|
-
isEditorDefaultOpen,
|
|
49
|
-
changeEditorContent,
|
|
50
|
-
shouldEditorUpdateContent,
|
|
51
|
-
setInlineAttachmentInProgress,
|
|
52
|
-
handleEditorDropUpload,
|
|
53
|
-
ImgLazyLoad,
|
|
54
|
-
needInlineAttachment,
|
|
55
|
-
i18nKeys,
|
|
56
|
-
className,
|
|
57
|
-
children,
|
|
58
|
-
ePhiData,
|
|
59
|
-
customProps,
|
|
60
|
-
onChange,
|
|
61
|
-
getRef,
|
|
62
|
-
isFocusOnLabelClick
|
|
63
|
-
} = props;
|
|
64
|
-
const textEditorEleRef = useRef(null);
|
|
65
|
-
const {
|
|
66
|
-
LabelProps = {},
|
|
67
|
-
TextEditorWrapperProps = {},
|
|
68
|
-
ValidationMessageProps = {}
|
|
69
|
-
} = customProps;
|
|
70
|
-
|
|
71
|
-
const handleChange = value => {
|
|
72
|
-
onChange && onChange(id, value);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const handleGetRef = el => {
|
|
76
|
-
textEditorEleRef.current = el;
|
|
77
|
-
getRef && getRef(el, id);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const handleLabelClick = () => {
|
|
81
|
-
if (isFocusOnLabelClick && !isDisabled && !isReadOnly && textEditorEleRef.current && textEditorEleRef.current.focus) {
|
|
82
|
-
textEditorEleRef.current.focus();
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const renderEnd = () => {
|
|
87
|
-
return children ? children : null;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
91
|
-
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''} ${className || ''}`,
|
|
92
|
-
"data-selector-id": dataSelectorId
|
|
93
|
-
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
94
|
-
infoText: infoText,
|
|
95
|
-
isLocked: isLocked,
|
|
96
|
-
lockedInfoText: lockedInfoText,
|
|
97
|
-
ePhiData: ePhiData,
|
|
98
|
-
dataId: dataId,
|
|
99
|
-
renderProps: {
|
|
100
|
-
end: renderEnd
|
|
101
|
-
}
|
|
102
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
103
|
-
text: labelName,
|
|
104
|
-
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
105
|
-
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
106
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
107
|
-
onClick: handleLabelClick,
|
|
108
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
109
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
110
|
-
...LabelProps
|
|
111
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
113
|
-
}, /*#__PURE__*/React.createElement(TextEditorWrapper, {
|
|
114
|
-
needEditor: needEditor,
|
|
115
|
-
onChange: handleChange,
|
|
116
|
-
id: id,
|
|
117
|
-
value: value,
|
|
118
|
-
isReadOnly: isReadOnly,
|
|
119
|
-
getRef: handleGetRef,
|
|
120
|
-
onAttachmentUpload: onAttachmentUpload,
|
|
121
|
-
dataId: dataId,
|
|
122
|
-
isDisabled: isDisabled,
|
|
123
|
-
textBoxSize: fieldSize === 'medium' ? textBoxSize : 'xsmall',
|
|
124
|
-
textBoxVariant: textBoxVariant,
|
|
125
|
-
EDITORURL: EDITORURL,
|
|
126
|
-
editorMode: editorMode,
|
|
127
|
-
isCustomScroll: isCustomScroll,
|
|
128
|
-
initCallback: initCallback,
|
|
129
|
-
loadingComponent: loadingComponent,
|
|
130
|
-
handleAlertMessage: handleAlertMessage,
|
|
131
|
-
editorCallback: editorCallback,
|
|
132
|
-
i18nKeys: i18nKeys,
|
|
133
|
-
ImgLazyLoad: ImgLazyLoad,
|
|
134
|
-
editorOptions: editorOptions,
|
|
135
|
-
editorBlurCallback: editorBlurCallback,
|
|
136
|
-
onFocus: onFocus,
|
|
137
|
-
isEditorDefaultOpen: isEditorDefaultOpen,
|
|
138
|
-
changeEditorContent: changeEditorContent,
|
|
139
|
-
shouldEditorUpdateContent: shouldEditorUpdateContent,
|
|
140
|
-
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
141
|
-
handleEditorDropUpload: handleEditorDropUpload,
|
|
142
|
-
needInlineAttachment: needInlineAttachment,
|
|
143
|
-
...TextEditorWrapperProps
|
|
144
|
-
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
145
|
-
text: validationMessage,
|
|
146
|
-
palette: validationPalette,
|
|
147
|
-
type: errorType,
|
|
148
|
-
dataId: `${dataId}_ValidationMessage`,
|
|
149
|
-
...ValidationMessageProps
|
|
150
|
-
}));
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
TextEditorField.propTypes = propTypes;
|
|
154
|
-
TextEditorField.defaultProps = defaultProps;
|
|
155
|
-
const MemoizedTextEditorField = /*#__PURE__*/memo(TextEditorField);
|
|
156
|
-
MemoizedTextEditorField.propTypes = propTypes;
|
|
157
|
-
MemoizedTextEditorField.defaultProps = defaultProps;
|
|
158
|
-
MemoizedTextEditorField.displayName = 'TextEditorField';
|
|
159
|
-
export default TextEditorField;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FieldCommonDefaultProps } from "../../props/FieldCommonDefaultProps";
|
|
2
|
-
export const defaultProps = {
|
|
3
|
-
errorType: 'primary',
|
|
4
|
-
needEditor: true,
|
|
5
|
-
isFocusOnLabelClick: true,
|
|
6
|
-
fieldSize: 'medium',
|
|
7
|
-
textBoxSize: 'xsmall',
|
|
8
|
-
textBoxVariant: 'primary',
|
|
9
|
-
labelPalette: 'default',
|
|
10
|
-
labelCustomClass: '',
|
|
11
|
-
className: '',
|
|
12
|
-
customProps: {},
|
|
13
|
-
dataSelectorId: 'textEditorField',
|
|
14
|
-
...FieldCommonDefaultProps()
|
|
15
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { FieldCommonPropTypes } from "../../props/FieldCommonPropTypes";
|
|
3
|
-
export const propTypes = {
|
|
4
|
-
dataId: PropTypes.string,
|
|
5
|
-
fieldSize: PropTypes.oneOf(['small', 'medium']),
|
|
6
|
-
getRef: PropTypes.func,
|
|
7
|
-
id: PropTypes.string,
|
|
8
|
-
isFocusOnLabelClick: PropTypes.bool,
|
|
9
|
-
labelCustomClass: PropTypes.string,
|
|
10
|
-
labelName: PropTypes.string,
|
|
11
|
-
labelPalette: PropTypes.string,
|
|
12
|
-
needEditor: PropTypes.bool,
|
|
13
|
-
onAttachmentUpload: PropTypes.func,
|
|
14
|
-
onChange: PropTypes.func,
|
|
15
|
-
textBoxSize: PropTypes.string,
|
|
16
|
-
textBoxVariant: PropTypes.string,
|
|
17
|
-
validationMessage: PropTypes.string,
|
|
18
|
-
validationPalette: PropTypes.string,
|
|
19
|
-
value: PropTypes.string,
|
|
20
|
-
errorType: PropTypes.string,
|
|
21
|
-
EDITORURL: PropTypes.string,
|
|
22
|
-
editorMode: PropTypes.string,
|
|
23
|
-
isCustomScroll: PropTypes.bool,
|
|
24
|
-
initCallback: PropTypes.func,
|
|
25
|
-
className: PropTypes.string,
|
|
26
|
-
loadingComponent: PropTypes.node,
|
|
27
|
-
handleAlertMessage: PropTypes.func,
|
|
28
|
-
editorCallback: PropTypes.func,
|
|
29
|
-
i18nKeys: PropTypes.object,
|
|
30
|
-
ImgLazyLoad: PropTypes.node,
|
|
31
|
-
editorOptions: PropTypes.object,
|
|
32
|
-
editorBlurCallback: PropTypes.func,
|
|
33
|
-
onFocus: PropTypes.func,
|
|
34
|
-
isEditorDefaultOpen: PropTypes.bool,
|
|
35
|
-
changeEditorContent: PropTypes.bool,
|
|
36
|
-
shouldEditorUpdateContent: PropTypes.bool,
|
|
37
|
-
setInlineAttachmentInProgress: PropTypes.func,
|
|
38
|
-
handleEditorDropUpload: PropTypes.func,
|
|
39
|
-
children: PropTypes.node,
|
|
40
|
-
needInlineAttachment: PropTypes.bool,
|
|
41
|
-
customProps: PropTypes.shape({
|
|
42
|
-
LabelProps: PropTypes.object,
|
|
43
|
-
TextEditorWrapperProps: PropTypes.object,
|
|
44
|
-
ValidationMessageProps: PropTypes.object
|
|
45
|
-
}),
|
|
46
|
-
ePhiData: PropTypes.shape({
|
|
47
|
-
ePhiTitle: PropTypes.string,
|
|
48
|
-
ePhiText: PropTypes.string,
|
|
49
|
-
ePhiStatus: PropTypes.bool
|
|
50
|
-
}),
|
|
51
|
-
dataId: PropTypes.string,
|
|
52
|
-
infoText: PropTypes.string,
|
|
53
|
-
lockedInfoText: PropTypes.string,
|
|
54
|
-
isLocked: PropTypes.bool,
|
|
55
|
-
isDisabled: PropTypes.bool,
|
|
56
|
-
isReadOnly: PropTypes.bool,
|
|
57
|
-
isMandatory: PropTypes.bool,
|
|
58
|
-
dataSelectorId: PropTypes.string
|
|
59
|
-
};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { defaultProps } from "./props/defaultProps";
|
|
3
|
-
import { propTypes } from "./props/propTypes";
|
|
4
|
-
/**** Components ****/
|
|
5
|
-
|
|
6
|
-
import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
|
|
7
|
-
import TextEditor from "../TextEditor/TextEditor";
|
|
8
|
-
import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
|
|
9
|
-
import VelocityAnimationGroup from '@zohodesk/components/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
|
|
10
|
-
import { editorContentValidate } from "../../../../utils/editorUtils";
|
|
11
|
-
import style from "./../../../../form/fields/TextEditorWrapper/TextEditorWrapper.module.css";
|
|
12
|
-
/* eslint-disable react/no-deprecated */
|
|
13
|
-
|
|
14
|
-
const TextEditorWrapper = props => {
|
|
15
|
-
const {
|
|
16
|
-
id,
|
|
17
|
-
onChange,
|
|
18
|
-
value,
|
|
19
|
-
onAttachmentUpload,
|
|
20
|
-
needEditor,
|
|
21
|
-
dataId,
|
|
22
|
-
isReadOnly,
|
|
23
|
-
isDisabled,
|
|
24
|
-
getRef,
|
|
25
|
-
textBoxSize,
|
|
26
|
-
textBoxVariant,
|
|
27
|
-
editorMode,
|
|
28
|
-
editorSize,
|
|
29
|
-
editorBorder,
|
|
30
|
-
EDITORURL,
|
|
31
|
-
isCustomScroll,
|
|
32
|
-
initCallback,
|
|
33
|
-
loadingComponent,
|
|
34
|
-
handleAlertMessage,
|
|
35
|
-
editorCallback,
|
|
36
|
-
editorBlurCallback,
|
|
37
|
-
editorOptions,
|
|
38
|
-
changeEditorContent,
|
|
39
|
-
shouldEditorUpdateContent,
|
|
40
|
-
setInlineAttachmentInProgress,
|
|
41
|
-
handleEditorDropUpload,
|
|
42
|
-
ImgLazyLoad,
|
|
43
|
-
i18nKeys,
|
|
44
|
-
isEditorDefaultOpen,
|
|
45
|
-
needInlineAttachment,
|
|
46
|
-
customProps,
|
|
47
|
-
dataSelectorId,
|
|
48
|
-
onFocus
|
|
49
|
-
} = props;
|
|
50
|
-
const {
|
|
51
|
-
Textarea1Props = {},
|
|
52
|
-
Textarea2Props = {},
|
|
53
|
-
TextEditorProps = {}
|
|
54
|
-
} = customProps;
|
|
55
|
-
const [isEditorShow, setIsEditorShow] = useState(isEditorDefaultOpen ? true : !!value);
|
|
56
|
-
const [isEditorFocus, setIsEditorFocus] = useState(false);
|
|
57
|
-
const defaultObj = {
|
|
58
|
-
needEditorFocus: !value
|
|
59
|
-
};
|
|
60
|
-
const editorOptionsObject = Object.assign(defaultObj, editorOptions);
|
|
61
|
-
|
|
62
|
-
const handleTextareaFocus = () => {
|
|
63
|
-
if (!isReadOnly && !isDisabled) {
|
|
64
|
-
setIsEditorShow(true);
|
|
65
|
-
setTimeout(() => {
|
|
66
|
-
editor[id].squireInstance.focus();
|
|
67
|
-
}, 300);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const toggleEdit = value => {
|
|
72
|
-
setIsEditorShow(value);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const focusCallback = () => {
|
|
76
|
-
setIsEditorFocus(true);
|
|
77
|
-
onFocus && onFocus();
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
useEffectCallOnlyAfterState(() => {
|
|
81
|
-
if (value || typeof editor !== 'undefined' && editorContentValidate(editor[id])) {
|
|
82
|
-
setIsEditorShow(true);
|
|
83
|
-
} else {
|
|
84
|
-
if (!isEditorFocus && !isEditorDefaultOpen) {
|
|
85
|
-
setIsEditorShow(false);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}, [value, id, isEditorDefaultOpen]);
|
|
89
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
90
|
-
className: style.container,
|
|
91
|
-
"data-selector-id": dataSelectorId
|
|
92
|
-
}, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
|
|
93
|
-
onFocus: handleTextareaFocus,
|
|
94
|
-
text: value,
|
|
95
|
-
animated: !needEditor,
|
|
96
|
-
onChange: onChange,
|
|
97
|
-
dataId: dataId,
|
|
98
|
-
isReadOnly: isReadOnly,
|
|
99
|
-
isDisabled: isDisabled,
|
|
100
|
-
needEffect: !(isReadOnly || isDisabled),
|
|
101
|
-
getRef: getRef,
|
|
102
|
-
size: textBoxSize,
|
|
103
|
-
variant: textBoxVariant,
|
|
104
|
-
customClass: style.textBox,
|
|
105
|
-
...Textarea1Props
|
|
106
|
-
}) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
107
|
-
name: "slideDown",
|
|
108
|
-
runOnMount: true,
|
|
109
|
-
enterDuration: '300',
|
|
110
|
-
exitDuration: '400',
|
|
111
|
-
isActive: isEditorShow,
|
|
112
|
-
component: "div"
|
|
113
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
114
|
-
className: style.textEditor
|
|
115
|
-
}, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
|
|
116
|
-
id: id,
|
|
117
|
-
value: value,
|
|
118
|
-
onChange: !isReadOnly && !isDisabled ? onChange : null,
|
|
119
|
-
editorOptions: editorOptionsObject,
|
|
120
|
-
onUpload: onAttachmentUpload,
|
|
121
|
-
editorMode: editorMode,
|
|
122
|
-
type: editorSize,
|
|
123
|
-
border: editorBorder,
|
|
124
|
-
dataId: dataId,
|
|
125
|
-
getRef: getRef,
|
|
126
|
-
plainTextSwitchCallback: !isReadOnly && !isDisabled ? onChange : null,
|
|
127
|
-
EDITORURL: EDITORURL,
|
|
128
|
-
isCustomScroll: isCustomScroll,
|
|
129
|
-
initCallback: initCallback,
|
|
130
|
-
loadingComponent: loadingComponent,
|
|
131
|
-
handleAlertMessage: handleAlertMessage,
|
|
132
|
-
toggleEdit: toggleEdit,
|
|
133
|
-
isEditorDefaultOpen: isEditorDefaultOpen,
|
|
134
|
-
editorCallback: editorCallback,
|
|
135
|
-
i18nKeys: i18nKeys,
|
|
136
|
-
ImgLazyLoad: ImgLazyLoad,
|
|
137
|
-
blurCallback: editorBlurCallback,
|
|
138
|
-
changeEditorContent: changeEditorContent,
|
|
139
|
-
shouldUpdateContent: shouldEditorUpdateContent,
|
|
140
|
-
setInlineAttachmentInProgress: setInlineAttachmentInProgress,
|
|
141
|
-
handleDropUpload: handleEditorDropUpload,
|
|
142
|
-
onFocus: focusCallback,
|
|
143
|
-
needInlineAttachment: needInlineAttachment,
|
|
144
|
-
...TextEditorProps
|
|
145
|
-
}) : /*#__PURE__*/React.createElement(Textarea, {
|
|
146
|
-
onFocus: handleTextareaFocus,
|
|
147
|
-
text: value,
|
|
148
|
-
animated: !needEditor,
|
|
149
|
-
onChange: onChange,
|
|
150
|
-
dataId: dataId,
|
|
151
|
-
isReadOnly: isReadOnly,
|
|
152
|
-
isDisabled: isDisabled,
|
|
153
|
-
needEffect: !(isReadOnly || isDisabled),
|
|
154
|
-
getRef: getRef,
|
|
155
|
-
size: textBoxSize,
|
|
156
|
-
variant: textBoxVariant,
|
|
157
|
-
...Textarea2Props
|
|
158
|
-
}))));
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export default TextEditorWrapper;
|
|
162
|
-
TextEditorWrapper.propTypes = propTypes;
|
|
163
|
-
TextEditorWrapper.defaultProps = defaultProps;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export const propTypes = {
|
|
3
|
-
dataId: PropTypes.string,
|
|
4
|
-
getRef: PropTypes.func,
|
|
5
|
-
id: PropTypes.string,
|
|
6
|
-
isDisabled: PropTypes.bool,
|
|
7
|
-
isReadOnly: PropTypes.bool,
|
|
8
|
-
needEditor: PropTypes.bool,
|
|
9
|
-
onAttachmentUpload: PropTypes.func,
|
|
10
|
-
onChange: PropTypes.func,
|
|
11
|
-
textBoxSize: PropTypes.oneOf(['xsmall', 'small', 'xmedium', 'medium', 'large']),
|
|
12
|
-
textBoxVariant: PropTypes.string,
|
|
13
|
-
value: PropTypes.string,
|
|
14
|
-
editorMode: PropTypes.string,
|
|
15
|
-
editorSize: PropTypes.string,
|
|
16
|
-
editorBorder: PropTypes.string,
|
|
17
|
-
EDITORURL: PropTypes.string,
|
|
18
|
-
isCustomScroll: PropTypes.bool,
|
|
19
|
-
initCallback: PropTypes.func,
|
|
20
|
-
loadingComponent: PropTypes.node,
|
|
21
|
-
handleAlertMessage: PropTypes.func,
|
|
22
|
-
editorCallback: PropTypes.func,
|
|
23
|
-
i18nKeys: PropTypes.object,
|
|
24
|
-
ImgLazyLoad: PropTypes.node,
|
|
25
|
-
editorBlurCallback: PropTypes.func,
|
|
26
|
-
editorOptions: PropTypes.object,
|
|
27
|
-
isEditorDefaultOpen: PropTypes.bool,
|
|
28
|
-
changeEditorContent: PropTypes.bool,
|
|
29
|
-
shouldEditorUpdateContent: PropTypes.bool,
|
|
30
|
-
setInlineAttachmentInProgress: PropTypes.func,
|
|
31
|
-
handleEditorDropUpload: PropTypes.func,
|
|
32
|
-
onFocus: PropTypes.func,
|
|
33
|
-
needInlineAttachment: PropTypes.bool,
|
|
34
|
-
customProps: PropTypes.shape({
|
|
35
|
-
Textarea1Props: PropTypes.object,
|
|
36
|
-
TextEditorProps: PropTypes.object,
|
|
37
|
-
Textarea2Props: PropTypes.object
|
|
38
|
-
}),
|
|
39
|
-
dataSelectorId: PropTypes.string
|
|
40
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**** Libraries ****/
|
|
2
|
-
import React, { memo } from 'react';
|
|
3
|
-
import { defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { propTypes } from "./props/propTypes";
|
|
5
|
-
/**** Components ****/
|
|
6
|
-
|
|
7
|
-
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
8
|
-
import Textarea from '@zohodesk/components/es/v1/Textarea/Textarea';
|
|
9
|
-
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
10
|
-
import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
11
|
-
import FieldContainer from "../FieldContainer/FieldContainer";
|
|
12
|
-
/**** CSS ****/
|
|
13
|
-
|
|
14
|
-
import style from "../../../../form/fields/Fields.module.css";
|
|
15
|
-
|
|
16
|
-
const TextareaField = props => {
|
|
17
|
-
const {
|
|
18
|
-
labelName,
|
|
19
|
-
id,
|
|
20
|
-
isMandatory,
|
|
21
|
-
textBoxSize,
|
|
22
|
-
animated,
|
|
23
|
-
textBoxVariant,
|
|
24
|
-
isReadOnly,
|
|
25
|
-
validationMessage,
|
|
26
|
-
validationPalette,
|
|
27
|
-
maxLength,
|
|
28
|
-
value,
|
|
29
|
-
errorType,
|
|
30
|
-
isDisabled,
|
|
31
|
-
title,
|
|
32
|
-
placeHolder,
|
|
33
|
-
dataId,
|
|
34
|
-
dataSelectorId,
|
|
35
|
-
validationRuleMessage,
|
|
36
|
-
validationRulePalette,
|
|
37
|
-
// onKeyDown,
|
|
38
|
-
onFocus,
|
|
39
|
-
infoText,
|
|
40
|
-
borderColor,
|
|
41
|
-
fieldSize,
|
|
42
|
-
labelPalette,
|
|
43
|
-
labelCustomClass,
|
|
44
|
-
htmlId,
|
|
45
|
-
lockedInfoText,
|
|
46
|
-
isLocked,
|
|
47
|
-
customProps,
|
|
48
|
-
renderLabelProps,
|
|
49
|
-
onChange,
|
|
50
|
-
onBlur,
|
|
51
|
-
getRef
|
|
52
|
-
} = props;
|
|
53
|
-
const {
|
|
54
|
-
LabelProps = {},
|
|
55
|
-
TextareaProps = {},
|
|
56
|
-
ValidationMessageProps1 = {},
|
|
57
|
-
ValidationMessageProps2 = {}
|
|
58
|
-
} = customProps;
|
|
59
|
-
const getNextId = useUniqueId();
|
|
60
|
-
let uniqueId = htmlId ? htmlId : getNextId();
|
|
61
|
-
|
|
62
|
-
const handleChange = value => {
|
|
63
|
-
onChange && onChange(id, value);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const handleBlur = value => {
|
|
67
|
-
onBlur && onBlur(id, value);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const handleGetRef = el => {
|
|
71
|
-
getRef && getRef(el, id);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
75
|
-
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
76
|
-
"data-title": isDisabled ? title : null,
|
|
77
|
-
"data-selector-id": dataSelectorId
|
|
78
|
-
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
79
|
-
infoText: infoText,
|
|
80
|
-
isLocked: isLocked,
|
|
81
|
-
lockedInfoText: lockedInfoText,
|
|
82
|
-
renderProps: renderLabelProps
|
|
83
|
-
}, /*#__PURE__*/React.createElement(Label, {
|
|
84
|
-
text: labelName,
|
|
85
|
-
id: id,
|
|
86
|
-
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
87
|
-
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
88
|
-
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
89
|
-
htmlFor: uniqueId,
|
|
90
|
-
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
91
|
-
...LabelProps
|
|
92
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Textarea, {
|
|
95
|
-
onChange: handleChange,
|
|
96
|
-
animated: animated,
|
|
97
|
-
size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
|
|
98
|
-
variant: textBoxVariant,
|
|
99
|
-
isReadOnly: isReadOnly,
|
|
100
|
-
isDisabled: isDisabled,
|
|
101
|
-
getRef: handleGetRef,
|
|
102
|
-
maxLength: maxLength,
|
|
103
|
-
text: value,
|
|
104
|
-
placeHolder: placeHolder,
|
|
105
|
-
dataId: `property(${dataId})`,
|
|
106
|
-
onFocus: onFocus,
|
|
107
|
-
onBlur: handleBlur,
|
|
108
|
-
borderColor: borderColor,
|
|
109
|
-
needEffect: isReadOnly || isDisabled ? false : true,
|
|
110
|
-
resize: "vertical" // onKeyDown={onKeyDown}
|
|
111
|
-
,
|
|
112
|
-
htmlId: uniqueId,
|
|
113
|
-
...TextareaProps,
|
|
114
|
-
a11y: {
|
|
115
|
-
ariaLabelledby: labelName
|
|
116
|
-
}
|
|
117
|
-
}), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
118
|
-
text: validationMessage,
|
|
119
|
-
palette: validationPalette,
|
|
120
|
-
type: errorType,
|
|
121
|
-
htmlFor: uniqueId,
|
|
122
|
-
dataId: `${dataId}_ValidationMessage`,
|
|
123
|
-
...ValidationMessageProps1
|
|
124
|
-
}), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
|
|
125
|
-
text: validationRuleMessage,
|
|
126
|
-
palette: validationRulePalette,
|
|
127
|
-
type: errorType,
|
|
128
|
-
htmlFor: uniqueId,
|
|
129
|
-
dataId: `${dataId}_ValidationRuleMessage`,
|
|
130
|
-
...ValidationMessageProps2
|
|
131
|
-
})));
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
TextareaField.propTypes = propTypes;
|
|
135
|
-
TextareaField.defaultProps = defaultProps;
|
|
136
|
-
const MemoizedTextareaField = /*#__PURE__*/memo(TextareaField);
|
|
137
|
-
MemoizedTextareaField.propTypes = propTypes;
|
|
138
|
-
MemoizedTextareaField.defaultProps = defaultProps;
|
|
139
|
-
MemoizedTextareaField.displayName = 'TextareaField';
|
|
140
|
-
export default TextareaField;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FieldCommonDefaultProps } from "../../props/FieldCommonDefaultProps";
|
|
2
|
-
export const defaultProps = {
|
|
3
|
-
textBoxSize: 'xsmall',
|
|
4
|
-
textBoxVariant: 'primary',
|
|
5
|
-
animated: true,
|
|
6
|
-
errorType: 'primary',
|
|
7
|
-
borderColor: 'default',
|
|
8
|
-
fieldSize: 'medium',
|
|
9
|
-
// isFocusOnLabelClick: true,
|
|
10
|
-
labelPalette: 'default',
|
|
11
|
-
labelCustomClass: '',
|
|
12
|
-
customProps: {},
|
|
13
|
-
dataSelectorId: 'textareaField',
|
|
14
|
-
...FieldCommonDefaultProps()
|
|
15
|
-
};
|