@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,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -142,7 +144,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
142
144
|
}
|
|
143
145
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
144
146
|
flexible: true
|
|
145
|
-
}, /*#__PURE__*/React.createElement(TextBox, {
|
|
147
|
+
}, /*#__PURE__*/React.createElement(TextBox, _extends({}, this.props, {
|
|
146
148
|
dataId: dataId,
|
|
147
149
|
size: size,
|
|
148
150
|
variant: variant,
|
|
@@ -170,7 +172,7 @@ export default class TextBoxIcon extends React.Component {
|
|
|
170
172
|
isScrollPrevent: isScrollPrevent,
|
|
171
173
|
customClass: customTextBox,
|
|
172
174
|
customProps: TextBoxProps
|
|
173
|
-
})), /*#__PURE__*/React.createElement(Box, {
|
|
175
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
174
176
|
className: `${style.iconContainer} ${customTBoxIcon}`
|
|
175
177
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
176
178
|
alignBox: "row"
|
package/es/Textarea/Textarea.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -90,12 +92,12 @@ export default class Textarea extends React.Component {
|
|
|
90
92
|
|
|
91
93
|
const isEditable = !(isReadOnly || isDisabled);
|
|
92
94
|
let classList = needAppearance ? `${style.container} ${size !== 'default' ? style[size] : ''} ${!rows && size === 'default' ? style.defaultHeight : ''} ${!cols ? style.defaultWidth : ''} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes[resize]] : style[resizes.none]} ${animated && size !== 'default' ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isEditable && isFocus ? style.active : ''}` : `${style.basic}`;
|
|
93
|
-
return /*#__PURE__*/React.createElement("textarea", {
|
|
95
|
+
return /*#__PURE__*/React.createElement("textarea", _extends({
|
|
94
96
|
"aria-label": ariaLabel,
|
|
95
97
|
"aria-labelledby": ariaLabelledby,
|
|
96
98
|
className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
|
|
97
|
-
placeholder: placeHolder
|
|
98
|
-
|
|
99
|
+
placeholder: placeHolder
|
|
100
|
+
}, options, {
|
|
99
101
|
"data-id": dataId,
|
|
100
102
|
"data-test-id": dataId,
|
|
101
103
|
maxLength: maxLength,
|
|
@@ -108,9 +110,8 @@ export default class Textarea extends React.Component {
|
|
|
108
110
|
id: htmlId,
|
|
109
111
|
"data-selector-id": dataSelectorId,
|
|
110
112
|
rows: rows,
|
|
111
|
-
cols: cols
|
|
112
|
-
|
|
113
|
-
});
|
|
113
|
+
cols: cols
|
|
114
|
+
}, customAttributes));
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
--textarea_border_color: none;
|
|
5
5
|
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
|
-
--textarea_font_size:
|
|
7
|
+
--textarea_font_size: 14px;
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
9
|
-
--textarea_padding:
|
|
9
|
+
--textarea_padding: 2px 0;
|
|
10
10
|
--textarea_height: auto;
|
|
11
11
|
--textarea_width: auto;
|
|
12
12
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.defaultHeight{
|
|
97
|
-
--textarea_height:
|
|
97
|
+
--textarea_height: 30px;
|
|
98
98
|
}
|
|
99
99
|
.defaultWidth {
|
|
100
100
|
--textarea_width: 100%;
|
|
@@ -104,39 +104,39 @@
|
|
|
104
104
|
vertical-align: middle;
|
|
105
105
|
}
|
|
106
106
|
.xsmall {
|
|
107
|
-
--textarea_font_size:
|
|
108
|
-
--textarea_padding:
|
|
109
|
-
--textarea_height:
|
|
107
|
+
--textarea_font_size: 14px;
|
|
108
|
+
--textarea_padding: 4px 0 2px;
|
|
109
|
+
--textarea_height: 28px;
|
|
110
110
|
--textarea_line_height: 1.3572;
|
|
111
111
|
}
|
|
112
112
|
.xmedium {
|
|
113
|
-
--textarea_font_size:
|
|
114
|
-
--textarea_padding:
|
|
115
|
-
--textarea_height:
|
|
113
|
+
--textarea_font_size: 13px;
|
|
114
|
+
--textarea_padding: 4px 0 2px;
|
|
115
|
+
--textarea_height: 25px;
|
|
116
116
|
--textarea_line_height: 1.3077;
|
|
117
117
|
}
|
|
118
118
|
.small{
|
|
119
|
-
--textarea_height:
|
|
120
|
-
--textarea_padding:
|
|
119
|
+
--textarea_height: 30px;
|
|
120
|
+
--textarea_padding: 2px 0;
|
|
121
121
|
}
|
|
122
122
|
.smallanimated:focus,
|
|
123
123
|
.xsmallanimated:focus,
|
|
124
124
|
.xmediumanimated:focus {
|
|
125
|
-
--textarea_height:
|
|
125
|
+
--textarea_height: 70px;
|
|
126
126
|
}
|
|
127
127
|
.medium {
|
|
128
|
-
--textarea_height:
|
|
129
|
-
--textarea_padding:
|
|
128
|
+
--textarea_height: 88px;
|
|
129
|
+
--textarea_padding: 2px;
|
|
130
130
|
}
|
|
131
131
|
.large {
|
|
132
|
-
--textarea_height:
|
|
133
|
-
--textarea_padding:
|
|
132
|
+
--textarea_height: 45px;
|
|
133
|
+
--textarea_padding: 2px;
|
|
134
134
|
}
|
|
135
135
|
.largeanimated:focus {
|
|
136
|
-
--textarea_height:
|
|
136
|
+
--textarea_height: 220px;
|
|
137
137
|
}
|
|
138
138
|
.xlarge {
|
|
139
|
-
--textarea_height:
|
|
139
|
+
--textarea_height: 184px;
|
|
140
140
|
}
|
|
141
141
|
.default {
|
|
142
142
|
font-weight: var(--zd-fw-normal);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -121,15 +123,14 @@ export default class VelocityAnimationGroup extends React.Component {
|
|
|
121
123
|
display: 'none',
|
|
122
124
|
complete: onExitComplete ? this.handleExitComplete : undefined
|
|
123
125
|
};
|
|
124
|
-
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, {
|
|
126
|
+
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, _extends({
|
|
125
127
|
enter: enterAnimation,
|
|
126
128
|
leave: exitAnimation,
|
|
127
129
|
component: component && component,
|
|
128
130
|
runOnMount: runOnMount,
|
|
129
131
|
enterHideStyle: enterHideStyle,
|
|
130
|
-
enterShowStyle: enterShowStyle
|
|
131
|
-
|
|
132
|
-
}, isActive ? children : null);
|
|
132
|
+
enterShowStyle: enterShowStyle
|
|
133
|
+
}, childProps), isActive ? children : null);
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*Avatar common Sizes*/
|
|
2
2
|
.varClass {
|
|
3
3
|
/* avatar size default variables */
|
|
4
|
-
--avatar_width:
|
|
5
|
-
--avatar_height:
|
|
4
|
+
--avatar_width: 34px;
|
|
5
|
+
--avatar_height: 34px;
|
|
6
6
|
}
|
|
7
7
|
.small,
|
|
8
8
|
.xsmall,
|
|
@@ -16,34 +16,34 @@
|
|
|
16
16
|
height: var(--avatar_height);
|
|
17
17
|
}
|
|
18
18
|
.small {
|
|
19
|
-
--avatar_height:
|
|
20
|
-
--avatar_width:
|
|
19
|
+
--avatar_height: 22px;
|
|
20
|
+
--avatar_width: 22px;
|
|
21
21
|
}
|
|
22
22
|
.xxsmall {
|
|
23
|
-
--avatar_height:
|
|
24
|
-
--avatar_width:
|
|
23
|
+
--avatar_height: 18px;
|
|
24
|
+
--avatar_width: 18px;
|
|
25
25
|
}
|
|
26
26
|
.xsmall {
|
|
27
|
-
--avatar_height:
|
|
28
|
-
--avatar_width:
|
|
27
|
+
--avatar_height: 30px;
|
|
28
|
+
--avatar_width: 30px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.medium {
|
|
32
|
-
--avatar_height:
|
|
33
|
-
--avatar_width:
|
|
32
|
+
--avatar_height: 34px;
|
|
33
|
+
--avatar_width: 34px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.xmedium {
|
|
37
|
-
--avatar_height:
|
|
38
|
-
--avatar_width:
|
|
37
|
+
--avatar_height: 40px;
|
|
38
|
+
--avatar_width: 40px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.large {
|
|
42
|
-
--avatar_height:
|
|
43
|
-
--avatar_width:
|
|
42
|
+
--avatar_height: 60px;
|
|
43
|
+
--avatar_width: 60px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.xlarge {
|
|
47
|
-
--avatar_height:
|
|
48
|
-
--avatar_width:
|
|
47
|
+
--avatar_height: 80px;
|
|
48
|
+
--avatar_width: 80px;
|
|
49
49
|
}
|
|
@@ -526,12 +526,12 @@
|
|
|
526
526
|
|
|
527
527
|
.fitContWidth {
|
|
528
528
|
width: fit-content ;
|
|
529
|
-
width:
|
|
529
|
+
width: undefined ;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
.fitContHeight {
|
|
533
533
|
height: fit-content ;
|
|
534
|
-
height:
|
|
534
|
+
height: undefined ;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
.whiteSpace_normal {
|
|
@@ -11,14 +11,12 @@ let RefElement = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
11
11
|
isChildrenRestrictionNeeded = true,
|
|
12
12
|
isActive
|
|
13
13
|
} = props;
|
|
14
|
-
return isChildrenRestrictionNeeded ? isActive ? renderChildren ? renderChildren(ref) : /*#__PURE__*/React.createElement(Element,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})
|
|
21
|
-
});
|
|
14
|
+
return isChildrenRestrictionNeeded ? isActive ? renderChildren ? renderChildren(ref) : /*#__PURE__*/React.createElement(Element, Object.assign({}, elementProps, {
|
|
15
|
+
forwardRef: ref
|
|
16
|
+
})) : null : renderChildren ? renderChildren(ref, isActive) : /*#__PURE__*/React.createElement(Element, Object.assign({}, elementProps, {
|
|
17
|
+
isActive,
|
|
18
|
+
forwardRef: ref
|
|
19
|
+
}));
|
|
22
20
|
});
|
|
23
21
|
RefElement.propTypes = RefElement_propTypes;
|
|
24
22
|
export { RefElement };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -43,7 +45,7 @@ const Switch = props => {
|
|
|
43
45
|
customLabel = ''
|
|
44
46
|
} = customClass;
|
|
45
47
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
46
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
48
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
47
49
|
align: "vertical",
|
|
48
50
|
isCover: false,
|
|
49
51
|
alignBox: "row",
|
|
@@ -52,9 +54,8 @@ const Switch = props => {
|
|
|
52
54
|
"data-title": disabled ? disableTitle : title,
|
|
53
55
|
"aria-checked": checked,
|
|
54
56
|
role: "switch",
|
|
55
|
-
dataSelectorId: dataSelectorId
|
|
56
|
-
|
|
57
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
dataSelectorId: dataSelectorId
|
|
58
|
+
}, SwitchProps), /*#__PURE__*/React.createElement(Box, {
|
|
58
59
|
className: `${style[size]} ${customSwitchSize}`
|
|
59
60
|
}, /*#__PURE__*/React.createElement("input", {
|
|
60
61
|
type: "checkbox",
|
|
@@ -72,16 +73,15 @@ const Switch = props => {
|
|
|
72
73
|
"data-test-id": dataId,
|
|
73
74
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
74
75
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
75
|
-
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
76
|
+
})), text && /*#__PURE__*/React.createElement(Label, _extends({
|
|
76
77
|
text: text,
|
|
77
78
|
palette: labelPalette,
|
|
78
79
|
id: id,
|
|
79
80
|
size: labelSize,
|
|
80
81
|
type: "subtitle",
|
|
81
82
|
onClick: !disabled || !isReadOnly ? onChange : null,
|
|
82
|
-
customClass: customLabel
|
|
83
|
-
|
|
84
|
-
}));
|
|
83
|
+
customClass: customLabel
|
|
84
|
+
}, LabelProps)));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
Switch.defaultProps = defaultProps;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { Container } from "../../Layout";
|
|
3
5
|
import Icon from '@zohodesk/icons/es/Icon';
|
|
@@ -29,17 +31,15 @@ const ArrowIcon = props => {
|
|
|
29
31
|
isActive,
|
|
30
32
|
isReadOnly,
|
|
31
33
|
isDisabled
|
|
32
|
-
}) : /*#__PURE__*/React.createElement(Container, {
|
|
34
|
+
}) : /*#__PURE__*/React.createElement(Container, _extends({
|
|
33
35
|
isInline: true,
|
|
34
36
|
isCover: false,
|
|
35
37
|
align: "both",
|
|
36
|
-
"aria-hidden": true
|
|
37
|
-
|
|
38
|
-
...a11yAttributes,
|
|
39
|
-
...customProps,
|
|
38
|
+
"aria-hidden": true
|
|
39
|
+
}, tagAttributes, a11yAttributes, customProps, {
|
|
40
40
|
dataId: `${dataId}_downIcon`,
|
|
41
41
|
className: `${style.arrowIcon} ${isRotated ? style.rotated : ''} ${isActive ? style.active : ''} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readonly : ''} ${containerClass}`
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
42
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
43
43
|
name: "ZD-down",
|
|
44
44
|
size: iconSize,
|
|
45
45
|
iconClass: iconClass
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import propTypes from "./props/propTypes";
|
|
3
5
|
import defaultProps from "./props/defaultProps";
|
|
@@ -26,19 +28,17 @@ function InputFieldLine(props) {
|
|
|
26
28
|
} = props;
|
|
27
29
|
const borderClass = style[`border_${border}`] || '';
|
|
28
30
|
const borderColorClass = style[`borderColor_${borderColor}`] || '';
|
|
29
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
31
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
30
32
|
alignBox: "row",
|
|
31
|
-
isCover: false
|
|
32
|
-
|
|
33
|
-
...a11yAttributes,
|
|
34
|
-
...customProps,
|
|
33
|
+
isCover: false
|
|
34
|
+
}, tagAttributes, a11yAttributes, customProps, {
|
|
35
35
|
"data-title": title,
|
|
36
36
|
dataId: dataId,
|
|
37
37
|
onClick: onClick,
|
|
38
38
|
onKeyDown: onKeyDown,
|
|
39
39
|
scroll: size != 'auto' ? 'vertical' : undefined,
|
|
40
40
|
className: `${style.varClass} ${style.customContainer} ${size != 'auto' ? style[size] : ''} ${hasPadding && size != 'auto' ? style[`padding_${size}`] : ''} ${borderClass} ${isDisabled ? style.disabled : isReadOnly ? hasEffect ? style.effect : style.readonly : style.effect} ${border !== 'none' ? `${borderColorClass} ${style.hasBorder}` : ''} ${isActive && !(isDisabled || isReadOnly) ? style.active : ''} ${customClass}`
|
|
41
|
-
}, children);
|
|
41
|
+
}), children);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
InputFieldLine.propTypes = propTypes;
|
package/es/utils/Common.js
CHANGED
|
File without changes
|
|
File without changes
|
package/es/v1/Label/Label.js
CHANGED
|
@@ -1,40 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react'; // props
|
|
4
|
+
|
|
5
|
+
import defaultProps from "./props/defaultProps";
|
|
6
|
+
import propTypes from "./props/propTypes"; // methods
|
|
7
|
+
|
|
8
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
9
|
+
import { renderNode } from '@zohodesk/utils'; // hoc
|
|
10
|
+
|
|
11
|
+
import { withComponentRegistrar } from '@zohodesk/dotkit/es/react/ComponentRegistry'; // constants
|
|
12
|
+
|
|
13
|
+
import { DISPLAY_MODE, FONT_SIZE } from "./constants"; // components
|
|
14
|
+
|
|
15
|
+
import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
16
|
+
import Typography from "../../Typography/Typography"; // css
|
|
17
|
+
|
|
18
|
+
import style from "./css/Label_v1.module.css";
|
|
19
|
+
|
|
20
|
+
const Label = props => {
|
|
7
21
|
const {
|
|
8
|
-
text,
|
|
9
|
-
type,
|
|
10
|
-
palette,
|
|
11
|
-
size,
|
|
12
|
-
clipped,
|
|
13
22
|
htmlFor,
|
|
14
|
-
title,
|
|
15
23
|
onClick,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
text,
|
|
25
|
+
customId,
|
|
26
|
+
testId,
|
|
27
|
+
tagAttributes,
|
|
28
|
+
a11yAttributes,
|
|
29
|
+
customProps,
|
|
30
|
+
isRequired,
|
|
31
|
+
requiredType,
|
|
32
|
+
isClipped,
|
|
33
|
+
size,
|
|
34
|
+
fontWeight,
|
|
35
|
+
layout,
|
|
36
|
+
renderRightPlaceholderNode,
|
|
37
|
+
renderLeftPlaceholderNode,
|
|
38
|
+
i18nKeys
|
|
22
39
|
} = props;
|
|
23
40
|
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
41
|
+
container: tagAttributes_container,
|
|
42
|
+
label: tagAttributes_label
|
|
43
|
+
} = tagAttributes;
|
|
44
|
+
const {
|
|
45
|
+
container: a11yAttributes_container,
|
|
46
|
+
label: a11yAttributes_label
|
|
47
|
+
} = a11yAttributes;
|
|
48
|
+
const {
|
|
49
|
+
container: customProps_container,
|
|
50
|
+
label: customProps_label
|
|
51
|
+
} = customProps;
|
|
52
|
+
const {
|
|
53
|
+
requiredText: i18n_requiredText = 'Required'
|
|
54
|
+
} = i18nKeys;
|
|
55
|
+
const {
|
|
56
|
+
labelClass,
|
|
57
|
+
requiredClass,
|
|
58
|
+
containerClass
|
|
59
|
+
} = cssJSLogic({
|
|
60
|
+
props,
|
|
61
|
+
style
|
|
62
|
+
});
|
|
63
|
+
const a11yAttributes_requiredText = {
|
|
64
|
+
'aria-hidden': 'true'
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const renderRequired = () => /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
+
$ui_tagName: "span",
|
|
69
|
+
$ui_className: requiredClass,
|
|
70
|
+
$a11yAttributes_text: a11yAttributes_requiredText,
|
|
71
|
+
$ui_size: FONT_SIZE[size],
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$i18n_dataTitle: ""
|
|
74
|
+
}, requiredType === 'text' ? `(${i18n_requiredText})` : '*');
|
|
75
|
+
|
|
76
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, customProps_container, {
|
|
77
|
+
$tagAttributes_container: { ...tagAttributes_container,
|
|
78
|
+
'data-selector-id': customId
|
|
79
|
+
},
|
|
80
|
+
$ui_displayMode: DISPLAY_MODE[layout],
|
|
81
|
+
$ui_alignItems: "center",
|
|
82
|
+
$a11yAttributes_container: a11yAttributes_container,
|
|
83
|
+
testId: testId,
|
|
84
|
+
customId: customId,
|
|
85
|
+
$ui_className: containerClass
|
|
86
|
+
}), renderNode(renderLeftPlaceholderNode), /*#__PURE__*/React.createElement(Typography, _extends({}, customProps_label, {
|
|
87
|
+
$tagAttributes_text: { ...tagAttributes_label,
|
|
88
|
+
htmlFor,
|
|
89
|
+
onClick
|
|
90
|
+
},
|
|
91
|
+
$ui_tagName: "label",
|
|
92
|
+
$ui_className: labelClass,
|
|
93
|
+
$i18n_dataTitle: text,
|
|
94
|
+
$a11yAttributes_text: a11yAttributes_label,
|
|
95
|
+
$ui_size: FONT_SIZE[size],
|
|
96
|
+
$ui_weight: fontWeight,
|
|
97
|
+
$flag_dotted: isClipped
|
|
98
|
+
}), text, isRequired && !isClipped ? renderRequired() : null), isRequired && isClipped ? renderRequired() : null, renderNode(renderRightPlaceholderNode));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export default withComponentRegistrar(Label, {
|
|
102
|
+
name: 'ZDC_V1_Label'
|
|
103
|
+
});
|
|
39
104
|
Label.defaultProps = defaultProps;
|
|
40
105
|
Label.propTypes = propTypes;
|