@zohodesk/components 1.0.0-temp-195.1 → 1.0.0-temp-197
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/.cli/PropUnificationExcludeFilesArray.js +230 -230
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +14 -0
- package/css_error.log +1 -1
- package/es/Accordion/Accordion.js +2 -2
- package/es/Accordion/AccordionItem.js +4 -4
- package/es/Accordion/index.js +2 -2
- package/es/Animation/Animation.js +3 -3
- package/es/Animation/utils.js +1 -1
- package/es/AppContainer/AppContainer.js +8 -9
- package/es/AppContainer/__tests__/AppContainer.spec.js +82 -0
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/es/Avatar/Avatar.js +14 -14
- package/es/Avatar/Avatar.module.css +2 -2
- package/es/Avatar/__tests__/Avatar.spec.js +1 -1
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/es/AvatarTeam/AvatarTeam.js +4 -4
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/es/Button/Button.js +4 -4
- package/es/Button/__tests__/Button.spec.js +9 -22
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/es/Button/css/Button.module.css +22 -6
- package/es/Button/index.js +2 -2
- package/es/Button/props/defaultProps.js +1 -1
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/Buttongroup.module.css +1 -1
- package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
- package/es/Card/Card.js +5 -5
- package/es/Card/index.js +4 -4
- package/es/CheckBox/CheckBox.js +6 -6
- package/es/CheckBox/__tests__/CheckBox.spec.js +240 -0
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/es/DateTime/CalendarView.js +6 -6
- package/es/DateTime/DateTime.js +22 -17
- package/es/DateTime/DateTime.module.css +11 -8
- package/es/DateTime/DateTimePopupFooter.js +5 -5
- package/es/DateTime/DateTimePopupHeader.js +4 -4
- package/es/DateTime/DateWidget.js +44 -22
- package/es/DateTime/DaysRow.js +3 -3
- package/es/DateTime/Time.js +30 -15
- package/es/DateTime/YearView.js +6 -6
- package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
- package/es/DateTime/dateFormatUtils/index.js +3 -3
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
- package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
- package/es/DateTime/index.js +1 -1
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +8 -4
- package/es/DateTime/validator.js +2 -2
- package/es/DropBox/DropBox.js +9 -9
- package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/DropBox/css/cssJSLogic.js +1 -1
- package/es/DropBox/props/defaultProps.js +1 -1
- package/es/DropBox/props/propTypes.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +1 -1
- package/es/DropDown/DropDown.js +4 -4
- package/es/DropDown/DropDownHeading.js +3 -3
- package/es/DropDown/DropDownItem.js +3 -3
- package/es/DropDown/DropDownSearch.js +4 -4
- package/es/DropDown/DropDownSeparator.js +2 -2
- package/es/DropDown/index.js +7 -7
- package/es/DropDown/props/propTypes.js +1 -1
- package/es/Heading/Heading.js +3 -3
- package/es/Label/Label.js +4 -4
- package/es/Label/__tests__/Label.spec.js +1 -1
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/es/Layout/Box.js +4 -4
- package/es/Layout/Container.js +4 -4
- package/es/Layout/index.js +2 -2
- package/es/ListItem/ListContainer.js +6 -6
- package/es/ListItem/ListItem.js +5 -5
- package/es/ListItem/ListItemWithAvatar.js +7 -7
- package/es/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/ListItem/ListItemWithIcon.js +5 -5
- package/es/ListItem/ListItemWithRadio.js +6 -6
- package/es/ListItem/index.js +6 -6
- package/es/Modal/Modal.js +3 -3
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
- package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
- package/es/MultiSelect/EmptyState.js +3 -3
- package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/MultiSelect/MultiSelect.js +25 -25
- package/es/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/MultiSelect/SelectedOptions.js +5 -5
- package/es/MultiSelect/Suggestions.js +6 -6
- package/es/MultiSelect/index.js +4 -4
- package/es/MultiSelect/props/defaultProps.js +1 -1
- package/es/PopOver/PopOver.js +6 -6
- package/es/PopOver/index.js +3 -3
- package/es/Popup/Popup.js +3 -3
- package/es/Provider/AvatarSize.js +1 -1
- package/es/Provider/CssProvider.js +1 -1
- package/es/Provider/IdProvider.js +2 -2
- package/es/Provider/LibraryContext.js +2 -2
- package/es/Provider/ZindexProvider.js +2 -2
- package/es/Provider/index.js +4 -4
- package/es/Radio/Radio.js +5 -5
- package/es/Radio/__tests__/Radio.spec.js +7 -10
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/es/Responsive/CustomResponsive.js +7 -7
- package/es/Responsive/ResizeComponent.js +2 -2
- package/es/Responsive/Responsive.js +6 -6
- package/es/Responsive/index.js +3 -3
- package/es/Responsive/utils/index.js +1 -1
- package/es/Responsive/windowResizeObserver.js +1 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/Ribbon/Ribbon.js +3 -3
- package/es/Ribbon/Ribbon.module.css +6 -6
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/es/RippleEffect/RippleEffect.js +4 -4
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +2 -2
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/es/Select/GroupSelect.js +17 -17
- package/es/Select/Select.js +15 -15
- package/es/Select/SelectWithAvatar.js +17 -17
- package/es/Select/SelectWithIcon.js +13 -13
- package/es/Select/index.js +4 -4
- package/es/Select/props/defaultProps.js +1 -1
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/__tests__/Stencils.spec.js +1 -1
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/es/Switch/Switch.js +5 -5
- package/es/Switch/Switch.module.css +2 -1
- package/es/Switch/__tests__/Switch.spec.js +1 -1
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/es/Tab/Tab.js +5 -5
- package/es/Tab/TabContent.js +4 -4
- package/es/Tab/TabContentWrapper.js +3 -3
- package/es/Tab/TabWrapper.js +3 -3
- package/es/Tab/Tabs.js +12 -12
- package/es/Tab/Tabs.module.css +3 -3
- package/es/Tab/index.js +5 -5
- package/es/Tag/Tag.js +15 -15
- package/es/Tag/__tests__/Tag.spec.js +235 -0
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/es/TextBox/TextBox.js +3 -3
- package/es/TextBox/__tests__/TextBox.spec.js +327 -0
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/es/TextBox/props/propTypes.js +0 -3
- package/es/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +268 -0
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/es/TextBoxIcon/props/propTypes.js +2 -2
- package/es/Textarea/Textarea.js +3 -3
- package/es/Textarea/__tests__/Textarea.spec.js +228 -0
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/es/Tooltip/Tooltip.js +5 -5
- package/es/Tooltip/Tooltip.module.css +3 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/VelocityAnimation/index.js +2 -2
- package/es/css.js +37 -37
- package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/es/index.js +39 -39
- package/es/semantic/Button/Button.js +3 -3
- package/es/semantic/index.js +1 -1
- package/es/utils/Common.js +1 -1
- package/es/utils/ContextOptimizer.js +1 -1
- package/es/utils/datetime/common.js +1 -1
- package/es/utils/dropDownUtils.js +5 -2
- package/es/utils/index.js +1 -1
- package/es/v1/Accordion/Accordion.js +2 -2
- package/es/v1/Accordion/AccordionItem.js +4 -4
- package/es/v1/Accordion/index.js +2 -2
- package/es/v1/Animation/Animation.js +3 -3
- package/es/v1/Animation/utils.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +8 -9
- package/es/v1/Avatar/Avatar.js +10 -10
- package/es/v1/AvatarTeam/AvatarTeam.js +8 -8
- package/es/v1/Button/Button.js +8 -8
- package/es/v1/Button/props/defaultProps.js +1 -1
- package/es/v1/Buttongroup/Buttongroup.js +3 -3
- package/es/v1/Card/Card.js +9 -9
- package/es/v1/Card/index.js +4 -4
- package/es/v1/CheckBox/CheckBox.js +6 -6
- package/es/v1/DateTime/CalendarView.js +7 -7
- package/es/v1/DateTime/DateTime.js +22 -17
- package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
- package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
- package/es/v1/DateTime/DateWidget.js +44 -22
- package/es/v1/DateTime/DaysRow.js +3 -3
- package/es/v1/DateTime/Time.js +30 -15
- package/es/v1/DateTime/YearView.js +6 -6
- package/es/v1/DateTime/index.js +1 -1
- package/es/v1/DateTime/props/propTypes.js +8 -4
- package/es/v1/DropBox/DropBox.js +9 -9
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/v1/DropBox/props/defaultProps.js +1 -1
- package/es/v1/DropBox/props/propTypes.js +1 -1
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +4 -4
- package/es/v1/DropDown/DropDownHeading.js +3 -3
- package/es/v1/DropDown/DropDownItem.js +3 -3
- package/es/v1/DropDown/DropDownSearch.js +4 -4
- package/es/v1/DropDown/DropDownSeparator.js +2 -2
- package/es/v1/DropDown/props/propTypes.js +1 -1
- package/es/v1/Heading/Heading.js +3 -3
- package/es/v1/Label/Label.js +4 -4
- package/es/v1/Layout/Box.js +4 -4
- package/es/v1/Layout/Container.js +4 -4
- package/es/v1/Layout/index.js +2 -2
- package/es/v1/ListItem/ListContainer.js +6 -6
- package/es/v1/ListItem/ListItem.js +5 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
- package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/v1/ListItem/ListItemWithIcon.js +5 -5
- package/es/v1/ListItem/ListItemWithRadio.js +6 -6
- package/es/v1/ListItem/index.js +6 -6
- package/es/v1/Modal/Modal.js +3 -3
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +22 -22
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +23 -19
- package/es/v1/MultiSelect/EmptyState.js +3 -3
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +24 -24
- package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/v1/MultiSelect/SelectedOptions.js +5 -5
- package/es/v1/MultiSelect/Suggestions.js +6 -6
- package/es/v1/MultiSelect/index.js +4 -4
- package/es/v1/MultiSelect/props/defaultProps.js +3 -2
- package/es/v1/MultiSelect/props/propTypes.js +2 -1
- package/es/v1/PopOver/PopOver.js +6 -6
- package/es/v1/Popup/Popup.js +3 -3
- package/es/v1/Radio/Radio.js +5 -5
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/v1/Ribbon/Ribbon.js +3 -3
- package/es/v1/RippleEffect/RippleEffect.js +4 -4
- package/es/v1/Select/GroupSelect.js +17 -17
- package/es/v1/Select/Select.js +15 -15
- package/es/v1/Select/SelectWithAvatar.js +17 -17
- package/es/v1/Select/SelectWithIcon.js +13 -13
- package/es/v1/Select/index.js +4 -4
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Stencils/Stencils.js +3 -3
- package/es/v1/Switch/Switch.js +5 -5
- package/es/v1/Tab/Tab.js +5 -5
- package/es/v1/Tab/TabContent.js +4 -4
- package/es/v1/Tab/TabContentWrapper.js +3 -3
- package/es/v1/Tab/TabWrapper.js +3 -3
- package/es/v1/Tab/Tabs.js +23 -23
- package/es/v1/Tab/index.js +5 -5
- package/es/v1/Tab/v1Tabs.module.css +3 -3
- package/es/v1/Tag/Tag.js +15 -15
- package/es/v1/TextBox/TextBox.js +3 -3
- package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
- package/es/v1/Textarea/Textarea.js +3 -3
- package/es/v1/Tooltip/Tooltip.js +5 -5
- package/es/v1/Typography/Typography.js +4 -4
- package/es/v1/Typography/css/cssJSLogic.js +1 -1
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/v1/semantic/Button/Button.js +3 -3
- package/es/v1/semantic/index.js +1 -1
- package/lib/AppContainer/AppContainer.js +0 -2
- package/lib/AppContainer/__tests__/AppContainer.spec.js +90 -0
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +2 -2
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -591
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -705
- package/lib/Button/__tests__/Button.spec.js +8 -21
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/lib/Button/css/Button.module.css +22 -6
- package/lib/Buttongroup/Buttongroup.module.css +1 -1
- package/lib/CheckBox/__tests__/CheckBox.spec.js +248 -0
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/lib/DateTime/DateTime.js +7 -2
- package/lib/DateTime/DateTime.module.css +11 -8
- package/lib/DateTime/DateWidget.js +127 -103
- package/lib/DateTime/Time.js +29 -13
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +7 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +11 -7
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -312
- package/lib/MultiSelect/MultiSelect.js +5 -5
- package/lib/Radio/__tests__/Radio.spec.js +9 -13
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/lib/Ribbon/Ribbon.module.css +6 -6
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -374
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/lib/Select/GroupSelect.js +12 -12
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -89
- package/lib/Switch/Switch.module.css +2 -1
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -831
- package/lib/Tab/Tabs.module.css +3 -3
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/__tests__/Tag.spec.js +252 -0
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +334 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/lib/TextBox/props/propTypes.js +53 -51
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +279 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/lib/TextBoxIcon/props/propTypes.js +1 -1
- package/lib/Textarea/__tests__/Textarea.spec.js +235 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/lib/Tooltip/Tooltip.module.css +3 -0
- package/lib/utils/dropDownUtils.js +14 -2
- package/lib/v1/AppContainer/AppContainer.js +0 -2
- package/lib/v1/Avatar/Avatar.js +5 -5
- package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/lib/v1/Button/Button.js +4 -4
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/DateTime/DateTime.js +7 -2
- package/lib/v1/DateTime/DateWidget.js +129 -105
- package/lib/v1/DateTime/Time.js +29 -13
- package/lib/v1/DateTime/props/propTypes.js +7 -3
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/v1/MultiSelect/MultiSelect.js +5 -5
- package/lib/v1/MultiSelect/props/defaultProps.js +2 -1
- package/lib/v1/MultiSelect/props/propTypes.js +2 -1
- package/lib/v1/Select/GroupSelect.js +12 -12
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tab/v1Tabs.module.css +3 -3
- package/lib/v1/Tag/Tag.js +8 -8
- package/package.json +9 -5
- package/propValidationArg.json +11 -11
- package/result.json +1 -1
- /package/es/{common → deprecated}/boxShadow.module.css +0 -0
- /package/lib/{common → deprecated}/boxShadow.module.css +0 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Textarea component Should be render autofocus true 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<textarea
|
|
6
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
7
|
+
data-id="TextareaComp"
|
|
8
|
+
data-selector-id="textarea"
|
|
9
|
+
data-test-id="TextareaComp"
|
|
10
|
+
/>
|
|
11
|
+
</DocumentFragment>
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
exports[`Textarea component Should be render customClass 1`] = `
|
|
15
|
+
<DocumentFragment>
|
|
16
|
+
<textarea
|
|
17
|
+
class="textAreaCustomClass container small default needBorder noresize effect borderColor_default"
|
|
18
|
+
data-id="TextareaComp"
|
|
19
|
+
data-selector-id="textarea"
|
|
20
|
+
data-test-id="TextareaComp"
|
|
21
|
+
/>
|
|
22
|
+
</DocumentFragment>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Textarea component Should be render htmlId 1`] = `
|
|
26
|
+
<DocumentFragment>
|
|
27
|
+
<textarea
|
|
28
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
29
|
+
data-id="TextareaComp"
|
|
30
|
+
data-selector-id="textarea"
|
|
31
|
+
data-test-id="TextareaComp"
|
|
32
|
+
id="textAreahtmlId"
|
|
33
|
+
/>
|
|
34
|
+
</DocumentFragment>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Textarea component Should be render isDisabled is false and needEffect is false 1`] = `
|
|
38
|
+
<DocumentFragment>
|
|
39
|
+
<textarea
|
|
40
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
41
|
+
data-id="TextareaComp"
|
|
42
|
+
data-selector-id="textarea"
|
|
43
|
+
data-test-id="TextareaComp"
|
|
44
|
+
/>
|
|
45
|
+
</DocumentFragment>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports[`Textarea component Should be render isDisabled is true 1`] = `
|
|
49
|
+
<DocumentFragment>
|
|
50
|
+
<textarea
|
|
51
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
52
|
+
data-id="TextareaComp"
|
|
53
|
+
data-selector-id="textarea"
|
|
54
|
+
data-test-id="TextareaComp"
|
|
55
|
+
disabled=""
|
|
56
|
+
/>
|
|
57
|
+
</DocumentFragment>
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is false 1`] = `
|
|
61
|
+
<DocumentFragment>
|
|
62
|
+
<textarea
|
|
63
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
64
|
+
data-id="TextareaComp"
|
|
65
|
+
data-selector-id="textarea"
|
|
66
|
+
data-test-id="TextareaComp"
|
|
67
|
+
disabled=""
|
|
68
|
+
/>
|
|
69
|
+
</DocumentFragment>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is true 1`] = `
|
|
73
|
+
<DocumentFragment>
|
|
74
|
+
<textarea
|
|
75
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
76
|
+
data-id="TextareaComp"
|
|
77
|
+
data-selector-id="textarea"
|
|
78
|
+
data-test-id="TextareaComp"
|
|
79
|
+
disabled=""
|
|
80
|
+
/>
|
|
81
|
+
</DocumentFragment>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`Textarea component Should be render isReadOnly is false and needEffect is false 1`] = `
|
|
85
|
+
<DocumentFragment>
|
|
86
|
+
<textarea
|
|
87
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
88
|
+
data-id="TextareaComp"
|
|
89
|
+
data-selector-id="textarea"
|
|
90
|
+
data-test-id="TextareaComp"
|
|
91
|
+
/>
|
|
92
|
+
</DocumentFragment>
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is false 1`] = `
|
|
96
|
+
<DocumentFragment>
|
|
97
|
+
<textarea
|
|
98
|
+
class=" readonly container small default needBorder noresize borderColor_default"
|
|
99
|
+
data-id="TextareaComp"
|
|
100
|
+
data-selector-id="textarea"
|
|
101
|
+
data-test-id="TextareaComp"
|
|
102
|
+
readonly=""
|
|
103
|
+
/>
|
|
104
|
+
</DocumentFragment>
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is true 1`] = `
|
|
108
|
+
<DocumentFragment>
|
|
109
|
+
<textarea
|
|
110
|
+
class=" readonly container small default needBorder noresize effect borderColor_default"
|
|
111
|
+
data-id="TextareaComp"
|
|
112
|
+
data-selector-id="textarea"
|
|
113
|
+
data-test-id="TextareaComp"
|
|
114
|
+
readonly=""
|
|
115
|
+
/>
|
|
116
|
+
</DocumentFragment>
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
exports[`Textarea component Should be render maxLength in number 1`] = `
|
|
120
|
+
<DocumentFragment>
|
|
121
|
+
<textarea
|
|
122
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
123
|
+
data-id="TextareaComp"
|
|
124
|
+
data-selector-id="textarea"
|
|
125
|
+
data-test-id="TextareaComp"
|
|
126
|
+
maxlength="11"
|
|
127
|
+
/>
|
|
128
|
+
</DocumentFragment>
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Textarea component Should be render maxLength in string 1`] = `
|
|
132
|
+
<DocumentFragment>
|
|
133
|
+
<textarea
|
|
134
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
135
|
+
data-id="TextareaComp"
|
|
136
|
+
data-selector-id="textarea"
|
|
137
|
+
data-test-id="TextareaComp"
|
|
138
|
+
maxlength="Ten"
|
|
139
|
+
/>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Textarea component Should be render needAppearance is false 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<textarea
|
|
146
|
+
class=" basic borderColor_default"
|
|
147
|
+
data-id="TextareaComp"
|
|
148
|
+
data-selector-id="textarea"
|
|
149
|
+
data-test-id="TextareaComp"
|
|
150
|
+
/>
|
|
151
|
+
</DocumentFragment>
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
exports[`Textarea component Should be render needBorder is false 1`] = `
|
|
155
|
+
<DocumentFragment>
|
|
156
|
+
<textarea
|
|
157
|
+
class=" container small default noBorder noresize effect borderColor_default"
|
|
158
|
+
data-id="TextareaComp"
|
|
159
|
+
data-selector-id="textarea"
|
|
160
|
+
data-test-id="TextareaComp"
|
|
161
|
+
/>
|
|
162
|
+
</DocumentFragment>
|
|
163
|
+
`;
|
|
164
|
+
|
|
165
|
+
exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
|
|
166
|
+
<DocumentFragment>
|
|
167
|
+
<textarea
|
|
168
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
169
|
+
data-id="TextareaComp"
|
|
170
|
+
data-selector-id="textarea"
|
|
171
|
+
data-test-id="TextareaComp"
|
|
172
|
+
/>
|
|
173
|
+
</DocumentFragment>
|
|
174
|
+
`;
|
|
175
|
+
|
|
176
|
+
exports[`Textarea component Should be render placeholder 1`] = `
|
|
177
|
+
<DocumentFragment>
|
|
178
|
+
<textarea
|
|
179
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
180
|
+
data-id="TextareaComp"
|
|
181
|
+
data-selector-id="textarea"
|
|
182
|
+
data-test-id="TextareaComp"
|
|
183
|
+
placeholder="TextAreaPlaceHolder"
|
|
184
|
+
/>
|
|
185
|
+
</DocumentFragment>
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`Textarea component Should be render text 1`] = `
|
|
189
|
+
<DocumentFragment>
|
|
190
|
+
<textarea
|
|
191
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
192
|
+
data-id="TextareaComp"
|
|
193
|
+
data-selector-id="textarea"
|
|
194
|
+
data-test-id="TextareaComp"
|
|
195
|
+
>
|
|
196
|
+
TextAreaText
|
|
197
|
+
</textarea>
|
|
198
|
+
</DocumentFragment>
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Textarea component Should be render with the basic set of default props 1`] = `
|
|
202
|
+
<DocumentFragment>
|
|
203
|
+
<textarea
|
|
204
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
205
|
+
data-id="TextareaComp"
|
|
206
|
+
data-selector-id="textarea"
|
|
207
|
+
data-test-id="TextareaComp"
|
|
208
|
+
/>
|
|
209
|
+
</DocumentFragment>
|
|
210
|
+
`;
|
|
211
|
+
|
|
212
|
+
exports[`Textarea component Should render Varient - default 1`] = `
|
|
213
|
+
<DocumentFragment>
|
|
214
|
+
<textarea
|
|
215
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
216
|
+
data-id="TextareaComp"
|
|
217
|
+
data-selector-id="textarea"
|
|
218
|
+
data-test-id="TextareaComp"
|
|
219
|
+
/>
|
|
220
|
+
</DocumentFragment>
|
|
221
|
+
`;
|
|
222
|
+
|
|
223
|
+
exports[`Textarea component Should render Varient - primary 1`] = `
|
|
224
|
+
<DocumentFragment>
|
|
225
|
+
<textarea
|
|
226
|
+
class=" container small primary needBorder noresize effect borderColor_default"
|
|
227
|
+
data-id="TextareaComp"
|
|
228
|
+
data-selector-id="textarea"
|
|
229
|
+
data-test-id="TextareaComp"
|
|
230
|
+
/>
|
|
231
|
+
</DocumentFragment>
|
|
232
|
+
`;
|
|
233
|
+
|
|
234
|
+
exports[`Textarea component Should render animated is false - large 1`] = `
|
|
235
|
+
<DocumentFragment>
|
|
236
|
+
<textarea
|
|
237
|
+
class=" container large default needBorder noresize effect borderColor_default"
|
|
238
|
+
data-id="TextareaComp"
|
|
239
|
+
data-selector-id="textarea"
|
|
240
|
+
data-test-id="TextareaComp"
|
|
241
|
+
/>
|
|
242
|
+
</DocumentFragment>
|
|
243
|
+
`;
|
|
244
|
+
|
|
245
|
+
exports[`Textarea component Should render animated is false - medium 1`] = `
|
|
246
|
+
<DocumentFragment>
|
|
247
|
+
<textarea
|
|
248
|
+
class=" container medium default needBorder noresize effect borderColor_default"
|
|
249
|
+
data-id="TextareaComp"
|
|
250
|
+
data-selector-id="textarea"
|
|
251
|
+
data-test-id="TextareaComp"
|
|
252
|
+
/>
|
|
253
|
+
</DocumentFragment>
|
|
254
|
+
`;
|
|
255
|
+
|
|
256
|
+
exports[`Textarea component Should render animated is false - small 1`] = `
|
|
257
|
+
<DocumentFragment>
|
|
258
|
+
<textarea
|
|
259
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
260
|
+
data-id="TextareaComp"
|
|
261
|
+
data-selector-id="textarea"
|
|
262
|
+
data-test-id="TextareaComp"
|
|
263
|
+
/>
|
|
264
|
+
</DocumentFragment>
|
|
265
|
+
`;
|
|
266
|
+
|
|
267
|
+
exports[`Textarea component Should render animated is false - xmedium 1`] = `
|
|
268
|
+
<DocumentFragment>
|
|
269
|
+
<textarea
|
|
270
|
+
class=" container xmedium default needBorder noresize effect borderColor_default"
|
|
271
|
+
data-id="TextareaComp"
|
|
272
|
+
data-selector-id="textarea"
|
|
273
|
+
data-test-id="TextareaComp"
|
|
274
|
+
/>
|
|
275
|
+
</DocumentFragment>
|
|
276
|
+
`;
|
|
277
|
+
|
|
278
|
+
exports[`Textarea component Should render animated is false - xsmall 1`] = `
|
|
279
|
+
<DocumentFragment>
|
|
280
|
+
<textarea
|
|
281
|
+
class=" container xsmall default needBorder noresize effect borderColor_default"
|
|
282
|
+
data-id="TextareaComp"
|
|
283
|
+
data-selector-id="textarea"
|
|
284
|
+
data-test-id="TextareaComp"
|
|
285
|
+
/>
|
|
286
|
+
</DocumentFragment>
|
|
287
|
+
`;
|
|
288
|
+
|
|
289
|
+
exports[`Textarea component Should render animated is true - large 1`] = `
|
|
290
|
+
<DocumentFragment>
|
|
291
|
+
<textarea
|
|
292
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
293
|
+
data-id="TextareaComp"
|
|
294
|
+
data-selector-id="textarea"
|
|
295
|
+
data-test-id="TextareaComp"
|
|
296
|
+
/>
|
|
297
|
+
</DocumentFragment>
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
exports[`Textarea component Should render animated is true - medium 1`] = `
|
|
301
|
+
<DocumentFragment>
|
|
302
|
+
<textarea
|
|
303
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
304
|
+
data-id="TextareaComp"
|
|
305
|
+
data-selector-id="textarea"
|
|
306
|
+
data-test-id="TextareaComp"
|
|
307
|
+
/>
|
|
308
|
+
</DocumentFragment>
|
|
309
|
+
`;
|
|
310
|
+
|
|
311
|
+
exports[`Textarea component Should render animated is true - small 1`] = `
|
|
312
|
+
<DocumentFragment>
|
|
313
|
+
<textarea
|
|
314
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
315
|
+
data-id="TextareaComp"
|
|
316
|
+
data-selector-id="textarea"
|
|
317
|
+
data-test-id="TextareaComp"
|
|
318
|
+
/>
|
|
319
|
+
</DocumentFragment>
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Textarea component Should render animated is true - xmedium 1`] = `
|
|
323
|
+
<DocumentFragment>
|
|
324
|
+
<textarea
|
|
325
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
326
|
+
data-id="TextareaComp"
|
|
327
|
+
data-selector-id="textarea"
|
|
328
|
+
data-test-id="TextareaComp"
|
|
329
|
+
/>
|
|
330
|
+
</DocumentFragment>
|
|
331
|
+
`;
|
|
332
|
+
|
|
333
|
+
exports[`Textarea component Should render animated is true - xsmall 1`] = `
|
|
334
|
+
<DocumentFragment>
|
|
335
|
+
<textarea
|
|
336
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
337
|
+
data-id="TextareaComp"
|
|
338
|
+
data-selector-id="textarea"
|
|
339
|
+
data-test-id="TextareaComp"
|
|
340
|
+
/>
|
|
341
|
+
</DocumentFragment>
|
|
342
|
+
`;
|
|
343
|
+
|
|
344
|
+
exports[`Textarea component Should render borderColor - default 1`] = `
|
|
345
|
+
<DocumentFragment>
|
|
346
|
+
<textarea
|
|
347
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
348
|
+
data-id="TextareaComp"
|
|
349
|
+
data-selector-id="textarea"
|
|
350
|
+
data-test-id="TextareaComp"
|
|
351
|
+
/>
|
|
352
|
+
</DocumentFragment>
|
|
353
|
+
`;
|
|
354
|
+
|
|
355
|
+
exports[`Textarea component Should render borderColor - transparent 1`] = `
|
|
356
|
+
<DocumentFragment>
|
|
357
|
+
<textarea
|
|
358
|
+
class=" container small default needBorder noresize effect borderColor_transparent"
|
|
359
|
+
data-id="TextareaComp"
|
|
360
|
+
data-selector-id="textarea"
|
|
361
|
+
data-test-id="TextareaComp"
|
|
362
|
+
/>
|
|
363
|
+
</DocumentFragment>
|
|
364
|
+
`;
|
|
365
|
+
|
|
366
|
+
exports[`Textarea component Should render resize - both 1`] = `
|
|
367
|
+
<DocumentFragment>
|
|
368
|
+
<textarea
|
|
369
|
+
class=" container small default needBorder resizeboth effect borderColor_default"
|
|
370
|
+
data-id="TextareaComp"
|
|
371
|
+
data-selector-id="textarea"
|
|
372
|
+
data-test-id="TextareaComp"
|
|
373
|
+
/>
|
|
374
|
+
</DocumentFragment>
|
|
375
|
+
`;
|
|
376
|
+
|
|
377
|
+
exports[`Textarea component Should render resize - horizontal 1`] = `
|
|
378
|
+
<DocumentFragment>
|
|
379
|
+
<textarea
|
|
380
|
+
class=" container small default needBorder resizeX effect borderColor_default"
|
|
381
|
+
data-id="TextareaComp"
|
|
382
|
+
data-selector-id="textarea"
|
|
383
|
+
data-test-id="TextareaComp"
|
|
384
|
+
/>
|
|
385
|
+
</DocumentFragment>
|
|
386
|
+
`;
|
|
387
|
+
|
|
388
|
+
exports[`Textarea component Should render resize - none 1`] = `
|
|
389
|
+
<DocumentFragment>
|
|
390
|
+
<textarea
|
|
391
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
392
|
+
data-id="TextareaComp"
|
|
393
|
+
data-selector-id="textarea"
|
|
394
|
+
data-test-id="TextareaComp"
|
|
395
|
+
/>
|
|
396
|
+
</DocumentFragment>
|
|
397
|
+
`;
|
|
398
|
+
|
|
399
|
+
exports[`Textarea component Should render resize - vertical 1`] = `
|
|
400
|
+
<DocumentFragment>
|
|
401
|
+
<textarea
|
|
402
|
+
class=" container small default needBorder resizeY effect borderColor_default"
|
|
403
|
+
data-id="TextareaComp"
|
|
404
|
+
data-selector-id="textarea"
|
|
405
|
+
data-test-id="TextareaComp"
|
|
406
|
+
/>
|
|
407
|
+
</DocumentFragment>
|
|
408
|
+
`;
|
|
409
|
+
|
|
410
|
+
exports[`Textarea component Should render size - large 1`] = `
|
|
411
|
+
<DocumentFragment>
|
|
412
|
+
<textarea
|
|
413
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
414
|
+
data-id="TextareaComp"
|
|
415
|
+
data-selector-id="textarea"
|
|
416
|
+
data-test-id="TextareaComp"
|
|
417
|
+
/>
|
|
418
|
+
</DocumentFragment>
|
|
419
|
+
`;
|
|
420
|
+
|
|
421
|
+
exports[`Textarea component Should render size - medium 1`] = `
|
|
422
|
+
<DocumentFragment>
|
|
423
|
+
<textarea
|
|
424
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
425
|
+
data-id="TextareaComp"
|
|
426
|
+
data-selector-id="textarea"
|
|
427
|
+
data-test-id="TextareaComp"
|
|
428
|
+
/>
|
|
429
|
+
</DocumentFragment>
|
|
430
|
+
`;
|
|
431
|
+
|
|
432
|
+
exports[`Textarea component Should render size - small 1`] = `
|
|
433
|
+
<DocumentFragment>
|
|
434
|
+
<textarea
|
|
435
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
436
|
+
data-id="TextareaComp"
|
|
437
|
+
data-selector-id="textarea"
|
|
438
|
+
data-test-id="TextareaComp"
|
|
439
|
+
/>
|
|
440
|
+
</DocumentFragment>
|
|
441
|
+
`;
|
|
442
|
+
|
|
443
|
+
exports[`Textarea component Should render size - xmedium 1`] = `
|
|
444
|
+
<DocumentFragment>
|
|
445
|
+
<textarea
|
|
446
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
447
|
+
data-id="TextareaComp"
|
|
448
|
+
data-selector-id="textarea"
|
|
449
|
+
data-test-id="TextareaComp"
|
|
450
|
+
/>
|
|
451
|
+
</DocumentFragment>
|
|
452
|
+
`;
|
|
453
|
+
|
|
454
|
+
exports[`Textarea component Should render size - xsmall 1`] = `
|
|
455
|
+
<DocumentFragment>
|
|
456
|
+
<textarea
|
|
457
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
458
|
+
data-id="TextareaComp"
|
|
459
|
+
data-selector-id="textarea"
|
|
460
|
+
data-test-id="TextareaComp"
|
|
461
|
+
/>
|
|
462
|
+
</DocumentFragment>
|
|
463
|
+
`;
|
|
464
|
+
|
|
465
|
+
exports[`Textarea component rendering ally clearLabel 1`] = `
|
|
466
|
+
<DocumentFragment>
|
|
467
|
+
<textarea
|
|
468
|
+
aria-label="TextAreaAriaLabel"
|
|
469
|
+
aria-labelledby="TexareaAriaLabelledby"
|
|
470
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
471
|
+
data-id="TextareaComp"
|
|
472
|
+
data-selector-id="textarea"
|
|
473
|
+
data-test-id="TextareaComp"
|
|
474
|
+
/>
|
|
475
|
+
</DocumentFragment>
|
|
476
|
+
`;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
z-index: 9999999;
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
5
|
pointer-events: none;
|
|
6
|
+
/*css:validation:ignore*/
|
|
6
7
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
7
8
|
border-radius: var(--zd_size4);
|
|
8
9
|
}[dir=ltr] .tooltiptext {
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
52
53
|
border-right: solid 6px transparent;
|
|
53
54
|
border-bottom: solid 6px transparent;
|
|
55
|
+
/*css:validation:ignore*/
|
|
54
56
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
55
57
|
z-index: -1;
|
|
56
58
|
}
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
border-left: solid 6px var(--zdt_tooltip_default_bg);
|
|
72
74
|
border-right: solid 6px transparent;
|
|
73
75
|
border-bottom: solid 6px transparent;
|
|
76
|
+
/*css:validation:ignore*/
|
|
74
77
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
75
78
|
z-index: -1;
|
|
76
79
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
6
|
+
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionIdFromJson = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
7
7
|
|
|
8
8
|
var _reselect = require("reselect");
|
|
9
9
|
|
|
@@ -17,6 +17,10 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
17
17
|
|
|
18
18
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19
19
|
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
20
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
25
|
|
|
22
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -217,6 +221,12 @@ var extractOptionId = function extractOptionId(id) {
|
|
|
217
221
|
|
|
218
222
|
exports.extractOptionId = extractOptionId;
|
|
219
223
|
|
|
224
|
+
var extractOptionIdFromJson = function extractOptionIdFromJson(id, localData) {
|
|
225
|
+
return localData[id] || {};
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
exports.extractOptionIdFromJson = extractOptionIdFromJson;
|
|
229
|
+
|
|
220
230
|
var makeFormatOptions = function makeFormatOptions() {
|
|
221
231
|
return (0, _reselect.createSelector)([getOptions, getValueField, getTextField, getImageField, getPrefixText, getIconName, getIconSize, getOptionType, getDisabledOptions, getListItemProps], function (options, valueField, textField, imageField, prefixText, iconName, iconSize, optionType, disabledOptions, listItemProps) {
|
|
222
232
|
var revampOptions = [];
|
|
@@ -268,7 +278,9 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
268
278
|
}
|
|
269
279
|
|
|
270
280
|
normalizedFormatOptions[id] = optionDetails;
|
|
271
|
-
normalizedAllOptions[id] = option
|
|
281
|
+
normalizedAllOptions[id] = _objectSpread(_objectSpread({}, option), {}, {
|
|
282
|
+
groupId: prefixText
|
|
283
|
+
});
|
|
272
284
|
revampOptions.push(optionDetails);
|
|
273
285
|
}
|
|
274
286
|
}
|
|
@@ -35,8 +35,6 @@ require("@zohodesk/variables/assets/no_transitionVariables.module.css");
|
|
|
35
35
|
|
|
36
36
|
require("../../common/a11y.module.css");
|
|
37
37
|
|
|
38
|
-
require("../../common/boxShadow.module.css");
|
|
39
|
-
|
|
40
38
|
var _AppContainerModule = _interopRequireDefault(require("../../AppContainer/AppContainer.module.css"));
|
|
41
39
|
|
|
42
40
|
var _Config = require("../../Provider/Config");
|
package/lib/v1/Avatar/Avatar.js
CHANGED
|
@@ -49,11 +49,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
49
|
|
|
50
50
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
51
|
|
|
52
|
-
/*
|
|
53
|
-
1. need to change name into firstName lastName
|
|
54
|
-
2. pattern support via context as well as props
|
|
55
|
-
3. prop high priority to arrange firstName lastName
|
|
56
|
-
4. team pass name as lastName and pass pattern via prop
|
|
52
|
+
/*
|
|
53
|
+
1. need to change name into firstName lastName
|
|
54
|
+
2. pattern support via context as well as props
|
|
55
|
+
3. prop high priority to arrange firstName lastName
|
|
56
|
+
4. team pass name as lastName and pass pattern via prop
|
|
57
57
|
*/
|
|
58
58
|
function Avatar(props) {
|
|
59
59
|
var src = props.src,
|
|
@@ -19,10 +19,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
/* once avatar support firstname lastname and pattern
|
|
23
|
-
pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
|
|
24
|
-
|
|
25
|
-
Not going to export to external then can kept inside supportapp
|
|
22
|
+
/* once avatar support firstname lastname and pattern
|
|
23
|
+
pass lastName as team name and pattern ["FIRST_NAME","LAST_NAME"] as props
|
|
24
|
+
|
|
25
|
+
Not going to export to external then can kept inside supportapp
|
|
26
26
|
*/
|
|
27
27
|
function AvatarTeam(props) {
|
|
28
28
|
var src = props.src,
|
package/lib/v1/Button/Button.js
CHANGED
|
@@ -21,10 +21,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
21
21
|
|
|
22
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
Button text and children props?
|
|
26
|
-
use children for both cases
|
|
27
|
-
toLowerCase check needed?
|
|
24
|
+
/*
|
|
25
|
+
Button text and children props?
|
|
26
|
+
use children for both cases
|
|
27
|
+
toLowerCase check needed?
|
|
28
28
|
*/
|
|
29
29
|
function Button(props) {
|
|
30
30
|
var text = props.text,
|
package/lib/v1/Card/Card.js
CHANGED
|
@@ -44,10 +44,10 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
44
44
|
|
|
45
45
|
/* eslint-disable react/forbid-component-props */
|
|
46
46
|
|
|
47
|
-
/*
|
|
48
|
-
isscroll header border change use ref
|
|
49
|
-
scroll logic remove from here
|
|
50
|
-
scroll logic move to virtualizer list
|
|
47
|
+
/*
|
|
48
|
+
isscroll header border change use ref
|
|
49
|
+
scroll logic remove from here
|
|
50
|
+
scroll logic move to virtualizer list
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
53
|
/* performance handling pending in card component moving to ref instead of setState */
|
|
@@ -726,7 +726,11 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
726
726
|
isRestrictScroll = _this$props7.isRestrictScroll,
|
|
727
727
|
dropBoxPortalId = _this$props7.dropBoxPortalId,
|
|
728
728
|
startDate = _this$props7.startDate,
|
|
729
|
-
endDate = _this$props7.endDate
|
|
729
|
+
endDate = _this$props7.endDate,
|
|
730
|
+
_this$props7$customPr = _this$props7.customProps,
|
|
731
|
+
customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr;
|
|
732
|
+
var _customProps$TimeProp = customProps.TimeProps,
|
|
733
|
+
TimeProps = _customProps$TimeProp === void 0 ? {} : _customProps$TimeProp;
|
|
730
734
|
var _i18nKeys$timeText = i18nKeys.timeText,
|
|
731
735
|
timeText = _i18nKeys$timeText === void 0 ? 'Time' : _i18nKeys$timeText,
|
|
732
736
|
_i18nKeys$submitText = i18nKeys.submitText,
|
|
@@ -794,7 +798,8 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
794
798
|
ampmSuggestions: this.ampmSuggestions,
|
|
795
799
|
onAmPmSelect: this.amPmSelect,
|
|
796
800
|
amPm: amPm,
|
|
797
|
-
is24Hour: is24Hour
|
|
801
|
+
is24Hour: is24Hour,
|
|
802
|
+
customProps: TimeProps
|
|
798
803
|
}) : null, needAction ? /*#__PURE__*/_react["default"].createElement(_DateTimePopupFooter["default"], {
|
|
799
804
|
submitText: submitText,
|
|
800
805
|
onSubmit: this.handleSelect,
|