@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
|
/**** Libraries ****/
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { SelectWithAvatar_defaultProps } from "./props/defaultProps";
|
|
@@ -132,6 +134,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
132
134
|
dropBoxSize,
|
|
133
135
|
emptyMessage,
|
|
134
136
|
searchEmptyMessage,
|
|
137
|
+
renderCustomEmptyState,
|
|
135
138
|
needBorder,
|
|
136
139
|
position,
|
|
137
140
|
defaultDropBoxPosition,
|
|
@@ -228,7 +231,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
228
231
|
flexible: true,
|
|
229
232
|
className: style.textBox,
|
|
230
233
|
dataId: `${dataId}_textBox`
|
|
231
|
-
}, /*#__PURE__*/React.createElement(Textbox, {
|
|
234
|
+
}, /*#__PURE__*/React.createElement(Textbox, _extends({
|
|
232
235
|
a11y: {
|
|
233
236
|
ariaActivedescendant: selectedId,
|
|
234
237
|
role: 'combobox',
|
|
@@ -256,9 +259,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
256
259
|
isClickable: isReadOnly || isDisabled ? false : true,
|
|
257
260
|
borderColor: borderColor,
|
|
258
261
|
htmlId: htmlId,
|
|
259
|
-
autoComplete: false
|
|
260
|
-
|
|
261
|
-
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
262
|
+
autoComplete: false
|
|
263
|
+
}, TextBoxProps)))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
262
264
|
query: this.responsiveFunc,
|
|
263
265
|
responsiveId: "Helmet"
|
|
264
266
|
}, _ref2 => {
|
|
@@ -291,7 +293,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
291
293
|
onScroll: this.handleScroll
|
|
292
294
|
}, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
|
|
293
295
|
className: `${selectStyle.search} ${selectStyle[size]}`
|
|
294
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
296
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
295
297
|
inputRef: this.searchInputRef,
|
|
296
298
|
maxLength: maxLength,
|
|
297
299
|
onChange: this.handleSearch,
|
|
@@ -306,9 +308,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
306
308
|
ariaControls: setAriaId,
|
|
307
309
|
ariaDescribedby: ariaErrorId
|
|
308
310
|
},
|
|
309
|
-
autoComplete: false
|
|
310
|
-
|
|
311
|
-
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
311
|
+
autoComplete: false
|
|
312
|
+
}, DropdownSearchTextBoxProps)))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
312
313
|
shrink: true,
|
|
313
314
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
314
315
|
eleRef: this.suggestionContainerRef
|
|
@@ -319,7 +320,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
319
320
|
a11y: {
|
|
320
321
|
role: 'heading'
|
|
321
322
|
}
|
|
322
|
-
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
323
|
+
})) : null, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
323
324
|
dataId: `${dataId}_Options`,
|
|
324
325
|
activeId: selectedId,
|
|
325
326
|
suggestions: suggestions,
|
|
@@ -335,13 +336,13 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
335
336
|
a11y: {
|
|
336
337
|
ariaParentRole: 'listbox',
|
|
337
338
|
role: 'option'
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
339
|
+
}
|
|
340
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
341
341
|
isLoading: isFetchingOptions,
|
|
342
342
|
options: options,
|
|
343
343
|
searchString: searchStr,
|
|
344
344
|
suggestions: suggestions,
|
|
345
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
345
346
|
dataId: dataId,
|
|
346
347
|
i18nKeys: i18nKeys,
|
|
347
348
|
htmlId: ariaErrorId
|
|
@@ -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, { Component } from 'react';
|
|
2
4
|
import { SelectWithIcon_defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { SelectWithIcon_propTypes } from "./props/propTypes";
|
|
@@ -349,6 +351,7 @@ class SelectWithIcon extends Component {
|
|
|
349
351
|
boxSize,
|
|
350
352
|
dropBoxSize,
|
|
351
353
|
emptyMessage,
|
|
354
|
+
renderCustomEmptyState,
|
|
352
355
|
needIcon,
|
|
353
356
|
iconName,
|
|
354
357
|
iconSize,
|
|
@@ -399,7 +402,7 @@ class SelectWithIcon extends Component {
|
|
|
399
402
|
dataId: `${dataId}_icon`
|
|
400
403
|
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
401
404
|
flexible: true
|
|
402
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
405
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
403
406
|
a11y: {
|
|
404
407
|
role: 'combobox',
|
|
405
408
|
ariaLabel: 'click to select options',
|
|
@@ -437,9 +440,8 @@ class SelectWithIcon extends Component {
|
|
|
437
440
|
'data-title': title || selectedValue,
|
|
438
441
|
...TextBoxProps
|
|
439
442
|
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
443
|
+
}
|
|
444
|
+
}, TextBoxIconProps), /*#__PURE__*/React.createElement(Container, {
|
|
443
445
|
isInline: true,
|
|
444
446
|
isCover: false,
|
|
445
447
|
align: "both",
|
|
@@ -515,7 +517,7 @@ class SelectWithIcon extends Component {
|
|
|
515
517
|
iconSize,
|
|
516
518
|
iconColor
|
|
517
519
|
} = options;
|
|
518
|
-
return /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
520
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({
|
|
519
521
|
key: options[idKey],
|
|
520
522
|
value: options[valueKey],
|
|
521
523
|
secondaryValue: options[secondaryValueKey],
|
|
@@ -539,14 +541,14 @@ class SelectWithIcon extends Component {
|
|
|
539
541
|
role: 'option',
|
|
540
542
|
ariaSelected: selectedId === options[idKey],
|
|
541
543
|
ariaLabel: options[valueKey]
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
});
|
|
544
|
+
}
|
|
545
|
+
}, ListItemProps));
|
|
545
546
|
})) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
546
547
|
isLoading: isFetchingOptions,
|
|
547
548
|
options: options,
|
|
548
549
|
searchString: searchValue,
|
|
549
550
|
suggestions: options,
|
|
551
|
+
renderCustomEmptyState: renderCustomEmptyState,
|
|
550
552
|
dataId: dataId,
|
|
551
553
|
i18nKeys: i18nKeys,
|
|
552
554
|
htmlId: ariaErrorId
|
|
@@ -61,6 +61,7 @@ export const Select_propTypes = {
|
|
|
61
61
|
placeHolder: PropTypes.string,
|
|
62
62
|
position: PropTypes.string,
|
|
63
63
|
removeClose: PropTypes.func,
|
|
64
|
+
renderCustomEmptyState: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
64
65
|
searchBoxPlaceHolder: PropTypes.string,
|
|
65
66
|
searchBoxSize: PropTypes.string,
|
|
66
67
|
searchDebounceTime: PropTypes.number,
|
|
@@ -127,6 +128,7 @@ export const GroupSelect_propTypes = {
|
|
|
127
128
|
searchBoxPlaceHolder: PropTypes.string,
|
|
128
129
|
needSearch: PropTypes.bool,
|
|
129
130
|
searchEmptyMessage: PropTypes.string,
|
|
131
|
+
renderCustomEmptyState: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
130
132
|
getRef: PropTypes.func,
|
|
131
133
|
isDisabled: PropTypes.bool,
|
|
132
134
|
isReadOnly: PropTypes.bool,
|
|
@@ -307,6 +309,7 @@ export const SelectWithIcon_propTypes = {
|
|
|
307
309
|
needResponsive: PropTypes.bool,
|
|
308
310
|
boxSize: PropTypes.string,
|
|
309
311
|
emptyMessage: PropTypes.string,
|
|
312
|
+
renderCustomEmptyState: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
310
313
|
isAbsolutePositioningNeeded: PropTypes.bool,
|
|
311
314
|
isRestrictScroll: PropTypes.bool,
|
|
312
315
|
positionsOffset: PropTypes.object,
|
package/es/Stencils/Stencils.js
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* stencils default variables */
|
|
3
|
-
--stencil_height:
|
|
3
|
+
--stencil_height: 9px;
|
|
4
4
|
--stencil_width: 100%;
|
|
5
5
|
--stencil_border_radius: 5px;
|
|
6
6
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
.rect {
|
|
50
50
|
composes: stencil;
|
|
51
|
-
--stencil_height:
|
|
51
|
+
--stencil_height: 9px;
|
|
52
52
|
--stencil_border_radius: 5px;
|
|
53
53
|
}
|
|
54
54
|
.primary {
|
|
@@ -65,16 +65,16 @@
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.small {
|
|
68
|
-
--stencil_width:
|
|
68
|
+
--stencil_width: 110px;
|
|
69
69
|
}
|
|
70
70
|
.default {
|
|
71
71
|
--stencil_width: 100%;
|
|
72
72
|
}
|
|
73
73
|
.medium {
|
|
74
|
-
--stencil_width:
|
|
74
|
+
--stencil_width: 170px;
|
|
75
75
|
}
|
|
76
76
|
.large {
|
|
77
|
-
--stencil_width:
|
|
77
|
+
--stencil_width: 220px;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.circle {
|
|
@@ -86,15 +86,15 @@
|
|
|
86
86
|
--stencil_border_radius: 4px;
|
|
87
87
|
}
|
|
88
88
|
.size_large {
|
|
89
|
-
--stencil_width:
|
|
90
|
-
--stencil_height:
|
|
89
|
+
--stencil_width: 42px;
|
|
90
|
+
--stencil_height: 42px;
|
|
91
91
|
}
|
|
92
92
|
.size_medium,
|
|
93
93
|
.size_default {
|
|
94
|
-
--stencil_width:
|
|
95
|
-
--stencil_height:
|
|
94
|
+
--stencil_width: 30px;
|
|
95
|
+
--stencil_height: 30px;
|
|
96
96
|
}
|
|
97
97
|
.size_small {
|
|
98
|
-
--stencil_width:
|
|
99
|
-
--stencil_height:
|
|
98
|
+
--stencil_width: 20px;
|
|
99
|
+
--stencil_height: 20px;
|
|
100
100
|
}
|
package/es/Switch/Switch.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";
|
|
@@ -48,7 +50,7 @@ export default class Switch extends React.Component {
|
|
|
48
50
|
customLabel = ''
|
|
49
51
|
} = customClass;
|
|
50
52
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
51
|
-
return /*#__PURE__*/React.createElement(Container, {
|
|
53
|
+
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
52
54
|
align: "vertical",
|
|
53
55
|
isCover: false,
|
|
54
56
|
alignBox: "row",
|
|
@@ -57,9 +59,8 @@ export default class Switch extends React.Component {
|
|
|
57
59
|
"data-title": disabled ? disableTitle : title,
|
|
58
60
|
"aria-checked": checked,
|
|
59
61
|
role: "switch",
|
|
60
|
-
dataSelectorId: dataSelectorId
|
|
61
|
-
|
|
62
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
62
|
+
dataSelectorId: dataSelectorId
|
|
63
|
+
}, SwitchProps), /*#__PURE__*/React.createElement(Box, {
|
|
63
64
|
className: `${style[size]} ${customSwitchSize}`
|
|
64
65
|
}, /*#__PURE__*/React.createElement("input", {
|
|
65
66
|
type: "checkbox",
|
|
@@ -77,16 +78,15 @@ export default class Switch extends React.Component {
|
|
|
77
78
|
"data-test-id": dataId,
|
|
78
79
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
79
80
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
80
|
-
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
81
|
+
})), text && /*#__PURE__*/React.createElement(Label, _extends({
|
|
81
82
|
text: text,
|
|
82
83
|
palette: labelPalette,
|
|
83
84
|
id: id,
|
|
84
85
|
size: labelSize,
|
|
85
86
|
type: "subtitle",
|
|
86
87
|
onClick: !disabled || !isReadOnly ? this.onChange : null,
|
|
87
|
-
customClass: customLabel
|
|
88
|
-
|
|
89
|
-
}));
|
|
88
|
+
customClass: customLabel
|
|
89
|
+
}, LabelProps)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
}
|
package/es/Tab/Tab.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
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['text', 'tabAlpha', 'alphaActive', 'gammaActive', 'betaActive', 'deltaActive', 'tabGamma', 'tabBeta', 'tabDelta',', 'specialActive', 'tabSpecial', 'alphaActive_border', 'gammaActive_border', 'betaActive_border', 'deltaActive_border'] }] */
|
|
@@ -69,7 +71,7 @@ export default function Tab(_ref) {
|
|
|
69
71
|
let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
|
|
70
72
|
let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
|
|
71
73
|
let tabClass = cs([styles.tab, TAB_DIRECTION_MAPPING[align] === 'column' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
|
|
72
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
74
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
73
75
|
tourId: tourId,
|
|
74
76
|
tagName: isLink ? 'a' : 'div',
|
|
75
77
|
className: tabClass,
|
|
@@ -87,9 +89,8 @@ export default function Tab(_ref) {
|
|
|
87
89
|
"aria-selected": isActive ? true : false,
|
|
88
90
|
tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
|
|
89
91
|
"aria-label": text ? text : null,
|
|
90
|
-
dataSelectorId: dataSelectorId
|
|
91
|
-
|
|
92
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
92
|
+
dataSelectorId: dataSelectorId
|
|
93
|
+
}, customProps), /*#__PURE__*/React.createElement(Container, {
|
|
93
94
|
alignBox: "row",
|
|
94
95
|
align: "both",
|
|
95
96
|
className: styles.textContainer
|
|
@@ -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 { TabContentWrapper_defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { TabContentWrapper_propTypes } from "./props/propTypes";
|
|
@@ -16,16 +18,15 @@ const TabContentWrapper = _ref => {
|
|
|
16
18
|
tagName,
|
|
17
19
|
a11y
|
|
18
20
|
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
20
22
|
flexible: true,
|
|
21
23
|
style: style,
|
|
22
24
|
dataId: dataId,
|
|
23
25
|
className: className,
|
|
24
26
|
onScroll: onScroll,
|
|
25
27
|
dataSelectorId: dataSelectorId,
|
|
26
|
-
tagName: tagName
|
|
27
|
-
|
|
28
|
-
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
28
|
+
tagName: tagName
|
|
29
|
+
}, a11y), React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
29
30
|
};
|
|
30
31
|
|
|
31
32
|
TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
|
package/es/Tab/TabWrapper.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, { useState, useCallback } from 'react';
|
|
2
4
|
import { TabWrapper_defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { TabWrapper_propTypes } from "./props/propTypes";
|
|
@@ -36,7 +38,7 @@ function TabWrapper(_ref) {
|
|
|
36
38
|
let TabsChild = child.type;
|
|
37
39
|
let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
|
|
38
40
|
return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
|
|
39
|
-
, {
|
|
41
|
+
, _extends({}, child.props, {
|
|
40
42
|
selectedTab: selectedTab,
|
|
41
43
|
onSelect: setSelectedTab,
|
|
42
44
|
type: type,
|
|
@@ -47,7 +49,7 @@ function TabWrapper(_ref) {
|
|
|
47
49
|
needAppearance: needAppearance,
|
|
48
50
|
hookToDisableInternalState: hookToDisableInternalState,
|
|
49
51
|
align: align
|
|
50
|
-
});
|
|
52
|
+
}));
|
|
51
53
|
}));
|
|
52
54
|
}
|
|
53
55
|
|
package/es/Tab/Tabs.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
|
/* eslint-disable react/forbid-component-props */
|
|
2
4
|
|
|
3
5
|
/* eslint css-modules/no-unused-class: [2, {
|
|
@@ -548,7 +550,7 @@ class Tabs extends React.Component {
|
|
|
548
550
|
classProps.className = itemClass;
|
|
549
551
|
}
|
|
550
552
|
|
|
551
|
-
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, {
|
|
553
|
+
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, _extends({}, child.props, {
|
|
552
554
|
key: child.props.id,
|
|
553
555
|
getTabRef: this.getTabRef,
|
|
554
556
|
onSelect: onSelect,
|
|
@@ -559,23 +561,22 @@ class Tabs extends React.Component {
|
|
|
559
561
|
needBorder: needTabBorder,
|
|
560
562
|
needAppearance: needAppearance,
|
|
561
563
|
align: align,
|
|
562
|
-
isVirtual: isVirtual
|
|
563
|
-
|
|
564
|
-
});
|
|
564
|
+
isVirtual: isVirtual
|
|
565
|
+
}, classProps));
|
|
565
566
|
}), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
|
|
566
567
|
className: `${tabsStyle.menu} `,
|
|
567
568
|
dataSelectorId: `${dataSelectorId}_moreIcon`
|
|
568
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
569
|
+
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
569
570
|
className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
|
|
570
571
|
align: "both",
|
|
571
572
|
onClick: this.togglePopup,
|
|
572
573
|
dataId: "moreTabs",
|
|
573
|
-
eleRef: getTargetRef
|
|
574
|
-
|
|
574
|
+
eleRef: getTargetRef
|
|
575
|
+
}, MoreButtonProps, {
|
|
575
576
|
"aria-label": "MoreTabs",
|
|
576
577
|
role: "link",
|
|
577
578
|
tagName: "button"
|
|
578
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
579
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
579
580
|
name: iconName,
|
|
580
581
|
size: iconSize
|
|
581
582
|
})), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
@@ -585,7 +586,7 @@ class Tabs extends React.Component {
|
|
|
585
586
|
let {
|
|
586
587
|
tabletMode
|
|
587
588
|
} = _ref4;
|
|
588
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
589
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
589
590
|
isActive: isPopupReady,
|
|
590
591
|
isAnimate: true,
|
|
591
592
|
size: "medium",
|
|
@@ -599,16 +600,16 @@ class Tabs extends React.Component {
|
|
|
599
600
|
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
600
601
|
isRestrictScroll: isRestrictScroll,
|
|
601
602
|
positionsOffset: positionsOffset,
|
|
602
|
-
targetOffset: targetOffset
|
|
603
|
-
|
|
603
|
+
targetOffset: targetOffset
|
|
604
|
+
}, DropBoxProps, {
|
|
604
605
|
isResponsivePadding: true,
|
|
605
606
|
needFocusScope: true,
|
|
606
607
|
dataId: `${dataId}_dropbox`,
|
|
607
608
|
onClick: removeClose,
|
|
608
609
|
onClose: this.togglePopup
|
|
609
|
-
}, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), hasSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
610
|
+
}), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(this.props), hasSearch ? /*#__PURE__*/React.createElement(Box, {
|
|
610
611
|
className: tabsStyle.search
|
|
611
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
612
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
612
613
|
placeHolder: placeHolderText,
|
|
613
614
|
onChange: this.handleChange,
|
|
614
615
|
value: searchValue,
|
|
@@ -621,9 +622,8 @@ class Tabs extends React.Component {
|
|
|
621
622
|
},
|
|
622
623
|
dataId: `${dataId}_search`,
|
|
623
624
|
autoComplete: false,
|
|
624
|
-
name: "search"
|
|
625
|
-
|
|
626
|
-
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
625
|
+
name: "search"
|
|
626
|
+
}, TextBoxIconProps))) : null, /*#__PURE__*/React.createElement(Box, {
|
|
627
627
|
flexible: true,
|
|
628
628
|
shrink: true,
|
|
629
629
|
scroll: "vertical",
|
|
@@ -641,7 +641,7 @@ class Tabs extends React.Component {
|
|
|
641
641
|
dataId
|
|
642
642
|
} = data;
|
|
643
643
|
const value = text ? text : showTitleInMoreOptions ? title : null;
|
|
644
|
-
return /*#__PURE__*/React.createElement(ListItem, {
|
|
644
|
+
return /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
645
645
|
key: id,
|
|
646
646
|
value: value,
|
|
647
647
|
onClick: this.moreTabSelect,
|
|
@@ -654,9 +654,8 @@ class Tabs extends React.Component {
|
|
|
654
654
|
customListItem: menuItemClass
|
|
655
655
|
},
|
|
656
656
|
target: "self",
|
|
657
|
-
dataId: `${dataId}_Tab
|
|
658
|
-
|
|
659
|
-
}, !showTitleInMoreOptions ? children : null);
|
|
657
|
+
dataId: `${dataId}_Tab`
|
|
658
|
+
}, ListItemProps), !showTitleInMoreOptions ? children : null);
|
|
660
659
|
}) : this.renderEmptyState()));
|
|
661
660
|
})) : null);
|
|
662
661
|
}
|
package/es/Tag/Tag.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, { PureComponent } from 'react';
|
|
2
4
|
import { defaultProps } from "./props/defaultProps";
|
|
3
5
|
import { propTypes } from "./props/propTypes";
|
|
@@ -105,7 +107,7 @@ export default class Tag extends PureComponent {
|
|
|
105
107
|
clearLabel = 'Delete'
|
|
106
108
|
} = a11y;
|
|
107
109
|
let isDarkPalette = palette === 'dark';
|
|
108
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
109
111
|
className: `${style.container} ${needEffect && !isReadOnly ? style.effect : style.readonly} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
|
|
110
112
|
"data-id": active ? `${dataId}_TagSelected` : `${dataId}_Tag`,
|
|
111
113
|
"data-test-id": active ? `${dataId}_TagSelected` : `${dataId}_Tag`,
|
|
@@ -114,26 +116,23 @@ export default class Tag extends PureComponent {
|
|
|
114
116
|
"data-title": tooltip ? tooltip : text,
|
|
115
117
|
tabIndex: disabled ? '-1' : '0',
|
|
116
118
|
"aria-labelledby": getAriaId,
|
|
117
|
-
"data-selector-id": dataSelectorId
|
|
118
|
-
|
|
119
|
-
}, renderNode(renderLeftChildren), hasAvatar ? /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
"data-selector-id": dataSelectorId
|
|
120
|
+
}, customAttributes), renderNode(renderLeftChildren), hasAvatar ? /*#__PURE__*/React.createElement("div", {
|
|
120
121
|
className: style.avatar
|
|
121
|
-
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Avatar, _extends({
|
|
122
123
|
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
123
124
|
name: initial,
|
|
124
125
|
size: "small",
|
|
125
126
|
src: imageURL,
|
|
126
127
|
textPalette: isDarkPalette ? 'white' : '',
|
|
127
|
-
customClass: customAvatar
|
|
128
|
-
|
|
129
|
-
})) : null, iconName ? /*#__PURE__*/React.createElement("div", {
|
|
128
|
+
customClass: customAvatar
|
|
129
|
+
}, avatarProps))) : null, iconName ? /*#__PURE__*/React.createElement("div", {
|
|
130
130
|
className: `${style.icon} ${customTagIcon}`,
|
|
131
131
|
"aria-hidden": true
|
|
132
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
132
|
+
}, /*#__PURE__*/React.createElement(Icon, _extends({
|
|
133
133
|
name: iconName,
|
|
134
|
-
size: iconSize
|
|
135
|
-
|
|
136
|
-
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
134
|
+
size: iconSize
|
|
135
|
+
}, iconProps))) : null, /*#__PURE__*/React.createElement("div", {
|
|
137
136
|
className: `${style.text} ${textSizes}`,
|
|
138
137
|
"aria-hidden": true,
|
|
139
138
|
id: getAriaId
|
package/es/Tag/Tag.module.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* tag default variables */
|
|
3
3
|
--tag_text_color: var(--zdt_tag_default_text);
|
|
4
|
-
--tag_font_size:
|
|
4
|
+
--tag_font_size: 13px;
|
|
5
5
|
--tag_letter_spacing: normal;
|
|
6
6
|
--tag_bg_color: var(--zdt_tag_default_bg);
|
|
7
7
|
--tag_border_radius: 25px;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--tag_border_width: 0;
|
|
10
10
|
--tag_border_style: dashed;
|
|
11
11
|
--tag_border_color: var(--zdt_tag_default_border);
|
|
12
|
-
--tag_padding:
|
|
13
|
-
--tag_inner_text_padding: 0
|
|
12
|
+
--tag_padding: 2px;
|
|
13
|
+
--tag_inner_text_padding: 0 6px;
|
|
14
14
|
--tag_cursor: default;
|
|
15
15
|
|
|
16
16
|
/* tag close icon default variables */
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
--tag_icon_bg_color: var(--zdt_tag_icon_bg);
|
|
23
23
|
}[dir=ltr] .varClass {
|
|
24
24
|
--tag_closeicon_border_radius: 0 12px 12px 0 /*rtl: 12px 0 0 12px*/;
|
|
25
|
-
--tag_closeicon_padding: 0
|
|
26
|
-
|
|
25
|
+
--tag_closeicon_padding: 0 7px 0 6px
|
|
26
|
+
/*rtl: 0 6px 0 7px*/;
|
|
27
|
+
--tag_icon_margin: 0 0 0 5px /*rtl: 0 5px 0 0*/;
|
|
27
28
|
}[dir=rtl] .varClass {
|
|
28
29
|
--tag_closeicon_border_radius: 12px 0 0 12px;
|
|
29
|
-
--tag_closeicon_padding: 0
|
|
30
|
-
--tag_icon_margin: 0
|
|
30
|
+
--tag_closeicon_padding: 0 6px 0 7px;
|
|
31
|
+
--tag_icon_margin: 0 5px 0 0;
|
|
31
32
|
}
|
|
32
33
|
.container {
|
|
33
34
|
composes: varClass;
|
|
@@ -75,9 +76,9 @@
|
|
|
75
76
|
padding: var(--tag_inner_text_padding);
|
|
76
77
|
}
|
|
77
78
|
.small {
|
|
78
|
-
--tag_height:
|
|
79
|
-
--tag_padding:
|
|
80
|
-
--tag_inner_text_padding: 0
|
|
79
|
+
--tag_height: 20px;
|
|
80
|
+
--tag_padding: 1px;
|
|
81
|
+
--tag_inner_text_padding: 0 7px;
|
|
81
82
|
}
|
|
82
83
|
[dir=ltr] .small .avatar {
|
|
83
84
|
transform: scale(0.8) translateX(-2px);
|
|
@@ -88,22 +89,22 @@
|
|
|
88
89
|
margin-left: calc( var(--zd_size8) * -1 ) ;
|
|
89
90
|
}
|
|
90
91
|
.smalltext {
|
|
91
|
-
--tag_font_size:
|
|
92
|
+
--tag_font_size: 12px;
|
|
92
93
|
}
|
|
93
94
|
.activesmallEffect {
|
|
94
|
-
--tag_inner_text_padding: 0
|
|
95
|
+
--tag_inner_text_padding: 0 25px 0 7px;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.medium {
|
|
98
|
-
--tag_height:
|
|
99
|
-
--tag_padding:
|
|
100
|
-
--tag_inner_text_padding: 0
|
|
99
|
+
--tag_height: 26px;
|
|
100
|
+
--tag_padding: 2px;
|
|
101
|
+
--tag_inner_text_padding: 0 6px;
|
|
101
102
|
}
|
|
102
103
|
.mediumtext {
|
|
103
|
-
--tag_font_size:
|
|
104
|
+
--tag_font_size: 13px;
|
|
104
105
|
}
|
|
105
106
|
.activemediumEffect {
|
|
106
|
-
--tag_inner_text_padding: 0
|
|
107
|
+
--tag_inner_text_padding: 0 25px 0 6px;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
.selected .close {
|
package/es/TextBox/TextBox.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";
|
|
@@ -137,7 +139,7 @@ export default class TextBox extends React.PureComponent {
|
|
|
137
139
|
|
|
138
140
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.border : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isFocus ? style.focus : ''}` : `${style.basic}`;
|
|
139
141
|
value = value === null || value === undefined ? '' : value;
|
|
140
|
-
return /*#__PURE__*/React.createElement("input", {
|
|
142
|
+
return /*#__PURE__*/React.createElement("input", _extends({
|
|
141
143
|
"aria-label": ariaLabel,
|
|
142
144
|
"aria-invalid": ariaInvalid,
|
|
143
145
|
"aria-autocomplete": ariaAutocomplete,
|
|
@@ -171,10 +173,8 @@ export default class TextBox extends React.PureComponent {
|
|
|
171
173
|
value: value,
|
|
172
174
|
onScroll: isScrollPrevent ? this.handlePreventTextBoxScroll : null,
|
|
173
175
|
onKeyPress: onKeyPress,
|
|
174
|
-
onMouseDown: onMouseDown
|
|
175
|
-
|
|
176
|
-
...customProps
|
|
177
|
-
});
|
|
176
|
+
onMouseDown: onMouseDown
|
|
177
|
+
}, options, customProps));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
}
|
|
@@ -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
|
|