@zohodesk/components 1.6.1 → 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 +5 -0
- 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 +13 -13
- 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 +13 -13
- 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 +13 -13
- 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/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 +5 -3
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +40 -34
- 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/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/__tests__/__snapshots__/Label.spec.js.snap +40 -34
- 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
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
--textbox_border_width: 0;
|
|
6
6
|
--textbox_border_style: solid;
|
|
7
7
|
--textbox_border_color: var(--zdt_textbox_default_border);
|
|
8
|
-
--textbox_font_size:
|
|
8
|
+
--textbox_font_size: 14px;
|
|
9
9
|
--textbox_width: 100%;
|
|
10
|
-
--textbox_height:
|
|
10
|
+
--textbox_height: 35px;
|
|
11
11
|
--textbox_border_radius: none;
|
|
12
12
|
--textbox_font_weight: var(--zd-fw-normal);
|
|
13
13
|
/* Variable:Ignore */
|
|
@@ -137,28 +137,28 @@
|
|
|
137
137
|
/* Size */
|
|
138
138
|
.xmedium,
|
|
139
139
|
.medium {
|
|
140
|
-
--textbox_font_size:
|
|
140
|
+
--textbox_font_size: 14px;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.xmedium {
|
|
144
|
-
--textbox_height:
|
|
144
|
+
--textbox_height: 28px;
|
|
145
145
|
--textbox_line_height: 2;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.medium {
|
|
149
|
-
--textbox_height:
|
|
149
|
+
--textbox_height: 35px;
|
|
150
150
|
--textbox_line_height: 2.5;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.small {
|
|
154
|
-
--textbox_font_size:
|
|
155
|
-
--textbox_height:
|
|
154
|
+
--textbox_font_size: 12px;
|
|
155
|
+
--textbox_height: 28px;
|
|
156
156
|
--textbox_line_height: 2.3334;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.xsmall {
|
|
160
|
-
--textbox_font_size:
|
|
161
|
-
--textbox_height:
|
|
160
|
+
--textbox_font_size: 13px;
|
|
161
|
+
--textbox_height: 25px;
|
|
162
162
|
--textbox_line_height: 1.9231;
|
|
163
163
|
}
|
|
164
164
|
|
|
File without changes
|
package/lib/Textarea/Textarea.js
CHANGED
|
File without changes
|
|
@@ -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,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 {
|
|
File without changes
|
package/lib/utils/Common.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -88,6 +88,40 @@ exports[`Label - Snapshot Render with default props 1`] = `
|
|
|
88
88
|
</DocumentFragment>
|
|
89
89
|
`;
|
|
90
90
|
|
|
91
|
+
exports[`Label - Snapshot Render with fontWeight=regular 1`] = `
|
|
92
|
+
<DocumentFragment>
|
|
93
|
+
<div
|
|
94
|
+
class="inlineFlex row alignItems_center container default"
|
|
95
|
+
data-id="flex"
|
|
96
|
+
data-test-id="flex"
|
|
97
|
+
>
|
|
98
|
+
<label
|
|
99
|
+
class="size14 font_regular label"
|
|
100
|
+
data-title="Label text"
|
|
101
|
+
>
|
|
102
|
+
Label text
|
|
103
|
+
</label>
|
|
104
|
+
</div>
|
|
105
|
+
</DocumentFragment>
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
exports[`Label - Snapshot Render with fontWeight=semibold 1`] = `
|
|
109
|
+
<DocumentFragment>
|
|
110
|
+
<div
|
|
111
|
+
class="inlineFlex row alignItems_center container default"
|
|
112
|
+
data-id="flex"
|
|
113
|
+
data-test-id="flex"
|
|
114
|
+
>
|
|
115
|
+
<label
|
|
116
|
+
class="size14 font_semibold label"
|
|
117
|
+
data-title="Label text"
|
|
118
|
+
>
|
|
119
|
+
Label text
|
|
120
|
+
</label>
|
|
121
|
+
</div>
|
|
122
|
+
</DocumentFragment>
|
|
123
|
+
`;
|
|
124
|
+
|
|
91
125
|
exports[`Label - Snapshot Render with htmlFor 1`] = `
|
|
92
126
|
<DocumentFragment>
|
|
93
127
|
<div
|
|
@@ -121,6 +155,7 @@ exports[`Label - Snapshot Render with i18nKeys 1`] = `
|
|
|
121
155
|
<span
|
|
122
156
|
aria-hidden="true"
|
|
123
157
|
class="size14 font_regular requiredCommon flexshrink requiredText"
|
|
158
|
+
data-title=""
|
|
124
159
|
>
|
|
125
160
|
(Custom Required)
|
|
126
161
|
</span>
|
|
@@ -195,6 +230,7 @@ exports[`Label - Snapshot Render with isRequired=true 1`] = `
|
|
|
195
230
|
<span
|
|
196
231
|
aria-hidden="true"
|
|
197
232
|
class="size14 font_regular requiredCommon flexshrink asterisk"
|
|
233
|
+
data-title=""
|
|
198
234
|
>
|
|
199
235
|
*
|
|
200
236
|
</span>
|
|
@@ -219,6 +255,7 @@ exports[`Label - Snapshot Render with isRequired=true isClipped=true 1`] = `
|
|
|
219
255
|
<span
|
|
220
256
|
aria-hidden="true"
|
|
221
257
|
class="size14 font_regular requiredCommon flexshrink asterisk"
|
|
258
|
+
data-title=""
|
|
222
259
|
>
|
|
223
260
|
*
|
|
224
261
|
</span>
|
|
@@ -309,6 +346,7 @@ exports[`Label - Snapshot Render with requiredType=asterisk 1`] = `
|
|
|
309
346
|
<span
|
|
310
347
|
aria-hidden="true"
|
|
311
348
|
class="size14 font_regular requiredCommon flexshrink asterisk"
|
|
349
|
+
data-title=""
|
|
312
350
|
>
|
|
313
351
|
*
|
|
314
352
|
</span>
|
|
@@ -332,6 +370,7 @@ exports[`Label - Snapshot Render with requiredType=text 1`] = `
|
|
|
332
370
|
<span
|
|
333
371
|
aria-hidden="true"
|
|
334
372
|
class="size14 font_regular requiredCommon flexshrink requiredText"
|
|
373
|
+
data-title=""
|
|
335
374
|
>
|
|
336
375
|
(Required)
|
|
337
376
|
</span>
|
|
@@ -355,6 +394,7 @@ exports[`Label - Snapshot Render with shouldHighlightRequired=true 1`] = `
|
|
|
355
394
|
<span
|
|
356
395
|
aria-hidden="true"
|
|
357
396
|
class="size14 font_regular requiredCommon flexshrink asterisk"
|
|
397
|
+
data-title=""
|
|
358
398
|
>
|
|
359
399
|
*
|
|
360
400
|
</span>
|
|
@@ -415,37 +455,3 @@ exports[`Label - Snapshot Render with tag attributes 1`] = `
|
|
|
415
455
|
</div>
|
|
416
456
|
</DocumentFragment>
|
|
417
457
|
`;
|
|
418
|
-
|
|
419
|
-
exports[`Label - Snapshot Render with fontWeight=regular 1`] = `
|
|
420
|
-
<DocumentFragment>
|
|
421
|
-
<div
|
|
422
|
-
class="inlineFlex row alignItems_center container default"
|
|
423
|
-
data-id="flex"
|
|
424
|
-
data-test-id="flex"
|
|
425
|
-
>
|
|
426
|
-
<label
|
|
427
|
-
class="size14 font_regular label"
|
|
428
|
-
data-title="Label text"
|
|
429
|
-
>
|
|
430
|
-
Label text
|
|
431
|
-
</label>
|
|
432
|
-
</div>
|
|
433
|
-
</DocumentFragment>
|
|
434
|
-
`;
|
|
435
|
-
|
|
436
|
-
exports[`Label - Snapshot Render with fontWeight=semibold 1`] = `
|
|
437
|
-
<DocumentFragment>
|
|
438
|
-
<div
|
|
439
|
-
class="inlineFlex row alignItems_center container default"
|
|
440
|
-
data-id="flex"
|
|
441
|
-
data-test-id="flex"
|
|
442
|
-
>
|
|
443
|
-
<label
|
|
444
|
-
class="size14 font_semibold label"
|
|
445
|
-
data-title="Label text"
|
|
446
|
-
>
|
|
447
|
-
Label text
|
|
448
|
-
</label>
|
|
449
|
-
</div>
|
|
450
|
-
</DocumentFragment>
|
|
451
|
-
`;
|
|
@@ -4,47 +4,47 @@
|
|
|
4
4
|
gap: var(--zd_size6) ;
|
|
5
5
|
}
|
|
6
6
|
.small {
|
|
7
|
-
--local-switch-track-width:
|
|
8
|
-
--local-switch-track-height:
|
|
7
|
+
--local-switch-track-width: 22px;
|
|
8
|
+
--local-switch-track-height: 12px;
|
|
9
9
|
--local-switch-track-border-radius: 8px;
|
|
10
|
-
--local-switch-thumb-size:
|
|
11
|
-
--local-switch-onLabel-height:
|
|
12
|
-
--local-switch-onLabel-left:
|
|
13
|
-
--local-switch-offLabel-size:
|
|
14
|
-
--local-switch-offLabel-right:
|
|
10
|
+
--local-switch-thumb-size: 10px;
|
|
11
|
+
--local-switch-onLabel-height: 6px;
|
|
12
|
+
--local-switch-onLabel-left: 5px;
|
|
13
|
+
--local-switch-offLabel-size: 7px;
|
|
14
|
+
--local-switch-offLabel-right: 2px;
|
|
15
15
|
--local-switch-onLabel-scaleX: 1.2;
|
|
16
16
|
}
|
|
17
17
|
.medium {
|
|
18
|
-
--local-switch-track-width:
|
|
19
|
-
--local-switch-track-height:
|
|
18
|
+
--local-switch-track-width: 28px;
|
|
19
|
+
--local-switch-track-height: 16px;
|
|
20
20
|
--local-switch-track-border-radius: 16px;
|
|
21
|
-
--local-switch-thumb-size:
|
|
22
|
-
--local-switch-onLabel-height:
|
|
23
|
-
--local-switch-onLabel-left:
|
|
24
|
-
--local-switch-offLabel-size:
|
|
25
|
-
--local-switch-offLabel-right:
|
|
21
|
+
--local-switch-thumb-size: 14px;
|
|
22
|
+
--local-switch-onLabel-height: 8px;
|
|
23
|
+
--local-switch-onLabel-left: 6px;
|
|
24
|
+
--local-switch-offLabel-size: 8px;
|
|
25
|
+
--local-switch-offLabel-right: 3px;
|
|
26
26
|
--local-switch-onLabel-scaleX: 1.4;
|
|
27
27
|
}
|
|
28
28
|
.large {
|
|
29
|
-
--local-switch-track-width:
|
|
30
|
-
--local-switch-track-height:
|
|
29
|
+
--local-switch-track-width: 34px;
|
|
30
|
+
--local-switch-track-height: 20px;
|
|
31
31
|
--local-switch-track-border-radius: 10px;
|
|
32
|
-
--local-switch-thumb-size:
|
|
33
|
-
--local-switch-onLabel-height:
|
|
34
|
-
--local-switch-onLabel-left:
|
|
35
|
-
--local-switch-offLabel-size:
|
|
36
|
-
--local-switch-offLabel-right:
|
|
32
|
+
--local-switch-thumb-size: 18px;
|
|
33
|
+
--local-switch-onLabel-height: 10px;
|
|
34
|
+
--local-switch-onLabel-left: 7px;
|
|
35
|
+
--local-switch-offLabel-size: 9px;
|
|
36
|
+
--local-switch-offLabel-right: 4px;
|
|
37
37
|
--local-switch-onLabel-scaleX: 1.6;
|
|
38
38
|
}
|
|
39
39
|
.xlarge {
|
|
40
|
-
--local-switch-track-width:
|
|
41
|
-
--local-switch-track-height:
|
|
40
|
+
--local-switch-track-width: 40px;
|
|
41
|
+
--local-switch-track-height: 24px;
|
|
42
42
|
--local-switch-track-border-radius: 12px;
|
|
43
|
-
--local-switch-thumb-size:
|
|
44
|
-
--local-switch-onLabel-height:
|
|
45
|
-
--local-switch-onLabel-left:
|
|
46
|
-
--local-switch-offLabel-size:
|
|
47
|
-
--local-switch-offLabel-right:
|
|
43
|
+
--local-switch-thumb-size: 22px;
|
|
44
|
+
--local-switch-onLabel-height: 12px;
|
|
45
|
+
--local-switch-onLabel-left: 8px;
|
|
46
|
+
--local-switch-offLabel-size: 10px;
|
|
47
|
+
--local-switch-offLabel-right: 5px;
|
|
48
48
|
--local-switch-onLabel-scaleX: 1.8;
|
|
49
49
|
}
|
|
50
50
|
.disabled, .readonly {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -17,26 +17,20 @@
|
|
|
17
17
|
"LIBRARY"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build:docs": "react-cli build:docs",
|
|
21
20
|
"_lint": "react-cli lint",
|
|
22
21
|
"lintAll": "react-cli lint ./src",
|
|
23
22
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
24
23
|
"lint": "npx eslint ./src",
|
|
25
24
|
"clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
|
|
26
25
|
"dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es",
|
|
27
|
-
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components
|
|
28
|
-
"build:variables": "react-cli clean ./assets && node ./preprocess/index",
|
|
29
|
-
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
26
|
+
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components",
|
|
30
27
|
"common_package_build": "cd ../common && npm run build && cd ../components",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"build:
|
|
34
|
-
"build:es": "react-cli build:library:es",
|
|
28
|
+
"build:lib": "cbt build:lib src,assets lib,assets",
|
|
29
|
+
"build:es": "cbt build:es src,assets es,assets",
|
|
30
|
+
"build:es:watch": "cbt build:es src es",
|
|
35
31
|
"build": "npm run theme:validate && npm run build:lib && npm run build:es",
|
|
36
|
-
"build:local": "
|
|
37
|
-
"build:watch": "npm run build:
|
|
38
|
-
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
39
|
-
"build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
|
|
32
|
+
"build:local": "npm run build",
|
|
33
|
+
"build:watch": "npm run build:es:watch --module:mode=dev -- -w",
|
|
40
34
|
"coverage": "react-cli coverage",
|
|
41
35
|
"prepare": "npm run init && npm run css:build ",
|
|
42
36
|
"prepublishOnly": "node prePublish.js && npm run download_only && npm run css:review && npm run review:props ",
|
|
@@ -47,12 +41,11 @@
|
|
|
47
41
|
"test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json ",
|
|
48
42
|
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
49
43
|
"sstest": "npm run init && react-cli sstest",
|
|
50
|
-
"build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy
|
|
44
|
+
"build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && npm run externalDocHTMLChange",
|
|
51
45
|
"download": "npm run download_only && cd ../ && npm run download",
|
|
52
46
|
"download_only": "react-cli clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
|
|
53
47
|
"expublish": "npm publish --tag experimental-version",
|
|
54
48
|
"css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
|
|
55
|
-
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
56
49
|
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
57
50
|
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
58
51
|
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
@@ -66,11 +59,12 @@
|
|
|
66
59
|
"css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
|
|
67
60
|
"css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/components_layer.module.css",
|
|
68
61
|
"css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets",
|
|
69
|
-
"css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build
|
|
62
|
+
"css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build",
|
|
70
63
|
"css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
|
|
71
64
|
"css:audit": "npx css-audit --common-css=common/common.module.css --dir src --port 8085 --report "
|
|
72
65
|
},
|
|
73
66
|
"devDependencies": {
|
|
67
|
+
"postcss-discard-comments": "^7.0.5",
|
|
74
68
|
"@testing-library/jest-dom": "^5.11.9",
|
|
75
69
|
"@testing-library/react": "^11.2.5",
|
|
76
70
|
"@testing-library/react-hooks": "^7.0.2",
|
|
@@ -84,15 +78,16 @@
|
|
|
84
78
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
85
79
|
"@zohodesk/dotkit": "1.0.7",
|
|
86
80
|
"@zohodesk/hooks": "2.0.6",
|
|
87
|
-
"@zohodesk/icons": "1.1
|
|
81
|
+
"@zohodesk/icons": "1.2.1",
|
|
88
82
|
"@zohodesk/layout": "3.1.0",
|
|
89
|
-
"@zohodesk/svg": "1.3.
|
|
83
|
+
"@zohodesk/svg": "1.3.2",
|
|
90
84
|
"@zohodesk/utils": "1.3.16",
|
|
91
85
|
"@zohodesk/variables": "1.2.0",
|
|
92
86
|
"@zohodesk/virtualizer": "1.0.13",
|
|
93
87
|
"react-sortable-hoc": "^0.8.3",
|
|
94
88
|
"velocity-react": "1.4.3",
|
|
95
89
|
"@zohodesk/react-cli": "1.1.27",
|
|
90
|
+
"@zohodesk/client_build_tool": "0.0.20",
|
|
96
91
|
"color": "4.2.3"
|
|
97
92
|
},
|
|
98
93
|
"dependencies": {
|
|
@@ -102,9 +97,9 @@
|
|
|
102
97
|
"selectn": "1.1.2"
|
|
103
98
|
},
|
|
104
99
|
"peerDependencies": {
|
|
105
|
-
"@zohodesk/icons": "1.1
|
|
100
|
+
"@zohodesk/icons": "1.2.1",
|
|
106
101
|
"@zohodesk/variables": "1.2.0",
|
|
107
|
-
"@zohodesk/svg": "1.3.
|
|
102
|
+
"@zohodesk/svg": "1.3.2",
|
|
108
103
|
"@zohodesk/virtualizer": "1.0.13",
|
|
109
104
|
"velocity-react": "1.4.3",
|
|
110
105
|
"react-sortable-hoc": "^0.8.3",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
|
|
3
|
-
import { Accordion_defaultProps } from "./props/defaultProps";
|
|
4
|
-
import { Accordion_propTypes } from "./props/propTypes";
|
|
5
|
-
export default function Accordion(props) {
|
|
6
|
-
const {
|
|
7
|
-
className,
|
|
8
|
-
height,
|
|
9
|
-
unMount,
|
|
10
|
-
disableInternalState,
|
|
11
|
-
selectedItem: propSelectedItem,
|
|
12
|
-
a11y,
|
|
13
|
-
dataId,
|
|
14
|
-
dataSelectorId,
|
|
15
|
-
onSelect,
|
|
16
|
-
children
|
|
17
|
-
} = props;
|
|
18
|
-
const {
|
|
19
|
-
role,
|
|
20
|
-
ariaExpanded,
|
|
21
|
-
ariaHaspopup
|
|
22
|
-
} = a11y;
|
|
23
|
-
const [selectedItem, setSelectedItem] = useState(propSelectedItem);
|
|
24
|
-
|
|
25
|
-
function selectMenu(selectedItem) {
|
|
26
|
-
if (onSelect) {
|
|
27
|
-
onSelect(selectedItem);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
!disableInternalState && setSelectedItem(selectedItem);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
useEffectCallOnlyAfterState(() => {
|
|
34
|
-
if (!disableInternalState) {
|
|
35
|
-
setSelectedItem(propSelectedItem);
|
|
36
|
-
}
|
|
37
|
-
}, [propSelectedItem]);
|
|
38
|
-
let renderChildren = React.Children.map(children, child => {
|
|
39
|
-
if (child) {
|
|
40
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
41
|
-
selectedItem: disableInternalState ? propSelectedItem : selectedItem,
|
|
42
|
-
selectMenu: selectMenu,
|
|
43
|
-
unMount: unMount
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: className ? className : '',
|
|
49
|
-
style: {
|
|
50
|
-
height
|
|
51
|
-
},
|
|
52
|
-
role: role,
|
|
53
|
-
"aria-expanded": ariaExpanded,
|
|
54
|
-
"aria-haspopup": ariaHaspopup,
|
|
55
|
-
"data-id": dataId,
|
|
56
|
-
"data-test-id": dataId,
|
|
57
|
-
"data-selector-id": dataSelectorId
|
|
58
|
-
}, renderChildren);
|
|
59
|
-
}
|
|
60
|
-
Accordion.propTypes = Accordion_propTypes;
|
|
61
|
-
Accordion.defaultProps = Accordion_defaultProps; // if (__DOCS__) {
|
|
62
|
-
// Accordion.docs = {
|
|
63
|
-
// componentGroup: 'Animation',
|
|
64
|
-
// folderName: 'Style Guide'
|
|
65
|
-
// };
|
|
66
|
-
// }
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AccordionItem_defaultProps } from "./props/defaultProps";
|
|
3
|
-
import { AccordionItem_propTypes } from "./props/propTypes";
|
|
4
|
-
import VelocityAnimation from "../VelocityAnimation/VelocityAnimation/VelocityAnimation";
|
|
5
|
-
import VelocityAnimationGroup from "../VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup";
|
|
6
|
-
export default function AccordionItem(props) {
|
|
7
|
-
let {
|
|
8
|
-
id,
|
|
9
|
-
selectMenu,
|
|
10
|
-
className,
|
|
11
|
-
children,
|
|
12
|
-
dataId,
|
|
13
|
-
dataSelectorId,
|
|
14
|
-
unMount,
|
|
15
|
-
unMountItem,
|
|
16
|
-
a11y,
|
|
17
|
-
innerClass,
|
|
18
|
-
equalityCheck,
|
|
19
|
-
selectedItem
|
|
20
|
-
} = props;
|
|
21
|
-
unMountItem = unMountItem !== undefined ? unMountItem : unMount;
|
|
22
|
-
let {
|
|
23
|
-
role
|
|
24
|
-
} = a11y;
|
|
25
|
-
|
|
26
|
-
function equalityChecking() {
|
|
27
|
-
return equalityCheck ? equalityCheck(id, selectedItem) : selectedItem == id;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function handleSelectMenu() {
|
|
31
|
-
selectMenu(id);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className: className ? className : '',
|
|
36
|
-
"data-id": dataId,
|
|
37
|
-
"data-test-id": dataId,
|
|
38
|
-
role: role,
|
|
39
|
-
"data-selector-id": dataSelectorId
|
|
40
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
41
|
-
className: innerClass ? innerClass : '',
|
|
42
|
-
onClick: handleSelectMenu
|
|
43
|
-
}, children[0]), unMountItem ? /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
|
|
44
|
-
name: "slideDown",
|
|
45
|
-
isActive: equalityChecking()
|
|
46
|
-
}, children[1]) : /*#__PURE__*/React.createElement(VelocityAnimation, {
|
|
47
|
-
name: "slideDown",
|
|
48
|
-
isActive: equalityChecking()
|
|
49
|
-
}, children[1]));
|
|
50
|
-
}
|
|
51
|
-
AccordionItem.propTypes = AccordionItem_propTypes;
|
|
52
|
-
AccordionItem.defaultProps = AccordionItem_defaultProps; // if (__DOCS__) {
|
|
53
|
-
// AccordionItem.docs = {
|
|
54
|
-
// componentGroup: 'Animation',
|
|
55
|
-
// folderName: 'Style Guide'
|
|
56
|
-
// };
|
|
57
|
-
// }
|
package/es/v1/Accordion/index.js
DELETED