@zohodesk/components 1.0.0-temp-42 → 1.0.0-temp-43
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 +3 -0
- package/es/Animation/docs/Animation__default.docs.js +2 -2
- package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/es/Appearance/dark/mode/darkMode.module.css +69 -69
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/es/Appearance/default/mode/defaultMode.module.css +158 -158
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- package/es/Avatar/Avatar.js +1 -2
- package/es/Avatar/__tests__/Avatar.spec.js +1 -0
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
- package/es/Button/__tests__/Button.spec.js +1 -0
- package/es/Buttongroup/__test__/Buttongroup.spec.js +1 -0
- package/es/Card/Card.module.css +3 -3
- package/es/Card/docs/Card__Default.docs.js +4 -4
- package/es/Card/docs/Card__Scroll.docs.js +4 -4
- package/es/DateTime/DateTime.js +3 -6
- package/es/DateTime/DateWidget.js +2 -5
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/YearView.js +5 -6
- package/es/DateTime/common.js +2 -9
- package/es/DateTime/dateFormatUtils/dateFormat.js +57 -76
- package/es/DateTime/dateFormatUtils/index.js +7 -12
- package/es/DateTime/dateFormatUtils/timeChange.js +3 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +3 -4
- package/es/DateTime/validator.js +1 -0
- package/es/Label/__tests__/Label.spec.js +2 -0
- package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
- package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
- package/es/Layout/utils.js +1 -2
- package/es/ListItem/ListItem.js +2 -0
- package/es/ListItem/ListItemWithIcon.js +2 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +10 -15
- package/es/MultiSelect/AdvancedMultiSelect.js +7 -6
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +10 -15
- package/es/MultiSelect/MultiSelect.module.css +8 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +3 -2
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +1 -2
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +8 -14
- package/es/Popup/viewPort.js +9 -14
- package/es/Provider/IdProvider.js +4 -5
- package/es/Provider/LibraryContext.js +5 -6
- package/es/Provider/NumberGenerator/NumberGenerator.js +15 -17
- package/es/Provider/ZindexProvider.js +4 -5
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +8 -11
- package/es/Responsive/ResizeComponent.js +1 -3
- package/es/Responsive/Responsive.js +9 -12
- package/es/Responsive/docs/Responsive__Custom.docs.js +44 -49
- package/es/Responsive/docs/Responsive__default.docs.js +74 -77
- package/es/Responsive/sizeObservers.js +1 -5
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -0
- package/es/RippleEffect/RippleEffect.js +7 -4
- package/es/RippleEffect/RippleEffect.module.css +3 -0
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
- package/es/Select/GroupSelect.js +1 -2
- package/es/Select/Select.js +1 -2
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Select/docs/Select__default.docs.js +1 -2
- package/es/Stencils/__tests__/Stencils.spec.js +1 -0
- package/es/Tab/Tab.js +26 -27
- package/es/Tab/TabContent.js +14 -17
- package/es/Tab/TabContentWrapper.js +14 -17
- package/es/Tab/TabWrapper.js +14 -15
- package/es/Tab/Tabs.js +1 -2
- package/es/Tab/docs/Tab__default.docs.js +1 -0
- package/es/Tag/Tag.js +10 -4
- package/es/Tag/Tag.module.css +14 -11
- package/es/Tag/docs/Tag__default.docs.js +70 -0
- package/es/TextBox/__tests__/TextBox.spec.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -0
- package/es/Textarea/__tests__/Textarea.spec.js +1 -0
- package/es/Tooltip/Tooltip.js +1 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/es/a11y/FocusScope/FocusScope.js +4 -10
- package/es/beta/FocusRing/FocusRing.js +1 -4
- package/es/common/docStyle.module.css +9 -9
- package/es/utils/Common.js +11 -31
- package/es/utils/datetime/common.js +3 -6
- package/es/utils/dropDownUtils.js +5 -6
- package/es/utils/getInitial.js +1 -3
- package/lib/Accordion/Accordion.js +3 -3
- package/lib/Accordion/AccordionItem.js +3 -3
- package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
- package/lib/Animation/Animation.js +3 -3
- package/lib/Animation/docs/Animation__default.docs.js +5 -5
- package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
- package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
- package/lib/AppContainer/AppContainer.js +3 -3
- package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
- package/lib/Appearance/dark/mode/darkMode.module.css +69 -69
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/default/mode/defaultMode.module.css +158 -158
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +4 -4
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
- package/lib/Button/Button.js +3 -3
- package/lib/Button/docs/Button__custom.docs.js +3 -3
- package/lib/Button/docs/Button__default.docs.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +3 -3
- package/lib/Card/__tests__/Card.spec.js +1 -1
- package/lib/Card/docs/Card__Custom.docs.js +3 -3
- package/lib/Card/docs/Card__Default.docs.js +7 -7
- package/lib/Card/docs/Card__Scroll.docs.js +7 -7
- package/lib/Card/index.js +7 -7
- package/lib/CheckBox/CheckBox.js +3 -3
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
- package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
- package/lib/DateTime/CalendarView.js +4 -4
- package/lib/DateTime/DateTime.js +3 -3
- package/lib/DateTime/DateTimePopupFooter.js +3 -3
- package/lib/DateTime/DateTimePopupHeader.js +3 -3
- package/lib/DateTime/DateWidget.js +3 -3
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/DaysRow.js +3 -3
- package/lib/DateTime/Time.js +3 -3
- package/lib/DateTime/YearView.js +3 -3
- package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
- package/lib/DateTime/constants.js +1 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
- package/lib/DateTime/dateFormatUtils/index.js +13 -13
- package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
- package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
- package/lib/DateTime/objectUtils.js +2 -2
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
- package/lib/DropDown/DropDown.js +4 -4
- package/lib/DropDown/DropDownHeading.js +3 -3
- package/lib/DropDown/DropDownItem.js +3 -3
- package/lib/DropDown/DropDownSearch.js +3 -3
- package/lib/DropDown/DropDownSeparator.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
- package/lib/Label/Label.js +3 -3
- package/lib/Label/docs/Label__clipped.docs.js +3 -3
- package/lib/Label/docs/Label__custom.docs.js +3 -3
- package/lib/Label/docs/Label__palette.docs.js +3 -3
- package/lib/Label/docs/Label__size.docs.js +3 -3
- package/lib/Label/docs/Label__type.docs.js +3 -3
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Container.js +1 -1
- package/lib/Layout/docs/Layout__Hidden.docs.js +4 -4
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
- package/lib/Layout/index.js +4 -4
- package/lib/Layout/utils.js +2 -2
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
- package/lib/ListItem/ListItem.js +3 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithCheckBox.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +3 -3
- package/lib/ListItem/ListItemWithRadio.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +10 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +9 -6
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +10 -7
- package/lib/MultiSelect/MultiSelect.module.css +8 -13
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +9 -6
- package/lib/MultiSelect/SelectedOptions.js +6 -5
- package/lib/MultiSelect/Suggestions.js +5 -5
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
- package/lib/PopOver/PopOver.js +4 -4
- package/lib/PopOver/PopOver.module.css +1 -1
- package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +3 -3
- package/lib/Provider/IdProvider.js +3 -3
- package/lib/Provider/LibraryContext.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
- package/lib/Provider/ZindexProvider.js +1 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
- package/lib/Provider.js +3 -3
- package/lib/Radio/Radio.js +4 -6
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Radio/docs/Radio__custom.docs.js +3 -3
- package/lib/Radio/docs/Radio__default.docs.js +3 -3
- package/lib/Responsive/CustomResponsive.js +4 -4
- package/lib/Responsive/RefWrapper.js +1 -1
- package/lib/Responsive/ResizeComponent.js +3 -3
- package/lib/Responsive/ResizeObserver.js +1 -1
- package/lib/Responsive/Responsive.js +5 -6
- package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
- package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
- package/lib/Responsive/sizeObservers.js +5 -6
- package/lib/Responsive/utils/index.js +2 -3
- package/lib/Responsive/utils/shallowCompare.js +1 -1
- package/lib/Ribbon/Ribbon.js +3 -3
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
- package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
- package/lib/RippleEffect/RippleEffect.js +7 -4
- package/lib/RippleEffect/RippleEffect.module.css +3 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +3 -3
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +10 -7
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +3 -3
- package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
- package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/docs/Switch__custom.docs.js +3 -3
- package/lib/Switch/docs/Switch__default.docs.js +3 -3
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +3 -3
- package/lib/Tab/docs/Tab__default.docs.js +3 -3
- package/lib/Tab/index.js +10 -10
- package/lib/Tag/Tag.js +13 -7
- package/lib/Tag/Tag.module.css +14 -11
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +73 -3
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
- package/lib/Tooltip/Tooltip.js +3 -3
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
- package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +5 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
- package/lib/a11y/FocusScope/FocusScope.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
- package/lib/beta/FocusRing/FocusRing.js +3 -3
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
- package/lib/common/docStyle.module.css +9 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/index.js +308 -308
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/Common.js +16 -20
- package/lib/utils/datetime/common.js +10 -10
- package/lib/utils/dropDownUtils.js +2 -2
- package/lib/utils/shallowEqual.js +1 -1
- package/package.json +5 -5
- package/preprocess/componentAppearanceColors.js +1 -1
- package/preprocess/json/componentAppearanceVariableJson.js +230 -230
- package/preprocess/json/componentThemeVariableJson.js +33 -33
- package/preprocess/json/ctaThemeVariableJson.js +38 -38
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
26
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
27
|
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
-
--zdt_multiselect_darkdelete_hover_text: var(--
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
29
|
|
|
30
30
|
/* avatar */
|
|
31
31
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
-
--zdt_avatar_white_text: var(--
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
33
|
|
|
34
34
|
/* label */
|
|
35
35
|
--zdt_label_dark_text: #d0d0d4;
|
|
36
36
|
|
|
37
37
|
/* textbox */
|
|
38
|
-
--zdt_textbox_light_text: var(--
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
39
|
|
|
40
40
|
/* dropdown */
|
|
41
|
-
--zdt_dropdown_darkheading_text: var(--
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
42
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--zdt_cta_primary_light_hover_bg: #f8d7d7;
|
|
12
12
|
--zdt_cta_primary_light_border: #f8d7d7;
|
|
13
13
|
--zdt_cta_secondary_bg: #de3535;
|
|
14
|
-
--zdt_cta_secondary_text: var(--
|
|
14
|
+
--zdt_cta_secondary_text: var(--dot_white);
|
|
15
15
|
--zdt_cta_secondary_border: #e55d5d;
|
|
16
16
|
--zdt_cta_secondary_light_border: #f8d7d7;
|
|
17
17
|
--zdt_cta_alpha_text: #de3535;
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
26
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
27
|
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
-
--zdt_multiselect_darkdelete_hover_text: var(--
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
29
|
|
|
30
30
|
/* avatar */
|
|
31
31
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
-
--zdt_avatar_white_text: var(--
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
33
|
|
|
34
34
|
/* label */
|
|
35
35
|
--zdt_label_dark_text: #d0d0d4;
|
|
36
36
|
|
|
37
37
|
/* textbox */
|
|
38
|
-
--zdt_textbox_light_text: var(--
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
39
|
|
|
40
40
|
/* dropdown */
|
|
41
|
-
--zdt_dropdown_darkheading_text: var(--
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
42
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--zdt_cta_primary_light_hover_bg: #f8eabd;
|
|
12
12
|
--zdt_cta_primary_light_border: #f8eabd;
|
|
13
13
|
--zdt_cta_secondary_bg: #e8b923;
|
|
14
|
-
--zdt_cta_secondary_text: var(--
|
|
14
|
+
--zdt_cta_secondary_text: var(--dot_black);
|
|
15
15
|
--zdt_cta_secondary_border: rgba(255, 255, 255, 0.2);
|
|
16
16
|
--zdt_cta_secondary_light_border: #f6e3a7;
|
|
17
17
|
--zdt_cta_alpha_text: #b68c07;
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
26
26
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
27
27
|
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
28
|
-
--zdt_multiselect_darkdelete_hover_text: var(--
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: var(--dot_white);
|
|
29
29
|
|
|
30
30
|
/* avatar */
|
|
31
31
|
--zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
|
|
32
|
-
--zdt_avatar_white_text: var(--
|
|
32
|
+
--zdt_avatar_white_text: var(--dot_white);
|
|
33
33
|
|
|
34
34
|
/* label */
|
|
35
35
|
--zdt_label_dark_text: #d0d0d4;
|
|
36
36
|
|
|
37
37
|
/* textbox */
|
|
38
|
-
--zdt_textbox_light_text: var(--
|
|
38
|
+
--zdt_textbox_light_text: var(--dot_white);
|
|
39
39
|
|
|
40
40
|
/* dropdown */
|
|
41
|
-
--zdt_dropdown_darkheading_text: var(--
|
|
41
|
+
--zdt_dropdown_darkheading_text: var(--dot_white);
|
|
42
42
|
}
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -93,8 +93,7 @@ export default class Avatar extends React.Component {
|
|
|
93
93
|
/* this will cause error if user name already have some space need to move firstName lastName user preference pattern*/
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
getInitialByFullName() {
|
|
97
|
-
let fullName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
96
|
+
getInitialByFullName(fullName = '') {
|
|
98
97
|
fullName = (fullName || '').trim();
|
|
99
98
|
let nameList = fullName.split(' ');
|
|
100
99
|
|
|
@@ -6,7 +6,7 @@ export default class AvatarTeam__palette extends React.Component {
|
|
|
6
6
|
render() {
|
|
7
7
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
8
8
|
style: {
|
|
9
|
-
background: 'var(--
|
|
9
|
+
background: 'var(--dot_black)',
|
|
10
10
|
display: 'inline-block'
|
|
11
11
|
}
|
|
12
12
|
}, /*#__PURE__*/React.createElement("span", {
|
package/es/Card/Card.module.css
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
.scroll {
|
|
5
|
-
/* background: var(--
|
|
5
|
+
/* background: var(--dot_white);
|
|
6
6
|
position: relative; */
|
|
7
7
|
}
|
|
8
|
-
/*
|
|
8
|
+
/*
|
|
9
9
|
.scroll::after {
|
|
10
|
-
box-shadow: 0 0 6px var(--
|
|
10
|
+
box-shadow: 0 0 6px var(--zd_dark10);
|
|
11
11
|
border-radius: 100px / 10px;
|
|
12
12
|
content: '';
|
|
13
13
|
left: var(--zd_size50);
|
|
@@ -12,15 +12,15 @@ export default class Card__Default extends Component {
|
|
|
12
12
|
isScrollAttribute: true
|
|
13
13
|
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(Box, {
|
|
14
14
|
style: {
|
|
15
|
-
color: 'var(--
|
|
16
|
-
background: 'var(--
|
|
15
|
+
color: 'var(--dot_white)',
|
|
16
|
+
background: 'var(--dot_black)'
|
|
17
17
|
}
|
|
18
18
|
}, "Header")), /*#__PURE__*/React.createElement(CardContent, {
|
|
19
19
|
isScrollAttribute: true
|
|
20
20
|
}, /*#__PURE__*/React.createElement(Box, null, "What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32. What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32. What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32.")), /*#__PURE__*/React.createElement(CardFooter, null, /*#__PURE__*/React.createElement(Box, {
|
|
21
21
|
style: {
|
|
22
|
-
color: 'var(--
|
|
23
|
-
background: 'var(--
|
|
22
|
+
color: 'var(--dot_white)',
|
|
23
|
+
background: 'var(--dot_black)'
|
|
24
24
|
}
|
|
25
25
|
}, "Footer")))));
|
|
26
26
|
}
|
|
@@ -30,8 +30,8 @@ export default class Card__Scroll extends Component {
|
|
|
30
30
|
fetchData: this.fetchData
|
|
31
31
|
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(Box, {
|
|
32
32
|
style: {
|
|
33
|
-
color: 'var(--
|
|
34
|
-
background: 'var(--
|
|
33
|
+
color: 'var(--dot_white)',
|
|
34
|
+
background: 'var(--dot_black)'
|
|
35
35
|
}
|
|
36
36
|
}, "Header")), /*#__PURE__*/React.createElement(CardContent, null, data.map((val, index) => /*#__PURE__*/React.createElement("div", {
|
|
37
37
|
key: index,
|
|
@@ -41,8 +41,8 @@ export default class Card__Scroll extends Component {
|
|
|
41
41
|
}
|
|
42
42
|
}, val))), /*#__PURE__*/React.createElement(CardFooter, null, /*#__PURE__*/React.createElement(Box, {
|
|
43
43
|
style: {
|
|
44
|
-
color: 'var(--
|
|
45
|
-
background: 'var(--
|
|
44
|
+
color: 'var(--dot_white)',
|
|
45
|
+
background: 'var(--dot_black)'
|
|
46
46
|
}
|
|
47
47
|
}, "Footer"))));
|
|
48
48
|
}
|
package/es/DateTime/DateTime.js
CHANGED
|
@@ -16,8 +16,7 @@ import { getIsEmptyValue } from '../utils/Common';
|
|
|
16
16
|
import { monthNamesDefault, monthNamesShortDefault, dayNamesDefault, dayNamesShortDefault, ampmTextDefault } from './constants';
|
|
17
17
|
import { getHourDetails } from './dateFormatUtils';
|
|
18
18
|
|
|
19
|
-
function title(date, year, month) {
|
|
20
|
-
let monthNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
19
|
+
function title(date, year, month, monthNames = []) {
|
|
21
20
|
const HeadingText = `${monthNames[month] || ''} ${year}`;
|
|
22
21
|
return HeadingText;
|
|
23
22
|
}
|
|
@@ -180,8 +179,7 @@ export default class DateTime extends React.PureComponent {
|
|
|
180
179
|
return hours;
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
handleGetSelectedDate() {
|
|
184
|
-
let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
182
|
+
handleGetSelectedDate(selectedInfo = {}) {
|
|
185
183
|
const {
|
|
186
184
|
min,
|
|
187
185
|
max,
|
|
@@ -287,8 +285,7 @@ export default class DateTime extends React.PureComponent {
|
|
|
287
285
|
}
|
|
288
286
|
}
|
|
289
287
|
|
|
290
|
-
handleChange() {
|
|
291
|
-
let selectedInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
288
|
+
handleChange(selectedInfo = {}) {
|
|
292
289
|
const {
|
|
293
290
|
onError,
|
|
294
291
|
onChange,
|
|
@@ -708,8 +708,7 @@ class DateWidgetComponent extends React.Component {
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
handleSelection() {
|
|
712
|
-
let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
711
|
+
handleSelection(focusOrder = 0) {
|
|
713
712
|
const isAllowedDateType = this.handleGetAllowedType();
|
|
714
713
|
|
|
715
714
|
if (isAllowedDateType) {
|
|
@@ -908,9 +907,7 @@ class DateWidgetComponent extends React.Component {
|
|
|
908
907
|
});
|
|
909
908
|
}
|
|
910
909
|
|
|
911
|
-
handleBlurSelectionRange() {
|
|
912
|
-
let focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
913
|
-
let oldFocusOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
910
|
+
handleBlurSelectionRange(focusOrder = '', oldFocusOrder = '') {
|
|
914
911
|
const isAllowedDateType = this.handleGetAllowedType();
|
|
915
912
|
|
|
916
913
|
if (isAllowedDateType) {
|
package/es/DateTime/YearView.js
CHANGED
|
@@ -185,12 +185,11 @@ export default class YearView extends React.PureComponent {
|
|
|
185
185
|
onSelectYear && onSelectYear(year);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
renderListItem(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
} = _ref;
|
|
188
|
+
renderListItem({
|
|
189
|
+
index,
|
|
190
|
+
style: virtualizerStyle,
|
|
191
|
+
ref
|
|
192
|
+
}) {
|
|
194
193
|
const {
|
|
195
194
|
years
|
|
196
195
|
} = this;
|
package/es/DateTime/common.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
export function bind() {
|
|
2
|
-
for (var _len = arguments.length, handlers = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3
|
-
handlers[_key] = arguments[_key];
|
|
4
|
-
}
|
|
5
|
-
|
|
1
|
+
export function bind(...handlers) {
|
|
6
2
|
handlers.forEach(handler => {
|
|
7
3
|
this[handler] = this[handler].bind(this);
|
|
8
4
|
});
|
|
9
5
|
}
|
|
10
|
-
export function formatValue() {
|
|
11
|
-
let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
12
|
-
let valueField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'id';
|
|
13
|
-
let textField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'name';
|
|
6
|
+
export function formatValue(values = [], valueField = 'id', textField = 'name') {
|
|
14
7
|
return values && values.map(value => {
|
|
15
8
|
let formattedValue = value;
|
|
16
9
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "core-js/modules/es.string.replace";
|
|
2
|
+
|
|
1
3
|
/* eslint-disable no-param-reassign */
|
|
2
4
|
|
|
3
5
|
/** * Libraries ** */
|
|
@@ -12,9 +14,7 @@ import { formatDate } from '../../utils/datetime/common';
|
|
|
12
14
|
import { defaultFormat, supportedPatterns, // patternChangeStr,
|
|
13
15
|
patternSplitStr, INCONSTANT, flags } from '../constants';
|
|
14
16
|
|
|
15
|
-
function getDateFormatString() {
|
|
16
|
-
let dateFormatArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
17
|
-
let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
17
|
+
function getDateFormatString(dateFormatArr = [], datePatternArr = []) {
|
|
18
18
|
return dateFormatArr.reduce((res, dateStr, index) => {
|
|
19
19
|
const patternStr = datePatternArr[index] || '';
|
|
20
20
|
res += dateStr + patternStr;
|
|
@@ -22,14 +22,8 @@ function getDateFormatString() {
|
|
|
22
22
|
}, '');
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function getIsValidPattern() {
|
|
26
|
-
|
|
27
|
-
let datePatternArr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
28
|
-
|
|
29
|
-
const isValueInArray = function () {
|
|
30
|
-
let possibleFormat = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
31
|
-
return possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
|
|
32
|
-
};
|
|
25
|
+
function getIsValidPattern(dateFormatArr = [], datePatternArr = []) {
|
|
26
|
+
const isValueInArray = (possibleFormat = []) => possibleFormat.some(str => dateFormatArr.indexOf(str) >= 0);
|
|
33
27
|
|
|
34
28
|
const haveDay = isValueInArray(flags.day);
|
|
35
29
|
const haveMonth = isValueInArray(flags.month);
|
|
@@ -38,14 +32,12 @@ function getIsValidPattern() {
|
|
|
38
32
|
return haveDay && haveMonth && (haveYear || !haveYear) && isValidPattern;
|
|
39
33
|
}
|
|
40
34
|
|
|
41
|
-
export function getDateFormatDetails(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
isDateTime
|
|
48
|
-
} = arguments.length > 1 ? arguments[1] : undefined;
|
|
35
|
+
export function getDateFormatDetails(dateFormat = '', {
|
|
36
|
+
isHideCurrentYear,
|
|
37
|
+
value,
|
|
38
|
+
timeZone,
|
|
39
|
+
isDateTime
|
|
40
|
+
}) {
|
|
49
41
|
let dayInfo = {};
|
|
50
42
|
let monthInfo = {};
|
|
51
43
|
let yearInfo = {};
|
|
@@ -126,11 +118,10 @@ export function getDateFormatDetails() {
|
|
|
126
118
|
};
|
|
127
119
|
}
|
|
128
120
|
|
|
129
|
-
function getDisplayFormatValue(dateVal, formatVal
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
121
|
+
function getDisplayFormatValue(dateVal, formatVal, {
|
|
122
|
+
i18nShortMonths = [],
|
|
123
|
+
i18nMonths = []
|
|
124
|
+
} = {}) {
|
|
134
125
|
const {
|
|
135
126
|
length,
|
|
136
127
|
type
|
|
@@ -151,11 +142,10 @@ function getDisplayFormatValue(dateVal, formatVal) {
|
|
|
151
142
|
return addZero(dateVal, length);
|
|
152
143
|
}
|
|
153
144
|
|
|
154
|
-
function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
} = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
145
|
+
function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder, {
|
|
146
|
+
i18nShortMonths,
|
|
147
|
+
i18nMonths
|
|
148
|
+
} = {}) {
|
|
159
149
|
const dateString = dateFormatArr.reduce((res, formatVal, index) => {
|
|
160
150
|
const {
|
|
161
151
|
type: dateFormatVal = ''
|
|
@@ -172,15 +162,11 @@ function concatDate(values, dateFormatArr, patternArr, fillPlaceHolder) {
|
|
|
172
162
|
return dateString;
|
|
173
163
|
}
|
|
174
164
|
|
|
175
|
-
export function getDateTimeString(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
i18nShortMonths,
|
|
181
|
-
i18nMonths,
|
|
182
|
-
is24Hour
|
|
183
|
-
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
165
|
+
export function getDateTimeString(values = {}, dateFormatDetails = {}, isDateTime, {
|
|
166
|
+
i18nShortMonths,
|
|
167
|
+
i18nMonths,
|
|
168
|
+
is24Hour
|
|
169
|
+
} = {}) {
|
|
184
170
|
const {
|
|
185
171
|
day,
|
|
186
172
|
month,
|
|
@@ -213,10 +199,9 @@ export function getDateTimeString() {
|
|
|
213
199
|
|
|
214
200
|
return `${dateString}${timeString}`;
|
|
215
201
|
}
|
|
216
|
-
export function getDateDetails(value, localValues, isDateTime, timeZone,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
} = _ref;
|
|
202
|
+
export function getDateDetails(value, localValues, isDateTime, timeZone, {
|
|
203
|
+
is24Hour
|
|
204
|
+
}) {
|
|
220
205
|
const {
|
|
221
206
|
day,
|
|
222
207
|
month,
|
|
@@ -266,10 +251,9 @@ export function getDateDetails(value, localValues, isDateTime, timeZone, _ref) {
|
|
|
266
251
|
|
|
267
252
|
return localValues;
|
|
268
253
|
}
|
|
269
|
-
export function getIsValidDate(values, isDateTime,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
} = _ref2;
|
|
254
|
+
export function getIsValidDate(values, isDateTime, {
|
|
255
|
+
is24Hour
|
|
256
|
+
}) {
|
|
273
257
|
const {
|
|
274
258
|
day,
|
|
275
259
|
month,
|
|
@@ -425,22 +409,20 @@ export function getSelectedDate(values, props) {
|
|
|
425
409
|
};
|
|
426
410
|
}
|
|
427
411
|
|
|
428
|
-
function getDateFormatLength(type, length
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
is24Hour
|
|
443
|
-
} = arguments.length > 3 ? arguments[3] : undefined;
|
|
412
|
+
function getDateFormatLength(type, length, formatVal = '', {
|
|
413
|
+
i18nShortMonths,
|
|
414
|
+
i18nMonths,
|
|
415
|
+
selectedValue,
|
|
416
|
+
day,
|
|
417
|
+
month,
|
|
418
|
+
year,
|
|
419
|
+
hour,
|
|
420
|
+
minute,
|
|
421
|
+
noon,
|
|
422
|
+
timeZone,
|
|
423
|
+
isDateTime,
|
|
424
|
+
is24Hour
|
|
425
|
+
}) {
|
|
444
426
|
const {
|
|
445
427
|
month: selectedMonth
|
|
446
428
|
} = getDateDetails(selectedValue, {
|
|
@@ -467,20 +449,19 @@ function getDateFormatLength(type, length) {
|
|
|
467
449
|
return length;
|
|
468
450
|
}
|
|
469
451
|
|
|
470
|
-
export function getDateFormatSelection(dateFormatDetails, isDateTime
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
452
|
+
export function getDateFormatSelection(dateFormatDetails, isDateTime, {
|
|
453
|
+
i18nShortMonths,
|
|
454
|
+
i18nMonths,
|
|
455
|
+
selectedValue,
|
|
456
|
+
day,
|
|
457
|
+
month,
|
|
458
|
+
year,
|
|
459
|
+
hour,
|
|
460
|
+
minute,
|
|
461
|
+
noon,
|
|
462
|
+
timeZone,
|
|
463
|
+
is24Hour
|
|
464
|
+
} = {}) {
|
|
484
465
|
const {
|
|
485
466
|
dateFormatArr = [],
|
|
486
467
|
patternArr = []
|
|
@@ -11,9 +11,7 @@ import { flags, INVALID_DATE } from '../constants';
|
|
|
11
11
|
export function convertYearToTwoDigit(year) {
|
|
12
12
|
return parseInt(year.toString().slice(-2));
|
|
13
13
|
}
|
|
14
|
-
export function addZero() {
|
|
15
|
-
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
16
|
-
let length = arguments.length > 1 ? arguments[1] : undefined;
|
|
14
|
+
export function addZero(value = '', length) {
|
|
17
15
|
let newValue = value.toString();
|
|
18
16
|
|
|
19
17
|
for (let i = 0; i < length; i++) {
|
|
@@ -100,9 +98,7 @@ export function getYearDetails(yearLength) {
|
|
|
100
98
|
currentYear: year
|
|
101
99
|
};
|
|
102
100
|
}
|
|
103
|
-
export function convertTwoDigitToYear() {
|
|
104
|
-
let digitValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
105
|
-
let selectedYear = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
101
|
+
export function convertTwoDigitToYear(digitValue = '', selectedYear = '') {
|
|
106
102
|
const dateObj = new Date();
|
|
107
103
|
let year = dateObj.getFullYear();
|
|
108
104
|
const digitValueStr = addZero(digitValue.toString(), 2);
|
|
@@ -195,12 +191,11 @@ export function getIsEmptyYear(value, yearLength) {
|
|
|
195
191
|
} = getYearDetails(yearLength);
|
|
196
192
|
return getIsEmptyValue(value, startPoint, endPoint);
|
|
197
193
|
}
|
|
198
|
-
export function getIsCurrentYear(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
} = _ref;
|
|
194
|
+
export function getIsCurrentYear({
|
|
195
|
+
isDateTime,
|
|
196
|
+
value,
|
|
197
|
+
timeZone
|
|
198
|
+
}) {
|
|
204
199
|
let isCurrentYear = false;
|
|
205
200
|
|
|
206
201
|
if (value && value !== INVALID_DATE) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/** * Methods ** */
|
|
2
2
|
import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getHourDetails, getMinuteDetails, getNoonDetails, getIsNoonValueTyped, getIsEmptyHour } from './index';
|
|
3
3
|
import { getIsEmptyValue } from '../../utils/Common';
|
|
4
|
-
export function getChangedHour(values, event, focusOrders, keyActions
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
4
|
+
export function getChangedHour(values, event, focusOrders, keyActions, {
|
|
5
|
+
is24Hour = false
|
|
6
|
+
} = {}) {
|
|
8
7
|
const {
|
|
9
8
|
keyCode,
|
|
10
9
|
which
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** * Methods ** */
|
|
2
2
|
import { getIsNewValueType, getIsNumberTyped, getIsDeleteTyped, getDayEnd, convertYearToTwoDigit, getYearDetails, convertTwoDigitToYear, getIsEmptyYear } from './index';
|
|
3
|
-
export function getChangedYear(values, event, focusOrders, keyActions,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} = _ref;
|
|
3
|
+
export function getChangedYear(values, event, focusOrders, keyActions, {
|
|
4
|
+
yearInfo
|
|
5
|
+
}) {
|
|
7
6
|
const {
|
|
8
7
|
keyCode,
|
|
9
8
|
which
|
package/es/DateTime/validator.js
CHANGED
|
@@ -40,7 +40,7 @@ export default class Layout__three_Column extends React.Component {
|
|
|
40
40
|
hidden: ['xs']
|
|
41
41
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42
42
|
style: {
|
|
43
|
-
background: 'var(--
|
|
43
|
+
background: 'var(--dot_black)',
|
|
44
44
|
width: '220px',
|
|
45
45
|
height: '100%'
|
|
46
46
|
}
|
package/es/Layout/utils.js
CHANGED
|
@@ -15,8 +15,7 @@ export function createProps(propTypes, props, classNames) {
|
|
|
15
15
|
export function isInteger(value) {
|
|
16
16
|
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
|
|
17
17
|
}
|
|
18
|
-
export function setProps(childProps, props) {
|
|
19
|
-
let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
18
|
+
export function setProps(childProps, props, values = {}) {
|
|
20
19
|
Object.keys(values).map(value => {
|
|
21
20
|
if (props[value]) {
|
|
22
21
|
childProps[values[value]] = props[value];
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "core-js/modules/es.string.replace";
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
/**** Libraries ****/
|