@zohodesk/components 1.0.0-temp-170 → 1.0.0-temp-172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -7
- package/.cli/propValidation_report.html +1 -1
- package/README.md +1344 -1335
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +180 -180
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +12 -12
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
- package/coverage/Avatar/Avatar.js.html +649 -0
- package/coverage/Avatar/Avatar.module.css.html +556 -0
- package/coverage/Avatar/index.html +131 -0
- package/coverage/Avatar/props/defaultProps.js.html +136 -0
- package/coverage/Avatar/props/index.html +131 -0
- package/coverage/Avatar/props/propTypes.js.html +166 -0
- package/coverage/AvatarTeam/AvatarTeam.js.html +340 -0
- package/coverage/AvatarTeam/AvatarTeam.module.css.html +610 -0
- package/coverage/AvatarTeam/index.html +131 -0
- package/coverage/AvatarTeam/props/defaultProps.js.html +136 -0
- package/coverage/AvatarTeam/props/index.html +131 -0
- package/coverage/AvatarTeam/props/propTypes.js.html +169 -0
- package/coverage/Button/Button.js.html +1 -1
- package/coverage/Button/css/Button.module.css.html +1 -1
- package/coverage/Button/css/cssJSLogic.js.html +1 -1
- package/coverage/Button/css/index.html +1 -1
- package/coverage/Button/index.html +1 -1
- package/coverage/Button/props/defaultProps.js.html +1 -1
- package/coverage/Button/props/index.html +1 -1
- package/coverage/Button/props/propTypes.js.html +1 -1
- package/coverage/Buttongroup/Buttongroup.js.html +1 -1
- package/coverage/Buttongroup/Buttongroup.module.css.html +1 -1
- package/coverage/Buttongroup/index.html +1 -1
- package/coverage/Buttongroup/props/defaultProps.js.html +1 -1
- package/coverage/Buttongroup/props/index.html +1 -1
- package/coverage/Buttongroup/props/propTypes.js.html +1 -1
- package/coverage/Label/Label.js.html +253 -0
- package/coverage/Label/Label.module.css.html +241 -0
- package/coverage/Label/LabelColors.module.css.html +145 -0
- package/coverage/Label/index.html +146 -0
- package/coverage/Label/props/defaultProps.js.html +118 -0
- package/coverage/Label/props/index.html +131 -0
- package/coverage/Label/props/propTypes.js.html +145 -0
- package/coverage/Layout/Box.js.html +367 -0
- package/coverage/Layout/Container.js.html +439 -0
- package/coverage/Layout/Layout.module.css.html +1090 -0
- package/coverage/Layout/index.html +176 -0
- package/coverage/Layout/index.js.html +118 -0
- package/coverage/Layout/props/defaultProps.js.html +136 -0
- package/coverage/Layout/props/index.html +131 -0
- package/coverage/Layout/props/propTypes.js.html +262 -0
- package/coverage/Layout/utils.js.html +199 -0
- package/coverage/Provider/AvatarSize.js.html +124 -0
- package/coverage/Provider/CssProvider.js.html +133 -0
- package/coverage/Provider/index.html +131 -0
- package/coverage/Radio/Radio.js.html +415 -0
- package/coverage/Radio/Radio.module.css.html +403 -0
- package/coverage/Radio/index.html +131 -0
- package/coverage/Radio/props/defaultProps.js.html +127 -0
- package/coverage/Radio/props/index.html +131 -0
- package/coverage/Radio/props/propTypes.js.html +187 -0
- package/coverage/Ribbon/Ribbon.js.html +229 -0
- package/coverage/Ribbon/Ribbon.module.css.html +1210 -0
- package/coverage/Ribbon/index.html +131 -0
- package/coverage/Ribbon/props/defaultProps.js.html +112 -0
- package/coverage/Ribbon/props/index.html +131 -0
- package/coverage/Ribbon/props/propTypes.js.html +121 -0
- package/coverage/RippleEffect/RippleEffect.js.html +172 -0
- package/coverage/RippleEffect/RippleEffect.module.css.html +415 -0
- package/coverage/RippleEffect/index.html +131 -0
- package/coverage/RippleEffect/props/defaultProps.js.html +112 -0
- package/coverage/RippleEffect/props/index.html +131 -0
- package/coverage/RippleEffect/props/propTypes.js.html +121 -0
- package/coverage/Stencils/Stencils.js.html +163 -0
- package/coverage/Stencils/Stencils.module.css.html +319 -0
- package/coverage/Stencils/index.html +131 -0
- package/coverage/Stencils/props/defaultProps.js.html +103 -0
- package/coverage/Stencils/props/index.html +131 -0
- package/coverage/Stencils/props/propTypes.js.html +109 -0
- package/coverage/Switch/Switch.js.html +379 -0
- package/coverage/Switch/Switch.module.css.html +481 -0
- package/coverage/Switch/index.html +131 -0
- package/coverage/Switch/props/defaultProps.js.html +118 -0
- package/coverage/Switch/props/index.html +131 -0
- package/coverage/Switch/props/propTypes.js.html +172 -0
- package/coverage/common/avatarsizes.module.css.html +229 -0
- package/coverage/common/common.module.css.html +1519 -0
- package/coverage/common/index.html +131 -0
- package/coverage/coverage-final.json +55 -10
- package/coverage/coverage-summary.json +56 -11
- package/coverage/index.html +311 -11
- package/coverage/utils/dummyFunction.js.html +1 -1
- package/coverage/utils/getInitial.js.html +139 -0
- package/coverage/utils/index.html +25 -10
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +175 -175
- package/es/Avatar/__tests__/Avatar.spec.js +181 -0
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +189 -189
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +138 -0
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
- package/es/Button/Button.js +4 -4
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
- package/es/Button/css/Button.module.css +525 -525
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +104 -105
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- 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 +157 -157
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +0 -0
- package/es/DateTime/DateTime.module.css +248 -237
- package/es/DateTime/DateWidget.js +0 -0
- package/es/DateTime/DateWidget.module.css +38 -38
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +98 -98
- 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 +0 -0
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -434
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropBox/css/DropBox.module.css +58 -58
- 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 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +94 -94
- 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/Heading/Heading.module.css +4 -4
- 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__/Label.spec.js +99 -0
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +335 -335
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +205 -216
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
- package/es/MultiSelect/MultiSelect.js +5 -5
- package/es/MultiSelect/MultiSelect.module.css +204 -204
- package/es/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/es/MultiSelect/SelectedOptions.module.css +15 -15
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +112 -112
- package/es/Radio/__tests__/Radio.spec.js +241 -0
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +453 -454
- package/es/Ribbon/__tests__/Ribbon.spec.js +52 -0
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
- package/es/RippleEffect/RippleEffect.module.css +92 -92
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +69 -0
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
- package/es/Select/GroupSelect.js +0 -0
- package/es/Select/Select.js +0 -0
- package/es/Select/Select.module.css +108 -108
- package/es/Select/SelectWithAvatar.js +0 -0
- package/es/Select/SelectWithIcon.js +0 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +96 -96
- package/es/Stencils/__tests__/Stencils.spec.js +46 -0
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +127 -127
- package/es/Switch/__tests__/Switch.spec.js +156 -0
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
- package/es/Tab/Tab.module.css +100 -100
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +136 -136
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +253 -254
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +158 -158
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +139 -139
- package/es/Tooltip/Tooltip.module.css +140 -140
- package/es/common/a11y.module.css +3 -3
- package/es/common/animation.module.css +624 -624
- package/es/common/avatarsizes.module.css +48 -48
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -40
- package/es/common/boxShadow.module.css +33 -33
- package/es/common/common.module.css +524 -524
- package/es/common/customscroll.module.css +91 -91
- package/es/common/reset.module.css +13 -13
- package/es/common/transition.module.css +146 -146
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/es/v1/Avatar/Avatar.js +5 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/es/v1/Button/Button.js +4 -4
- package/es/v1/Card/Card.js +4 -4
- package/es/v1/CheckBox/CheckBox.js +0 -0
- package/es/v1/DateTime/CalendarView.js +43 -10
- package/es/v1/DateTime/DateTime.js +8 -4
- package/es/v1/DateTime/DateTimePopupFooter.js +2 -2
- package/es/v1/DateTime/DateTimePopupHeader.js +1 -1
- package/es/v1/DateTime/DateWidget.js +8 -4
- package/es/v1/DateTime/DaysRow.js +1 -1
- package/es/v1/DateTime/Time.js +2 -2
- package/es/v1/DateTime/YearView.js +2 -2
- package/es/v1/DateTime/index.js +0 -0
- package/es/v1/DateTime/props/defaultProps.js +57 -0
- package/es/v1/DateTime/props/propTypes.js +195 -0
- package/es/v1/DropBox/DropBox.js +0 -0
- package/es/v1/DropDown/DropDown.js +0 -0
- package/es/v1/DropDown/DropDownHeading.js +0 -0
- package/es/v1/DropDown/DropDownItem.js +0 -0
- package/es/v1/DropDown/DropDownSearch.js +0 -0
- package/es/v1/DropDown/DropDownSeparator.js +0 -0
- package/es/v1/Layout/Box.js +0 -0
- package/es/v1/Layout/Container.js +0 -0
- package/es/v1/ListItem/ListItem.js +0 -0
- package/es/v1/ListItem/ListItemWithAvatar.js +7 -8
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +5 -5
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/es/v1/Radio/Radio.js +0 -0
- package/es/v1/Responsive/CustomResponsive.js +0 -0
- package/es/v1/Select/GroupSelect.js +0 -0
- package/es/v1/Select/Select.js +0 -0
- package/es/v1/Select/SelectWithAvatar.js +0 -0
- package/es/v1/Select/SelectWithIcon.js +0 -0
- package/es/v1/Switch/Switch.js +0 -0
- package/es/v1/Tab/Tabs.js +17 -17
- package/es/v1/Tag/Tag.js +14 -10
- package/es/v1/TextBox/TextBox.js +10 -10
- package/es/v1/Typography/Typography.js +4 -4
- package/es/v1/Typography/css/Typography.module.css +409 -376
- package/es/v1/Typography/css/cssJSLogic.js +14 -8
- package/es/v1/Typography/props/defaultProps.js +4 -4
- package/es/v1/Typography/props/propTypes.js +8 -5
- package/install.md +10 -10
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +175 -175
- package/lib/Avatar/__tests__/Avatar.spec.js +188 -0
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +145 -0
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +704 -0
- package/lib/Button/Button.js +4 -4
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +440 -440
- package/lib/Button/css/Button.module.css +525 -525
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +104 -105
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -191
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/CheckBox/CheckBox.js +0 -0
- package/lib/CheckBox/CheckBox.module.css +157 -157
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateTime.module.css +248 -237
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/DateWidget.module.css +38 -38
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/YearView.module.css +98 -98
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +0 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +431 -434
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropBox/css/DropBox.module.css +58 -58
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/Heading/Heading.module.css +4 -4
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Label/__tests__/Label.spec.js +106 -0
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +335 -335
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +0 -0
- package/lib/ListItem/ListItem.module.css +205 -216
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -16
- package/lib/MultiSelect/MultiSelect.js +5 -5
- package/lib/MultiSelect/MultiSelect.module.css +204 -204
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Popup/Popup.js +0 -0
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +112 -112
- package/lib/Radio/__tests__/Radio.spec.js +250 -0
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1837 -0
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +453 -454
- package/lib/Ribbon/__tests__/Ribbon.spec.js +59 -0
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
- package/lib/RippleEffect/RippleEffect.module.css +92 -92
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +76 -0
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +171 -0
- package/lib/Select/GroupSelect.js +0 -0
- package/lib/Select/Select.js +0 -0
- package/lib/Select/Select.module.css +108 -108
- package/lib/Select/SelectWithAvatar.js +0 -0
- package/lib/Select/SelectWithIcon.js +0 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Stencils/__tests__/Stencils.spec.js +53 -0
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +89 -0
- package/lib/Switch/Switch.js +0 -0
- package/lib/Switch/Switch.module.css +127 -127
- package/lib/Switch/__tests__/Switch.spec.js +163 -0
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
- package/lib/Tab/Tab.module.css +100 -100
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +136 -136
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/Tag.module.css +253 -254
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +158 -158
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -79
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Tooltip/Tooltip.module.css +140 -140
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +48 -48
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/boxShadow.module.css +33 -33
- package/lib/common/common.module.css +524 -524
- package/lib/common/customscroll.module.css +91 -91
- package/lib/common/reset.module.css +13 -13
- package/lib/common/transition.module.css +146 -146
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/lib/v1/Avatar/Avatar.js +5 -5
- package/lib/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/lib/v1/Button/Button.js +4 -4
- package/lib/v1/Card/Card.js +4 -4
- package/lib/v1/CheckBox/CheckBox.js +0 -0
- package/lib/v1/DateTime/CalendarView.js +44 -10
- package/lib/v1/DateTime/DateTime.js +8 -4
- package/lib/v1/DateTime/DateTimePopupFooter.js +2 -2
- package/lib/v1/DateTime/DateTimePopupHeader.js +1 -1
- package/lib/v1/DateTime/DateWidget.js +8 -4
- package/lib/v1/DateTime/DaysRow.js +1 -1
- package/lib/v1/DateTime/Time.js +2 -2
- package/lib/v1/DateTime/YearView.js +2 -2
- package/lib/v1/DateTime/index.js +0 -0
- package/lib/v1/DateTime/props/defaultProps.js +70 -0
- package/lib/v1/DateTime/props/propTypes.js +227 -0
- package/lib/v1/DropBox/DropBox.js +0 -0
- package/lib/v1/DropDown/DropDown.js +0 -0
- package/lib/v1/DropDown/DropDownHeading.js +0 -0
- package/lib/v1/DropDown/DropDownItem.js +0 -0
- package/lib/v1/DropDown/DropDownSearch.js +0 -0
- package/lib/v1/DropDown/DropDownSeparator.js +0 -0
- package/lib/v1/Layout/Box.js +0 -0
- package/lib/v1/Layout/Container.js +0 -0
- package/lib/v1/ListItem/ListItem.js +0 -0
- package/lib/v1/ListItem/ListItemWithAvatar.js +14 -9
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/lib/v1/MultiSelect/MultiSelect.js +5 -5
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/lib/v1/Radio/Radio.js +0 -0
- package/lib/v1/Responsive/CustomResponsive.js +0 -0
- package/lib/v1/Select/GroupSelect.js +0 -0
- package/lib/v1/Select/Select.js +0 -0
- package/lib/v1/Select/SelectWithAvatar.js +0 -0
- package/lib/v1/Select/SelectWithIcon.js +0 -0
- package/lib/v1/Switch/Switch.js +0 -0
- package/lib/v1/Tab/Tabs.js +11 -11
- package/lib/v1/Tag/Tag.js +15 -12
- package/lib/v1/TextBox/TextBox.js +8 -9
- package/lib/v1/Typography/Typography.js +3 -3
- package/lib/v1/Typography/css/Typography.module.css +409 -376
- package/lib/v1/Typography/css/cssJSLogic.js +8 -5
- package/lib/v1/Typography/props/defaultProps.js +4 -4
- package/lib/v1/Typography/props/propTypes.js +8 -5
- package/package.json +93 -93
- package/postPublish.js +8 -8
- package/prePublish.js +70 -70
- package/react-cli.config.js +23 -23
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Span_propTypes, CalendarView_propTypes } from '
|
|
3
|
-
import { CalendarView_defaultProps, Span_defaultProps } from '
|
|
2
|
+
import { Span_propTypes, CalendarView_propTypes } from './props/propTypes';
|
|
3
|
+
import { CalendarView_defaultProps, Span_defaultProps } from './props/defaultProps';
|
|
4
4
|
import { Container, Box } from '../Layout';
|
|
5
5
|
import style from '../../DateTime/DateTime.module.css';
|
|
6
6
|
import { getMonthEnd } from '../../utils/datetime/common';
|
|
7
|
+
import { getYearDetails } from '../../DateTime/dateFormatUtils/index';
|
|
7
8
|
import DaysRow from './DaysRow';
|
|
8
9
|
/* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */
|
|
9
10
|
|
|
@@ -31,7 +32,9 @@ export default class CalendarView extends React.PureComponent {
|
|
|
31
32
|
dayNamesShort,
|
|
32
33
|
todayMonth,
|
|
33
34
|
todayDate,
|
|
34
|
-
todayYear
|
|
35
|
+
todayYear,
|
|
36
|
+
startDate,
|
|
37
|
+
endDate
|
|
35
38
|
} = this.props;
|
|
36
39
|
const userSeeDate = new Date(year, month, 1);
|
|
37
40
|
const userSeeDay = userSeeDate.getDay() + 1;
|
|
@@ -61,7 +64,7 @@ export default class CalendarView extends React.PureComponent {
|
|
|
61
64
|
const dayArr = [];
|
|
62
65
|
let output = null;
|
|
63
66
|
|
|
64
|
-
for (let i = 1; i
|
|
67
|
+
for (let i = 1; i <= 7; i++) {
|
|
65
68
|
let tdclass = `${style.datesStr} ${style.grid}`;
|
|
66
69
|
|
|
67
70
|
if (i === 1) {
|
|
@@ -88,7 +91,9 @@ export default class CalendarView extends React.PureComponent {
|
|
|
88
91
|
userSeeMonth: userSeeMonth,
|
|
89
92
|
userSeeYear: userSeeYear,
|
|
90
93
|
dataId: isSelectedDay ? `${dataId}_dateSelected` : `${dataId}_date`,
|
|
91
|
-
isToday: isToday
|
|
94
|
+
isToday: isToday,
|
|
95
|
+
startDate: startDate,
|
|
96
|
+
endDate: endDate
|
|
92
97
|
});
|
|
93
98
|
incremday++;
|
|
94
99
|
} else if (incremleti < userSeeDay) {
|
|
@@ -114,7 +119,9 @@ export default class CalendarView extends React.PureComponent {
|
|
|
114
119
|
userSeeMonth: prevMonth,
|
|
115
120
|
userSeeYear: prevYear,
|
|
116
121
|
dataId: isSelectedDay ? `${dataId}_dateSelected` : `${dataId}_invalidDate` // isToday={isToday}
|
|
117
|
-
|
|
122
|
+
,
|
|
123
|
+
startDate: startDate,
|
|
124
|
+
endDate: endDate
|
|
118
125
|
});
|
|
119
126
|
} else if (incremleti > monthEnd) {
|
|
120
127
|
let nextMonth = userSeeMonth + 1;
|
|
@@ -138,7 +145,9 @@ export default class CalendarView extends React.PureComponent {
|
|
|
138
145
|
userSeeMonth: nextMonth,
|
|
139
146
|
userSeeYear: nextYear,
|
|
140
147
|
dataId: isSelectedDay ? `${dataId}_dateSelected` : `${dataId}_invalidDate` //isToday={isToday}
|
|
141
|
-
|
|
148
|
+
,
|
|
149
|
+
startDate: startDate,
|
|
150
|
+
endDate: endDate
|
|
142
151
|
});
|
|
143
152
|
} else {
|
|
144
153
|
output = /*#__PURE__*/React.createElement(Box, {
|
|
@@ -202,13 +211,37 @@ export class Span extends React.PureComponent {
|
|
|
202
211
|
i,
|
|
203
212
|
dataId,
|
|
204
213
|
isActive,
|
|
205
|
-
isToday
|
|
214
|
+
isToday,
|
|
215
|
+
userSeeMonth,
|
|
216
|
+
userSeeYear,
|
|
217
|
+
startDate,
|
|
218
|
+
endDate
|
|
206
219
|
} = this.props;
|
|
220
|
+
const userSeeDate = new Date(userSeeYear, userSeeMonth, incremday);
|
|
221
|
+
let startDateRange, endDateRange;
|
|
222
|
+
|
|
223
|
+
if (startDate && endDate) {
|
|
224
|
+
startDateRange = new Date(startDate);
|
|
225
|
+
endDateRange = new Date(endDate);
|
|
226
|
+
} else if (!startDate && endDate) {
|
|
227
|
+
startDateRange = new Date(getYearDetails(4).startPoint, 0, 1);
|
|
228
|
+
endDateRange = new Date(endDate);
|
|
229
|
+
} else if (!endDate && startDate) {
|
|
230
|
+
startDateRange = new Date(startDate);
|
|
231
|
+
endDateRange = new Date(getYearDetails(4).endPoint, 11, 31);
|
|
232
|
+
} else {
|
|
233
|
+
startDateRange = new Date(getYearDetails(4).startPoint, 0, 1);
|
|
234
|
+
endDateRange = new Date(getYearDetails(4).endPoint, 11, 31);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
startDateRange = new Date(startDateRange.getFullYear(), startDateRange.getMonth(), startDateRange.getDate());
|
|
238
|
+
endDateRange = new Date(endDateRange.getFullYear(), endDateRange.getMonth(), endDateRange.getDate());
|
|
239
|
+
const isActiveDate = startDateRange <= userSeeDate && endDateRange >= userSeeDate;
|
|
207
240
|
return /*#__PURE__*/React.createElement(Box, {
|
|
208
241
|
dataId: dataId,
|
|
209
|
-
className: `${tdclass} ${isActive ? style.active : ''} ${isToday ? style.today : ''}`,
|
|
242
|
+
className: `${tdclass} ${isActive && isActiveDate ? style.active : ''} ${isToday ? style.today : ''} ${!isActiveDate ? style.inActiveDate : ''}`,
|
|
210
243
|
key: i,
|
|
211
|
-
onClick: this.handleSelectChild,
|
|
244
|
+
onClick: isActiveDate ? this.handleSelectChild : undefined,
|
|
212
245
|
"aria-label": incremday
|
|
213
246
|
}, incremday);
|
|
214
247
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable react/forbid-component-props */
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { DateTime_propTypes } from '
|
|
6
|
-
import { DateTime_defaultProps } from '
|
|
5
|
+
import { DateTime_propTypes } from './props/propTypes';
|
|
6
|
+
import { DateTime_defaultProps } from './props/defaultProps';
|
|
7
7
|
import datetime from '@zohodesk/datetimejs';
|
|
8
8
|
import CalendarView from './CalendarView';
|
|
9
9
|
import YearView from './YearView';
|
|
@@ -676,7 +676,9 @@ export default class DateTime extends React.PureComponent {
|
|
|
676
676
|
positionsOffset,
|
|
677
677
|
targetOffset,
|
|
678
678
|
isRestrictScroll,
|
|
679
|
-
dropBoxPortalId
|
|
679
|
+
dropBoxPortalId,
|
|
680
|
+
startDate,
|
|
681
|
+
endDate
|
|
680
682
|
} = this.props;
|
|
681
683
|
const {
|
|
682
684
|
timeText = 'Time',
|
|
@@ -717,7 +719,9 @@ export default class DateTime extends React.PureComponent {
|
|
|
717
719
|
dayNamesShort: dayNamesShort,
|
|
718
720
|
todayDate: todayDate,
|
|
719
721
|
todayMonth: todayMonth,
|
|
720
|
-
todayYear: todayYear
|
|
722
|
+
todayYear: todayYear,
|
|
723
|
+
startDate: startDate,
|
|
724
|
+
endDate: endDate
|
|
721
725
|
}), isDateTimeField ? /*#__PURE__*/React.createElement(Time, {
|
|
722
726
|
timeText: timeText,
|
|
723
727
|
dataId: dataId,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/** ** Libraries *** */
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
|
-
import { DateTimePopupFooter_propTypes } from '
|
|
6
|
-
import { DateTimePopupFooter_defaultProps } from '
|
|
5
|
+
import { DateTimePopupFooter_propTypes } from './props/propTypes';
|
|
6
|
+
import { DateTimePopupFooter_defaultProps } from './props/defaultProps';
|
|
7
7
|
/** ** Components *** */
|
|
8
8
|
|
|
9
9
|
import { Container } from '../Layout';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/** ** Libraries *** */
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
|
-
import { DateTimePopupHeader_propTypes } from '
|
|
5
|
+
import { DateTimePopupHeader_propTypes } from './props/propTypes';
|
|
6
6
|
/** ** Components *** */
|
|
7
7
|
|
|
8
8
|
import { Container, Box } from '../Layout';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { DateWidget_propTypes } from '
|
|
4
|
-
import { DateWidget_defaultProps } from '
|
|
3
|
+
import { DateWidget_propTypes } from './props/propTypes';
|
|
4
|
+
import { DateWidget_defaultProps } from './props/defaultProps';
|
|
5
5
|
import datetime from '@zohodesk/datetimejs';
|
|
6
6
|
/**** Components ****/
|
|
7
7
|
|
|
@@ -983,7 +983,9 @@ class DateWidgetComponent extends React.Component {
|
|
|
983
983
|
dropBoxPortalId,
|
|
984
984
|
a11y,
|
|
985
985
|
boxSize,
|
|
986
|
-
onError
|
|
986
|
+
onError,
|
|
987
|
+
startDate,
|
|
988
|
+
endDate
|
|
987
989
|
} = this.props;
|
|
988
990
|
const {
|
|
989
991
|
selected: value = '',
|
|
@@ -1073,7 +1075,9 @@ class DateWidgetComponent extends React.Component {
|
|
|
1073
1075
|
isRestrictScroll: isRestrictScroll,
|
|
1074
1076
|
dropBoxPortalId: dropBoxPortalId,
|
|
1075
1077
|
boxSize: boxSize,
|
|
1076
|
-
onError: onError
|
|
1078
|
+
onError: onError,
|
|
1079
|
+
startDate: startDate,
|
|
1080
|
+
endDate: endDate
|
|
1077
1081
|
}));
|
|
1078
1082
|
}
|
|
1079
1083
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/** ** Libraries *** */
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
|
-
import { DaysRow_propTypes } from '
|
|
5
|
+
import { DaysRow_propTypes } from './props/propTypes';
|
|
6
6
|
/** ** CSS *** */
|
|
7
7
|
|
|
8
8
|
import style from '../../DateTime/DateTime.module.css';
|
package/es/v1/DateTime/Time.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/** ** Libraries *** */
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
|
-
import { Time_propTypes } from '
|
|
6
|
-
import { Time_defaultProps } from '
|
|
5
|
+
import { Time_propTypes } from './props/propTypes';
|
|
6
|
+
import { Time_defaultProps } from './props/defaultProps';
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { Container, Box } from '../Layout';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**** Libraries ****/
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { YearView_propTypes } from '
|
|
4
|
-
import { YearView_defaultProps } from '
|
|
3
|
+
import { YearView_propTypes } from './props/propTypes';
|
|
4
|
+
import { YearView_defaultProps } from './props/defaultProps';
|
|
5
5
|
/**** Components ****/
|
|
6
6
|
|
|
7
7
|
import { Virtualizer } from '@zohodesk/virtualizer';
|
package/es/v1/DateTime/index.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
customDateFormat: null
|
|
24
|
+
};
|
|
25
|
+
export const DateWidget_defaultProps = {
|
|
26
|
+
borderColor: 'default',
|
|
27
|
+
dataId: 'dateWidget',
|
|
28
|
+
dateFormat: 'MM/dd/yyyy',
|
|
29
|
+
isDateTime: false,
|
|
30
|
+
isDisabled: false,
|
|
31
|
+
isPopupOpenOnEnter: false,
|
|
32
|
+
isReadOnly: false,
|
|
33
|
+
needBorder: true,
|
|
34
|
+
needDefaultTime: true,
|
|
35
|
+
placeholder: '-None-',
|
|
36
|
+
textBoxSize: 'medium',
|
|
37
|
+
textBoxVariant: 'default',
|
|
38
|
+
timeZone: null,
|
|
39
|
+
isPopupOpenOnClick: true,
|
|
40
|
+
isPopupCloseOnClick: false,
|
|
41
|
+
cantEditOnPopupOpen: true,
|
|
42
|
+
i18nKeys: {},
|
|
43
|
+
needErrorOnBlur: false,
|
|
44
|
+
isEditable: false,
|
|
45
|
+
iconOnHover: false,
|
|
46
|
+
is24Hour: false
|
|
47
|
+
};
|
|
48
|
+
export const YearView_defaultProps = {
|
|
49
|
+
dataId: 'dateContainer',
|
|
50
|
+
needBorder: true
|
|
51
|
+
};
|
|
52
|
+
export const DateTimePopupFooter_defaultProps = {
|
|
53
|
+
dataId: 'DateTimePopupFooter'
|
|
54
|
+
};
|
|
55
|
+
export const Time_defaultProps = {
|
|
56
|
+
dataId: 'Time'
|
|
57
|
+
};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { dataFormatList } from '../../../DateTime/dateFormatUtils/dateFormats';
|
|
3
|
+
export const CalendarView_propTypes = {
|
|
4
|
+
dataId: PropTypes.string,
|
|
5
|
+
date: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
6
|
+
month: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
7
|
+
needBorder: PropTypes.bool,
|
|
8
|
+
onSelect: PropTypes.func,
|
|
9
|
+
year: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
10
|
+
dayNames: PropTypes.array,
|
|
11
|
+
dayNamesShort: PropTypes.array,
|
|
12
|
+
todayMonth: PropTypes.string,
|
|
13
|
+
todayDate: PropTypes.string,
|
|
14
|
+
todayYear: PropTypes.string,
|
|
15
|
+
startDate: PropTypes.string,
|
|
16
|
+
endDate: PropTypes.string
|
|
17
|
+
};
|
|
18
|
+
export const Span_propTypes = {
|
|
19
|
+
dataId: PropTypes.string,
|
|
20
|
+
handleSelect: PropTypes.func,
|
|
21
|
+
i: PropTypes.number,
|
|
22
|
+
incremday: PropTypes.number,
|
|
23
|
+
isActive: PropTypes.bool,
|
|
24
|
+
tdclass: PropTypes.string,
|
|
25
|
+
userSeeMonth: PropTypes.number,
|
|
26
|
+
userSeeYear: PropTypes.number,
|
|
27
|
+
isToday: PropTypes.bool,
|
|
28
|
+
startDate: PropTypes.string,
|
|
29
|
+
endDate: PropTypes.string
|
|
30
|
+
};
|
|
31
|
+
export const DateTime_propTypes = {
|
|
32
|
+
boxSize: PropTypes.string,
|
|
33
|
+
className: PropTypes.string,
|
|
34
|
+
dataId: PropTypes.string,
|
|
35
|
+
dateFormat: PropTypes.string,
|
|
36
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
37
|
+
defaultTime: PropTypes.string,
|
|
38
|
+
getMethods: PropTypes.func,
|
|
39
|
+
getRef: PropTypes.func,
|
|
40
|
+
i18nKeys: PropTypes.shape({
|
|
41
|
+
timeText: PropTypes.string.isRequired,
|
|
42
|
+
submitText: PropTypes.string.isRequired,
|
|
43
|
+
cancelText: PropTypes.string.isRequired,
|
|
44
|
+
hourEmptyText: PropTypes.string.isRequired,
|
|
45
|
+
minuteEmptyText: PropTypes.string.isRequired,
|
|
46
|
+
nextMonthTitleText: PropTypes.string.isRequired,
|
|
47
|
+
prevMonthTitleText: PropTypes.string.isRequired
|
|
48
|
+
}),
|
|
49
|
+
innerClass: PropTypes.string,
|
|
50
|
+
isAbsolute: PropTypes.bool,
|
|
51
|
+
isActive: PropTypes.bool,
|
|
52
|
+
isAnimate: PropTypes.bool,
|
|
53
|
+
isDateTimeField: PropTypes.bool,
|
|
54
|
+
isPadding: PropTypes.bool,
|
|
55
|
+
isReady: PropTypes.bool,
|
|
56
|
+
max: PropTypes.string,
|
|
57
|
+
maxErrorText: PropTypes.string,
|
|
58
|
+
min: PropTypes.string,
|
|
59
|
+
minErrorText: PropTypes.string,
|
|
60
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
61
|
+
needAction: PropTypes.bool,
|
|
62
|
+
needDefaultTime: PropTypes.bool,
|
|
63
|
+
needResponsive: PropTypes.bool,
|
|
64
|
+
onChange: PropTypes.func,
|
|
65
|
+
onClear: PropTypes.func,
|
|
66
|
+
onClick: PropTypes.func,
|
|
67
|
+
onDateSelect: PropTypes.func,
|
|
68
|
+
onError: PropTypes.func,
|
|
69
|
+
onSelect: PropTypes.func,
|
|
70
|
+
position: PropTypes.string,
|
|
71
|
+
timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
72
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
73
|
+
is24Hour: PropTypes.bool,
|
|
74
|
+
isDefaultPosition: PropTypes.bool,
|
|
75
|
+
customDateFormat: PropTypes.string,
|
|
76
|
+
positionsOffset: PropTypes.array,
|
|
77
|
+
targetOffset: PropTypes.string,
|
|
78
|
+
isRestrictScroll: PropTypes.bool,
|
|
79
|
+
dropBoxPortalId: PropTypes.string,
|
|
80
|
+
startDate: PropTypes.string,
|
|
81
|
+
endDate: PropTypes.string
|
|
82
|
+
};
|
|
83
|
+
export const DateWidget_propTypes = {
|
|
84
|
+
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
85
|
+
cantEditOnPopupOpen: PropTypes.bool,
|
|
86
|
+
children: PropTypes.object,
|
|
87
|
+
className: PropTypes.string,
|
|
88
|
+
closePopupOnly: PropTypes.func,
|
|
89
|
+
dataId: PropTypes.string,
|
|
90
|
+
dateFormat: PropTypes.oneOf([...dataFormatList]),
|
|
91
|
+
defaultPosition: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
92
|
+
defaultTime: PropTypes.string,
|
|
93
|
+
getContainerRef: PropTypes.func,
|
|
94
|
+
getMethods: PropTypes.func,
|
|
95
|
+
getRef: PropTypes.func,
|
|
96
|
+
getTargetRef: PropTypes.func,
|
|
97
|
+
i18nKeys: PropTypes.object,
|
|
98
|
+
id: PropTypes.string,
|
|
99
|
+
isDateTime: PropTypes.bool,
|
|
100
|
+
isDisabled: PropTypes.bool,
|
|
101
|
+
isEditable: PropTypes.bool,
|
|
102
|
+
isPopupCloseOnClick: PropTypes.bool,
|
|
103
|
+
isPopupOpen: PropTypes.bool,
|
|
104
|
+
isPopupOpenOnClick: PropTypes.bool,
|
|
105
|
+
isPopupOpenOnEnter: PropTypes.bool,
|
|
106
|
+
isPopupReady: PropTypes.bool,
|
|
107
|
+
isReadOnly: PropTypes.bool,
|
|
108
|
+
max: PropTypes.string,
|
|
109
|
+
maxErrorText: PropTypes.string,
|
|
110
|
+
min: PropTypes.string,
|
|
111
|
+
minErrorText: PropTypes.string,
|
|
112
|
+
needBorder: PropTypes.bool,
|
|
113
|
+
needDefaultTime: PropTypes.bool,
|
|
114
|
+
needErrorOnBlur: PropTypes.bool,
|
|
115
|
+
needResponsive: PropTypes.bool,
|
|
116
|
+
onFailValidation: PropTypes.func,
|
|
117
|
+
onKeyDown: PropTypes.func,
|
|
118
|
+
onPassValidation: PropTypes.func,
|
|
119
|
+
onSelect: PropTypes.func,
|
|
120
|
+
placeholder: PropTypes.string,
|
|
121
|
+
position: PropTypes.string,
|
|
122
|
+
removeClose: PropTypes.func,
|
|
123
|
+
textBoxSize: PropTypes.string,
|
|
124
|
+
textBoxVariant: PropTypes.string,
|
|
125
|
+
timeZone: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
126
|
+
togglePopup: PropTypes.func,
|
|
127
|
+
validation: PropTypes.shape({
|
|
128
|
+
validate: PropTypes.bool,
|
|
129
|
+
validateOn: PropTypes.string,
|
|
130
|
+
rulesOrder: PropTypes.arrayOf(PropTypes.string),
|
|
131
|
+
rules: PropTypes.object,
|
|
132
|
+
messages: PropTypes.object
|
|
133
|
+
}),
|
|
134
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
135
|
+
htmlId: PropTypes.string,
|
|
136
|
+
iconOnHover: PropTypes.bool,
|
|
137
|
+
is24Hour: PropTypes.bool,
|
|
138
|
+
isHideCurrentYear: PropTypes.bool,
|
|
139
|
+
onFocus: PropTypes.func,
|
|
140
|
+
onBlur: PropTypes.func,
|
|
141
|
+
boxSize: PropTypes.string,
|
|
142
|
+
onError: PropTypes.func,
|
|
143
|
+
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
144
|
+
positionsOffset: PropTypes.array,
|
|
145
|
+
targetOffset: PropTypes.array,
|
|
146
|
+
isRestrictScroll: PropTypes.bool,
|
|
147
|
+
dropBoxPortalId: PropTypes.string,
|
|
148
|
+
a11y: PropTypes.object,
|
|
149
|
+
startDate: PropTypes.string,
|
|
150
|
+
endDate: PropTypes.string
|
|
151
|
+
};
|
|
152
|
+
export const YearView_propTypes = {
|
|
153
|
+
onSelectMonth: PropTypes.func,
|
|
154
|
+
onSelectYear: PropTypes.func,
|
|
155
|
+
viewedYear: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
156
|
+
viewedMonth: PropTypes.string,
|
|
157
|
+
monthNamesShort: PropTypes.array,
|
|
158
|
+
isMonthOpen: PropTypes.bool
|
|
159
|
+
};
|
|
160
|
+
export const DateTimePopupFooter_propTypes = {
|
|
161
|
+
submitText: PropTypes.string,
|
|
162
|
+
onSubmit: PropTypes.func,
|
|
163
|
+
cancelText: PropTypes.string,
|
|
164
|
+
onCancel: PropTypes.func,
|
|
165
|
+
dataId: PropTypes.string
|
|
166
|
+
};
|
|
167
|
+
export const DateTimePopupHeader_propTypes = {
|
|
168
|
+
onOpenYearView: PropTypes.func,
|
|
169
|
+
showMonthTxt: PropTypes.string,
|
|
170
|
+
isYearView: PropTypes.bool,
|
|
171
|
+
prevMonthTitleText: PropTypes.string,
|
|
172
|
+
nextMonthTitleText: PropTypes.string,
|
|
173
|
+
onModifyCalendar: PropTypes.func
|
|
174
|
+
};
|
|
175
|
+
export const DaysRow_propTypes = {
|
|
176
|
+
dayNames: PropTypes.array,
|
|
177
|
+
dayNamesShort: PropTypes.object
|
|
178
|
+
};
|
|
179
|
+
export const Time_propTypes = {
|
|
180
|
+
timeText: PropTypes.string,
|
|
181
|
+
dataId: PropTypes.string,
|
|
182
|
+
hourSuggestions: PropTypes.array,
|
|
183
|
+
onHourSelect: PropTypes.func,
|
|
184
|
+
hours: PropTypes.string,
|
|
185
|
+
hourEmptyText: PropTypes.string,
|
|
186
|
+
needResponsive: PropTypes.bool,
|
|
187
|
+
minSuggestions: PropTypes.array,
|
|
188
|
+
onMinutesSelect: PropTypes.func,
|
|
189
|
+
mins: PropTypes.string,
|
|
190
|
+
minuteEmptyText: PropTypes.string,
|
|
191
|
+
ampmSuggestions: PropTypes.array,
|
|
192
|
+
onAmPmSelect: PropTypes.func,
|
|
193
|
+
amPm: PropTypes.string,
|
|
194
|
+
is24Hour: PropTypes.bool
|
|
195
|
+
};
|
package/es/v1/DropBox/DropBox.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/v1/Layout/Box.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import React, { memo } from 'react';
|
|
5
5
|
import { Box } from '../Layout';
|
|
6
6
|
import ListContainer from './ListContainer';
|
|
7
7
|
import { ListItemWithAvatarDefaultProps } from '../../ListItem/props/defaultProps';
|
|
@@ -135,11 +135,10 @@ const ListItemWithAvatar = props => {
|
|
|
135
135
|
})) : null);
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
-
export default ListItemWithAvatar;
|
|
139
138
|
ListItemWithAvatar.defaultProps = ListItemWithAvatarDefaultProps;
|
|
140
|
-
ListItemWithAvatar.propTypes = ListItemWithAvatar_Props;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
ListItemWithAvatar.propTypes = ListItemWithAvatar_Props;
|
|
140
|
+
const MemoizedListItemWithAvatar = /*#__PURE__*/memo(ListItemWithAvatar);
|
|
141
|
+
MemoizedListItemWithAvatar.propTypes = ListItemWithAvatar_Props;
|
|
142
|
+
MemoizedListItemWithAvatar.defaultProps = ListItemWithAvatarDefaultProps;
|
|
143
|
+
MemoizedListItemWithAvatar.displayName = 'ListItemWithAvatar';
|
|
144
|
+
export default MemoizedListItemWithAvatar;
|
|
@@ -409,8 +409,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
409
409
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
410
410
|
//up arrow
|
|
411
411
|
|
|
412
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
413
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
412
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
413
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
414
414
|
}*/
|
|
415
415
|
if (hoverIndex) {
|
|
416
416
|
this.setState({
|
|
@@ -420,9 +420,9 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
420
420
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
421
421
|
//down arrow
|
|
422
422
|
|
|
423
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
424
|
-
//disable last to first option higlight
|
|
425
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
423
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
424
|
+
//disable last to first option higlight
|
|
425
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
426
426
|
}*/
|
|
427
427
|
if (isNextOptions && suggestionsLen >= 5 && hoverIndex === suggestionsLen - 3) {
|
|
428
428
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
@@ -321,8 +321,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
321
321
|
if (suggestionsLen && isPopupOpen && keyCode === 38) {
|
|
322
322
|
//up arrow
|
|
323
323
|
|
|
324
|
-
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
325
|
-
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
324
|
+
/*if (hoverOption === 0) { //disable first to last option higlight
|
|
325
|
+
!isNextOptions && this.setState({ hoverOption: suggestionsLen - 1 });
|
|
326
326
|
}*/
|
|
327
327
|
if (hoverOption) {
|
|
328
328
|
this.setState({
|
|
@@ -332,9 +332,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
332
332
|
} else if (suggestionsLen && isPopupOpen && keyCode === 40) {
|
|
333
333
|
//down arrow
|
|
334
334
|
|
|
335
|
-
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
336
|
-
//disable last to first option higlight
|
|
337
|
-
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
335
|
+
/*else if (hoverOption === suggestionsLen - 1 || hoverOption === null) {
|
|
336
|
+
//disable last to first option higlight
|
|
337
|
+
!isNextOptions && this.setState({ hoverOption: 0 });
|
|
338
338
|
}*/
|
|
339
339
|
if (isNextOptions && suggestionsLen >= 5 && hoverOption === suggestionsLen - 3) {
|
|
340
340
|
getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
File without changes
|
package/es/v1/Radio/Radio.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/v1/Select/Select.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/v1/Switch/Switch.js
CHANGED
|
File without changes
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -2,12 +2,12 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable react/forbid-component-props */
|
|
4
4
|
|
|
5
|
-
/* eslint css-modules/no-unused-class: [2, {
|
|
6
|
-
markAsUsed: [
|
|
7
|
-
'hidden','alpha','gamma','beta','delta','special','text','maxWidth','widgetList','menuContainer','border','tabText','block','tabAlpha','alphaActive','gammaActive','betaActive','deltaActive','tabGamma','tabBeta','tabDelta','specialActive','tabSpecial',
|
|
8
|
-
'alpha_padding','alpha_border','gamma_padding','gamma_border','beta_padding','beta_border','delta_padding','delta_border','textContainer','disabled','alphaActive_border','gammaActive_border','betaActive_border','deltaActive_border'
|
|
9
|
-
]
|
|
10
|
-
}]
|
|
5
|
+
/* eslint css-modules/no-unused-class: [2, {
|
|
6
|
+
markAsUsed: [
|
|
7
|
+
'hidden','alpha','gamma','beta','delta','special','text','maxWidth','widgetList','menuContainer','border','tabText','block','tabAlpha','alphaActive','gammaActive','betaActive','deltaActive','tabGamma','tabBeta','tabDelta','specialActive','tabSpecial',
|
|
8
|
+
'alpha_padding','alpha_border','gamma_padding','gamma_border','beta_padding','beta_border','delta_padding','delta_border','textContainer','disabled','alphaActive_border','gammaActive_border','betaActive_border','deltaActive_border'
|
|
9
|
+
]
|
|
10
|
+
}]
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import Tab from './Tab';
|
|
@@ -141,9 +141,9 @@ class Tabs extends React.Component {
|
|
|
141
141
|
} = this.state;
|
|
142
142
|
|
|
143
143
|
if (prevProps.children && children) {
|
|
144
|
-
/**
|
|
145
|
-
* To recalculate the dimensions of tabs we are checking the children length.
|
|
146
|
-
* and also checking the tab id and their order.
|
|
144
|
+
/**
|
|
145
|
+
* To recalculate the dimensions of tabs we are checking the children length.
|
|
146
|
+
* and also checking the tab id and their order.
|
|
147
147
|
*/
|
|
148
148
|
let newTabKeys = [];
|
|
149
149
|
React.Children.toArray(children).forEach(child => {
|
|
@@ -316,14 +316,14 @@ class Tabs extends React.Component {
|
|
|
316
316
|
});
|
|
317
317
|
|
|
318
318
|
if (selectedTabDimension > totalDimension) {
|
|
319
|
-
/* let { align } = this.props;
|
|
320
|
-
let newDim = `${remConvert(totalDimension)}rem`;
|
|
321
|
-
let newTabs;
|
|
322
|
-
if (align === 'vertical') {
|
|
323
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
324
|
-
} else {
|
|
325
|
-
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
326
|
-
}
|
|
319
|
+
/* let { align } = this.props;
|
|
320
|
+
let newDim = `${remConvert(totalDimension)}rem`;
|
|
321
|
+
let newTabs;
|
|
322
|
+
if (align === 'vertical') {
|
|
323
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
|
|
324
|
+
} else {
|
|
325
|
+
newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
|
|
326
|
+
}
|
|
327
327
|
mainTabs = newTabs; */
|
|
328
328
|
this.setMaxDim(totalDimension);
|
|
329
329
|
}
|