@zohodesk/components 1.6.0 → 1.6.2
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 +18 -1
- package/_react-cli.config.js +24 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +330 -321
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +15 -9
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +466 -466
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +34 -34
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +33 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +330 -321
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +15 -9
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +466 -466
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +34 -34
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +33 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +330 -321
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +15 -9
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +466 -466
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +34 -34
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +33 -29
- package/assets/Contrast/darkContrastLightness.module.css +36 -36
- package/assets/Contrast/lightContrastLightness.module.css +36 -36
- package/assets/Contrast/pureDarkContrastLightness.module.css +36 -36
- package/cbt.config.js +41 -0
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +30 -30
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.js +0 -0
- package/es/Buttongroup/Buttongroup.module.css +5 -3
- package/es/Card/Card.js +0 -0
- package/es/CheckBox/CheckBox.js +11 -11
- package/es/ColorSelect/ColorMultiSelect.js +4 -2
- package/es/ColorSelect/ColorSingleSelect.js +4 -2
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +4 -3
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/es/ColorSelect/_shared/ColoredTag/ColoredTag.js +4 -2
- package/es/ColorSelect/_shared/helpers/renderHelpers.js +6 -4
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +5 -4
- package/es/DateTime/DateWidget.js +5 -4
- package/es/DateTime/Time.js +11 -12
- package/es/DateTime/YearView.js +0 -0
- 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 +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +4 -4
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +4 -4
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/Label/Label.js +7 -7
- package/es/Label/Label.module.css +5 -5
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +30 -19
- package/es/ListItem/ListItemWithAvatar.js +10 -11
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +11 -8
- package/es/MultiSelect/EmptyState.js +16 -2
- package/es/MultiSelect/MultiSelect.js +10 -8
- package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/propTypes.js +3 -0
- package/es/Popup/Popup.js +0 -0
- package/es/Provider/LibraryContext.js +11 -3
- package/es/Radio/Radio.js +11 -11
- package/es/Radio/Radio.module.css +9 -8
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +25 -20
- package/es/Select/GroupSelect.js +13 -12
- package/es/Select/Select.js +14 -12
- package/es/Select/SelectWithAvatar.js +13 -12
- package/es/Select/SelectWithIcon.js +10 -8
- package/es/Select/props/propTypes.js +3 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +19 -20
- package/es/Tag/Tag.js +11 -12
- package/es/Tag/Tag.module.css +18 -17
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.js +7 -6
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/common.module.css +2 -2
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/deprecated/Switch/Switch.js +8 -8
- package/es/shared/ArrowIcon/ArrowIcon.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.js +6 -6
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/es/v1/Label/Label.js +98 -33
- package/es/v1/Label/__tests__/Label.spec.js +214 -0
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/es/v1/Label/constants/index.js +8 -0
- package/es/v1/Label/css/Label_v1.module.css +42 -0
- package/es/v1/Label/css/cssJSLogic.js +44 -0
- package/es/v1/Label/props/defaultProps.js +14 -9
- package/es/v1/Label/props/propTypes.js +34 -14
- package/es/v1/Switch/Switch.js +7 -6
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.js +0 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
- package/lib/Button/Button.js +0 -0
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.js +0 -0
- package/lib/Buttongroup/Buttongroup.module.css +5 -3
- package/lib/Card/Card.js +0 -0
- package/lib/CheckBox/CheckBox.js +0 -0
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/YearView.js +0 -0
- 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 +6 -3
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +4 -4
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +4 -4
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +5 -5
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +0 -0
- package/lib/ListItem/ListItem.module.css +30 -19
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -0
- package/lib/MultiSelect/EmptyState.js +17 -2
- package/lib/MultiSelect/MultiSelect.js +2 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +3 -0
- package/lib/Popup/Popup.js +0 -0
- package/lib/Provider/LibraryContext.js +11 -3
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +9 -8
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +25 -20
- package/lib/Select/GroupSelect.js +2 -0
- package/lib/Select/Select.js +2 -0
- package/lib/Select/SelectWithAvatar.js +2 -0
- package/lib/Select/SelectWithIcon.js +2 -0
- package/lib/Select/props/propTypes.js +3 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Switch/Switch.js +0 -0
- package/lib/Tag/Tag.js +0 -0
- package/lib/Tag/Tag.module.css +18 -17
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/common.module.css +2 -2
- package/lib/deprecated/Switch/Switch.js +0 -0
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/lib/v1/Label/Label.js +104 -36
- package/lib/v1/Label/__tests__/Label.spec.js +221 -0
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
- package/lib/v1/Label/constants/index.js +16 -0
- package/lib/v1/Label/css/Label_v1.module.css +42 -0
- package/lib/v1/Label/css/cssJSLogic.js +38 -0
- package/lib/v1/Label/props/defaultProps.js +16 -11
- package/lib/v1/Label/props/propTypes.js +36 -16
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/package.json +15 -20
- package/es/v1/Accordion/Accordion.js +0 -66
- package/es/v1/Accordion/AccordionItem.js +0 -57
- package/es/v1/Accordion/index.js +0 -2
- package/es/v1/Accordion/props/defaultProps.js +0 -12
- package/es/v1/Accordion/props/propTypes.js +0 -33
- package/es/v1/Animation/Animation.js +0 -45
- package/es/v1/Animation/props/defaultProps.js +0 -7
- package/es/v1/Animation/props/propTypes.js +0 -12
- package/es/v1/Animation/utils.js +0 -83
- package/es/v1/AppContainer/AppContainer.js +0 -115
- package/es/v1/AppContainer/props/defaultProps.js +0 -10
- package/es/v1/AppContainer/props/propTypes.js +0 -17
- package/es/v1/Avatar/Avatar.js +0 -139
- package/es/v1/Avatar/props/defaultProps.js +0 -17
- package/es/v1/Avatar/props/propTypes.js +0 -26
- package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
- package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
- package/es/v1/AvatarTeam/props/propTypes.js +0 -27
- package/es/v1/Button/Button.js +0 -67
- package/es/v1/Button/props/defaultProps.js +0 -18
- package/es/v1/Button/props/propTypes.js +0 -28
- package/es/v1/Buttongroup/Buttongroup.js +0 -31
- package/es/v1/Buttongroup/props/defaultProps.js +0 -6
- package/es/v1/Buttongroup/props/propTypes.js +0 -9
- package/es/v1/Card/Card.js +0 -237
- package/es/v1/Card/index.js +0 -4
- package/es/v1/Card/props/defaultProps.js +0 -25
- package/es/v1/Card/props/propTypes.js +0 -48
- package/es/v1/CheckBox/CheckBox.js +0 -161
- package/es/v1/CheckBox/props/defaultProps.js +0 -18
- package/es/v1/CheckBox/props/propTypes.js +0 -41
- package/es/v1/DateTime/CalendarView.js +0 -254
- package/es/v1/DateTime/DateTime.js +0 -779
- package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
- package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
- package/es/v1/DateTime/DateWidget.js +0 -1134
- package/es/v1/DateTime/DaysRow.js +0 -32
- package/es/v1/DateTime/Time.js +0 -181
- package/es/v1/DateTime/YearView.js +0 -264
- package/es/v1/DateTime/index.js +0 -1
- package/es/v1/DateTime/props/defaultProps.js +0 -63
- package/es/v1/DateTime/props/propTypes.js +0 -206
- package/es/v1/DropBox/DropBox.js +0 -79
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
- package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
- package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
- package/es/v1/DropBox/props/defaultProps.js +0 -14
- package/es/v1/DropBox/props/propTypes.js +0 -16
- package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
- package/es/v1/DropDown/DropDown.js +0 -53
- package/es/v1/DropDown/DropDownHeading.js +0 -36
- package/es/v1/DropDown/DropDownItem.js +0 -56
- package/es/v1/DropDown/DropDownSearch.js +0 -58
- package/es/v1/DropDown/DropDownSeparator.js +0 -12
- package/es/v1/DropDown/props/defaultProps.js +0 -21
- package/es/v1/DropDown/props/propTypes.js +0 -66
- package/es/v1/Heading/Heading.js +0 -35
- package/es/v1/Heading/props/defaultProps.js +0 -5
- package/es/v1/Heading/props/propTypes.js +0 -12
- package/es/v1/Layout/Box.js +0 -115
- package/es/v1/Layout/Container.js +0 -132
- package/es/v1/Layout/index.js +0 -2
- package/es/v1/Layout/props/defaultProps.js +0 -16
- package/es/v1/Layout/props/propTypes.js +0 -46
- package/es/v1/ListItem/ListContainer.js +0 -104
- package/es/v1/ListItem/ListItem.js +0 -123
- package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
- package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
- package/es/v1/ListItem/ListItemWithIcon.js +0 -126
- package/es/v1/ListItem/ListItemWithRadio.js +0 -105
- package/es/v1/ListItem/index.js +0 -6
- package/es/v1/ListItem/props/defaultProps.js +0 -97
- package/es/v1/ListItem/props/propTypes.js +0 -202
- package/es/v1/Modal/Modal.js +0 -125
- package/es/v1/Modal/props/defaultProps.js +0 -3
- package/es/v1/Modal/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
- package/es/v1/MultiSelect/EmptyState.js +0 -64
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
- package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
- package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
- package/es/v1/MultiSelect/MultiSelect.js +0 -1119
- package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
- package/es/v1/MultiSelect/SelectedOptions.js +0 -84
- package/es/v1/MultiSelect/Suggestions.js +0 -141
- package/es/v1/MultiSelect/index.js +0 -4
- package/es/v1/MultiSelect/props/defaultProps.js +0 -165
- package/es/v1/MultiSelect/props/propTypes.js +0 -322
- package/es/v1/PopOver/PopOver.js +0 -176
- package/es/v1/PopOver/props/defaultProps.js +0 -7
- package/es/v1/PopOver/props/propTypes.js +0 -53
- package/es/v1/Popup/Popup.js +0 -644
- package/es/v1/Radio/Radio.js +0 -130
- package/es/v1/Radio/props/defaultProps.js +0 -15
- package/es/v1/Radio/props/propTypes.js +0 -40
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
- package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
- package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
- package/es/v1/Ribbon/Ribbon.js +0 -33
- package/es/v1/Ribbon/props/defaultProps.js +0 -9
- package/es/v1/Ribbon/props/propTypes.js +0 -11
- package/es/v1/RippleEffect/RippleEffect.js +0 -25
- package/es/v1/RippleEffect/props/defaultProps.js +0 -10
- package/es/v1/RippleEffect/props/propTypes.js +0 -12
- package/es/v1/Select/GroupSelect.js +0 -818
- package/es/v1/Select/Select.js +0 -975
- package/es/v1/Select/SelectWithAvatar.js +0 -356
- package/es/v1/Select/SelectWithIcon.js +0 -545
- package/es/v1/Select/index.js +0 -4
- package/es/v1/Select/props/defaultProps.js +0 -126
- package/es/v1/Select/props/propTypes.js +0 -297
- package/es/v1/Stencils/Stencils.js +0 -26
- package/es/v1/Stencils/props/defaultProps.js +0 -6
- package/es/v1/Stencils/props/propTypes.js +0 -7
- package/es/v1/Tab/Tab.js +0 -106
- package/es/v1/Tab/TabContent.js +0 -30
- package/es/v1/Tab/TabContentWrapper.js +0 -33
- package/es/v1/Tab/TabWrapper.js +0 -55
- package/es/v1/Tab/Tabs.js +0 -619
- package/es/v1/Tab/index.js +0 -5
- package/es/v1/Tab/props/defaultProps.js +0 -51
- package/es/v1/Tab/props/propTypes.js +0 -117
- package/es/v1/Tab/v1Tab.module.css +0 -100
- package/es/v1/Tab/v1TabContent.module.css +0 -4
- package/es/v1/Tab/v1Tabs.module.css +0 -167
- package/es/v1/Tag/Tag.js +0 -140
- package/es/v1/Tag/props/defaultProps.js +0 -15
- package/es/v1/Tag/props/propTypes.js +0 -36
- package/es/v1/TextBox/TextBox.js +0 -160
- package/es/v1/TextBox/props/defaultProps.js +0 -20
- package/es/v1/TextBox/props/propTypes.js +0 -56
- package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
- package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
- package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
- package/es/v1/Textarea/Textarea.js +0 -100
- package/es/v1/Textarea/props/defaultProps.js +0 -17
- package/es/v1/Textarea/props/propTypes.js +0 -31
- package/es/v1/Tooltip/Tooltip.js +0 -530
- package/es/v1/Tooltip/props/defaultProps.js +0 -4
- package/es/v1/Tooltip/props/propTypes.js +0 -5
- package/es/v1/Typography/Typography.js +0 -38
- package/es/v1/Typography/css/cssJSLogic.js +0 -56
- package/es/v1/Typography/css/v1_Typography.module.css +0 -380
- package/es/v1/Typography/props/defaultProps.js +0 -8
- package/es/v1/Typography/props/propTypes.js +0 -27
- package/es/v1/Typography/utils/index.js +0 -50
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
- package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
- package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
- package/es/v1/semantic/Button/Button.js +0 -53
- package/es/v1/semantic/Button/props/defaultProps.js +0 -12
- package/es/v1/semantic/Button/props/propTypes.js +0 -22
- package/es/v1/semantic/index.js +0 -1
- package/lib/v1/Accordion/Accordion.js +0 -98
- package/lib/v1/Accordion/AccordionItem.js +0 -68
- package/lib/v1/Accordion/index.js +0 -23
- package/lib/v1/Accordion/props/defaultProps.js +0 -20
- package/lib/v1/Accordion/props/propTypes.js +0 -45
- package/lib/v1/Animation/Animation.js +0 -61
- package/lib/v1/Animation/props/defaultProps.js +0 -14
- package/lib/v1/Animation/props/propTypes.js +0 -23
- package/lib/v1/Animation/utils.js +0 -94
- package/lib/v1/AppContainer/AppContainer.js +0 -146
- package/lib/v1/AppContainer/props/defaultProps.js +0 -17
- package/lib/v1/AppContainer/props/propTypes.js +0 -28
- package/lib/v1/Avatar/Avatar.js +0 -191
- package/lib/v1/Avatar/props/defaultProps.js +0 -24
- package/lib/v1/Avatar/props/propTypes.js +0 -37
- package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
- package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
- package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
- package/lib/v1/Button/Button.js +0 -82
- package/lib/v1/Button/props/defaultProps.js +0 -27
- package/lib/v1/Button/props/propTypes.js +0 -40
- package/lib/v1/Buttongroup/Buttongroup.js +0 -44
- package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
- package/lib/v1/Buttongroup/props/propTypes.js +0 -20
- package/lib/v1/Card/Card.js +0 -269
- package/lib/v1/Card/index.js +0 -37
- package/lib/v1/Card/props/defaultProps.js +0 -35
- package/lib/v1/Card/props/propTypes.js +0 -62
- package/lib/v1/CheckBox/CheckBox.js +0 -172
- package/lib/v1/CheckBox/props/defaultProps.js +0 -25
- package/lib/v1/CheckBox/props/propTypes.js +0 -52
- package/lib/v1/DateTime/CalendarView.js +0 -322
- package/lib/v1/DateTime/DateTime.js +0 -877
- package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
- package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
- package/lib/v1/DateTime/DateWidget.js +0 -1163
- package/lib/v1/DateTime/DaysRow.js +0 -81
- package/lib/v1/DateTime/Time.js +0 -270
- package/lib/v1/DateTime/YearView.js +0 -325
- package/lib/v1/DateTime/index.js +0 -15
- package/lib/v1/DateTime/props/defaultProps.js +0 -76
- package/lib/v1/DateTime/props/propTypes.js +0 -238
- package/lib/v1/DropBox/DropBox.js +0 -109
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
- package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
- package/lib/v1/DropBox/props/defaultProps.js +0 -30
- package/lib/v1/DropBox/props/propTypes.js +0 -35
- package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
- package/lib/v1/DropDown/DropDown.js +0 -74
- package/lib/v1/DropDown/DropDownHeading.js +0 -47
- package/lib/v1/DropDown/DropDownItem.js +0 -75
- package/lib/v1/DropDown/DropDownSearch.js +0 -77
- package/lib/v1/DropDown/DropDownSeparator.js +0 -24
- package/lib/v1/DropDown/props/defaultProps.js +0 -31
- package/lib/v1/DropDown/props/propTypes.js +0 -87
- package/lib/v1/Heading/Heading.js +0 -53
- package/lib/v1/Heading/props/defaultProps.js +0 -12
- package/lib/v1/Heading/props/propTypes.js +0 -23
- package/lib/v1/Layout/Box.js +0 -128
- package/lib/v1/Layout/Container.js +0 -145
- package/lib/v1/Layout/index.js +0 -23
- package/lib/v1/Layout/props/defaultProps.js +0 -24
- package/lib/v1/Layout/props/propTypes.js +0 -58
- package/lib/v1/ListItem/ListContainer.js +0 -128
- package/lib/v1/ListItem/ListItem.js +0 -138
- package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
- package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
- package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
- package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
- package/lib/v1/ListItem/index.js +0 -55
- package/lib/v1/ListItem/props/defaultProps.js +0 -109
- package/lib/v1/ListItem/props/propTypes.js +0 -196
- package/lib/v1/Modal/Modal.js +0 -166
- package/lib/v1/Modal/props/defaultProps.js +0 -10
- package/lib/v1/Modal/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
- package/lib/v1/MultiSelect/EmptyState.js +0 -112
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
- package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
- package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
- package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
- package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
- package/lib/v1/MultiSelect/Suggestions.js +0 -196
- package/lib/v1/MultiSelect/index.js +0 -39
- package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
- package/lib/v1/MultiSelect/props/propTypes.js +0 -350
- package/lib/v1/PopOver/PopOver.js +0 -197
- package/lib/v1/PopOver/props/defaultProps.js +0 -15
- package/lib/v1/PopOver/props/propTypes.js +0 -66
- package/lib/v1/Popup/Popup.js +0 -715
- package/lib/v1/Radio/Radio.js +0 -141
- package/lib/v1/Radio/props/defaultProps.js +0 -22
- package/lib/v1/Radio/props/propTypes.js +0 -51
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
- package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
- package/lib/v1/Ribbon/Ribbon.js +0 -44
- package/lib/v1/Ribbon/props/defaultProps.js +0 -16
- package/lib/v1/Ribbon/props/propTypes.js +0 -22
- package/lib/v1/RippleEffect/RippleEffect.js +0 -40
- package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
- package/lib/v1/RippleEffect/props/propTypes.js +0 -23
- package/lib/v1/Select/GroupSelect.js +0 -894
- package/lib/v1/Select/Select.js +0 -1025
- package/lib/v1/Select/SelectWithAvatar.js +0 -406
- package/lib/v1/Select/SelectWithIcon.js +0 -607
- package/lib/v1/Select/index.js +0 -39
- package/lib/v1/Select/props/defaultProps.js +0 -125
- package/lib/v1/Select/props/propTypes.js +0 -319
- package/lib/v1/Stencils/Stencils.js +0 -43
- package/lib/v1/Stencils/props/defaultProps.js +0 -13
- package/lib/v1/Stencils/props/propTypes.js +0 -18
- package/lib/v1/Tab/Tab.js +0 -132
- package/lib/v1/Tab/TabContent.js +0 -42
- package/lib/v1/Tab/TabContentWrapper.js +0 -47
- package/lib/v1/Tab/TabWrapper.js +0 -89
- package/lib/v1/Tab/Tabs.js +0 -688
- package/lib/v1/Tab/index.js +0 -47
- package/lib/v1/Tab/props/defaultProps.js +0 -62
- package/lib/v1/Tab/props/propTypes.js +0 -132
- package/lib/v1/Tab/v1Tab.module.css +0 -100
- package/lib/v1/Tab/v1TabContent.module.css +0 -4
- package/lib/v1/Tab/v1Tabs.module.css +0 -167
- package/lib/v1/Tag/Tag.js +0 -160
- package/lib/v1/Tag/props/defaultProps.js +0 -22
- package/lib/v1/Tag/props/propTypes.js +0 -47
- package/lib/v1/TextBox/TextBox.js +0 -175
- package/lib/v1/TextBox/props/defaultProps.js +0 -27
- package/lib/v1/TextBox/props/propTypes.js +0 -62
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
- package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
- package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
- package/lib/v1/Textarea/Textarea.js +0 -118
- package/lib/v1/Textarea/props/defaultProps.js +0 -24
- package/lib/v1/Textarea/props/propTypes.js +0 -42
- package/lib/v1/Tooltip/Tooltip.js +0 -599
- package/lib/v1/Tooltip/props/defaultProps.js +0 -11
- package/lib/v1/Tooltip/props/propTypes.js +0 -16
- package/lib/v1/Typography/Typography.js +0 -56
- package/lib/v1/Typography/css/cssJSLogic.js +0 -48
- package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
- package/lib/v1/Typography/props/defaultProps.js +0 -15
- package/lib/v1/Typography/props/propTypes.js +0 -38
- package/lib/v1/Typography/utils/index.js +0 -59
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
- package/lib/v1/semantic/Button/Button.js +0 -63
- package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
- package/lib/v1/semantic/Button/props/propTypes.js +0 -33
- package/lib/v1/semantic/index.js +0 -15
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = require("./props/propTypes");
|
|
11
|
-
|
|
12
|
-
var _defaultProps = require("./props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _Label = _interopRequireDefault(require("../Label/Label"));
|
|
15
|
-
|
|
16
|
-
var _Layout = require("../Layout");
|
|
17
|
-
|
|
18
|
-
var _CssProvider = _interopRequireDefault(require("../../Provider/CssProvider"));
|
|
19
|
-
|
|
20
|
-
var _CheckBoxModule = _interopRequireDefault(require("../../CheckBox/CheckBox.module.css"));
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
var CheckBox = function CheckBox(props) {
|
|
27
|
-
var id = props.id,
|
|
28
|
-
checked = props.checked,
|
|
29
|
-
disabled = props.disabled,
|
|
30
|
-
isReadOnly = props.isReadOnly,
|
|
31
|
-
disabledTitle = props.disabledTitle,
|
|
32
|
-
title = props.title,
|
|
33
|
-
palette = props.palette,
|
|
34
|
-
text = props.text,
|
|
35
|
-
size = props.size,
|
|
36
|
-
labelPalette = props.labelPalette,
|
|
37
|
-
labelSize = props.labelSize,
|
|
38
|
-
isFilled = props.isFilled,
|
|
39
|
-
isClipped = props.isClipped,
|
|
40
|
-
getRef = props.getRef,
|
|
41
|
-
getContainerRef = props.getContainerRef,
|
|
42
|
-
variant = props.variant,
|
|
43
|
-
active = props.active,
|
|
44
|
-
dataId = props.dataId,
|
|
45
|
-
name = props.name,
|
|
46
|
-
activeStyle = props.activeStyle,
|
|
47
|
-
a11y = props.a11y,
|
|
48
|
-
customClass = props.customClass,
|
|
49
|
-
customProps = props.customProps,
|
|
50
|
-
dataSelectorId = props.dataSelectorId;
|
|
51
|
-
|
|
52
|
-
function onChange(e) {
|
|
53
|
-
var onChange = props.onChange;
|
|
54
|
-
onChange && onChange(!checked, e);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function handleGetContainerRef(ele) {
|
|
58
|
-
getContainerRef && getContainerRef(ele, id);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var _customProps$CheckBox = customProps.CheckBoxProps,
|
|
62
|
-
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
63
|
-
_customProps$LabelPro = customProps.LabelProps,
|
|
64
|
-
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
|
|
65
|
-
var _customClass$customCh = customClass.customCheckBox,
|
|
66
|
-
customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
|
|
67
|
-
_customClass$customLa = customClass.customLabel,
|
|
68
|
-
customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa,
|
|
69
|
-
_customClass$customCB = customClass.customCBoxSize,
|
|
70
|
-
customCBoxSize = _customClass$customCB === void 0 ? '' : _customClass$customCB,
|
|
71
|
-
_customClass$customTi = customClass.customTickSize,
|
|
72
|
-
customTickSize = _customClass$customTi === void 0 ? '' : _customClass$customTi;
|
|
73
|
-
var accessMode = isReadOnly ? _CheckBoxModule["default"].readonly : disabled ? (0, _CssProvider["default"])('isDisabled') : _CheckBoxModule["default"].pointer;
|
|
74
|
-
var toolTip = disabled ? disabledTitle : title ? title : null;
|
|
75
|
-
var ariaLabel = a11y.ariaLabel,
|
|
76
|
-
ariaLabelledby = a11y.ariaLabelledby,
|
|
77
|
-
ariaHidden = a11y.ariaHidden,
|
|
78
|
-
_a11y$role = a11y.role,
|
|
79
|
-
role = _a11y$role === void 0 ? 'checkbox' : _a11y$role,
|
|
80
|
-
_a11y$ariaChecked = a11y.ariaChecked,
|
|
81
|
-
ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked;
|
|
82
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
83
|
-
dataId: dataId,
|
|
84
|
-
isCover: false,
|
|
85
|
-
isInline: text ? false : true,
|
|
86
|
-
alignBox: "row",
|
|
87
|
-
align: "vertical",
|
|
88
|
-
className: "".concat(_CheckBoxModule["default"].container, " ").concat(accessMode, " ").concat(isReadOnly || disabled ? '' : "".concat(_CheckBoxModule["default"][palette]), "\n ").concat(checked ? "".concat(_CheckBoxModule["default"]["checked".concat(palette)]) : '', " ").concat(customCheckBox),
|
|
89
|
-
"data-title": toolTip,
|
|
90
|
-
onClick: isReadOnly || disabled ? null : onChange,
|
|
91
|
-
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
92
|
-
"aria-checked": ariaChecked,
|
|
93
|
-
eleRef: handleGetContainerRef,
|
|
94
|
-
role: role,
|
|
95
|
-
"aria-label": ariaLabel,
|
|
96
|
-
"aria-labelledby": ariaLabelledby,
|
|
97
|
-
"aria-hidden": ariaHidden,
|
|
98
|
-
"data-selector-id": dataSelectorId || id
|
|
99
|
-
}, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
100
|
-
className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '')
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
102
|
-
type: "hidden",
|
|
103
|
-
id: id,
|
|
104
|
-
ref: getRef,
|
|
105
|
-
name: name
|
|
106
|
-
}), /*#__PURE__*/_react["default"].createElement("label", {
|
|
107
|
-
className: "".concat(_CheckBoxModule["default"].checkbox, " ").concat(accessMode, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize)
|
|
108
|
-
}, activeStyle == 'tick' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("svg", {
|
|
109
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
-
viewBox: "0 0 40 40"
|
|
111
|
-
}, checked ? /*#__PURE__*/_react["default"].createElement("path", {
|
|
112
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
-
d: "M39,20V35a4,4,0,0,1-4,4H5a4,4,0,0,1-4-4V5A4,4,0,0,1,5,1H28.44",
|
|
114
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
115
|
-
}) : /*#__PURE__*/_react["default"].createElement("rect", {
|
|
116
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
-
x: "1",
|
|
118
|
-
y: "1",
|
|
119
|
-
width: "38",
|
|
120
|
-
height: "38",
|
|
121
|
-
rx: "4",
|
|
122
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
123
|
-
})), checked ? /*#__PURE__*/_react["default"].createElement("svg", {
|
|
124
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
125
|
-
viewBox: "0 0 44 44",
|
|
126
|
-
className: "".concat(_CheckBoxModule["default"].tick, " ").concat(_CheckBoxModule["default"]["".concat(size, "tick")], " ").concat(customTickSize, " ").concat(disabled ? (0, _CssProvider["default"])('isDisabled') : '')
|
|
127
|
-
}, /*#__PURE__*/_react["default"].createElement("polyline", {
|
|
128
|
-
points: "12.56 19 19.61 26.06 40.39 5.28",
|
|
129
|
-
className: "".concat(_CheckBoxModule["default"].tickPath, " ").concat(_CheckBoxModule["default"].checkedtickPath)
|
|
130
|
-
})) : null) : /*#__PURE__*/_react["default"].createElement("svg", {
|
|
131
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
132
|
-
viewBox: "0 0 40 40"
|
|
133
|
-
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
|
134
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
-
x: "1",
|
|
136
|
-
y: "1",
|
|
137
|
-
width: "38",
|
|
138
|
-
height: "38",
|
|
139
|
-
rx: "4",
|
|
140
|
-
className: "".concat(_CheckBoxModule["default"].cbBox)
|
|
141
|
-
}), checked ? /*#__PURE__*/_react["default"].createElement("line", {
|
|
142
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
143
|
-
className: "".concat(_CheckBoxModule["default"].linePath, " ").concat(_CheckBoxModule["default"].cbBox),
|
|
144
|
-
x1: "11.47",
|
|
145
|
-
y1: "20",
|
|
146
|
-
x2: "28.53",
|
|
147
|
-
y2: "20"
|
|
148
|
-
}) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
149
|
-
flexible: true,
|
|
150
|
-
className: _CheckBoxModule["default"].text
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
152
|
-
text: text,
|
|
153
|
-
palette: disabled ? 'disable' : labelPalette,
|
|
154
|
-
id: id,
|
|
155
|
-
size: labelSize,
|
|
156
|
-
type: "title",
|
|
157
|
-
clipped: isClipped,
|
|
158
|
-
variant: variant,
|
|
159
|
-
customClass: "".concat(active && !disabled ? "".concat(_CheckBoxModule["default"]["active".concat(palette, "Label")]) : '', "\n ").concat(checked && active ? "".concat(_CheckBoxModule["default"]["checked".concat(palette, "Label")]) : '', "\n ").concat(accessMode, " ").concat(customLabel),
|
|
160
|
-
title: toolTip ? toolTip : text
|
|
161
|
-
}, LabelProps))));
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
var _default = CheckBox;
|
|
165
|
-
exports["default"] = _default;
|
|
166
|
-
CheckBox.defaultProps = _defaultProps.defaultProps;
|
|
167
|
-
CheckBox.propTypes = _propTypes.propTypes; // if (__DOCS__) {
|
|
168
|
-
// CheckBox.docs = {
|
|
169
|
-
// componentGroup: 'Form Elements',
|
|
170
|
-
// folderName: 'Style Guide'
|
|
171
|
-
// };
|
|
172
|
-
// }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.defaultProps = void 0;
|
|
7
|
-
var defaultProps = {
|
|
8
|
-
checked: false,
|
|
9
|
-
disabled: false,
|
|
10
|
-
isReadOnly: false,
|
|
11
|
-
active: false,
|
|
12
|
-
labelPalette: 'default',
|
|
13
|
-
labelSize: 'medium',
|
|
14
|
-
palette: 'primary',
|
|
15
|
-
size: 'medium',
|
|
16
|
-
isFilled: true,
|
|
17
|
-
variant: 'default',
|
|
18
|
-
dataId: 'checkBox',
|
|
19
|
-
activeStyle: 'tick',
|
|
20
|
-
customClass: {},
|
|
21
|
-
a11y: {},
|
|
22
|
-
isClipped: true,
|
|
23
|
-
customProps: {}
|
|
24
|
-
};
|
|
25
|
-
exports.defaultProps = defaultProps;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.propTypes = void 0;
|
|
7
|
-
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var propTypes = {
|
|
13
|
-
active: _propTypes["default"].bool,
|
|
14
|
-
activeStyle: _propTypes["default"].oneOf(['tick', 'minus']),
|
|
15
|
-
checked: _propTypes["default"].bool,
|
|
16
|
-
dataId: _propTypes["default"].string,
|
|
17
|
-
dataSelectorId: _propTypes["default"].string,
|
|
18
|
-
disabled: _propTypes["default"].bool,
|
|
19
|
-
disabledTitle: _propTypes["default"].string,
|
|
20
|
-
getRef: _propTypes["default"].func,
|
|
21
|
-
getContainerRef: _propTypes["default"].func,
|
|
22
|
-
id: _propTypes["default"].string,
|
|
23
|
-
isFilled: _propTypes["default"].bool,
|
|
24
|
-
isClipped: _propTypes["default"].bool,
|
|
25
|
-
isReadOnly: _propTypes["default"].bool,
|
|
26
|
-
labelPalette: _propTypes["default"].oneOf(['default', 'primary', 'secondary', 'danger', 'mandatory']),
|
|
27
|
-
labelSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
28
|
-
name: _propTypes["default"].string,
|
|
29
|
-
onChange: _propTypes["default"].func,
|
|
30
|
-
palette: _propTypes["default"].oneOf(['primary', 'danger']),
|
|
31
|
-
size: _propTypes["default"].oneOf(['small', 'medium']),
|
|
32
|
-
text: _propTypes["default"].string,
|
|
33
|
-
title: _propTypes["default"].string,
|
|
34
|
-
variant: _propTypes["default"].oneOf(['default', 'primary']),
|
|
35
|
-
customClass: _propTypes["default"].shape({
|
|
36
|
-
customCheckBox: _propTypes["default"].string,
|
|
37
|
-
customLabel: _propTypes["default"].string,
|
|
38
|
-
customCBoxSize: _propTypes["default"].string,
|
|
39
|
-
customTickSize: _propTypes["default"].string
|
|
40
|
-
}),
|
|
41
|
-
a11y: _propTypes["default"].shape({
|
|
42
|
-
ariaLabel: _propTypes["default"].string,
|
|
43
|
-
ariaLabelledby: _propTypes["default"].string,
|
|
44
|
-
ariaHidden: _propTypes["default"].bool,
|
|
45
|
-
ariaChecked: _propTypes["default"].bool
|
|
46
|
-
}),
|
|
47
|
-
customProps: _propTypes["default"].shape({
|
|
48
|
-
CheckBoxProps: _propTypes["default"].object,
|
|
49
|
-
LabelProps: _propTypes["default"].object
|
|
50
|
-
})
|
|
51
|
-
};
|
|
52
|
-
exports.propTypes = propTypes;
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.Span = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _propTypes = require("./props/propTypes");
|
|
13
|
-
|
|
14
|
-
var _defaultProps = require("./props/defaultProps");
|
|
15
|
-
|
|
16
|
-
var _Layout = require("../Layout");
|
|
17
|
-
|
|
18
|
-
var _DateTimeModule = _interopRequireDefault(require("../../DateTime/DateTime.module.css"));
|
|
19
|
-
|
|
20
|
-
var _common = require("../../utils/datetime/common");
|
|
21
|
-
|
|
22
|
-
var _index = require("../../DateTime/dateFormatUtils/index");
|
|
23
|
-
|
|
24
|
-
var _DaysRow = _interopRequireDefault(require("./DaysRow"));
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
-
|
|
28
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
30
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
-
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
|
-
|
|
34
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
-
|
|
36
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
-
|
|
38
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
|
-
|
|
40
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
|
-
|
|
42
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
-
|
|
44
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
|
-
|
|
46
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
-
|
|
48
|
-
/* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */
|
|
49
|
-
var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
50
|
-
_inherits(CalendarView, _React$PureComponent);
|
|
51
|
-
|
|
52
|
-
var _super = _createSuper(CalendarView);
|
|
53
|
-
|
|
54
|
-
function CalendarView(props) {
|
|
55
|
-
var _this;
|
|
56
|
-
|
|
57
|
-
_classCallCheck(this, CalendarView);
|
|
58
|
-
|
|
59
|
-
_this = _super.call(this, props);
|
|
60
|
-
_this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
_createClass(CalendarView, [{
|
|
65
|
-
key: "handleSelect",
|
|
66
|
-
value: function handleSelect(day, month, year, e) {
|
|
67
|
-
var onSelect = this.props.onSelect;
|
|
68
|
-
onSelect(day, month, year, e);
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
key: "render",
|
|
72
|
-
value: function render() {
|
|
73
|
-
var _this2 = this;
|
|
74
|
-
|
|
75
|
-
var _this$props = this.props,
|
|
76
|
-
date = _this$props.date,
|
|
77
|
-
year = _this$props.year,
|
|
78
|
-
month = _this$props.month,
|
|
79
|
-
dataId = _this$props.dataId,
|
|
80
|
-
needBorder = _this$props.needBorder,
|
|
81
|
-
dayNames = _this$props.dayNames,
|
|
82
|
-
dayNamesShort = _this$props.dayNamesShort,
|
|
83
|
-
todayMonth = _this$props.todayMonth,
|
|
84
|
-
todayDate = _this$props.todayDate,
|
|
85
|
-
todayYear = _this$props.todayYear,
|
|
86
|
-
startDate = _this$props.startDate,
|
|
87
|
-
endDate = _this$props.endDate,
|
|
88
|
-
weekStartDay = _this$props.weekStartDay,
|
|
89
|
-
holidays = _this$props.holidays;
|
|
90
|
-
var userSeeDate = new Date(year, month, 1);
|
|
91
|
-
var userSeeDay = (userSeeDate.getDay() - weekStartDay + dayNames.length) % dayNames.length + 1;
|
|
92
|
-
var userSeeYear = userSeeDate.getFullYear();
|
|
93
|
-
var userSeeMonth = userSeeDate.getMonth();
|
|
94
|
-
var monthEnd = (0, _common.getMonthEnd)(month, year);
|
|
95
|
-
var lastMonth = 11;
|
|
96
|
-
var firstMonth = 0; // let noOfRow = 5;
|
|
97
|
-
// if (
|
|
98
|
-
// (monthEnd === 31 && userSeeDay >= 6) ||
|
|
99
|
-
// (monthEnd === 30 && userSeeDay === 7)
|
|
100
|
-
// ) {
|
|
101
|
-
// noOfRow = 6;
|
|
102
|
-
// } else if (monthEnd === 28 && userSeeDay === 1) {
|
|
103
|
-
// noOfRow = 4;
|
|
104
|
-
// }
|
|
105
|
-
|
|
106
|
-
var incremday = 1;
|
|
107
|
-
var incremleti = 1;
|
|
108
|
-
var isSelectedDay = false;
|
|
109
|
-
var isToday = false;
|
|
110
|
-
|
|
111
|
-
var rows = function () {
|
|
112
|
-
var rowArr = [];
|
|
113
|
-
|
|
114
|
-
for (var j = 1; j <= 6; j++) {
|
|
115
|
-
var dayArr = [];
|
|
116
|
-
var output = null;
|
|
117
|
-
|
|
118
|
-
for (var i = 1; i <= 7; i++) {
|
|
119
|
-
var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid); // if (i === 1) {
|
|
120
|
-
|
|
121
|
-
if (holidays.includes(i - 1)) {
|
|
122
|
-
tdclass += " ".concat(_DateTimeModule["default"].holiday);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if (incremleti >= userSeeDay && incremday <= monthEnd) {
|
|
126
|
-
if (parseInt(date) === incremday && parseInt(month) === userSeeMonth && parseInt(year) === userSeeYear) {
|
|
127
|
-
isSelectedDay = true;
|
|
128
|
-
} else if (todayDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear) {
|
|
129
|
-
isToday = true;
|
|
130
|
-
isSelectedDay = false;
|
|
131
|
-
} else {
|
|
132
|
-
isSelectedDay = false;
|
|
133
|
-
isToday = false;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
output = /*#__PURE__*/_react["default"].createElement(Span, {
|
|
137
|
-
i: i,
|
|
138
|
-
isActive: isSelectedDay,
|
|
139
|
-
tdclass: tdclass,
|
|
140
|
-
handleSelect: _this2.handleSelect,
|
|
141
|
-
incremday: incremday,
|
|
142
|
-
userSeeMonth: userSeeMonth,
|
|
143
|
-
userSeeYear: userSeeYear,
|
|
144
|
-
dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_date"),
|
|
145
|
-
isToday: isToday,
|
|
146
|
-
startDate: startDate,
|
|
147
|
-
endDate: endDate
|
|
148
|
-
});
|
|
149
|
-
incremday++;
|
|
150
|
-
} else if (incremleti < userSeeDay) {
|
|
151
|
-
var prevMonth = userSeeMonth - 1;
|
|
152
|
-
var prevYear = userSeeYear;
|
|
153
|
-
|
|
154
|
-
if (userSeeMonth === firstMonth) {
|
|
155
|
-
prevMonth = lastMonth;
|
|
156
|
-
prevYear = userSeeYear - 1;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
var prevMonthEnd = (0, _common.getMonthEnd)(prevMonth, prevYear);
|
|
160
|
-
var prevDate = prevMonthEnd - (userSeeDay - 1) + incremleti; // isSelectedDay =
|
|
161
|
-
|
|
162
|
-
prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false; // isToday = prevDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
163
|
-
|
|
164
|
-
output = /*#__PURE__*/_react["default"].createElement(Span, {
|
|
165
|
-
i: i //isActive={isSelectedDay}
|
|
166
|
-
,
|
|
167
|
-
tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
|
|
168
|
-
handleSelect: _this2.handleSelect,
|
|
169
|
-
incremday: prevDate,
|
|
170
|
-
userSeeMonth: prevMonth,
|
|
171
|
-
userSeeYear: prevYear,
|
|
172
|
-
dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate") // isToday={isToday}
|
|
173
|
-
,
|
|
174
|
-
startDate: startDate,
|
|
175
|
-
endDate: endDate
|
|
176
|
-
});
|
|
177
|
-
} else if (incremleti > monthEnd) {
|
|
178
|
-
var nextMonth = userSeeMonth + 1;
|
|
179
|
-
var nextYear = userSeeYear;
|
|
180
|
-
|
|
181
|
-
if (userSeeMonth === lastMonth) {
|
|
182
|
-
nextMonth = firstMonth;
|
|
183
|
-
nextYear = userSeeYear + 1;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
var nextDate = incremleti - (userSeeDay - 1) - monthEnd; // isSelectedDay =
|
|
187
|
-
|
|
188
|
-
nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false; // isToday = nextDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
|
|
189
|
-
|
|
190
|
-
output = /*#__PURE__*/_react["default"].createElement(Span, {
|
|
191
|
-
i: i // isActive={isSelectedDay}
|
|
192
|
-
,
|
|
193
|
-
tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
|
|
194
|
-
handleSelect: _this2.handleSelect,
|
|
195
|
-
incremday: nextDate,
|
|
196
|
-
userSeeMonth: nextMonth,
|
|
197
|
-
userSeeYear: nextYear,
|
|
198
|
-
dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate") //isToday={isToday}
|
|
199
|
-
,
|
|
200
|
-
startDate: startDate,
|
|
201
|
-
endDate: endDate
|
|
202
|
-
});
|
|
203
|
-
} else {
|
|
204
|
-
output = /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
205
|
-
key: i,
|
|
206
|
-
className: "".concat(_DateTimeModule["default"].grid)
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
incremleti++;
|
|
211
|
-
dayArr.push(output);
|
|
212
|
-
}
|
|
213
|
-
/* eslint-disable react/forbid-component-props */
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
rowArr.push( /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
217
|
-
key: j,
|
|
218
|
-
alignBox: "row",
|
|
219
|
-
align: "center",
|
|
220
|
-
isCover: false,
|
|
221
|
-
className: _DateTimeModule["default"].dateRow
|
|
222
|
-
}, dayArr));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
return rowArr;
|
|
226
|
-
}();
|
|
227
|
-
|
|
228
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_DaysRow["default"], {
|
|
229
|
-
dayNames: dayNames,
|
|
230
|
-
dayNamesShort: dayNamesShort,
|
|
231
|
-
ariaLabel: dayNamesShort,
|
|
232
|
-
holidays: holidays
|
|
233
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
|
-
"data-id": "".concat(dataId, "_dateContainer"),
|
|
235
|
-
"data-test-id": "".concat(dataId, "_dateContainer"),
|
|
236
|
-
className: "".concat(_DateTimeModule["default"].dateContainer, " ").concat(needBorder ? _DateTimeModule["default"].separator : '')
|
|
237
|
-
}, rows));
|
|
238
|
-
}
|
|
239
|
-
}]);
|
|
240
|
-
|
|
241
|
-
return CalendarView;
|
|
242
|
-
}(_react["default"].PureComponent);
|
|
243
|
-
|
|
244
|
-
exports["default"] = CalendarView;
|
|
245
|
-
CalendarView.propTypes = _propTypes.CalendarView_propTypes;
|
|
246
|
-
CalendarView.defaultProps = _defaultProps.CalendarView_defaultProps;
|
|
247
|
-
|
|
248
|
-
var Span = /*#__PURE__*/function (_React$PureComponent2) {
|
|
249
|
-
_inherits(Span, _React$PureComponent2);
|
|
250
|
-
|
|
251
|
-
var _super2 = _createSuper(Span);
|
|
252
|
-
|
|
253
|
-
function Span(props) {
|
|
254
|
-
var _this3;
|
|
255
|
-
|
|
256
|
-
_classCallCheck(this, Span);
|
|
257
|
-
|
|
258
|
-
_this3 = _super2.call(this, props);
|
|
259
|
-
_this3.handleSelectChild = _this3.handleSelectChild.bind(_assertThisInitialized(_this3));
|
|
260
|
-
return _this3;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
_createClass(Span, [{
|
|
264
|
-
key: "handleSelectChild",
|
|
265
|
-
value: function handleSelectChild(e) {
|
|
266
|
-
var _this$props2 = this.props,
|
|
267
|
-
handleSelect = _this$props2.handleSelect,
|
|
268
|
-
incremday = _this$props2.incremday,
|
|
269
|
-
userSeeMonth = _this$props2.userSeeMonth,
|
|
270
|
-
userSeeYear = _this$props2.userSeeYear;
|
|
271
|
-
handleSelect(incremday, userSeeMonth, userSeeYear, e);
|
|
272
|
-
}
|
|
273
|
-
}, {
|
|
274
|
-
key: "render",
|
|
275
|
-
value: function render() {
|
|
276
|
-
var _this$props3 = this.props,
|
|
277
|
-
tdclass = _this$props3.tdclass,
|
|
278
|
-
incremday = _this$props3.incremday,
|
|
279
|
-
i = _this$props3.i,
|
|
280
|
-
dataId = _this$props3.dataId,
|
|
281
|
-
isActive = _this$props3.isActive,
|
|
282
|
-
isToday = _this$props3.isToday,
|
|
283
|
-
userSeeMonth = _this$props3.userSeeMonth,
|
|
284
|
-
userSeeYear = _this$props3.userSeeYear,
|
|
285
|
-
startDate = _this$props3.startDate,
|
|
286
|
-
endDate = _this$props3.endDate;
|
|
287
|
-
var userSeeDate = new Date(userSeeYear, userSeeMonth, incremday);
|
|
288
|
-
var startDateRange, endDateRange;
|
|
289
|
-
|
|
290
|
-
if (startDate && endDate) {
|
|
291
|
-
startDateRange = new Date(startDate);
|
|
292
|
-
endDateRange = new Date(endDate);
|
|
293
|
-
} else if (!startDate && endDate) {
|
|
294
|
-
startDateRange = new Date((0, _index.getYearDetails)(4).startPoint, 0, 1);
|
|
295
|
-
endDateRange = new Date(endDate);
|
|
296
|
-
} else if (!endDate && startDate) {
|
|
297
|
-
startDateRange = new Date(startDate);
|
|
298
|
-
endDateRange = new Date((0, _index.getYearDetails)(4).endPoint, 11, 31);
|
|
299
|
-
} else {
|
|
300
|
-
startDateRange = new Date((0, _index.getYearDetails)(4).startPoint, 0, 1);
|
|
301
|
-
endDateRange = new Date((0, _index.getYearDetails)(4).endPoint, 11, 31);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
startDateRange = new Date(startDateRange.getFullYear(), startDateRange.getMonth(), startDateRange.getDate());
|
|
305
|
-
endDateRange = new Date(endDateRange.getFullYear(), endDateRange.getMonth(), endDateRange.getDate());
|
|
306
|
-
var isActiveDate = startDateRange <= userSeeDate && endDateRange >= userSeeDate;
|
|
307
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
308
|
-
dataId: dataId,
|
|
309
|
-
className: "".concat(tdclass, " ").concat(isActive && isActiveDate ? _DateTimeModule["default"].active : '', " ").concat(isToday ? _DateTimeModule["default"].today : '', " ").concat(!isActiveDate ? _DateTimeModule["default"].inActiveDate : ''),
|
|
310
|
-
key: i,
|
|
311
|
-
onClick: isActiveDate ? this.handleSelectChild : undefined,
|
|
312
|
-
"aria-label": incremday
|
|
313
|
-
}, incremday);
|
|
314
|
-
}
|
|
315
|
-
}]);
|
|
316
|
-
|
|
317
|
-
return Span;
|
|
318
|
-
}(_react["default"].PureComponent);
|
|
319
|
-
|
|
320
|
-
exports.Span = Span;
|
|
321
|
-
Span.propTypes = _propTypes.Span_propTypes;
|
|
322
|
-
Span.defaultProps = _defaultProps.Span_defaultProps;
|