@zohodesk/components 1.0.0-temp-52 → 1.0.0-temp-55
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 +994 -989
- package/{es → assets}/Appearance/dark/mode/darkMode.module.css +5 -3
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
- package/{es → assets}/Appearance/default/mode/defaultMode.module.css +4 -2
- package/{es → assets}/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +7 -7
- package/{es → assets}/Appearance/default/themes/green/greenDefaultCTATheme.module.css +2 -2
- package/{es → assets}/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/{es → assets}/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +3 -3
- package/{es → assets}/Appearance/default/themes/red/redDefaultCTATheme.module.css +7 -7
- package/{es → assets}/Appearance/default/themes/red/redDefaultComponentTheme.module.css +3 -3
- package/{es → assets}/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -0
- package/{es → assets}/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +3 -3
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +358 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
- package/{es/Appearance/dark/themes/green/greenDarkCTATheme.module.css → assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css} +11 -11
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
- package/{es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css → assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css} +11 -11
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
- package/{es/Appearance/dark/themes/red/redDarkCTATheme.module.css → assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css} +11 -11
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
- package/{es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css → assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css} +11 -11
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +117 -115
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +161 -147
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/es/Button/Button.js +4 -4
- package/es/Button/Button.module.css +521 -448
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +89 -60
- package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +153 -147
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +0 -0
- package/es/DateTime/DateTime.module.css +187 -160
- package/es/DateTime/DateWidget.js +0 -0
- package/es/DateTime/DateWidget.module.css +42 -38
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +80 -70
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +406 -370
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropDown/DropDown.js +0 -0
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +53 -49
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +94 -68
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +324 -324
- package/es/Layout/utils.js +0 -0
- package/es/LightNightMode/Colors.json +397 -397
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +199 -168
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/MultiSelect/AdvancedMultiSelect.module.css +127 -113
- package/es/MultiSelect/MultiSelect.js +13 -9
- package/es/MultiSelect/MultiSelect.module.css +193 -176
- package/es/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/es/MultiSelect/SelectedOptions.module.css +15 -9
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Provider.js +72 -35
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +110 -104
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/Responsive/sizeObservers.js +8 -1
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +376 -311
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/es/RippleEffect/RippleEffect.module.css +70 -99
- package/es/Select/GroupSelect.js +0 -0
- package/es/Select/Select.js +0 -0
- package/es/Select/Select.module.css +100 -90
- package/es/Select/SelectWithAvatar.js +0 -0
- package/es/Select/SelectWithIcon.js +0 -0
- package/es/Select/__tests__/Select.spec.js +0 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +96 -78
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +109 -110
- package/es/Tab/Tab.module.css +101 -92
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +140 -107
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +250 -228
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +157 -161
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +78 -71
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +139 -140
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/es/Tooltip/Tooltip.module.css +104 -103
- package/es/beta/FocusRing/FocusRing.module.css +151 -126
- package/es/common/animation.module.css +624 -426
- package/es/common/avatarsizes.module.css +44 -44
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -50
- package/es/common/common.module.css +502 -458
- package/es/common/customscroll.module.css +89 -93
- package/es/common/docStyle.module.css +766 -715
- package/es/common/reset.module.css +12 -12
- package/es/common/transition.module.css +146 -106
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/lib/Accordion/Accordion.js +146 -0
- package/lib/Accordion/AccordionItem.js +124 -0
- package/lib/Accordion/__tests__/Accordion.spec.js +85 -0
- package/lib/Accordion/index.js +23 -0
- package/lib/Animation/Animation.js +206 -0
- package/lib/Animation/__tests__/Animation.spec.js +23 -0
- package/lib/AppContainer/AppContainer.js +205 -0
- package/lib/AppContainer/AppContainer.module.css +18 -0
- package/lib/Avatar/Avatar.js +280 -0
- package/lib/Avatar/Avatar.module.css +117 -0
- package/lib/Avatar/__tests__/Avatar.spec.js +208 -0
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -0
- package/lib/AvatarTeam/AvatarTeam.js +157 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +161 -0
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +92 -0
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -0
- package/lib/Button/Button.js +158 -0
- package/lib/Button/Button.module.css +522 -0
- package/lib/Button/__tests__/Button.spec.js +233 -0
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -0
- package/lib/Buttongroup/Buttongroup.js +101 -0
- package/lib/Buttongroup/Buttongroup.module.css +89 -0
- package/lib/Buttongroup/__test__/Buttongroup.spec.js +86 -0
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -0
- package/lib/Card/Card.js +409 -0
- package/lib/Card/Card.module.css +20 -0
- package/lib/Card/__tests__/Card.spec.js +56 -0
- package/lib/Card/index.js +37 -0
- package/lib/CheckBox/CheckBox.js +265 -0
- package/lib/CheckBox/CheckBox.module.css +153 -0
- package/lib/CheckBox/__tests__/CheckBox.spec.js +18 -0
- package/lib/DateTime/CalendarView.js +285 -0
- package/lib/DateTime/DateTime.js +889 -0
- package/lib/DateTime/DateTime.module.css +188 -0
- package/lib/DateTime/DateTimePopupFooter.js +90 -0
- package/lib/DateTime/DateTimePopupHeader.js +149 -0
- package/lib/DateTime/DateWidget.js +1189 -0
- package/lib/DateTime/DateWidget.module.css +42 -0
- package/lib/DateTime/DaysRow.js +76 -0
- package/lib/DateTime/Time.js +248 -0
- package/lib/DateTime/YearView.js +324 -0
- package/lib/DateTime/YearView.module.css +80 -0
- package/lib/DateTime/__tests__/CalendarView.spec.js +45 -0
- package/lib/DateTime/__tests__/DateTime.spec.js +127 -0
- package/lib/DateTime/__tests__/DateWidget.spec.js +81 -0
- package/lib/DateTime/common.js +36 -0
- package/lib/DateTime/constants.js +77 -0
- package/lib/DateTime/dateFormatUtils/dateFormat.js +613 -0
- package/lib/DateTime/dateFormatUtils/dayChange.js +81 -0
- package/lib/DateTime/dateFormatUtils/index.js +274 -0
- package/lib/DateTime/dateFormatUtils/monthChange.js +94 -0
- package/lib/DateTime/dateFormatUtils/timeChange.js +240 -0
- package/lib/DateTime/dateFormatUtils/yearChange.js +119 -0
- package/lib/DateTime/index.js +15 -0
- package/lib/DateTime/objectUtils.js +76 -0
- package/lib/DateTime/typeChecker.js +26 -0
- package/lib/DateTime/validator.js +353 -0
- package/lib/DropBox/DropBox.js +393 -0
- package/lib/DropBox/DropBox.module.css +406 -0
- package/lib/DropBox/DropBoxPositionMapping.json +145 -0
- package/lib/DropBox/__tests__/DropBox.spec.js +87 -0
- package/lib/DropDown/DropDown.js +203 -0
- package/lib/DropDown/DropDown.module.css +5 -0
- package/lib/DropDown/DropDownHeading.js +102 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -0
- package/lib/DropDown/DropDownItem.js +139 -0
- package/lib/DropDown/DropDownItem.module.css +94 -0
- package/lib/DropDown/DropDownSearch.js +132 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -0
- package/lib/DropDown/DropDownSeparator.js +66 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -0
- package/lib/DropDown/__tests__/DropDown.spec.js +50 -0
- package/lib/DropDown/__tests__/DropDownItem.spec.js +51 -0
- package/lib/DropDown/__tests__/DropDownSearch.spec.js +17 -0
- package/lib/Label/Label.js +109 -0
- package/lib/Label/Label.module.css +52 -0
- package/lib/Label/LabelColors.module.css +21 -0
- package/lib/Label/__tests__/Label.spec.js +137 -0
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -0
- package/lib/Layout/Box.js +138 -0
- package/lib/Layout/Container.js +152 -0
- package/lib/Layout/Layout.module.css +324 -0
- package/lib/Layout/__tests__/Box.spec.js +121 -0
- package/lib/Layout/__tests__/Container.spec.js +127 -0
- package/lib/Layout/index.js +34 -0
- package/lib/Layout/utils.js +55 -0
- package/lib/LightNightMode/Colors.json +398 -0
- package/lib/ListItem/ListContainer.js +127 -0
- package/lib/ListItem/ListItem.js +227 -0
- package/lib/ListItem/ListItem.module.css +199 -0
- package/lib/ListItem/ListItemWithAvatar.js +237 -0
- package/lib/ListItem/ListItemWithCheckBox.js +205 -0
- package/lib/ListItem/ListItemWithIcon.js +229 -0
- package/lib/ListItem/ListItemWithRadio.js +208 -0
- package/lib/Modal/Modal.js +218 -0
- package/lib/Modal/__docs__/Modal__default.docs.js +88 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1218 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +696 -0
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -0
- package/lib/MultiSelect/EmptyState.js +132 -0
- package/lib/MultiSelect/MultiSelect.js +1238 -0
- package/lib/MultiSelect/MultiSelect.module.css +193 -0
- package/lib/MultiSelect/MultiSelectHeader.js +86 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +410 -0
- package/lib/MultiSelect/SelectedOptions.js +140 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -0
- package/lib/MultiSelect/Suggestions.js +219 -0
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +170 -0
- package/lib/PopOver/PopOver.js +365 -0
- package/lib/PopOver/PopOver.module.css +8 -0
- package/lib/PopOver/__tests__/PopOver.spec.js +20 -0
- package/lib/Popup/Popup.js +719 -0
- package/lib/Popup/PositionMapping.json +74 -0
- package/lib/Popup/__tests__/Popup.spec.js +192 -0
- package/lib/Popup/viewPort.js +368 -0
- package/lib/Provider/AvatarSize.js +23 -0
- package/lib/Provider/Config.js +25 -0
- package/lib/Provider/CssProvider.js +27 -0
- package/lib/Provider/IdProvider.js +82 -0
- package/lib/Provider/LibraryContext.js +76 -0
- package/lib/Provider/LibraryContextInit.js +15 -0
- package/lib/Provider/NumberGenerator/NumberGenerator.js +174 -0
- package/lib/Provider/ZindexProvider.js +69 -0
- package/lib/Provider.js +292 -0
- package/lib/Radio/Radio.js +214 -0
- package/lib/Radio/Radio.module.css +110 -0
- package/lib/Radio/__tests__/Radiospec.js +29 -0
- package/lib/Responsive/CustomResponsive.js +246 -0
- package/lib/Responsive/RefWrapper.js +55 -0
- package/lib/Responsive/ResizeComponent.js +268 -0
- package/lib/Responsive/ResizeObserver.js +168 -0
- package/lib/Responsive/Responsive.js +281 -0
- package/lib/Responsive/index.js +30 -0
- package/lib/Responsive/sizeObservers.js +214 -0
- package/lib/Responsive/utils/index.js +70 -0
- package/lib/Responsive/utils/shallowCompare.js +38 -0
- package/lib/Responsive/windowResizeObserver.js +63 -0
- package/lib/Ribbon/Ribbon.js +115 -0
- package/lib/Ribbon/Ribbon.module.css +377 -0
- package/lib/Ribbon/__tests__/Ribbon.spec.js +193 -0
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -0
- package/lib/RippleEffect/RippleEffect.js +61 -0
- package/lib/RippleEffect/RippleEffect.module.css +70 -0
- package/lib/Select/GroupSelect.js +944 -0
- package/lib/Select/Select.js +1077 -0
- package/lib/Select/Select.module.css +100 -0
- package/lib/Select/SelectWithAvatar.js +433 -0
- package/lib/Select/SelectWithIcon.js +556 -0
- package/lib/Select/__tests__/Select.spec.js +383 -0
- package/lib/Stencils/Stencils.js +93 -0
- package/lib/Stencils/Stencils.module.css +96 -0
- package/lib/Stencils/__tests__/Stencils.spec.js +84 -0
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -0
- package/lib/Switch/Switch.js +183 -0
- package/lib/Switch/Switch.module.css +110 -0
- package/lib/Tab/Tab.js +158 -0
- package/lib/Tab/Tab.module.css +101 -0
- package/lib/Tab/TabContent.js +45 -0
- package/lib/Tab/TabContent.module.css +4 -0
- package/lib/Tab/TabContentWrapper.js +47 -0
- package/lib/Tab/TabWrapper.js +109 -0
- package/lib/Tab/Tabs.js +696 -0
- package/lib/Tab/Tabs.module.css +140 -0
- package/lib/Tab/__tests__/Tab.spec.js +130 -0
- package/lib/Tab/__tests__/TabContent.spec.js +22 -0
- package/lib/Tab/__tests__/TabContentWrapper.spec.js +59 -0
- package/lib/Tab/__tests__/TabWrapper.spec.js +100 -0
- package/lib/Tab/__tests__/Tabs.spec.js +123 -0
- package/lib/Tab/index.js +47 -0
- package/lib/Tag/Tag.js +252 -0
- package/lib/Tag/Tag.module.css +251 -0
- package/lib/Tag/__tests__/Tag.spec.js +35 -0
- package/lib/TextBox/TextBox.js +289 -0
- package/lib/TextBox/TextBox.module.css +157 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +205 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +284 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -0
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +228 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -0
- package/lib/Textarea/Textarea.js +202 -0
- package/lib/Textarea/Textarea.module.css +139 -0
- package/lib/Textarea/__tests__/Textarea.spec.js +186 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -0
- package/lib/Tooltip/Tooltip.js +538 -0
- package/lib/Tooltip/Tooltip.module.css +104 -0
- package/lib/Tooltip/__tests__/Tooltip.spec.js +98 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +146 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +190 -0
- package/lib/a11y/FocusScope/FocusScope.js +443 -0
- package/lib/beta/FocusRing/FocusRing.js +338 -0
- package/lib/beta/FocusRing/FocusRing.module.css +152 -0
- package/lib/common/animation.module.css +624 -0
- package/lib/common/avatarsizes.module.css +45 -0
- package/lib/common/basic.module.css +33 -0
- package/lib/common/basicReset.module.css +40 -0
- package/lib/common/common.module.css +502 -0
- package/lib/common/customscroll.module.css +89 -0
- package/lib/common/docStyle.module.css +766 -0
- package/lib/common/reset.module.css +12 -0
- package/lib/common/transition.module.css +146 -0
- package/lib/css.js +83 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +165 -0
- package/lib/index.js +1412 -0
- package/lib/semantic/Button/Button.js +138 -0
- package/lib/semantic/Button/semanticButton.module.css +9 -0
- package/lib/utils/Common.js +457 -0
- package/lib/utils/ContextOptimizer.js +49 -0
- package/lib/utils/__tests__/constructFullName.spec.js +12 -0
- package/lib/utils/__tests__/debounce.spec.js +40 -0
- package/lib/utils/__tests__/getInitial.spec.js +26 -0
- package/lib/utils/constant.js +10 -0
- package/lib/utils/constructFullName.js +34 -0
- package/lib/utils/datetime/common.js +233 -0
- package/lib/utils/debounce.js +30 -0
- package/lib/utils/dropDownUtils.js +608 -0
- package/lib/utils/dummyFunction.js +10 -0
- package/lib/utils/getHTMLFontSize.js +11 -0
- package/lib/utils/getInitial.js +33 -0
- package/lib/utils/scrollTo.js +22 -0
- package/lib/utils/shallowEqual.js +41 -0
- package/package.json +72 -72
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -42
- package/es/deprecated/Theme/darkTheme.module.css +0 -393
- package/es/deprecated/Theme/defaultTheme.module.css +0 -393
- package/es/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -155
- package/es/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -155
- package/es/deprecated/customscroll_Old.module.css +0 -46
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _react = _interopRequireDefault(require("react"));
|
|
4
|
+
|
|
5
|
+
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon"));
|
|
6
|
+
|
|
7
|
+
var _reactTestRenderer = _interopRequireDefault(require("react-test-renderer"));
|
|
8
|
+
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
|
|
11
|
+
// children: PropTypes.node,
|
|
12
|
+
// disabled: PropTypes.bool,
|
|
13
|
+
// iconRotated: PropTypes.bool,
|
|
14
|
+
// id: PropTypes.string,
|
|
15
|
+
// inputRef: PropTypes.func,
|
|
16
|
+
// isClear: PropTypes.bool,
|
|
17
|
+
// maxLength: PropTypes.string,
|
|
18
|
+
// name: PropTypes.string,
|
|
19
|
+
// needBorder: PropTypes.bool,
|
|
20
|
+
// onBlur: PropTypes.func,
|
|
21
|
+
// onChange: PropTypes.func,
|
|
22
|
+
// onClear: PropTypes.func,
|
|
23
|
+
// onClick: PropTypes.func,
|
|
24
|
+
// onFocus: PropTypes.func,
|
|
25
|
+
// onKeyDown: PropTypes.func,
|
|
26
|
+
// onKeyUp: PropTypes.func,
|
|
27
|
+
// placeHolder: PropTypes.string,
|
|
28
|
+
// readOnly: PropTypes.bool,
|
|
29
|
+
// size: PropTypes.oneOf(['small', 'medium', 'xmedium']),
|
|
30
|
+
// title: PropTypes.func,
|
|
31
|
+
// type: PropTypes.oneOf(['text', 'password', 'number']),
|
|
32
|
+
// value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
33
|
+
// variant: PropTypes.oneOf(['primary', 'secondary', 'default'])
|
|
34
|
+
describe('TextBoxIcon component', function () {
|
|
35
|
+
it('should display size small', function () {
|
|
36
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
37
|
+
maxLength: "100",
|
|
38
|
+
placeHolder: "Text Box Icon",
|
|
39
|
+
size: "small",
|
|
40
|
+
variant: "default"
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
var tree = ele.toJSON();
|
|
44
|
+
expect(tree).toMatchSnapshot();
|
|
45
|
+
});
|
|
46
|
+
it('should display size medium', function () {
|
|
47
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
48
|
+
maxLength: "100",
|
|
49
|
+
placeHolder: "Text Area",
|
|
50
|
+
size: "medium",
|
|
51
|
+
variant: "default"
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
var tree = ele.toJSON();
|
|
55
|
+
expect(tree).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
it('should display size xmedium', function () {
|
|
58
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
59
|
+
maxLength: "100",
|
|
60
|
+
placeHolder: "Text Area",
|
|
61
|
+
size: "xmedium",
|
|
62
|
+
variant: "default"
|
|
63
|
+
}));
|
|
64
|
+
|
|
65
|
+
var tree = ele.toJSON();
|
|
66
|
+
expect(tree).toMatchSnapshot();
|
|
67
|
+
});
|
|
68
|
+
it('should display size small - primary', function () {
|
|
69
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
70
|
+
maxLength: "100",
|
|
71
|
+
placeHolder: "Text Area",
|
|
72
|
+
size: "small",
|
|
73
|
+
variant: "primary"
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
var tree = ele.toJSON();
|
|
77
|
+
expect(tree).toMatchSnapshot();
|
|
78
|
+
});
|
|
79
|
+
it('should display size medium - primary', function () {
|
|
80
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
81
|
+
maxLength: "100",
|
|
82
|
+
placeHolder: "Text Area",
|
|
83
|
+
size: "medium",
|
|
84
|
+
variant: "primary"
|
|
85
|
+
}));
|
|
86
|
+
|
|
87
|
+
var tree = ele.toJSON();
|
|
88
|
+
expect(tree).toMatchSnapshot();
|
|
89
|
+
});
|
|
90
|
+
it('should display size xmedium - primary', function () {
|
|
91
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
92
|
+
maxLength: "100",
|
|
93
|
+
placeHolder: "Text Area",
|
|
94
|
+
size: "xmedium",
|
|
95
|
+
variant: "primary"
|
|
96
|
+
}));
|
|
97
|
+
|
|
98
|
+
var tree = ele.toJSON();
|
|
99
|
+
expect(tree).toMatchSnapshot();
|
|
100
|
+
});
|
|
101
|
+
it('should display size small - secondary', function () {
|
|
102
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
103
|
+
maxLength: "100",
|
|
104
|
+
placeHolder: "Text Area",
|
|
105
|
+
size: "small",
|
|
106
|
+
variant: "secondary"
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
var tree = ele.toJSON();
|
|
110
|
+
expect(tree).toMatchSnapshot();
|
|
111
|
+
});
|
|
112
|
+
it('should display size medium - secondary', function () {
|
|
113
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
114
|
+
maxLength: "100",
|
|
115
|
+
placeHolder: "Text Area",
|
|
116
|
+
size: "medium",
|
|
117
|
+
variant: "secondary"
|
|
118
|
+
}));
|
|
119
|
+
|
|
120
|
+
var tree = ele.toJSON();
|
|
121
|
+
expect(tree).toMatchSnapshot();
|
|
122
|
+
});
|
|
123
|
+
it('should display size xmedium - secondary', function () {
|
|
124
|
+
var ele = _reactTestRenderer["default"].create( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
125
|
+
maxLength: "100",
|
|
126
|
+
placeHolder: "Text Area",
|
|
127
|
+
size: "xmedium",
|
|
128
|
+
variant: "secondary"
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
var tree = ele.toJSON();
|
|
132
|
+
expect(tree).toMatchSnapshot();
|
|
133
|
+
});
|
|
134
|
+
it('should text propertly entered', function () {
|
|
135
|
+
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
136
|
+
maxLength: "100",
|
|
137
|
+
placeHolder: "Text Box",
|
|
138
|
+
size: "medium",
|
|
139
|
+
variant: "primary",
|
|
140
|
+
value: "Text Box Working"
|
|
141
|
+
}));
|
|
142
|
+
expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon').value.contains('Text Box Working')).toBe(true);
|
|
143
|
+
});
|
|
144
|
+
it('should placeHolder propertly entered', function () {
|
|
145
|
+
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
146
|
+
maxLength: "100",
|
|
147
|
+
placeHolder: "Text Box",
|
|
148
|
+
size: "medium",
|
|
149
|
+
variant: "primary",
|
|
150
|
+
text: "Text Box Working"
|
|
151
|
+
}));
|
|
152
|
+
expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon').getAttribute('placeholder')).toMatch(/Text Box/);
|
|
153
|
+
}); // it('Check disabled works', () => {
|
|
154
|
+
// let renderedDOM = TestUtils.renderIntoDocument(
|
|
155
|
+
// <TextBoxIcon maxLength='100' placeHolder='Text Box' size='medium' variant='primary' value='Text Box Working' disabled />
|
|
156
|
+
// );
|
|
157
|
+
// let pass = false;
|
|
158
|
+
// let classNames = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBox').classList;
|
|
159
|
+
// Object.keys(classNames)
|
|
160
|
+
// .map(className => {
|
|
161
|
+
// if (classNames[className] == 'disabled') {
|
|
162
|
+
// pass = true;
|
|
163
|
+
// }
|
|
164
|
+
// });
|
|
165
|
+
// expect(
|
|
166
|
+
// pass
|
|
167
|
+
// ).toBe(true);
|
|
168
|
+
// });
|
|
169
|
+
// it('Check readOnly works', () => {
|
|
170
|
+
// let renderedDOM = TestUtils.renderIntoDocument(
|
|
171
|
+
// <TextBoxIcon maxLength='100' placeHolder='Text Box' size='medium' variant='primary' value='Text Box Working' readOnly />
|
|
172
|
+
// );
|
|
173
|
+
// let pass = false;
|
|
174
|
+
// let classNames = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBox').classList;
|
|
175
|
+
// Object.keys(classNames)
|
|
176
|
+
// .map(className => {
|
|
177
|
+
// if (classNames[className] == 'pointer') {
|
|
178
|
+
// pass = true;
|
|
179
|
+
// }
|
|
180
|
+
// });
|
|
181
|
+
// expect(
|
|
182
|
+
// pass
|
|
183
|
+
// ).toBe(true);
|
|
184
|
+
// });
|
|
185
|
+
|
|
186
|
+
it('Check onchange works', function () {
|
|
187
|
+
var mockfn = jest.fn();
|
|
188
|
+
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
189
|
+
maxLength: "100",
|
|
190
|
+
placeHolder: "Text Box",
|
|
191
|
+
size: "medium",
|
|
192
|
+
variant: "primary",
|
|
193
|
+
value: "Text Box Working",
|
|
194
|
+
onChange: mockfn
|
|
195
|
+
}));
|
|
196
|
+
var onChangeEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
|
|
197
|
+
TestUtils.Simulate.change(onChangeEle);
|
|
198
|
+
expect(mockfn.mock.calls.length).toBe(1);
|
|
199
|
+
});
|
|
200
|
+
it('Check onBlur works', function () {
|
|
201
|
+
var mockfn = jest.fn();
|
|
202
|
+
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
203
|
+
maxLength: "100",
|
|
204
|
+
placeHolder: "Text Box",
|
|
205
|
+
size: "medium",
|
|
206
|
+
variant: "primary",
|
|
207
|
+
value: "Text Box Working",
|
|
208
|
+
onBlur: mockfn
|
|
209
|
+
}));
|
|
210
|
+
var onBlurEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
|
|
211
|
+
TestUtils.Simulate.blur(onBlurEle);
|
|
212
|
+
expect(mockfn.mock.calls.length).toBe(1);
|
|
213
|
+
});
|
|
214
|
+
it('Check onFocus works', function () {
|
|
215
|
+
var mockfn = jest.fn();
|
|
216
|
+
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
217
|
+
maxLength: "100",
|
|
218
|
+
placeHolder: "Text Box",
|
|
219
|
+
size: "medium",
|
|
220
|
+
variant: "primary",
|
|
221
|
+
value: "Text Box Working",
|
|
222
|
+
onFocus: mockfn
|
|
223
|
+
}));
|
|
224
|
+
var onFocusEle = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'textBoxIcon');
|
|
225
|
+
TestUtils.Simulate.focus(onFocusEle);
|
|
226
|
+
expect(mockfn.mock.calls.length).toBe(1);
|
|
227
|
+
});
|
|
228
|
+
});
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`TextBoxIcon component should display size medium - primary 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="container effect flex rowdir"
|
|
6
|
+
data-id="containerComponent"
|
|
7
|
+
data-title=""
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
className="grow basis shrinkOff"
|
|
11
|
+
data-id="boxComponent"
|
|
12
|
+
>
|
|
13
|
+
<input
|
|
14
|
+
className=" container medium primary effect borderColor_default"
|
|
15
|
+
data-id="textBoxIcon"
|
|
16
|
+
maxLength="100"
|
|
17
|
+
onBlur={[Function]}
|
|
18
|
+
onChange={[Function]}
|
|
19
|
+
onFocus={[Function]}
|
|
20
|
+
placeholder="Text Area"
|
|
21
|
+
type="text"
|
|
22
|
+
value=""
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
<div
|
|
26
|
+
className="iconContainer shrinkOff"
|
|
27
|
+
data-id="boxComponent"
|
|
28
|
+
>
|
|
29
|
+
<div
|
|
30
|
+
className="flex cover rowdir vCenter"
|
|
31
|
+
data-id="containerComponent"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
<div
|
|
35
|
+
className="line borderColor_default"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`TextBoxIcon component should display size medium - secondary 1`] = `
|
|
41
|
+
<div
|
|
42
|
+
className="container effect flex rowdir"
|
|
43
|
+
data-id="containerComponent"
|
|
44
|
+
data-title=""
|
|
45
|
+
>
|
|
46
|
+
<div
|
|
47
|
+
className="grow basis shrinkOff"
|
|
48
|
+
data-id="boxComponent"
|
|
49
|
+
>
|
|
50
|
+
<input
|
|
51
|
+
className=" container medium secondary effect borderColor_default"
|
|
52
|
+
data-id="textBoxIcon"
|
|
53
|
+
maxLength="100"
|
|
54
|
+
onBlur={[Function]}
|
|
55
|
+
onChange={[Function]}
|
|
56
|
+
onFocus={[Function]}
|
|
57
|
+
placeholder="Text Area"
|
|
58
|
+
type="text"
|
|
59
|
+
value=""
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
<div
|
|
63
|
+
className="iconContainer shrinkOff"
|
|
64
|
+
data-id="boxComponent"
|
|
65
|
+
>
|
|
66
|
+
<div
|
|
67
|
+
className="flex cover rowdir vCenter"
|
|
68
|
+
data-id="containerComponent"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
<div
|
|
72
|
+
className="line borderColor_default"
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
`;
|
|
76
|
+
|
|
77
|
+
exports[`TextBoxIcon component should display size medium 1`] = `
|
|
78
|
+
<div
|
|
79
|
+
className="container effect flex rowdir"
|
|
80
|
+
data-id="containerComponent"
|
|
81
|
+
data-title=""
|
|
82
|
+
>
|
|
83
|
+
<div
|
|
84
|
+
className="grow basis shrinkOff"
|
|
85
|
+
data-id="boxComponent"
|
|
86
|
+
>
|
|
87
|
+
<input
|
|
88
|
+
className=" container medium default effect borderColor_default"
|
|
89
|
+
data-id="textBoxIcon"
|
|
90
|
+
maxLength="100"
|
|
91
|
+
onBlur={[Function]}
|
|
92
|
+
onChange={[Function]}
|
|
93
|
+
onFocus={[Function]}
|
|
94
|
+
placeholder="Text Area"
|
|
95
|
+
type="text"
|
|
96
|
+
value=""
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
<div
|
|
100
|
+
className="iconContainer shrinkOff"
|
|
101
|
+
data-id="boxComponent"
|
|
102
|
+
>
|
|
103
|
+
<div
|
|
104
|
+
className="flex cover rowdir vCenter"
|
|
105
|
+
data-id="containerComponent"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
<div
|
|
109
|
+
className="line borderColor_default"
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
exports[`TextBoxIcon component should display size small - primary 1`] = `
|
|
115
|
+
<div
|
|
116
|
+
className="container effect flex rowdir"
|
|
117
|
+
data-id="containerComponent"
|
|
118
|
+
data-title=""
|
|
119
|
+
>
|
|
120
|
+
<div
|
|
121
|
+
className="grow basis shrinkOff"
|
|
122
|
+
data-id="boxComponent"
|
|
123
|
+
>
|
|
124
|
+
<input
|
|
125
|
+
className=" container small primary effect borderColor_default"
|
|
126
|
+
data-id="textBoxIcon"
|
|
127
|
+
maxLength="100"
|
|
128
|
+
onBlur={[Function]}
|
|
129
|
+
onChange={[Function]}
|
|
130
|
+
onFocus={[Function]}
|
|
131
|
+
placeholder="Text Area"
|
|
132
|
+
type="text"
|
|
133
|
+
value=""
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
<div
|
|
137
|
+
className="iconContainer shrinkOff"
|
|
138
|
+
data-id="boxComponent"
|
|
139
|
+
>
|
|
140
|
+
<div
|
|
141
|
+
className="flex cover rowdir vCenter"
|
|
142
|
+
data-id="containerComponent"
|
|
143
|
+
/>
|
|
144
|
+
</div>
|
|
145
|
+
<div
|
|
146
|
+
className="line borderColor_default"
|
|
147
|
+
/>
|
|
148
|
+
</div>
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
exports[`TextBoxIcon component should display size small - secondary 1`] = `
|
|
152
|
+
<div
|
|
153
|
+
className="container effect flex rowdir"
|
|
154
|
+
data-id="containerComponent"
|
|
155
|
+
data-title=""
|
|
156
|
+
>
|
|
157
|
+
<div
|
|
158
|
+
className="grow basis shrinkOff"
|
|
159
|
+
data-id="boxComponent"
|
|
160
|
+
>
|
|
161
|
+
<input
|
|
162
|
+
className=" container small secondary effect borderColor_default"
|
|
163
|
+
data-id="textBoxIcon"
|
|
164
|
+
maxLength="100"
|
|
165
|
+
onBlur={[Function]}
|
|
166
|
+
onChange={[Function]}
|
|
167
|
+
onFocus={[Function]}
|
|
168
|
+
placeholder="Text Area"
|
|
169
|
+
type="text"
|
|
170
|
+
value=""
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
<div
|
|
174
|
+
className="iconContainer shrinkOff"
|
|
175
|
+
data-id="boxComponent"
|
|
176
|
+
>
|
|
177
|
+
<div
|
|
178
|
+
className="flex cover rowdir vCenter"
|
|
179
|
+
data-id="containerComponent"
|
|
180
|
+
/>
|
|
181
|
+
</div>
|
|
182
|
+
<div
|
|
183
|
+
className="line borderColor_default"
|
|
184
|
+
/>
|
|
185
|
+
</div>
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`TextBoxIcon component should display size small 1`] = `
|
|
189
|
+
<div
|
|
190
|
+
className="container effect flex rowdir"
|
|
191
|
+
data-id="containerComponent"
|
|
192
|
+
data-title=""
|
|
193
|
+
>
|
|
194
|
+
<div
|
|
195
|
+
className="grow basis shrinkOff"
|
|
196
|
+
data-id="boxComponent"
|
|
197
|
+
>
|
|
198
|
+
<input
|
|
199
|
+
className=" container small default effect borderColor_default"
|
|
200
|
+
data-id="textBoxIcon"
|
|
201
|
+
maxLength="100"
|
|
202
|
+
onBlur={[Function]}
|
|
203
|
+
onChange={[Function]}
|
|
204
|
+
onFocus={[Function]}
|
|
205
|
+
placeholder="Text Box Icon"
|
|
206
|
+
type="text"
|
|
207
|
+
value=""
|
|
208
|
+
/>
|
|
209
|
+
</div>
|
|
210
|
+
<div
|
|
211
|
+
className="iconContainer shrinkOff"
|
|
212
|
+
data-id="boxComponent"
|
|
213
|
+
>
|
|
214
|
+
<div
|
|
215
|
+
className="flex cover rowdir vCenter"
|
|
216
|
+
data-id="containerComponent"
|
|
217
|
+
/>
|
|
218
|
+
</div>
|
|
219
|
+
<div
|
|
220
|
+
className="line borderColor_default"
|
|
221
|
+
/>
|
|
222
|
+
</div>
|
|
223
|
+
`;
|
|
224
|
+
|
|
225
|
+
exports[`TextBoxIcon component should display size xmedium - primary 1`] = `
|
|
226
|
+
<div
|
|
227
|
+
className="container effect flex rowdir"
|
|
228
|
+
data-id="containerComponent"
|
|
229
|
+
data-title=""
|
|
230
|
+
>
|
|
231
|
+
<div
|
|
232
|
+
className="grow basis shrinkOff"
|
|
233
|
+
data-id="boxComponent"
|
|
234
|
+
>
|
|
235
|
+
<input
|
|
236
|
+
className=" container xmedium primary effect borderColor_default"
|
|
237
|
+
data-id="textBoxIcon"
|
|
238
|
+
maxLength="100"
|
|
239
|
+
onBlur={[Function]}
|
|
240
|
+
onChange={[Function]}
|
|
241
|
+
onFocus={[Function]}
|
|
242
|
+
placeholder="Text Area"
|
|
243
|
+
type="text"
|
|
244
|
+
value=""
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
<div
|
|
248
|
+
className="iconContainer shrinkOff"
|
|
249
|
+
data-id="boxComponent"
|
|
250
|
+
>
|
|
251
|
+
<div
|
|
252
|
+
className="flex cover rowdir vCenter"
|
|
253
|
+
data-id="containerComponent"
|
|
254
|
+
/>
|
|
255
|
+
</div>
|
|
256
|
+
<div
|
|
257
|
+
className="line borderColor_default"
|
|
258
|
+
/>
|
|
259
|
+
</div>
|
|
260
|
+
`;
|
|
261
|
+
|
|
262
|
+
exports[`TextBoxIcon component should display size xmedium - secondary 1`] = `
|
|
263
|
+
<div
|
|
264
|
+
className="container effect flex rowdir"
|
|
265
|
+
data-id="containerComponent"
|
|
266
|
+
data-title=""
|
|
267
|
+
>
|
|
268
|
+
<div
|
|
269
|
+
className="grow basis shrinkOff"
|
|
270
|
+
data-id="boxComponent"
|
|
271
|
+
>
|
|
272
|
+
<input
|
|
273
|
+
className=" container xmedium secondary effect borderColor_default"
|
|
274
|
+
data-id="textBoxIcon"
|
|
275
|
+
maxLength="100"
|
|
276
|
+
onBlur={[Function]}
|
|
277
|
+
onChange={[Function]}
|
|
278
|
+
onFocus={[Function]}
|
|
279
|
+
placeholder="Text Area"
|
|
280
|
+
type="text"
|
|
281
|
+
value=""
|
|
282
|
+
/>
|
|
283
|
+
</div>
|
|
284
|
+
<div
|
|
285
|
+
className="iconContainer shrinkOff"
|
|
286
|
+
data-id="boxComponent"
|
|
287
|
+
>
|
|
288
|
+
<div
|
|
289
|
+
className="flex cover rowdir vCenter"
|
|
290
|
+
data-id="containerComponent"
|
|
291
|
+
/>
|
|
292
|
+
</div>
|
|
293
|
+
<div
|
|
294
|
+
className="line borderColor_default"
|
|
295
|
+
/>
|
|
296
|
+
</div>
|
|
297
|
+
`;
|
|
298
|
+
|
|
299
|
+
exports[`TextBoxIcon component should display size xmedium 1`] = `
|
|
300
|
+
<div
|
|
301
|
+
className="container effect flex rowdir"
|
|
302
|
+
data-id="containerComponent"
|
|
303
|
+
data-title=""
|
|
304
|
+
>
|
|
305
|
+
<div
|
|
306
|
+
className="grow basis shrinkOff"
|
|
307
|
+
data-id="boxComponent"
|
|
308
|
+
>
|
|
309
|
+
<input
|
|
310
|
+
className=" container xmedium default effect borderColor_default"
|
|
311
|
+
data-id="textBoxIcon"
|
|
312
|
+
maxLength="100"
|
|
313
|
+
onBlur={[Function]}
|
|
314
|
+
onChange={[Function]}
|
|
315
|
+
onFocus={[Function]}
|
|
316
|
+
placeholder="Text Area"
|
|
317
|
+
type="text"
|
|
318
|
+
value=""
|
|
319
|
+
/>
|
|
320
|
+
</div>
|
|
321
|
+
<div
|
|
322
|
+
className="iconContainer shrinkOff"
|
|
323
|
+
data-id="boxComponent"
|
|
324
|
+
>
|
|
325
|
+
<div
|
|
326
|
+
className="flex cover rowdir vCenter"
|
|
327
|
+
data-id="containerComponent"
|
|
328
|
+
/>
|
|
329
|
+
</div>
|
|
330
|
+
<div
|
|
331
|
+
className="line borderColor_default"
|
|
332
|
+
/>
|
|
333
|
+
</div>
|
|
334
|
+
`;
|