@zohodesk/components 1.0.0-temp-51 → 1.0.0-temp-52
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/{assets → es}/Appearance/dark/mode/darkMode.module.css +2 -4
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
- package/{assets → es}/Appearance/dark/themes/green/greenDarkCTATheme.module.css +10 -10
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
- package/{assets → es}/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +10 -10
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
- package/{assets → es}/Appearance/dark/themes/red/redDarkCTATheme.module.css +10 -10
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
- package/{assets → es}/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +10 -10
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
- package/{assets → es}/Appearance/default/mode/defaultMode.module.css +2 -4
- package/{assets → es}/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -0
- package/{assets → es}/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +7 -7
- package/{assets → es}/Appearance/default/themes/green/greenDefaultCTATheme.module.css +2 -2
- package/{assets → es}/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/{assets → es}/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -0
- package/{assets → es}/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +3 -3
- package/{assets → es}/Appearance/default/themes/red/redDefaultCTATheme.module.css +7 -7
- package/{assets → es}/Appearance/default/themes/red/redDefaultComponentTheme.module.css +3 -3
- package/{assets → es}/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -0
- package/{assets → es}/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +3 -3
- package/es/Avatar/Avatar.module.css +9 -11
- package/es/AvatarTeam/AvatarTeam.module.css +7 -21
- package/es/Button/Button.module.css +24 -97
- package/es/Buttongroup/Buttongroup.module.css +8 -37
- package/es/CheckBox/CheckBox.module.css +11 -17
- package/es/DateTime/DateTime.module.css +12 -39
- package/es/DateTime/DateWidget.module.css +5 -9
- package/es/DateTime/YearView.module.css +6 -16
- package/es/DropBox/DropBox.module.css +11 -47
- package/es/DropDown/DropDownHeading.module.css +3 -7
- package/es/DropDown/DropDownItem.module.css +6 -32
- package/es/ListItem/ListItem.module.css +25 -56
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -22
- package/es/MultiSelect/MultiSelect.js +3 -4
- package/es/MultiSelect/MultiSelect.module.css +10 -27
- package/es/MultiSelect/SelectedOptions.module.css +2 -8
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Radio/Radio.module.css +4 -10
- package/es/Responsive/sizeObservers.js +1 -8
- package/es/Ribbon/Ribbon.module.css +28 -93
- package/es/RippleEffect/RippleEffect.module.css +44 -15
- package/es/Select/Select.js +3 -4
- package/es/Select/Select.module.css +2 -12
- package/es/Stencils/Stencils.module.css +3 -21
- package/es/Switch/Switch.module.css +7 -6
- package/es/Tab/Tab.module.css +7 -16
- package/es/Tab/Tabs.module.css +8 -41
- package/es/Tag/Tag.module.css +14 -36
- package/es/TextBox/TextBox.module.css +11 -7
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -12
- package/es/Textarea/Textarea.module.css +7 -6
- package/es/Tooltip/Tooltip.module.css +8 -9
- package/es/beta/FocusRing/FocusRing.module.css +26 -51
- package/es/common/animation.module.css +21 -219
- package/es/common/basicReset.module.css +12 -2
- package/es/common/common.module.css +18 -62
- package/es/common/customscroll.module.css +21 -17
- package/es/common/docStyle.module.css +31 -78
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/Theme/darkTheme.module.css +393 -0
- package/es/deprecated/Theme/defaultTheme.module.css +393 -0
- package/es/deprecated/Theme/palette/darkCTAPalette.module.css +116 -0
- package/es/deprecated/Theme/palette/darkPalette.module.css +155 -0
- package/es/deprecated/Theme/palette/defaultCTAPalette.module.css +116 -0
- package/es/deprecated/Theme/palette/defaultPalette.module.css +155 -0
- package/es/deprecated/customscroll_Old.module.css +46 -0
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/package.json +1 -1
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -42
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -42
- package/lib/Accordion/Accordion.js +0 -146
- package/lib/Accordion/AccordionItem.js +0 -124
- package/lib/Accordion/__tests__/Accordion.spec.js +0 -85
- package/lib/Accordion/index.js +0 -23
- package/lib/Animation/Animation.js +0 -206
- package/lib/Animation/__tests__/Animation.spec.js +0 -23
- package/lib/AppContainer/AppContainer.js +0 -205
- package/lib/AppContainer/AppContainer.module.css +0 -18
- package/lib/Avatar/Avatar.js +0 -280
- package/lib/Avatar/Avatar.module.css +0 -117
- package/lib/Avatar/__tests__/Avatar.spec.js +0 -208
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -288
- package/lib/AvatarTeam/AvatarTeam.js +0 -157
- package/lib/AvatarTeam/AvatarTeam.module.css +0 -161
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -92
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -226
- package/lib/Button/Button.js +0 -158
- package/lib/Button/Button.module.css +0 -522
- package/lib/Button/__tests__/Button.spec.js +0 -233
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -191
- package/lib/Buttongroup/Buttongroup.js +0 -101
- package/lib/Buttongroup/Buttongroup.module.css +0 -89
- package/lib/Buttongroup/__test__/Buttongroup.spec.js +0 -86
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +0 -146
- package/lib/Card/Card.js +0 -409
- package/lib/Card/Card.module.css +0 -20
- package/lib/Card/__tests__/Card.spec.js +0 -56
- package/lib/Card/index.js +0 -37
- package/lib/CheckBox/CheckBox.js +0 -265
- package/lib/CheckBox/CheckBox.module.css +0 -153
- package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -18
- package/lib/DateTime/CalendarView.js +0 -285
- package/lib/DateTime/DateTime.js +0 -889
- package/lib/DateTime/DateTime.module.css +0 -188
- package/lib/DateTime/DateTimePopupFooter.js +0 -90
- package/lib/DateTime/DateTimePopupHeader.js +0 -149
- package/lib/DateTime/DateWidget.js +0 -1189
- package/lib/DateTime/DateWidget.module.css +0 -42
- package/lib/DateTime/DaysRow.js +0 -76
- package/lib/DateTime/Time.js +0 -248
- package/lib/DateTime/YearView.js +0 -324
- package/lib/DateTime/YearView.module.css +0 -80
- package/lib/DateTime/__tests__/CalendarView.spec.js +0 -45
- package/lib/DateTime/__tests__/DateTime.spec.js +0 -127
- package/lib/DateTime/__tests__/DateWidget.spec.js +0 -81
- package/lib/DateTime/common.js +0 -36
- package/lib/DateTime/constants.js +0 -77
- package/lib/DateTime/dateFormatUtils/dateFormat.js +0 -613
- package/lib/DateTime/dateFormatUtils/dayChange.js +0 -81
- package/lib/DateTime/dateFormatUtils/index.js +0 -274
- package/lib/DateTime/dateFormatUtils/monthChange.js +0 -94
- package/lib/DateTime/dateFormatUtils/timeChange.js +0 -240
- package/lib/DateTime/dateFormatUtils/yearChange.js +0 -119
- package/lib/DateTime/index.js +0 -15
- package/lib/DateTime/objectUtils.js +0 -76
- package/lib/DateTime/typeChecker.js +0 -26
- package/lib/DateTime/validator.js +0 -353
- package/lib/DropBox/DropBox.js +0 -393
- package/lib/DropBox/DropBox.module.css +0 -406
- package/lib/DropBox/DropBoxPositionMapping.json +0 -145
- package/lib/DropBox/__tests__/DropBox.spec.js +0 -87
- package/lib/DropDown/DropDown.js +0 -203
- package/lib/DropDown/DropDown.module.css +0 -5
- package/lib/DropDown/DropDownHeading.js +0 -102
- package/lib/DropDown/DropDownHeading.module.css +0 -53
- package/lib/DropDown/DropDownItem.js +0 -139
- package/lib/DropDown/DropDownItem.module.css +0 -94
- package/lib/DropDown/DropDownSearch.js +0 -132
- package/lib/DropDown/DropDownSearch.module.css +0 -14
- package/lib/DropDown/DropDownSeparator.js +0 -66
- package/lib/DropDown/DropDownSeparator.module.css +0 -7
- package/lib/DropDown/__tests__/DropDown.spec.js +0 -50
- package/lib/DropDown/__tests__/DropDownItem.spec.js +0 -51
- package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -17
- package/lib/Label/Label.js +0 -109
- package/lib/Label/Label.module.css +0 -52
- package/lib/Label/LabelColors.module.css +0 -21
- package/lib/Label/__tests__/Label.spec.js +0 -137
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -101
- package/lib/Layout/Box.js +0 -138
- package/lib/Layout/Container.js +0 -152
- package/lib/Layout/Layout.module.css +0 -324
- package/lib/Layout/__tests__/Box.spec.js +0 -121
- package/lib/Layout/__tests__/Container.spec.js +0 -127
- package/lib/Layout/index.js +0 -34
- package/lib/Layout/utils.js +0 -55
- package/lib/LightNightMode/Colors.json +0 -398
- package/lib/ListItem/ListContainer.js +0 -127
- package/lib/ListItem/ListItem.js +0 -227
- package/lib/ListItem/ListItem.module.css +0 -199
- package/lib/ListItem/ListItemWithAvatar.js +0 -237
- package/lib/ListItem/ListItemWithCheckBox.js +0 -205
- package/lib/ListItem/ListItemWithIcon.js +0 -229
- package/lib/ListItem/ListItemWithRadio.js +0 -208
- package/lib/Modal/Modal.js +0 -218
- package/lib/Modal/__docs__/Modal__default.docs.js +0 -88
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +0 -1218
- package/lib/MultiSelect/AdvancedMultiSelect.js +0 -696
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +0 -127
- package/lib/MultiSelect/EmptyState.js +0 -132
- package/lib/MultiSelect/MultiSelect.js +0 -1235
- package/lib/MultiSelect/MultiSelect.module.css +0 -193
- package/lib/MultiSelect/MultiSelectHeader.js +0 -86
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -410
- package/lib/MultiSelect/SelectedOptions.js +0 -140
- package/lib/MultiSelect/SelectedOptions.module.css +0 -15
- package/lib/MultiSelect/Suggestions.js +0 -219
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -170
- package/lib/PopOver/PopOver.js +0 -365
- package/lib/PopOver/PopOver.module.css +0 -8
- package/lib/PopOver/__tests__/PopOver.spec.js +0 -20
- package/lib/Popup/Popup.js +0 -719
- package/lib/Popup/PositionMapping.json +0 -74
- package/lib/Popup/__tests__/Popup.spec.js +0 -192
- package/lib/Popup/viewPort.js +0 -368
- package/lib/Provider/AvatarSize.js +0 -23
- package/lib/Provider/Config.js +0 -25
- package/lib/Provider/CssProvider.js +0 -27
- package/lib/Provider/IdProvider.js +0 -82
- package/lib/Provider/LibraryContext.js +0 -76
- package/lib/Provider/LibraryContextInit.js +0 -15
- package/lib/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/Provider/ZindexProvider.js +0 -69
- package/lib/Provider.js +0 -241
- package/lib/Radio/Radio.js +0 -214
- package/lib/Radio/Radio.module.css +0 -110
- package/lib/Radio/__tests__/Radiospec.js +0 -29
- package/lib/Responsive/CustomResponsive.js +0 -246
- package/lib/Responsive/RefWrapper.js +0 -55
- package/lib/Responsive/ResizeComponent.js +0 -268
- package/lib/Responsive/ResizeObserver.js +0 -168
- package/lib/Responsive/Responsive.js +0 -281
- package/lib/Responsive/index.js +0 -30
- package/lib/Responsive/sizeObservers.js +0 -214
- package/lib/Responsive/utils/index.js +0 -70
- package/lib/Responsive/utils/shallowCompare.js +0 -38
- package/lib/Responsive/windowResizeObserver.js +0 -63
- package/lib/Ribbon/Ribbon.js +0 -115
- package/lib/Ribbon/Ribbon.module.css +0 -377
- package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -193
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -163
- package/lib/RippleEffect/RippleEffect.js +0 -61
- package/lib/RippleEffect/RippleEffect.module.css +0 -70
- package/lib/Select/GroupSelect.js +0 -944
- package/lib/Select/Select.js +0 -1078
- package/lib/Select/Select.module.css +0 -100
- package/lib/Select/SelectWithAvatar.js +0 -433
- package/lib/Select/SelectWithIcon.js +0 -556
- package/lib/Select/__tests__/Select.spec.js +0 -383
- package/lib/Stencils/Stencils.js +0 -93
- package/lib/Stencils/Stencils.module.css +0 -96
- package/lib/Stencils/__tests__/Stencils.spec.js +0 -84
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -49
- package/lib/Switch/Switch.js +0 -183
- package/lib/Switch/Switch.module.css +0 -110
- package/lib/Tab/Tab.js +0 -158
- package/lib/Tab/Tab.module.css +0 -101
- package/lib/Tab/TabContent.js +0 -45
- package/lib/Tab/TabContent.module.css +0 -4
- package/lib/Tab/TabContentWrapper.js +0 -47
- package/lib/Tab/TabWrapper.js +0 -109
- package/lib/Tab/Tabs.js +0 -696
- package/lib/Tab/Tabs.module.css +0 -140
- package/lib/Tab/__tests__/Tab.spec.js +0 -130
- package/lib/Tab/__tests__/TabContent.spec.js +0 -22
- package/lib/Tab/__tests__/TabContentWrapper.spec.js +0 -59
- package/lib/Tab/__tests__/TabWrapper.spec.js +0 -100
- package/lib/Tab/__tests__/Tabs.spec.js +0 -123
- package/lib/Tab/index.js +0 -47
- package/lib/Tag/Tag.js +0 -252
- package/lib/Tag/Tag.module.css +0 -251
- package/lib/Tag/__tests__/Tag.spec.js +0 -35
- package/lib/TextBox/TextBox.js +0 -289
- package/lib/TextBox/TextBox.module.css +0 -157
- package/lib/TextBox/__tests__/TextBox.spec.js +0 -205
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -127
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -284
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -78
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -228
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -334
- package/lib/Textarea/Textarea.js +0 -202
- package/lib/Textarea/Textarea.module.css +0 -139
- package/lib/Textarea/__tests__/Textarea.spec.js +0 -186
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -97
- package/lib/Tooltip/Tooltip.js +0 -538
- package/lib/Tooltip/Tooltip.module.css +0 -104
- package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -98
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -146
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -190
- package/lib/a11y/FocusScope/FocusScope.js +0 -443
- package/lib/beta/FocusRing/FocusRing.js +0 -338
- package/lib/beta/FocusRing/FocusRing.module.css +0 -152
- package/lib/common/animation.module.css +0 -624
- package/lib/common/avatarsizes.module.css +0 -45
- package/lib/common/basic.module.css +0 -33
- package/lib/common/basicReset.module.css +0 -40
- package/lib/common/common.module.css +0 -502
- package/lib/common/customscroll.module.css +0 -89
- package/lib/common/docStyle.module.css +0 -762
- package/lib/common/reset.module.css +0 -12
- package/lib/common/transition.module.css +0 -146
- package/lib/css.js +0 -83
- package/lib/deprecated/PortalLayer/PortalLayer.js +0 -165
- package/lib/index.js +0 -1412
- package/lib/semantic/Button/Button.js +0 -138
- package/lib/semantic/Button/semanticButton.module.css +0 -9
- package/lib/utils/Common.js +0 -457
- package/lib/utils/ContextOptimizer.js +0 -49
- package/lib/utils/__tests__/constructFullName.spec.js +0 -12
- package/lib/utils/__tests__/debounce.spec.js +0 -40
- package/lib/utils/__tests__/getInitial.spec.js +0 -26
- package/lib/utils/constant.js +0 -10
- package/lib/utils/constructFullName.js +0 -34
- package/lib/utils/datetime/common.js +0 -233
- package/lib/utils/debounce.js +0 -30
- package/lib/utils/dropDownUtils.js +0 -608
- package/lib/utils/dummyFunction.js +0 -10
- package/lib/utils/getHTMLFontSize.js +0 -11
- package/lib/utils/getInitial.js +0 -33
- package/lib/utils/scrollTo.js +0 -22
- package/lib/utils/shallowEqual.js +0 -41
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
/* dropbox default variables */
|
|
3
|
-
--dropbox_bg_color: var(--zdt_dropbox_default_bg);
|
|
4
|
-
--dropbox_border_radius: 0;
|
|
5
|
-
--dropbox_padding: 0;
|
|
6
|
-
--dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
7
|
-
|
|
8
|
-
/* dropbox arrow default variables */
|
|
9
|
-
--dropbox_arrow_box_shadow_color: var(--zdt_dropbox_arrow_shadow);
|
|
10
|
-
|
|
11
|
-
/* dropbox responsive default variables */
|
|
12
|
-
--dropbox_mob_bg_color: var(--zdt_dropbox_mob_bg);
|
|
13
|
-
--dropbox_mob_close_bg_color: var(--zdt_dropbox_mob_close_bg);
|
|
14
|
-
}
|
|
15
|
-
.main {
|
|
16
|
-
z-index: 3;
|
|
17
|
-
composes: varClass;
|
|
18
|
-
}
|
|
19
|
-
.container {
|
|
20
|
-
position: absolute;
|
|
21
|
-
}
|
|
22
|
-
.fixedContainer {
|
|
23
|
-
position: fixed;
|
|
24
|
-
}
|
|
25
|
-
.subContainer {
|
|
26
|
-
position: relative;
|
|
27
|
-
border-radius: var(--dropbox_border_radius);
|
|
28
|
-
padding: var(--dropbox_padding);
|
|
29
|
-
box-shadow: var(--dropbox_box_shadow);
|
|
30
|
-
}
|
|
31
|
-
.defaultPalette, .darkPalette {
|
|
32
|
-
background-color: var(--dropbox_bg_color);
|
|
33
|
-
}
|
|
34
|
-
.radius {
|
|
35
|
-
--dropbox_border_radius: 3px;
|
|
36
|
-
}
|
|
37
|
-
.mobRadius {
|
|
38
|
-
--dropbox_border_radius: 30px 30px 0 0;
|
|
39
|
-
--dropbox_padding: var(--zd_size10) 0 0 0;
|
|
40
|
-
}
|
|
41
|
-
/* sizes */
|
|
42
|
-
.mini {
|
|
43
|
-
width: var(--zd_size140);
|
|
44
|
-
}
|
|
45
|
-
.xmini {
|
|
46
|
-
width: var(--zd_size160);
|
|
47
|
-
}
|
|
48
|
-
.xsmall {
|
|
49
|
-
width: var(--zd_size180);
|
|
50
|
-
}
|
|
51
|
-
.small {
|
|
52
|
-
width: var(--zd_size200);
|
|
53
|
-
}
|
|
54
|
-
.medium {
|
|
55
|
-
width: var(--zd_size220);
|
|
56
|
-
}
|
|
57
|
-
.large {
|
|
58
|
-
width: var(--zd_size260);
|
|
59
|
-
}
|
|
60
|
-
.mlarge {
|
|
61
|
-
width: var(--zd_size280);
|
|
62
|
-
}
|
|
63
|
-
.xlarge {
|
|
64
|
-
width: var(--zd_size304);
|
|
65
|
-
}
|
|
66
|
-
.xxlarge {
|
|
67
|
-
width: var(--zd_size364);
|
|
68
|
-
max-width: var(--zd_size364);
|
|
69
|
-
}
|
|
70
|
-
.default {
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
/* shadow */
|
|
74
|
-
.top_shadow {
|
|
75
|
-
--dropbox_box_shadow: 0 -3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
76
|
-
}
|
|
77
|
-
.left_shadow {
|
|
78
|
-
--dropbox_box_shadow: -4px 0 30px var(--zdt_dropbox_default_box_shadow);
|
|
79
|
-
}
|
|
80
|
-
.right_shadow {
|
|
81
|
-
--dropbox_box_shadow: 4px 0 30px var(--zdt_dropbox_default_box_shadow);
|
|
82
|
-
}
|
|
83
|
-
.bottom_shadow {
|
|
84
|
-
--dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
85
|
-
}
|
|
86
|
-
[dir=ltr] .defaultShadow {
|
|
87
|
-
box-shadow: 4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
88
|
-
}
|
|
89
|
-
[dir=rtl] .defaultShadow {
|
|
90
|
-
box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
91
|
-
}
|
|
92
|
-
/* box direction styles */
|
|
93
|
-
.topStart {
|
|
94
|
-
bottom: 100%;
|
|
95
|
-
right: 0;
|
|
96
|
-
}
|
|
97
|
-
.topEnd {
|
|
98
|
-
bottom: 100%;
|
|
99
|
-
left: 0;
|
|
100
|
-
}
|
|
101
|
-
.topMid {
|
|
102
|
-
bottom: 100%;
|
|
103
|
-
left: 50%;
|
|
104
|
-
transform: translateX(-50%);
|
|
105
|
-
}
|
|
106
|
-
.bottomStart {
|
|
107
|
-
top: 100%;
|
|
108
|
-
right: 0;
|
|
109
|
-
}
|
|
110
|
-
.bottomEnd {
|
|
111
|
-
top: 100%;
|
|
112
|
-
left: 0;
|
|
113
|
-
}
|
|
114
|
-
.bottomMid {
|
|
115
|
-
top: 100%;
|
|
116
|
-
left: 50%;
|
|
117
|
-
transform: translateX(-50%);
|
|
118
|
-
}
|
|
119
|
-
.rightStart {
|
|
120
|
-
left: 100%;
|
|
121
|
-
bottom: 0;
|
|
122
|
-
}
|
|
123
|
-
.rightEnd {
|
|
124
|
-
left: 100%;
|
|
125
|
-
top: 0;
|
|
126
|
-
}
|
|
127
|
-
.rightMid {
|
|
128
|
-
left: 100%;
|
|
129
|
-
top: 50%;
|
|
130
|
-
transform: translateY(-50%);
|
|
131
|
-
}
|
|
132
|
-
.leftStart {
|
|
133
|
-
right: 100%;
|
|
134
|
-
bottom: 0;
|
|
135
|
-
}
|
|
136
|
-
.leftEnd {
|
|
137
|
-
right: 100%;
|
|
138
|
-
top: 0;
|
|
139
|
-
}
|
|
140
|
-
.leftMid {
|
|
141
|
-
right: 100%;
|
|
142
|
-
top: 50%;
|
|
143
|
-
transform: translateY(-50%);
|
|
144
|
-
}
|
|
145
|
-
/* space for arrow */
|
|
146
|
-
.arrowtop {
|
|
147
|
-
padding-bottom: var(--zd_size10);
|
|
148
|
-
}
|
|
149
|
-
.arrowright {
|
|
150
|
-
padding-left: var(--zd_size10);
|
|
151
|
-
}
|
|
152
|
-
.arrowleft {
|
|
153
|
-
padding-right: var(--zd_size10);
|
|
154
|
-
}
|
|
155
|
-
.arrowbottom {
|
|
156
|
-
padding-top: var(--zd_size10);
|
|
157
|
-
}
|
|
158
|
-
/* space from target */
|
|
159
|
-
.paddingSpace_top {
|
|
160
|
-
padding-bottom: var(--zd_size5);
|
|
161
|
-
}
|
|
162
|
-
.paddingSpace_right {
|
|
163
|
-
padding-left: var(--zd_size5);
|
|
164
|
-
}
|
|
165
|
-
.paddingSpace_left {
|
|
166
|
-
padding-right: var(--zd_size5);
|
|
167
|
-
}
|
|
168
|
-
.paddingSpace_bottom {
|
|
169
|
-
padding-top: var(--zd_size5);
|
|
170
|
-
}
|
|
171
|
-
.arrow {
|
|
172
|
-
position: absolute;
|
|
173
|
-
height: var(--zd_size34);
|
|
174
|
-
width: var(--zd_size34);
|
|
175
|
-
clip: rect(
|
|
176
|
-
var(--zd_size3),
|
|
177
|
-
var(--zd_size29),
|
|
178
|
-
var(--zd_size17),
|
|
179
|
-
var(--zd_size8)
|
|
180
|
-
);
|
|
181
|
-
padding: var(--zd_size4);
|
|
182
|
-
display: flex;
|
|
183
|
-
align-items: center;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
}
|
|
186
|
-
.arrowShape {
|
|
187
|
-
height: var(--zd_size10);
|
|
188
|
-
width: var(--zd_size10);
|
|
189
|
-
box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
|
|
190
|
-
background-color: var(--dropbox_bg_color);
|
|
191
|
-
-webkit-transform: rotateZ(-45deg);
|
|
192
|
-
transform: rotateZ(-45deg);
|
|
193
|
-
}
|
|
194
|
-
/* arrow placement styles */
|
|
195
|
-
.start,
|
|
196
|
-
.end,
|
|
197
|
-
.mid {
|
|
198
|
-
composes: arrow;
|
|
199
|
-
}
|
|
200
|
-
.top .start,
|
|
201
|
-
.top .end,
|
|
202
|
-
.top .mid {
|
|
203
|
-
bottom: calc(var(--zd_size17) * -1);
|
|
204
|
-
}
|
|
205
|
-
.top .start {
|
|
206
|
-
left: var(--zd_size28);
|
|
207
|
-
}
|
|
208
|
-
.top .end {
|
|
209
|
-
right: var(--zd_size28);
|
|
210
|
-
transform: rotate(180deg) translateX(-50%);
|
|
211
|
-
}
|
|
212
|
-
.top .mid {
|
|
213
|
-
left: 50%;
|
|
214
|
-
}
|
|
215
|
-
.top .start,
|
|
216
|
-
.top .mid {
|
|
217
|
-
transform: rotate(180deg) translateX(50%);
|
|
218
|
-
}
|
|
219
|
-
.bottom .start,
|
|
220
|
-
.bottom .end,
|
|
221
|
-
.bottom .mid {
|
|
222
|
-
top: calc(var(--zd_size17) * -1);
|
|
223
|
-
}
|
|
224
|
-
.bottom .start {
|
|
225
|
-
left: var(--zd_size28);
|
|
226
|
-
}
|
|
227
|
-
.bottom .mid {
|
|
228
|
-
left: 50%;
|
|
229
|
-
}
|
|
230
|
-
.bottom .end {
|
|
231
|
-
right: var(--zd_size28);
|
|
232
|
-
transform: translateX(50%);
|
|
233
|
-
}
|
|
234
|
-
.bottom .mid,
|
|
235
|
-
.bottom .start {
|
|
236
|
-
transform: translateX(-50%);
|
|
237
|
-
}
|
|
238
|
-
.left .start,
|
|
239
|
-
.left .mid,
|
|
240
|
-
.left .end {
|
|
241
|
-
right: calc(var(--zd_size17) * -1);
|
|
242
|
-
}
|
|
243
|
-
.left .start {
|
|
244
|
-
top: var(--zd_size28);
|
|
245
|
-
}
|
|
246
|
-
.left .end {
|
|
247
|
-
transform: rotate(90deg) translateX(50%);
|
|
248
|
-
bottom: var(--zd_size28);
|
|
249
|
-
}
|
|
250
|
-
.left .mid {
|
|
251
|
-
top: 50%;
|
|
252
|
-
}
|
|
253
|
-
.left .start,
|
|
254
|
-
.left .mid {
|
|
255
|
-
transform: rotate(90deg) translateX(-50%);
|
|
256
|
-
}
|
|
257
|
-
.right .start,
|
|
258
|
-
.right .mid,
|
|
259
|
-
.right .end {
|
|
260
|
-
left: calc(var(--zd_size17) * -1);
|
|
261
|
-
}
|
|
262
|
-
.right .start {
|
|
263
|
-
top: var(--zd_size28);
|
|
264
|
-
}
|
|
265
|
-
.right .mid {
|
|
266
|
-
top: 50%;
|
|
267
|
-
}
|
|
268
|
-
.right .start,
|
|
269
|
-
.right .mid {
|
|
270
|
-
transform: rotate(-90deg) translateX(50%);
|
|
271
|
-
}
|
|
272
|
-
.right .end {
|
|
273
|
-
bottom: var(--zd_size28);
|
|
274
|
-
transform: rotate(-90deg) translateX(-50%);
|
|
275
|
-
}
|
|
276
|
-
.hidden {
|
|
277
|
-
visibility: hidden;
|
|
278
|
-
opacity: 0;
|
|
279
|
-
z-index: 0;
|
|
280
|
-
pointer-events: none;
|
|
281
|
-
}
|
|
282
|
-
.hidden .subContainer {
|
|
283
|
-
box-shadow: none;
|
|
284
|
-
}
|
|
285
|
-
[dir=ltr] .animationBasic {
|
|
286
|
-
animation-duration: var(--zd_transition2);
|
|
287
|
-
}
|
|
288
|
-
[dir=rtl] .animationBasic {
|
|
289
|
-
animation-duration: var(--zd_transition2);
|
|
290
|
-
}
|
|
291
|
-
.fadeIn {
|
|
292
|
-
composes: animationBasic;
|
|
293
|
-
composes: fadeInScale modeForward from '../common/animation.module.css';
|
|
294
|
-
}
|
|
295
|
-
.bounce {
|
|
296
|
-
composes: animationBasic;
|
|
297
|
-
}
|
|
298
|
-
[dir=ltr] .bounce {
|
|
299
|
-
animation-name: animation;
|
|
300
|
-
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
301
|
-
}
|
|
302
|
-
[dir=rtl] .bounce {
|
|
303
|
-
animation-name: animation;
|
|
304
|
-
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
305
|
-
}
|
|
306
|
-
.slideUp {
|
|
307
|
-
composes: modeForward from '../common/animation.module.css';
|
|
308
|
-
}
|
|
309
|
-
[dir=ltr] .slideUp {
|
|
310
|
-
animation-duration: var(--zd_transition3);
|
|
311
|
-
animation-name: slideUp;
|
|
312
|
-
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
313
|
-
}
|
|
314
|
-
[dir=rtl] .slideUp {
|
|
315
|
-
animation-duration: var(--zd_transition3);
|
|
316
|
-
animation-name: slideUp;
|
|
317
|
-
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
@keyframes animation {
|
|
321
|
-
0% {
|
|
322
|
-
transform: scaleY(0.6) perspective(1px);
|
|
323
|
-
opacity: 0;
|
|
324
|
-
transform-origin: top center;
|
|
325
|
-
}
|
|
326
|
-
100% {
|
|
327
|
-
transform-origin: top center;
|
|
328
|
-
opacity: 1;
|
|
329
|
-
transform: scaleY(1) perspective(1px);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
@keyframes slideUp {
|
|
333
|
-
0% {
|
|
334
|
-
transform: translateY(90%) perspective(1px);
|
|
335
|
-
}
|
|
336
|
-
100% {
|
|
337
|
-
transform: translateY(0%) perspective(1px);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.responsive {
|
|
342
|
-
position: absolute;
|
|
343
|
-
bottom: 0;
|
|
344
|
-
width: 100%;
|
|
345
|
-
max-height: 90%;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
[dir=ltr] .responsive {
|
|
349
|
-
left: 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
[dir=rtl] .responsive {
|
|
353
|
-
right: 0;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.closeBar {
|
|
357
|
-
height: 6px;
|
|
358
|
-
width: 20%;
|
|
359
|
-
border-radius: 5px;
|
|
360
|
-
background-color: var(--dropbox_mob_close_bg_color);
|
|
361
|
-
cursor: pointer;
|
|
362
|
-
margin: 0 auto var(--zd_size10);
|
|
363
|
-
}
|
|
364
|
-
.boxPadding {
|
|
365
|
-
--dropbox_padding: var(--zd_size10) 0;
|
|
366
|
-
}
|
|
367
|
-
.darkPalette {
|
|
368
|
-
--dropbox_bg_color: var(--zdt_dropbox_dark_bg);
|
|
369
|
-
}
|
|
370
|
-
.activateInDelay {
|
|
371
|
-
composes: modeForward from '../common/animation.module.css';
|
|
372
|
-
pointer-events: none;
|
|
373
|
-
}
|
|
374
|
-
[dir=ltr] .activateInDelay {
|
|
375
|
-
animation-duration: var(--zd_transition1);
|
|
376
|
-
animation-delay: var(--zd_transition2);
|
|
377
|
-
animation-name: activateInDelay;
|
|
378
|
-
}
|
|
379
|
-
[dir=rtl] .activateInDelay {
|
|
380
|
-
animation-duration: var(--zd_transition1);
|
|
381
|
-
animation-delay: var(--zd_transition2);
|
|
382
|
-
animation-name: activateInDelay;
|
|
383
|
-
}
|
|
384
|
-
.freezeLayer {
|
|
385
|
-
position: absolute;
|
|
386
|
-
top: 0;
|
|
387
|
-
bottom: 0;
|
|
388
|
-
composes: activateInDelay;
|
|
389
|
-
}
|
|
390
|
-
[dir=ltr] .freezeLayer {
|
|
391
|
-
left: 0;
|
|
392
|
-
right: 0;
|
|
393
|
-
}
|
|
394
|
-
[dir=rtl] .freezeLayer {
|
|
395
|
-
right: 0;
|
|
396
|
-
left: 0;
|
|
397
|
-
}
|
|
398
|
-
.freeze {
|
|
399
|
-
composes: varClass;
|
|
400
|
-
background: var(--dropbox_mob_bg_color);
|
|
401
|
-
}
|
|
402
|
-
@keyframes activateInDelay {
|
|
403
|
-
100% {
|
|
404
|
-
pointer-events: initial;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"positionMapping": {
|
|
3
|
-
"bottomCenter": {
|
|
4
|
-
"direction": "bottom",
|
|
5
|
-
"arrowPosition": "mid",
|
|
6
|
-
"positionStyle": "bottomMid"
|
|
7
|
-
},
|
|
8
|
-
"bottomLeftToRight": {
|
|
9
|
-
"direction": "bottom",
|
|
10
|
-
"arrowPosition": "start",
|
|
11
|
-
"positionStyle": "bottomEnd"
|
|
12
|
-
},
|
|
13
|
-
"bottomCenterToRight": {
|
|
14
|
-
"direction": "bottom",
|
|
15
|
-
"arrowPosition": "start",
|
|
16
|
-
"positionStyle": "bottomEnd"
|
|
17
|
-
},
|
|
18
|
-
"bottomRightToLeft": {
|
|
19
|
-
"direction": "bottom",
|
|
20
|
-
"arrowPosition": "end",
|
|
21
|
-
"positionStyle": "bottomStart"
|
|
22
|
-
},
|
|
23
|
-
"bottomCenterToLeft": {
|
|
24
|
-
"direction": "bottom",
|
|
25
|
-
"arrowPosition": "end",
|
|
26
|
-
"positionStyle": "bottomStart"
|
|
27
|
-
},
|
|
28
|
-
"topCenter": {
|
|
29
|
-
"direction": "top",
|
|
30
|
-
"arrowPosition": "mid",
|
|
31
|
-
"positionStyle": "topMid"
|
|
32
|
-
},
|
|
33
|
-
"topLeftToRight": {
|
|
34
|
-
"direction": "top",
|
|
35
|
-
"arrowPosition": "start",
|
|
36
|
-
"positionStyle": "topEnd"
|
|
37
|
-
},
|
|
38
|
-
"topCenterToRight": {
|
|
39
|
-
"direction": "top",
|
|
40
|
-
"arrowPosition": "start",
|
|
41
|
-
"positionStyle": "topEnd"
|
|
42
|
-
},
|
|
43
|
-
"topRightToLeft": {
|
|
44
|
-
"direction": "top",
|
|
45
|
-
"arrowPosition": "end",
|
|
46
|
-
"positionStyle": "topStart"
|
|
47
|
-
},
|
|
48
|
-
"topCenterToLeft": {
|
|
49
|
-
"direction": "top",
|
|
50
|
-
"arrowPosition": "end",
|
|
51
|
-
"positionStyle": "topStart"
|
|
52
|
-
},
|
|
53
|
-
"rightCenter": {
|
|
54
|
-
"direction": "right",
|
|
55
|
-
"arrowPosition": "mid",
|
|
56
|
-
"positionStyle": "rightMid"
|
|
57
|
-
},
|
|
58
|
-
"rightTopToBottom": {
|
|
59
|
-
"direction": "right",
|
|
60
|
-
"arrowPosition": "start",
|
|
61
|
-
"positionStyle": "rightEnd"
|
|
62
|
-
},
|
|
63
|
-
"rightCenterToBottom": {
|
|
64
|
-
"direction": "right",
|
|
65
|
-
"arrowPosition": "start",
|
|
66
|
-
"positionStyle": "rightEnd"
|
|
67
|
-
},
|
|
68
|
-
"rightBottomToTop": {
|
|
69
|
-
"direction": "right",
|
|
70
|
-
"arrowPosition": "end",
|
|
71
|
-
"positionStyle": "rightStart"
|
|
72
|
-
},
|
|
73
|
-
"rightCenterToTop": {
|
|
74
|
-
"direction": "right",
|
|
75
|
-
"arrowPosition": "end",
|
|
76
|
-
"positionStyle": "rightStart"
|
|
77
|
-
},
|
|
78
|
-
"leftCenter": {
|
|
79
|
-
"direction": "left",
|
|
80
|
-
"arrowPosition": "mid",
|
|
81
|
-
"positionStyle": "leftMid"
|
|
82
|
-
},
|
|
83
|
-
"leftTopToBottom": {
|
|
84
|
-
"direction": "left",
|
|
85
|
-
"arrowPosition": "start",
|
|
86
|
-
"positionStyle": "leftEnd"
|
|
87
|
-
},
|
|
88
|
-
"leftCenterToBottom": {
|
|
89
|
-
"direction": "left",
|
|
90
|
-
"arrowPosition": "start",
|
|
91
|
-
"positionStyle": "leftEnd"
|
|
92
|
-
},
|
|
93
|
-
"leftBottomToTop": {
|
|
94
|
-
"direction": "left",
|
|
95
|
-
"arrowPosition": "end",
|
|
96
|
-
"positionStyle": "leftStart"
|
|
97
|
-
},
|
|
98
|
-
"leftCenterToTop": {
|
|
99
|
-
"direction": "left",
|
|
100
|
-
"arrowPosition": "end",
|
|
101
|
-
"positionStyle": "leftStart"
|
|
102
|
-
},
|
|
103
|
-
"bottomRight": {
|
|
104
|
-
"direction": "bottom",
|
|
105
|
-
"arrowPosition": "start",
|
|
106
|
-
"positionStyle": "bottomEnd"
|
|
107
|
-
},
|
|
108
|
-
"bottomLeft": {
|
|
109
|
-
"direction": "bottom",
|
|
110
|
-
"arrowPosition": "end",
|
|
111
|
-
"positionStyle": "bottomStart"
|
|
112
|
-
},
|
|
113
|
-
"topRight": {
|
|
114
|
-
"direction": "top",
|
|
115
|
-
"arrowPosition": "start",
|
|
116
|
-
"positionStyle": "topEnd"
|
|
117
|
-
},
|
|
118
|
-
"topLeft": {
|
|
119
|
-
"direction": "top",
|
|
120
|
-
"arrowPosition": "end",
|
|
121
|
-
"positionStyle": "topStart"
|
|
122
|
-
},
|
|
123
|
-
"rightBottom": {
|
|
124
|
-
"direction": "right",
|
|
125
|
-
"arrowPosition": "start",
|
|
126
|
-
"positionStyle": "rightEnd"
|
|
127
|
-
},
|
|
128
|
-
"rightTop": {
|
|
129
|
-
"direction": "right",
|
|
130
|
-
"arrowPosition": "end",
|
|
131
|
-
"positionStyle": "rightStart"
|
|
132
|
-
},
|
|
133
|
-
"leftBottom": {
|
|
134
|
-
"direction": "left",
|
|
135
|
-
"arrowPosition": "start",
|
|
136
|
-
"positionStyle": "leftEnd"
|
|
137
|
-
},
|
|
138
|
-
"leftTop": {
|
|
139
|
-
"direction": "left",
|
|
140
|
-
"arrowPosition": "end",
|
|
141
|
-
"positionStyle": "leftStart"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _react = _interopRequireDefault(require("react"));
|
|
4
|
-
|
|
5
|
-
var _DropBox = _interopRequireDefault(require("../DropBox"));
|
|
6
|
-
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
-
|
|
9
|
-
var defaultProps = {
|
|
10
|
-
onClick: jest.fn()
|
|
11
|
-
};
|
|
12
|
-
describe('DropBox component', function () {
|
|
13
|
-
it('Should Arrow element visible', function () {
|
|
14
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
15
|
-
onClick: jest.fn(),
|
|
16
|
-
isArrow: true
|
|
17
|
-
}));
|
|
18
|
-
var x = TestUtils.scryRenderedComponentsWithTestid(renderedDOM, 'dropBox_arrow');
|
|
19
|
-
expect(x.length).toBe(1);
|
|
20
|
-
});
|
|
21
|
-
it('Should Arrow element disable', function () {
|
|
22
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
23
|
-
onClick: jest.fn(),
|
|
24
|
-
isArrow: false
|
|
25
|
-
}));
|
|
26
|
-
var x = TestUtils.scryRenderedComponentsWithTestid(renderedDOM, 'dropbox_arrow');
|
|
27
|
-
expect(x.length).toBe(0);
|
|
28
|
-
});
|
|
29
|
-
it('Should call onclick container function', function () {
|
|
30
|
-
var _setup = setup(_DropBox["default"], defaultProps),
|
|
31
|
-
props = _setup.props,
|
|
32
|
-
renderedDOM = _setup.renderedDOM;
|
|
33
|
-
|
|
34
|
-
var component = TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'dropBox_subcontainer');
|
|
35
|
-
TestUtils.Simulate.click(component);
|
|
36
|
-
expect(props.onClick).toHaveBeenCalled();
|
|
37
|
-
});
|
|
38
|
-
it('Should check render proper class name(hidden)', function () {
|
|
39
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
40
|
-
isActive: false,
|
|
41
|
-
isArrow: true
|
|
42
|
-
}));
|
|
43
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'hidden');
|
|
44
|
-
expect(x.length).toBe(1);
|
|
45
|
-
});
|
|
46
|
-
it('Should check render proper class name(size)', function () {
|
|
47
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
48
|
-
isArrow: true,
|
|
49
|
-
size: 'xsmall'
|
|
50
|
-
}));
|
|
51
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'xsmall');
|
|
52
|
-
expect(x.length).toBe(1);
|
|
53
|
-
});
|
|
54
|
-
it('Should check render proper class name(boxPosition)', function () {
|
|
55
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
56
|
-
boxPosition: 'bottomRight'
|
|
57
|
-
}));
|
|
58
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'bottomEnd');
|
|
59
|
-
expect(x.length).toBe(1);
|
|
60
|
-
});
|
|
61
|
-
it('Should check render proper class name(isAnimate & isActive)', function () {
|
|
62
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
63
|
-
isArrow: true,
|
|
64
|
-
isAnimate: true,
|
|
65
|
-
isActive: true
|
|
66
|
-
}));
|
|
67
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'fadeIn');
|
|
68
|
-
expect(x.length).toBe(1);
|
|
69
|
-
});
|
|
70
|
-
it('Should check render proper class name(isAnimate & isActive)', function () {
|
|
71
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
72
|
-
isArrow: true,
|
|
73
|
-
isAnimate: true,
|
|
74
|
-
isActive: true
|
|
75
|
-
}));
|
|
76
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'fadeIn');
|
|
77
|
-
expect(x.length).toBe(1);
|
|
78
|
-
});
|
|
79
|
-
it('Should check render proper class name(arrowPosition)', function () {
|
|
80
|
-
var renderedDOM = TestUtils.renderIntoDocument( /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
81
|
-
isArrow: true,
|
|
82
|
-
arrowPosition: 'end'
|
|
83
|
-
}));
|
|
84
|
-
var x = TestUtils.scryRenderedDOMComponentsWithClass(renderedDOM, 'end');
|
|
85
|
-
expect(x.length).toBe(1);
|
|
86
|
-
});
|
|
87
|
-
});
|