@zohodesk/components 1.0.0-alpha-248 → 1.0.0-alpha-249
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 +5 -1
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/Accordion/Accordion.js +4 -20
- package/es/Accordion/AccordionItem.js +4 -19
- package/es/Accordion/props/defaultProps.js +8 -0
- package/es/Accordion/props/propTypes.js +30 -0
- package/es/Animation/Animation.js +4 -25
- package/es/Animation/props/defaultProps.js +7 -0
- package/es/Animation/props/propTypes.js +12 -0
- package/es/AppContainer/AppContainer.js +5 -24
- package/es/AppContainer/props/defaultProps.js +8 -0
- package/es/AppContainer/props/propTypes.js +15 -0
- package/es/Avatar/Avatar.js +5 -45
- package/es/Avatar/Avatar.module.css +9 -11
- package/es/Avatar/props/defaultProps.js +13 -0
- package/es/Avatar/props/propTypes.js +22 -0
- package/es/AvatarTeam/AvatarTeam.js +5 -37
- package/es/AvatarTeam/AvatarTeam.module.css +7 -21
- package/es/AvatarTeam/props/defaultProps.js +13 -0
- package/es/AvatarTeam/props/propTypes.js +23 -0
- package/es/Button/Button.js +4 -47
- package/es/Button/Button.module.css +24 -97
- package/es/Button/props/defaultProps.js +15 -0
- package/es/Button/props/propTypes.js +22 -0
- package/es/Buttongroup/Buttongroup.js +4 -11
- package/es/Buttongroup/Buttongroup.module.css +8 -37
- package/es/Buttongroup/props/defaultProps.js +4 -0
- package/es/Buttongroup/props/propTypes.js +7 -0
- package/es/Card/Card.js +8 -61
- package/es/Card/props/defaultProps.js +15 -0
- package/es/Card/props/propTypes.js +43 -0
- package/es/CheckBox/CheckBox.js +5 -60
- package/es/CheckBox/CheckBox.module.css +11 -17
- package/es/CheckBox/props/defaultProps.js +18 -0
- package/es/CheckBox/props/propTypes.js +41 -0
- package/es/DateTime/CalendarView.js +6 -26
- package/es/DateTime/DateTime.js +4 -62
- package/es/DateTime/DateTime.module.css +12 -39
- package/es/DateTime/DateWidget.js +4 -83
- package/es/DateTime/DateWidget.module.css +5 -9
- package/es/DateTime/YearView.js +4 -12
- package/es/DateTime/YearView.module.css +7 -17
- package/es/DateTime/props/defaultProps.js +50 -0
- package/es/DateTime/props/propTypes.js +130 -0
- package/es/DropBox/DropBox.js +5 -72
- package/es/DropBox/DropBox.module.css +11 -47
- package/es/DropBox/props/defaultProps.js +20 -0
- package/es/DropBox/props/propTypes.js +47 -0
- package/es/DropDown/DropDown.js +7 -34
- package/es/DropDown/DropDownHeading.js +4 -19
- package/es/DropDown/DropDownHeading.module.css +3 -7
- package/es/DropDown/DropDownItem.js +4 -18
- package/es/DropDown/DropDownItem.module.css +6 -32
- package/es/DropDown/DropDownSearch.js +4 -24
- package/es/DropDown/DropDownSeparator.js +2 -4
- package/es/DropDown/props/defaultProps.js +18 -0
- package/es/DropDown/props/propTypes.js +77 -0
- package/es/Label/Label.js +4 -24
- package/es/Label/props/defaultProps.js +10 -0
- package/es/Label/props/propTypes.js +14 -0
- package/es/ListItem/ListContainer.js +5 -42
- package/es/ListItem/ListItem.js +5 -51
- package/es/ListItem/ListItem.module.css +25 -57
- package/es/ListItem/ListItemWithAvatar.js +5 -57
- package/es/ListItem/ListItemWithCheckBox.js +5 -41
- package/es/ListItem/ListItemWithIcon.js +5 -48
- package/es/ListItem/ListItemWithRadio.js +5 -42
- package/es/ListItem/props/defaultProps.js +85 -0
- package/es/ListItem/props/propTypes.js +185 -0
- package/es/Modal/Modal.js +5 -10
- package/es/Modal/props/defaultProps.js +3 -0
- package/es/Modal/props/propTypes.js +6 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +4 -90
- package/es/MultiSelect/AdvancedMultiSelect.js +5 -114
- package/es/MultiSelect/EmptyState.js +4 -29
- package/es/MultiSelect/MultiSelect.js +4 -113
- package/es/MultiSelect/MultiSelect.module.css +11 -28
- package/es/MultiSelect/MultiSelectHeader.js +4 -12
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -99
- package/es/MultiSelect/SelectedOptions.js +5 -20
- package/es/MultiSelect/SelectedOptions.module.css +2 -8
- package/es/MultiSelect/Suggestions.js +6 -35
- package/es/MultiSelect/props/defaultProps.js +140 -0
- package/es/MultiSelect/props/propTypes.js +360 -0
- package/es/PopOver/PopOver.js +7 -78
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/PopOver/props/defaultProps.js +7 -0
- package/es/PopOver/props/propTypes.js +53 -0
- package/es/Popup/Popup.js +1 -1
- package/es/Radio/Radio.js +4 -46
- package/es/Radio/Radio.module.css +4 -10
- package/es/Radio/props/defaultProps.js +14 -0
- package/es/Radio/props/propTypes.js +32 -0
- package/es/Responsive/CustomResponsive.js +8 -19
- package/es/Responsive/Responsive.js +8 -22
- package/es/Responsive/docs/style.module.css +8 -17
- package/es/Responsive/props/defaultProps.js +13 -0
- package/es/Responsive/props/propTypes.js +25 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +5 -12
- package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
- package/es/ResponsiveDropBox/props/propTypes.js +7 -0
- package/es/Ribbon/Ribbon.js +4 -25
- package/es/Ribbon/Ribbon.module.css +28 -93
- package/es/Ribbon/props/defaultProps.js +8 -0
- package/es/Ribbon/props/propTypes.js +10 -0
- package/es/RippleEffect/RippleEffect.js +4 -20
- package/es/RippleEffect/RippleEffect.module.css +27 -9
- package/es/RippleEffect/props/defaultProps.js +9 -0
- package/es/RippleEffect/props/propTypes.js +11 -0
- package/es/Select/GroupSelect.js +4 -109
- package/es/Select/Select.js +5 -121
- package/es/Select/Select.module.css +2 -12
- package/es/Select/SelectWithAvatar.js +4 -80
- package/es/Select/SelectWithIcon.js +4 -69
- package/es/Select/props/defaultProps.js +110 -0
- package/es/Select/props/propTypes.js +266 -0
- package/es/Stencils/Stencils.js +4 -17
- package/es/Stencils/Stencils.module.css +3 -21
- package/es/Stencils/props/defaultProps.js +6 -0
- package/es/Stencils/props/propTypes.js +7 -0
- package/es/Switch/Switch.js +5 -38
- package/es/Switch/Switch.module.css +7 -6
- package/es/Switch/props/defaultProps.js +10 -0
- package/es/Switch/props/propTypes.js +27 -0
- package/es/Tab/Tab.js +5 -32
- package/es/Tab/Tab.module.css +7 -16
- package/es/Tab/TabContent.js +4 -10
- package/es/Tab/TabContentWrapper.js +4 -12
- package/es/Tab/TabWrapper.js +5 -26
- package/es/Tab/Tabs.js +7 -69
- package/es/Tab/Tabs.module.css +8 -42
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tab/props/defaultProps.js +39 -0
- package/es/Tab/props/propTypes.js +102 -0
- package/es/Tag/Tag.js +4 -47
- package/es/Tag/Tag.module.css +14 -36
- package/es/Tag/props/defaultProps.js +13 -0
- package/es/Tag/props/propTypes.js +34 -0
- package/es/TextBox/TextBox.js +5 -73
- package/es/TextBox/TextBox.module.css +11 -7
- package/es/TextBox/props/defaultProps.js +19 -0
- package/es/TextBox/props/propTypes.js +53 -0
- package/es/TextBoxIcon/TextBoxIcon.js +5 -71
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -12
- package/es/TextBoxIcon/props/defaultProps.js +21 -0
- package/es/TextBoxIcon/props/propTypes.js +49 -0
- package/es/Textarea/Textarea.js +5 -48
- package/es/Textarea/Textarea.module.css +7 -6
- package/es/Textarea/props/defaultProps.js +16 -0
- package/es/Textarea/props/propTypes.js +31 -0
- package/es/Tooltip/Tooltip.js +4 -12
- package/es/Tooltip/Tooltip.module.css +8 -9
- package/es/Tooltip/props/defaultProps.js +4 -0
- package/es/Tooltip/props/propTypes.js +8 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -23
- package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
- package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -38
- package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
- package/es/common/animation.module.css +21 -219
- package/es/common/basicReset.module.css +12 -2
- package/es/common/common.module.css +18 -64
- package/es/common/customscroll.module.css +21 -17
- package/es/common/docStyle.module.css +32 -79
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/AdvancedMultiSelect.module.css +8 -22
- package/es/deprecated/PortalLayer/PortalLayer.js +4 -16
- package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
- package/es/deprecated/PortalLayer/props/propTypes.js +11 -0
- package/es/semantic/Button/Button.js +4 -38
- package/es/semantic/Button/props/defaultProps.js +12 -0
- package/es/semantic/Button/props/propTypes.js +26 -0
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/package.json +2 -2
- 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/docs/Accordion__Demo.docs.js +0 -126
- 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/Animation/docs/Animation__default.docs.js +0 -85
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
- package/lib/AppContainer/AppContainer.js +0 -212
- package/lib/AppContainer/AppContainer.module.css +0 -18
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
- 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/Avatar/docs/Avatar__custom.docs.js +0 -87
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
- 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/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
- 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/Button/docs/Button__custom.docs.js +0 -826
- package/lib/Button/docs/Button__default.docs.js +0 -590
- 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/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
- package/lib/Card/Card.js +0 -414
- package/lib/Card/Card.module.css +0 -20
- package/lib/Card/__tests__/Card.spec.js +0 -56
- package/lib/Card/docs/Card__Custom.docs.js +0 -90
- package/lib/Card/docs/Card__Default.docs.js +0 -92
- package/lib/Card/docs/Card__Scroll.docs.js +0 -114
- package/lib/Card/index.js +0 -37
- package/lib/CheckBox/CheckBox.js +0 -266
- package/lib/CheckBox/CheckBox.module.css +0 -157
- package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -18
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
- package/lib/DateTime/CalendarView.js +0 -285
- package/lib/DateTime/DateTime.js +0 -917
- 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 -1199
- package/lib/DateTime/DateWidget.module.css +0 -38
- 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 -81
- 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/docs/DateTime__default.docs.js +0 -142
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
- package/lib/DateTime/docs/timezonedata.json +0 -1
- 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/DropBox/docs/DropBox__custom.docs.js +0 -122
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
- 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/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
- 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/Label/docs/Label__clipped.docs.js +0 -81
- package/lib/Label/docs/Label__custom.docs.js +0 -85
- package/lib/Label/docs/Label__palette.docs.js +0 -96
- package/lib/Label/docs/Label__size.docs.js +0 -83
- package/lib/Label/docs/Label__type.docs.js +0 -91
- package/lib/Layout/Box.js +0 -124
- package/lib/Layout/Container.js +0 -141
- package/lib/Layout/Layout.module.css +0 -336
- package/lib/Layout/__tests__/Box.spec.js +0 -121
- package/lib/Layout/__tests__/Container.spec.js +0 -127
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
- package/lib/Layout/docs/Layout__default.docs.js +0 -98
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -129
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
- package/lib/Layout/index.js +0 -34
- package/lib/Layout/props/defaultProps.js +0 -20
- package/lib/Layout/props/propTypes.js +0 -54
- package/lib/Layout/utils.js +0 -55
- package/lib/LightNightMode/Colors.json +0 -497
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -153
- package/lib/ListItem/ListContainer.js +0 -150
- package/lib/ListItem/ListItem.js +0 -227
- package/lib/ListItem/ListItem.module.css +0 -209
- 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/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
- package/lib/Modal/Modal.js +0 -218
- package/lib/Modal/__docs__/Modal__default.docs.js +0 -88
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +0 -1250
- package/lib/MultiSelect/AdvancedMultiSelect.js +0 -733
- package/lib/MultiSelect/EmptyState.js +0 -132
- package/lib/MultiSelect/MultiSelect.js +0 -1264
- package/lib/MultiSelect/MultiSelect.module.css +0 -206
- package/lib/MultiSelect/MultiSelectHeader.js +0 -86
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -435
- 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/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
- package/lib/PopOver/PopOver.js +0 -372
- package/lib/PopOver/PopOver.module.css +0 -8
- package/lib/PopOver/__tests__/PopOver.spec.js +0 -20
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
- 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 -27
- 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/docs/Provider_Id__Class.docs.js +0 -77
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
- package/lib/Provider.js +0 -175
- package/lib/Radio/Radio.js +0 -214
- package/lib/Radio/Radio.module.css +0 -112
- package/lib/Radio/__tests__/Radiospec.js +0 -29
- package/lib/Radio/docs/Radio__custom.docs.js +0 -299
- package/lib/Radio/docs/Radio__default.docs.js +0 -222
- 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/docs/Responsive__Custom.docs.js +0 -272
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
- package/lib/Responsive/docs/style.module.css +0 -56
- 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/ResponsiveDropBox/ResponsiveDropBox.js +0 -130
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
- 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/Ribbon/docs/Ribbon__custom.docs.js +0 -437
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
- package/lib/RippleEffect/RippleEffect.js +0 -61
- package/lib/RippleEffect/RippleEffect.module.css +0 -92
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
- package/lib/Select/GroupSelect.js +0 -967
- package/lib/Select/Select.js +0 -1109
- package/lib/Select/Select.module.css +0 -106
- package/lib/Select/SelectWithAvatar.js +0 -458
- package/lib/Select/SelectWithIcon.js +0 -579
- package/lib/Select/__tests__/Select.spec.js +0 -383
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
- package/lib/Select/docs/Select__default.docs.js +0 -340
- 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/Stencils/docs/Stencils__custom.docs.js +0 -96
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
- package/lib/Switch/Switch.js +0 -183
- package/lib/Switch/Switch.module.css +0 -111
- package/lib/Switch/docs/Switch__custom.docs.js +0 -203
- package/lib/Switch/docs/Switch__default.docs.js +0 -156
- 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 -719
- package/lib/Tab/Tabs.module.css +0 -141
- 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/docs/Tab__default.docs.js +0 -308
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tab/index.js +0 -47
- package/lib/Tag/Tag.js +0 -252
- package/lib/Tag/Tag.module.css +0 -255
- package/lib/Tag/__tests__/Tag.spec.js +0 -35
- package/lib/Tag/docs/Tag__custom.docs.js +0 -423
- package/lib/Tag/docs/Tag__default.docs.js +0 -377
- 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/TextBox/docs/TextBox__custom.docs.js +0 -98
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
- 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/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
- 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/Textarea/docs/Textarea__animated.docs.js +0 -95
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
- package/lib/Tooltip/Tooltip.js +0 -590
- package/lib/Tooltip/Tooltip.module.css +0 -109
- package/lib/Tooltip/__tests__/Tooltip.spec.js +0 -98
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -430
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -146
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -190
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
- 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 -525
- package/lib/common/customscroll.module.css +0 -89
- package/lib/common/docStyle.module.css +0 -766
- package/lib/common/reset.module.css +0 -12
- package/lib/common/transition.module.css +0 -146
- package/lib/css.js +0 -81
- package/lib/deprecated/AdvancedMultiSelect.module.css +0 -127
- package/lib/deprecated/PortalLayer/PortalLayer.js +0 -165
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
- package/lib/deprecated/advancedMultiSelectVariableJson.js +0 -82
- package/lib/index.js +0 -1385
- package/lib/semantic/Button/Button.js +0 -138
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
- 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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const CalendarView_defaultProps = {
|
|
2
|
+
dataId: 'dateContainer',
|
|
3
|
+
needBorder: true
|
|
4
|
+
};
|
|
5
|
+
export const Span_defaultProps = {
|
|
6
|
+
dataId: 'calendar-view'
|
|
7
|
+
};
|
|
8
|
+
export const DateTime_defaultProps = {
|
|
9
|
+
isDateTimeField: true,
|
|
10
|
+
dataId: 'dateTime',
|
|
11
|
+
needDefaultTime: true,
|
|
12
|
+
isAbsolute: true,
|
|
13
|
+
isAnimate: true,
|
|
14
|
+
needAction: true,
|
|
15
|
+
boxSize: 'large',
|
|
16
|
+
className: '',
|
|
17
|
+
innerClass: '',
|
|
18
|
+
dateFormat: 'dd/MM/yyyy',
|
|
19
|
+
isPadding: false,
|
|
20
|
+
i18nKeys: {},
|
|
21
|
+
is24Hour: false,
|
|
22
|
+
isDefaultPosition: false
|
|
23
|
+
};
|
|
24
|
+
export const DateWidget_defaultProps = {
|
|
25
|
+
borderColor: 'default',
|
|
26
|
+
dataId: 'dateWidget',
|
|
27
|
+
dateFormat: 'MM/dd/yyyy',
|
|
28
|
+
isDateTime: false,
|
|
29
|
+
isDisabled: false,
|
|
30
|
+
isPopupOpenOnEnter: false,
|
|
31
|
+
isReadOnly: false,
|
|
32
|
+
needBorder: true,
|
|
33
|
+
needDefaultTime: true,
|
|
34
|
+
placeholder: '-None-',
|
|
35
|
+
textBoxSize: 'medium',
|
|
36
|
+
textBoxVariant: 'default',
|
|
37
|
+
timeZone: null,
|
|
38
|
+
isPopupOpenOnClick: true,
|
|
39
|
+
isPopupCloseOnClick: false,
|
|
40
|
+
cantEditOnPopupOpen: true,
|
|
41
|
+
i18nKeys: {},
|
|
42
|
+
needErrorOnBlur: false,
|
|
43
|
+
isEditable: false,
|
|
44
|
+
iconOnHover: false,
|
|
45
|
+
is24Hour: false
|
|
46
|
+
};
|
|
47
|
+
export const YearView_defaultProps = {
|
|
48
|
+
dataId: 'dateContainer',
|
|
49
|
+
needBorder: true
|
|
50
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const CalendarView_propTypes = {
|
|
3
|
+
dataId: PropTypes.string,
|
|
4
|
+
date: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
5
|
+
month: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6
|
+
needBorder: PropTypes.bool,
|
|
7
|
+
onSelect: PropTypes.func,
|
|
8
|
+
year: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
9
|
+
};
|
|
10
|
+
export const Span_propTypes = {
|
|
11
|
+
dataId: PropTypes.string,
|
|
12
|
+
handleSelect: PropTypes.func,
|
|
13
|
+
i: PropTypes.number,
|
|
14
|
+
incremday: PropTypes.number,
|
|
15
|
+
isActive: PropTypes.bool,
|
|
16
|
+
tdclass: PropTypes.string,
|
|
17
|
+
userSeeMonth: PropTypes.number,
|
|
18
|
+
userSeeYear: PropTypes.number
|
|
19
|
+
};
|
|
20
|
+
export const DateTime_propTypes = {
|
|
21
|
+
boxSize: PropTypes.string,
|
|
22
|
+
className: PropTypes.string,
|
|
23
|
+
dataId: PropTypes.string,
|
|
24
|
+
dateFormat: PropTypes.string,
|
|
25
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
26
|
+
defaultTime: PropTypes.string,
|
|
27
|
+
getMethods: PropTypes.func,
|
|
28
|
+
getRef: PropTypes.func,
|
|
29
|
+
i18nKeys: PropTypes.shape({
|
|
30
|
+
timeText: PropTypes.string.isRequired,
|
|
31
|
+
submitText: PropTypes.string.isRequired,
|
|
32
|
+
cancelText: PropTypes.string.isRequired,
|
|
33
|
+
hourEmptyText: PropTypes.string.isRequired,
|
|
34
|
+
minuteEmptyText: PropTypes.string.isRequired,
|
|
35
|
+
nextMonthTitleText: PropTypes.string.isRequired,
|
|
36
|
+
prevMonthTitleText: PropTypes.string.isRequired
|
|
37
|
+
}),
|
|
38
|
+
innerClass: PropTypes.string,
|
|
39
|
+
isAbsolute: PropTypes.bool,
|
|
40
|
+
isActive: PropTypes.bool,
|
|
41
|
+
isAnimate: PropTypes.bool,
|
|
42
|
+
isDateTimeField: PropTypes.bool,
|
|
43
|
+
isPadding: PropTypes.bool,
|
|
44
|
+
isReady: PropTypes.bool,
|
|
45
|
+
max: PropTypes.string,
|
|
46
|
+
maxErrorText: PropTypes.string,
|
|
47
|
+
min: PropTypes.string,
|
|
48
|
+
minErrorText: PropTypes.string,
|
|
49
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
50
|
+
needAction: PropTypes.bool,
|
|
51
|
+
needDefaultTime: PropTypes.bool,
|
|
52
|
+
needResponsive: PropTypes.bool,
|
|
53
|
+
onChange: PropTypes.func,
|
|
54
|
+
onClear: PropTypes.func,
|
|
55
|
+
onClick: PropTypes.func,
|
|
56
|
+
onDateSelect: PropTypes.func,
|
|
57
|
+
onError: PropTypes.func,
|
|
58
|
+
onSelect: PropTypes.func,
|
|
59
|
+
position: PropTypes.string,
|
|
60
|
+
timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
61
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
62
|
+
is24Hour: PropTypes.bool,
|
|
63
|
+
isDefaultPosition: PropTypes.bool
|
|
64
|
+
};
|
|
65
|
+
export const DateWidget_propTypes = {
|
|
66
|
+
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
67
|
+
cantEditOnPopupOpen: PropTypes.bool,
|
|
68
|
+
children: PropTypes.object,
|
|
69
|
+
className: PropTypes.string,
|
|
70
|
+
closePopupOnly: PropTypes.func,
|
|
71
|
+
dataId: PropTypes.string,
|
|
72
|
+
dateFormat: PropTypes.oneOf(['yyyy/MM/dd', 'MM/dd/yyyy', 'dd/MM/yyyy', 'yyyy-MM-dd', 'MM-dd-yyyy', 'dd-MM-yyyy', 'yyyy.MM.dd', 'MM.dd.yyyy', 'dd.MM.yyyy', 'dd/MMMM/YY', 'dd/MMM/YY']),
|
|
73
|
+
defaultPosition: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
74
|
+
defaultTime: PropTypes.string,
|
|
75
|
+
getContainerRef: PropTypes.func,
|
|
76
|
+
getMethods: PropTypes.func,
|
|
77
|
+
getRef: PropTypes.func,
|
|
78
|
+
getTargetRef: PropTypes.func,
|
|
79
|
+
i18nKeys: PropTypes.object,
|
|
80
|
+
id: PropTypes.string,
|
|
81
|
+
isDateTime: PropTypes.bool,
|
|
82
|
+
isDisabled: PropTypes.bool,
|
|
83
|
+
isEditable: PropTypes.bool,
|
|
84
|
+
isPopupCloseOnClick: PropTypes.bool,
|
|
85
|
+
isPopupOpen: PropTypes.bool,
|
|
86
|
+
isPopupOpenOnClick: PropTypes.bool,
|
|
87
|
+
isPopupOpenOnEnter: PropTypes.bool,
|
|
88
|
+
isPopupReady: PropTypes.bool,
|
|
89
|
+
isReadOnly: PropTypes.bool,
|
|
90
|
+
max: PropTypes.string,
|
|
91
|
+
maxErrorText: PropTypes.string,
|
|
92
|
+
min: PropTypes.string,
|
|
93
|
+
minErrorText: PropTypes.string,
|
|
94
|
+
needBorder: PropTypes.bool,
|
|
95
|
+
needDefaultTime: PropTypes.bool,
|
|
96
|
+
needErrorOnBlur: PropTypes.bool,
|
|
97
|
+
needResponsive: PropTypes.bool,
|
|
98
|
+
onFailValidation: PropTypes.func,
|
|
99
|
+
onKeyDown: PropTypes.func,
|
|
100
|
+
onPassValidation: PropTypes.func,
|
|
101
|
+
onSelect: PropTypes.func,
|
|
102
|
+
placeholder: PropTypes.string,
|
|
103
|
+
position: PropTypes.string,
|
|
104
|
+
removeClose: PropTypes.func,
|
|
105
|
+
textBoxSize: PropTypes.string,
|
|
106
|
+
textBoxVariant: PropTypes.string,
|
|
107
|
+
timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
108
|
+
togglePopup: PropTypes.func,
|
|
109
|
+
validation: PropTypes.shape({
|
|
110
|
+
validate: PropTypes.bool,
|
|
111
|
+
validateOn: PropTypes.string,
|
|
112
|
+
rulesOrder: PropTypes.arrayOf(PropTypes.string),
|
|
113
|
+
rules: PropTypes.object,
|
|
114
|
+
messages: PropTypes.object
|
|
115
|
+
}),
|
|
116
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
117
|
+
htmlId: PropTypes.string,
|
|
118
|
+
iconOnHover: PropTypes.bool,
|
|
119
|
+
is24Hour: PropTypes.bool,
|
|
120
|
+
isHideCurrentYear: PropTypes.bool,
|
|
121
|
+
onFocus: PropTypes.func,
|
|
122
|
+
onBlur: PropTypes.func
|
|
123
|
+
};
|
|
124
|
+
export const YearView_propTypes = {
|
|
125
|
+
dataId: PropTypes.string,
|
|
126
|
+
needBorder: PropTypes.bool,
|
|
127
|
+
onSelectMonth: PropTypes.func,
|
|
128
|
+
onSelectYear: PropTypes.func,
|
|
129
|
+
viewedYear: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
130
|
+
};
|
package/es/DropBox/DropBox.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { defaultProps } from './props/defaultProps';
|
|
5
|
+
import { propTypes } from './props/propTypes';
|
|
5
6
|
import { remConvert } from '../utils/Common';
|
|
6
7
|
import Modal from '../Modal/Modal';
|
|
7
8
|
import style from './DropBox.module.css';
|
|
@@ -235,77 +236,9 @@ export default class DropBox extends React.Component {
|
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
}
|
|
238
|
-
DropBox.propTypes =
|
|
239
|
-
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
|
240
|
-
arrowBottom: PropTypes.number,
|
|
241
|
-
arrowLeft: PropTypes.number,
|
|
242
|
-
arrowPosition: PropTypes.oneOf(['start', 'mid', 'end']),
|
|
243
|
-
arrowRight: PropTypes.number,
|
|
244
|
-
arrowTop: PropTypes.number,
|
|
245
|
-
bottom: PropTypes.number,
|
|
246
|
-
boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
|
|
247
|
-
children: PropTypes.element,
|
|
248
|
-
dataId: PropTypes.string,
|
|
249
|
-
forwardRef: PropTypes.object,
|
|
250
|
-
getRef: PropTypes.func,
|
|
251
|
-
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
252
|
-
isActive: PropTypes.bool,
|
|
253
|
-
isAnimate: PropTypes.bool,
|
|
254
|
-
isArrow: PropTypes.bool,
|
|
255
|
-
isBoxPaddingNeed: PropTypes.bool,
|
|
256
|
-
isPadding: PropTypes.bool,
|
|
257
|
-
isRadius: PropTypes.bool,
|
|
258
|
-
left: PropTypes.number,
|
|
259
|
-
needResponsive: PropTypes.bool,
|
|
260
|
-
onClick: PropTypes.func,
|
|
261
|
-
right: PropTypes.number,
|
|
262
|
-
size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
|
|
263
|
-
top: PropTypes.number,
|
|
264
|
-
tourId: PropTypes.string,
|
|
265
|
-
htmlId: PropTypes.string,
|
|
266
|
-
tabIndex: PropTypes.number,
|
|
267
|
-
customClass: PropTypes.shape({
|
|
268
|
-
customDropBox: PropTypes.string,
|
|
269
|
-
customMobileDropBox: PropTypes.string,
|
|
270
|
-
customDropBoxWrap: PropTypes.string,
|
|
271
|
-
customMobileDropBoxWrap: PropTypes.string
|
|
272
|
-
}),
|
|
273
|
-
a11y: PropTypes.shape({
|
|
274
|
-
role: PropTypes.string,
|
|
275
|
-
ariaMultiselectable: PropTypes.bool,
|
|
276
|
-
ariaLabelledby: PropTypes.string
|
|
277
|
-
}),
|
|
278
|
-
palette: PropTypes.oneOf(['default', 'dark']),
|
|
279
|
-
needAutoZindex: PropTypes.bool,
|
|
280
|
-
portalId: PropTypes.string,
|
|
281
|
-
isRestrictScroll: PropTypes.bool,
|
|
282
|
-
customStyle: PropTypes.object
|
|
283
|
-
};
|
|
284
|
-
DropBox.contextTypes = {
|
|
285
|
-
direction: PropTypes.string,
|
|
286
|
-
isReducedMotion: PropTypes.bool
|
|
287
|
-
};
|
|
239
|
+
DropBox.propTypes = propTypes;
|
|
288
240
|
DropBox.contextType = LibraryContext;
|
|
289
|
-
DropBox.defaultProps =
|
|
290
|
-
animationStyle: 'default',
|
|
291
|
-
boxPosition: 'bottomLeft',
|
|
292
|
-
dataId: 'dropBox',
|
|
293
|
-
isActive: false,
|
|
294
|
-
isAnimate: false,
|
|
295
|
-
isArrow: true,
|
|
296
|
-
isRadius: true,
|
|
297
|
-
size: 'default',
|
|
298
|
-
needResponsive: true,
|
|
299
|
-
isAbsolutePositioningNeeded: true,
|
|
300
|
-
isBoxPaddingNeed: false,
|
|
301
|
-
isPadding: true,
|
|
302
|
-
customClass: {},
|
|
303
|
-
a11y: {},
|
|
304
|
-
palette: 'default',
|
|
305
|
-
needAutoZindex: true,
|
|
306
|
-
portalId: 'portal1',
|
|
307
|
-
isRestrictScroll: false
|
|
308
|
-
};
|
|
241
|
+
DropBox.defaultProps = defaultProps;
|
|
309
242
|
|
|
310
243
|
if (false) {
|
|
311
244
|
DropBox.docs = {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
padding: var(--dropbox_padding);
|
|
29
29
|
box-shadow: var(--dropbox_box_shadow);
|
|
30
30
|
}
|
|
31
|
-
.defaultPalette,
|
|
31
|
+
.defaultPalette,
|
|
32
|
+
.darkPalette {
|
|
32
33
|
background-color: var(--dropbox_bg_color);
|
|
33
34
|
}
|
|
34
35
|
.radius {
|
|
@@ -83,13 +84,11 @@
|
|
|
83
84
|
.bottom_shadow {
|
|
84
85
|
--dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
.defaultShadow {
|
|
87
88
|
box-shadow: 4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
88
89
|
}
|
|
89
|
-
[dir=rtl] .defaultShadow {
|
|
90
|
-
box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
91
|
-
}
|
|
92
90
|
/* box direction styles */
|
|
91
|
+
/*rtl:begin:ignore*/
|
|
93
92
|
.topStart {
|
|
94
93
|
bottom: 100%;
|
|
95
94
|
right: 0;
|
|
@@ -273,6 +272,7 @@
|
|
|
273
272
|
bottom: var(--zd_size28);
|
|
274
273
|
transform: rotate(-90deg) translateX(-50%);
|
|
275
274
|
}
|
|
275
|
+
/*rtl:end:ignore*/
|
|
276
276
|
.hidden {
|
|
277
277
|
visibility: hidden;
|
|
278
278
|
opacity: 0;
|
|
@@ -282,10 +282,7 @@
|
|
|
282
282
|
.hidden .subContainer {
|
|
283
283
|
box-shadow: none;
|
|
284
284
|
}
|
|
285
|
-
|
|
286
|
-
animation-duration: var(--zd_transition2);
|
|
287
|
-
}
|
|
288
|
-
[dir=rtl] .animationBasic {
|
|
285
|
+
.animationBasic {
|
|
289
286
|
animation-duration: var(--zd_transition2);
|
|
290
287
|
}
|
|
291
288
|
.fadeIn {
|
|
@@ -294,24 +291,11 @@
|
|
|
294
291
|
}
|
|
295
292
|
.bounce {
|
|
296
293
|
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
294
|
animation-name: animation;
|
|
304
295
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
305
296
|
}
|
|
306
297
|
.slideUp {
|
|
307
298
|
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
299
|
animation-duration: var(--zd_transition3);
|
|
316
300
|
animation-name: slideUp;
|
|
317
301
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
@@ -341,23 +325,16 @@
|
|
|
341
325
|
.responsive {
|
|
342
326
|
position: absolute;
|
|
343
327
|
bottom: 0;
|
|
328
|
+
left: 0;
|
|
344
329
|
width: 100%;
|
|
345
330
|
max-height: 90%;
|
|
346
331
|
}
|
|
347
332
|
|
|
348
|
-
[dir=ltr] .responsive {
|
|
349
|
-
left: 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
[dir=rtl] .responsive {
|
|
353
|
-
right: 0;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
333
|
.closeBar {
|
|
357
334
|
height: 6px;
|
|
358
|
-
width: 20%;
|
|
359
335
|
border-radius: 5px;
|
|
360
336
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
337
|
+
width: 20%;
|
|
361
338
|
cursor: pointer;
|
|
362
339
|
margin: 0 auto var(--zd_size10);
|
|
363
340
|
}
|
|
@@ -369,31 +346,18 @@
|
|
|
369
346
|
}
|
|
370
347
|
.activateInDelay {
|
|
371
348
|
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
349
|
animation-duration: var(--zd_transition1);
|
|
381
350
|
animation-delay: var(--zd_transition2);
|
|
351
|
+
pointer-events: none;
|
|
382
352
|
animation-name: activateInDelay;
|
|
383
353
|
}
|
|
384
354
|
.freezeLayer {
|
|
385
355
|
position: absolute;
|
|
386
356
|
top: 0;
|
|
387
|
-
bottom: 0;
|
|
388
|
-
composes: activateInDelay;
|
|
389
|
-
}
|
|
390
|
-
[dir=ltr] .freezeLayer {
|
|
391
357
|
left: 0;
|
|
358
|
+
bottom: 0;
|
|
392
359
|
right: 0;
|
|
393
|
-
|
|
394
|
-
[dir=rtl] .freezeLayer {
|
|
395
|
-
right: 0;
|
|
396
|
-
left: 0;
|
|
360
|
+
composes: activateInDelay;
|
|
397
361
|
}
|
|
398
362
|
.freeze {
|
|
399
363
|
composes: varClass;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const defaultProps = {
|
|
2
|
+
animationStyle: 'default',
|
|
3
|
+
boxPosition: 'bottomLeft',
|
|
4
|
+
dataId: 'dropBox',
|
|
5
|
+
isActive: false,
|
|
6
|
+
isAnimate: false,
|
|
7
|
+
isArrow: true,
|
|
8
|
+
isRadius: true,
|
|
9
|
+
size: 'default',
|
|
10
|
+
needResponsive: true,
|
|
11
|
+
isAbsolutePositioningNeeded: true,
|
|
12
|
+
isBoxPaddingNeed: false,
|
|
13
|
+
isPadding: true,
|
|
14
|
+
customClass: {},
|
|
15
|
+
a11y: {},
|
|
16
|
+
palette: 'default',
|
|
17
|
+
needAutoZindex: true,
|
|
18
|
+
portalId: 'portal1',
|
|
19
|
+
isRestrictScroll: false
|
|
20
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
animationStyle: PropTypes.oneOf(['default', 'bounce']),
|
|
4
|
+
arrowBottom: PropTypes.number,
|
|
5
|
+
arrowLeft: PropTypes.number,
|
|
6
|
+
arrowPosition: PropTypes.oneOf(['start', 'mid', 'end']),
|
|
7
|
+
arrowRight: PropTypes.number,
|
|
8
|
+
arrowTop: PropTypes.number,
|
|
9
|
+
bottom: PropTypes.number,
|
|
10
|
+
boxPosition: PropTypes.oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
|
|
11
|
+
children: PropTypes.element,
|
|
12
|
+
dataId: PropTypes.string,
|
|
13
|
+
forwardRef: PropTypes.object,
|
|
14
|
+
getRef: PropTypes.func,
|
|
15
|
+
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
16
|
+
isActive: PropTypes.bool,
|
|
17
|
+
isAnimate: PropTypes.bool,
|
|
18
|
+
isArrow: PropTypes.bool,
|
|
19
|
+
isBoxPaddingNeed: PropTypes.bool,
|
|
20
|
+
isPadding: PropTypes.bool,
|
|
21
|
+
isRadius: PropTypes.bool,
|
|
22
|
+
left: PropTypes.number,
|
|
23
|
+
needResponsive: PropTypes.bool,
|
|
24
|
+
onClick: PropTypes.func,
|
|
25
|
+
right: PropTypes.number,
|
|
26
|
+
size: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
|
|
27
|
+
top: PropTypes.number,
|
|
28
|
+
tourId: PropTypes.string,
|
|
29
|
+
htmlId: PropTypes.string,
|
|
30
|
+
tabIndex: PropTypes.number,
|
|
31
|
+
customClass: PropTypes.shape({
|
|
32
|
+
customDropBox: PropTypes.string,
|
|
33
|
+
customMobileDropBox: PropTypes.string,
|
|
34
|
+
customDropBoxWrap: PropTypes.string,
|
|
35
|
+
customMobileDropBoxWrap: PropTypes.string
|
|
36
|
+
}),
|
|
37
|
+
a11y: PropTypes.shape({
|
|
38
|
+
role: PropTypes.string,
|
|
39
|
+
ariaMultiselectable: PropTypes.bool,
|
|
40
|
+
ariaLabelledby: PropTypes.string
|
|
41
|
+
}),
|
|
42
|
+
palette: PropTypes.oneOf(['default', 'dark']),
|
|
43
|
+
needAutoZindex: PropTypes.bool,
|
|
44
|
+
portalId: PropTypes.string,
|
|
45
|
+
isRestrictScroll: PropTypes.bool,
|
|
46
|
+
customStyle: PropTypes.object
|
|
47
|
+
};
|
package/es/DropDown/DropDown.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DropDown_propTypes, DropDownTarget_propTypes, DropDownContainer_propTypes, DropDownItemContainer_propTypes } from './props/propTypes';
|
|
3
|
+
import { DropDownItemContainer_defaultProps } from './props/defaultProps';
|
|
3
4
|
import style from './DropDown.module.css';
|
|
4
5
|
import PopOver, { PopOverTarget, PopOverContainer } from '../PopOver/PopOver';
|
|
5
6
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['dropdown', 'shadow', 'target', 'menu', 'header', 'headertext', 'list', 'padding', 'listHover', 'active', 'children', 'user', 'footer', 'separator', 'small', 'search', 'medium', 'heading'] }] */
|
|
@@ -13,24 +14,7 @@ export default class DropDown extends React.Component {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
}
|
|
16
|
-
DropDown.propTypes =
|
|
17
|
-
arrowBottom: PropTypes.string,
|
|
18
|
-
arrowLeft: PropTypes.string,
|
|
19
|
-
arrowPosition: PropTypes.string,
|
|
20
|
-
arrowRight: PropTypes.string,
|
|
21
|
-
arrowTop: PropTypes.string,
|
|
22
|
-
bottom: PropTypes.string,
|
|
23
|
-
boxPosition: PropTypes.string,
|
|
24
|
-
children: PropTypes.node,
|
|
25
|
-
isAnimate: PropTypes.bool,
|
|
26
|
-
isArrow: PropTypes.bool,
|
|
27
|
-
isPopupOpen: PropTypes.bool,
|
|
28
|
-
left: PropTypes.string,
|
|
29
|
-
onClick: PropTypes.func,
|
|
30
|
-
right: PropTypes.string,
|
|
31
|
-
size: PropTypes.string,
|
|
32
|
-
top: PropTypes.string
|
|
33
|
-
};
|
|
17
|
+
DropDown.propTypes = DropDown_propTypes;
|
|
34
18
|
|
|
35
19
|
if (false) {
|
|
36
20
|
DropDown.docs = {
|
|
@@ -48,9 +32,7 @@ export class DropDownTarget extends React.Component {
|
|
|
48
32
|
}
|
|
49
33
|
|
|
50
34
|
}
|
|
51
|
-
DropDownTarget.propTypes =
|
|
52
|
-
children: PropTypes.node
|
|
53
|
-
};
|
|
35
|
+
DropDownTarget.propTypes = DropDownTarget_propTypes;
|
|
54
36
|
export class DropDownContainer extends React.Component {
|
|
55
37
|
render() {
|
|
56
38
|
let {
|
|
@@ -60,9 +42,7 @@ export class DropDownContainer extends React.Component {
|
|
|
60
42
|
}
|
|
61
43
|
|
|
62
44
|
}
|
|
63
|
-
DropDownContainer.propTypes =
|
|
64
|
-
children: PropTypes.node
|
|
65
|
-
};
|
|
45
|
+
DropDownContainer.propTypes = DropDownContainer_propTypes;
|
|
66
46
|
export class DropDownItemContainer extends React.Component {
|
|
67
47
|
constructor(props) {
|
|
68
48
|
super(props);
|
|
@@ -98,12 +78,5 @@ export class DropDownItemContainer extends React.Component {
|
|
|
98
78
|
}
|
|
99
79
|
|
|
100
80
|
}
|
|
101
|
-
DropDownItemContainer.propTypes =
|
|
102
|
-
|
|
103
|
-
dataId: PropTypes.string,
|
|
104
|
-
getRef: PropTypes.func,
|
|
105
|
-
onScroll: PropTypes.func
|
|
106
|
-
};
|
|
107
|
-
DropDownItemContainer.defaultProps = {
|
|
108
|
-
dataId: 'drpdwnItemContainer'
|
|
109
|
-
};
|
|
81
|
+
DropDownItemContainer.propTypes = DropDownItemContainer_propTypes;
|
|
82
|
+
DropDownItemContainer.defaultProps = DropDownItemContainer_defaultProps;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DropDownHeading_propTypes } from './props/propTypes';
|
|
3
|
+
import { DropDownHeading_defaultProps } from './props/defaultProps';
|
|
3
4
|
import style from './DropDownHeading.module.css';
|
|
4
5
|
export default class DropDownHeading extends React.Component {
|
|
5
6
|
render() {
|
|
@@ -27,24 +28,8 @@ export default class DropDownHeading extends React.Component {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
}
|
|
30
|
-
DropDownHeading.propTypes =
|
|
31
|
-
|
|
32
|
-
customClass: PropTypes.string,
|
|
33
|
-
palette: PropTypes.oneOf(['light', 'dark']),
|
|
34
|
-
text: PropTypes.string,
|
|
35
|
-
title: PropTypes.string,
|
|
36
|
-
htmlId: PropTypes.string,
|
|
37
|
-
a11y: PropTypes.shape({
|
|
38
|
-
role: PropTypes.string,
|
|
39
|
-
ariaLabelledby: PropTypes.string
|
|
40
|
-
})
|
|
41
|
-
};
|
|
42
|
-
DropDownHeading.defaultProps = {
|
|
43
|
-
customClass: '',
|
|
44
|
-
children: null,
|
|
45
|
-
palette: 'light',
|
|
46
|
-
a11y: {}
|
|
47
|
-
};
|
|
31
|
+
DropDownHeading.propTypes = DropDownHeading_propTypes;
|
|
32
|
+
DropDownHeading.defaultProps = DropDownHeading_defaultProps;
|
|
48
33
|
|
|
49
34
|
if (false) {
|
|
50
35
|
DropDownHeading.docs = {
|
|
@@ -33,14 +33,10 @@
|
|
|
33
33
|
.light {
|
|
34
34
|
composes: default;
|
|
35
35
|
}
|
|
36
|
-
.light::after,
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
[dir=ltr] .light::after, [dir=ltr] .dark::after {
|
|
36
|
+
.light::after,
|
|
37
|
+
.dark::after {
|
|
40
38
|
left: var(--dropdownheading_underline_left);
|
|
41
|
-
|
|
42
|
-
[dir=rtl] .light::after, [dir=rtl] .dark::after {
|
|
43
|
-
right: var(--dropdownheading_underline_left);
|
|
39
|
+
background-color: var(--dropdownheading_underline_bg_color);
|
|
44
40
|
}
|
|
45
41
|
|
|
46
42
|
.dark {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { DropDownItem_propTypes } from './props/propTypes';
|
|
3
|
+
import { DropDownItem_defaultProps } from './props/defaultProps';
|
|
3
4
|
import style from './DropDownItem.module.css';
|
|
4
5
|
export default class DropDownItem extends React.Component {
|
|
5
6
|
constructor(props) {
|
|
@@ -70,20 +71,5 @@ export default class DropDownItem extends React.Component {
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
}
|
|
73
|
-
DropDownItem.propTypes =
|
|
74
|
-
|
|
75
|
-
children: PropTypes.node,
|
|
76
|
-
dataId: PropTypes.string,
|
|
77
|
-
getRef: PropTypes.func,
|
|
78
|
-
hightlight: PropTypes.bool,
|
|
79
|
-
id: PropTypes.string,
|
|
80
|
-
index: PropTypes.number,
|
|
81
|
-
onClick: PropTypes.func,
|
|
82
|
-
onHover: PropTypes.func,
|
|
83
|
-
value: PropTypes.string,
|
|
84
|
-
customClass: PropTypes.string
|
|
85
|
-
};
|
|
86
|
-
DropDownItem.defaultProps = {
|
|
87
|
-
active: false,
|
|
88
|
-
dataId: 'dropDwnItemContainer'
|
|
89
|
-
};
|
|
74
|
+
DropDownItem.propTypes = DropDownItem_propTypes;
|
|
75
|
+
DropDownItem.defaultProps = DropDownItem_defaultProps;
|