@zohodesk/components 1.0.0-temp-42 → 1.0.0-temp-43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/es/Animation/docs/Animation__default.docs.js +2 -2
- package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/es/Appearance/dark/mode/darkMode.module.css +69 -69
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/es/Appearance/default/mode/defaultMode.module.css +158 -158
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- package/es/Avatar/Avatar.js +1 -2
- package/es/Avatar/__tests__/Avatar.spec.js +1 -0
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
- package/es/Button/__tests__/Button.spec.js +1 -0
- package/es/Buttongroup/__test__/Buttongroup.spec.js +1 -0
- package/es/Card/Card.module.css +3 -3
- package/es/Card/docs/Card__Default.docs.js +4 -4
- package/es/Card/docs/Card__Scroll.docs.js +4 -4
- package/es/DateTime/DateTime.js +3 -6
- package/es/DateTime/DateWidget.js +2 -5
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/YearView.js +5 -6
- package/es/DateTime/common.js +2 -9
- package/es/DateTime/dateFormatUtils/dateFormat.js +57 -76
- package/es/DateTime/dateFormatUtils/index.js +7 -12
- package/es/DateTime/dateFormatUtils/timeChange.js +3 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +3 -4
- package/es/DateTime/validator.js +1 -0
- package/es/Label/__tests__/Label.spec.js +2 -0
- package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
- package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
- package/es/Layout/utils.js +1 -2
- package/es/ListItem/ListItem.js +2 -0
- package/es/ListItem/ListItemWithIcon.js +2 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +10 -15
- package/es/MultiSelect/AdvancedMultiSelect.js +7 -6
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +10 -15
- package/es/MultiSelect/MultiSelect.module.css +8 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +3 -2
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +1 -2
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +8 -14
- package/es/Popup/viewPort.js +9 -14
- package/es/Provider/IdProvider.js +4 -5
- package/es/Provider/LibraryContext.js +5 -6
- package/es/Provider/NumberGenerator/NumberGenerator.js +15 -17
- package/es/Provider/ZindexProvider.js +4 -5
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +8 -11
- package/es/Responsive/ResizeComponent.js +1 -3
- package/es/Responsive/Responsive.js +9 -12
- package/es/Responsive/docs/Responsive__Custom.docs.js +44 -49
- package/es/Responsive/docs/Responsive__default.docs.js +74 -77
- package/es/Responsive/sizeObservers.js +1 -5
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -0
- package/es/RippleEffect/RippleEffect.js +7 -4
- package/es/RippleEffect/RippleEffect.module.css +3 -0
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
- package/es/Select/GroupSelect.js +1 -2
- package/es/Select/Select.js +1 -2
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Select/docs/Select__default.docs.js +1 -2
- package/es/Stencils/__tests__/Stencils.spec.js +1 -0
- package/es/Tab/Tab.js +26 -27
- package/es/Tab/TabContent.js +14 -17
- package/es/Tab/TabContentWrapper.js +14 -17
- package/es/Tab/TabWrapper.js +14 -15
- package/es/Tab/Tabs.js +1 -2
- package/es/Tab/docs/Tab__default.docs.js +1 -0
- package/es/Tag/Tag.js +10 -4
- package/es/Tag/Tag.module.css +14 -11
- package/es/Tag/docs/Tag__default.docs.js +70 -0
- package/es/TextBox/__tests__/TextBox.spec.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -0
- package/es/Textarea/__tests__/Textarea.spec.js +1 -0
- package/es/Tooltip/Tooltip.js +1 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/es/a11y/FocusScope/FocusScope.js +4 -10
- package/es/beta/FocusRing/FocusRing.js +1 -4
- package/es/common/docStyle.module.css +9 -9
- package/es/utils/Common.js +11 -31
- package/es/utils/datetime/common.js +3 -6
- package/es/utils/dropDownUtils.js +5 -6
- package/es/utils/getInitial.js +1 -3
- package/lib/Accordion/Accordion.js +3 -3
- package/lib/Accordion/AccordionItem.js +3 -3
- package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
- package/lib/Animation/Animation.js +3 -3
- package/lib/Animation/docs/Animation__default.docs.js +5 -5
- package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
- package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
- package/lib/AppContainer/AppContainer.js +3 -3
- package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
- package/lib/Appearance/dark/mode/darkMode.module.css +69 -69
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/default/mode/defaultMode.module.css +158 -158
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +4 -4
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
- package/lib/Button/Button.js +3 -3
- package/lib/Button/docs/Button__custom.docs.js +3 -3
- package/lib/Button/docs/Button__default.docs.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +3 -3
- package/lib/Card/__tests__/Card.spec.js +1 -1
- package/lib/Card/docs/Card__Custom.docs.js +3 -3
- package/lib/Card/docs/Card__Default.docs.js +7 -7
- package/lib/Card/docs/Card__Scroll.docs.js +7 -7
- package/lib/Card/index.js +7 -7
- package/lib/CheckBox/CheckBox.js +3 -3
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
- package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
- package/lib/DateTime/CalendarView.js +4 -4
- package/lib/DateTime/DateTime.js +3 -3
- package/lib/DateTime/DateTimePopupFooter.js +3 -3
- package/lib/DateTime/DateTimePopupHeader.js +3 -3
- package/lib/DateTime/DateWidget.js +3 -3
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/DaysRow.js +3 -3
- package/lib/DateTime/Time.js +3 -3
- package/lib/DateTime/YearView.js +3 -3
- package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
- package/lib/DateTime/constants.js +1 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
- package/lib/DateTime/dateFormatUtils/index.js +13 -13
- package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
- package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
- package/lib/DateTime/objectUtils.js +2 -2
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
- package/lib/DropDown/DropDown.js +4 -4
- package/lib/DropDown/DropDownHeading.js +3 -3
- package/lib/DropDown/DropDownItem.js +3 -3
- package/lib/DropDown/DropDownSearch.js +3 -3
- package/lib/DropDown/DropDownSeparator.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
- package/lib/Label/Label.js +3 -3
- package/lib/Label/docs/Label__clipped.docs.js +3 -3
- package/lib/Label/docs/Label__custom.docs.js +3 -3
- package/lib/Label/docs/Label__palette.docs.js +3 -3
- package/lib/Label/docs/Label__size.docs.js +3 -3
- package/lib/Label/docs/Label__type.docs.js +3 -3
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Container.js +1 -1
- package/lib/Layout/docs/Layout__Hidden.docs.js +4 -4
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
- package/lib/Layout/index.js +4 -4
- package/lib/Layout/utils.js +2 -2
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
- package/lib/ListItem/ListItem.js +3 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithCheckBox.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +3 -3
- package/lib/ListItem/ListItemWithRadio.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +10 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +9 -6
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +10 -7
- package/lib/MultiSelect/MultiSelect.module.css +8 -13
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +9 -6
- package/lib/MultiSelect/SelectedOptions.js +6 -5
- package/lib/MultiSelect/Suggestions.js +5 -5
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
- package/lib/PopOver/PopOver.js +4 -4
- package/lib/PopOver/PopOver.module.css +1 -1
- package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +3 -3
- package/lib/Provider/IdProvider.js +3 -3
- package/lib/Provider/LibraryContext.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
- package/lib/Provider/ZindexProvider.js +1 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
- package/lib/Provider.js +3 -3
- package/lib/Radio/Radio.js +4 -6
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Radio/docs/Radio__custom.docs.js +3 -3
- package/lib/Radio/docs/Radio__default.docs.js +3 -3
- package/lib/Responsive/CustomResponsive.js +4 -4
- package/lib/Responsive/RefWrapper.js +1 -1
- package/lib/Responsive/ResizeComponent.js +3 -3
- package/lib/Responsive/ResizeObserver.js +1 -1
- package/lib/Responsive/Responsive.js +5 -6
- package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
- package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
- package/lib/Responsive/sizeObservers.js +5 -6
- package/lib/Responsive/utils/index.js +2 -3
- package/lib/Responsive/utils/shallowCompare.js +1 -1
- package/lib/Ribbon/Ribbon.js +3 -3
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
- package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
- package/lib/RippleEffect/RippleEffect.js +7 -4
- package/lib/RippleEffect/RippleEffect.module.css +3 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +3 -3
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +10 -7
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +3 -3
- package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
- package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/docs/Switch__custom.docs.js +3 -3
- package/lib/Switch/docs/Switch__default.docs.js +3 -3
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +3 -3
- package/lib/Tab/docs/Tab__default.docs.js +3 -3
- package/lib/Tab/index.js +10 -10
- package/lib/Tag/Tag.js +13 -7
- package/lib/Tag/Tag.module.css +14 -11
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +73 -3
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
- package/lib/Tooltip/Tooltip.js +3 -3
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
- package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +5 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
- package/lib/a11y/FocusScope/FocusScope.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
- package/lib/beta/FocusRing/FocusRing.js +3 -3
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
- package/lib/common/docStyle.module.css +9 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/index.js +308 -308
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/Common.js +16 -20
- package/lib/utils/datetime/common.js +10 -10
- package/lib/utils/dropDownUtils.js +2 -2
- package/lib/utils/shallowEqual.js +1 -1
- package/package.json +5 -5
- package/preprocess/componentAppearanceColors.js +1 -1
- package/preprocess/json/componentAppearanceVariableJson.js +230 -230
- package/preprocess/json/componentThemeVariableJson.js +33 -33
- package/preprocess/json/ctaThemeVariableJson.js +38 -38
|
@@ -5,10 +5,9 @@ import Radio from '../../Radio/Radio'; // eslint-disable-next-line css-modules/n
|
|
|
5
5
|
|
|
6
6
|
import style from './style.module.css'; // eslint-disable-next-line react/prop-types
|
|
7
7
|
|
|
8
|
-
function WindowSizeBar(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} = _ref;
|
|
8
|
+
function WindowSizeBar({
|
|
9
|
+
isTouchDevice
|
|
10
|
+
}) {
|
|
12
11
|
let [{
|
|
13
12
|
windowWidth,
|
|
14
13
|
windowHeight
|
|
@@ -45,12 +44,11 @@ export default class Responsive__Custom extends React.Component {
|
|
|
45
44
|
this.switchToOr = this.handleMethodChange.bind(this, 'orFunction');
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
customQuery(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} = _ref2;
|
|
47
|
+
customQuery({
|
|
48
|
+
mediaQueryOR,
|
|
49
|
+
mediaQueryAND,
|
|
50
|
+
isTouchDevice
|
|
51
|
+
}) {
|
|
54
52
|
const {
|
|
55
53
|
method
|
|
56
54
|
} = this.state;
|
|
@@ -154,45 +152,42 @@ export default class Responsive__Custom extends React.Component {
|
|
|
154
152
|
} = this.state;
|
|
155
153
|
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
156
154
|
query: this.customQuery
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
className: ` ${style.box} ${isQureyMatched ? style.selected : ''} `
|
|
194
|
-
}, "minWidth: 700, maxWidth: 800 || minHeight: 700, maxHeight: 800"))));
|
|
195
|
-
})));
|
|
155
|
+
}, ({
|
|
156
|
+
isQureyMatched,
|
|
157
|
+
isTouchDevice
|
|
158
|
+
}) => /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(WindowSizeBar, {
|
|
159
|
+
isTouchDevice: isTouchDevice
|
|
160
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
161
|
+
flexible: true,
|
|
162
|
+
scroll: "vertical"
|
|
163
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
164
|
+
isCover: false,
|
|
165
|
+
alignBox: "row",
|
|
166
|
+
align: "vertical",
|
|
167
|
+
wrap: "wrap"
|
|
168
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
169
|
+
text: "AND Function",
|
|
170
|
+
onChange: this.switchToAnd,
|
|
171
|
+
name: "AndFunction",
|
|
172
|
+
checked: method === 'AndFunction'
|
|
173
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
174
|
+
style: {
|
|
175
|
+
margin: '20px'
|
|
176
|
+
}
|
|
177
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
178
|
+
text: "OR Function",
|
|
179
|
+
onChange: this.switchToOr,
|
|
180
|
+
name: "orFunction",
|
|
181
|
+
checked: method === 'orFunction'
|
|
182
|
+
}))), /*#__PURE__*/React.createElement(Container, {
|
|
183
|
+
isCover: false,
|
|
184
|
+
alignBox: "row",
|
|
185
|
+
align: "both",
|
|
186
|
+
wrap: "wrap"
|
|
187
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
188
|
+
shrink: true,
|
|
189
|
+
className: ` ${style.box} ${isQureyMatched ? style.selected : ''} `
|
|
190
|
+
}, "minWidth: 700, maxWidth: 800 || minHeight: 700, maxHeight: 800")))))));
|
|
196
191
|
}
|
|
197
192
|
|
|
198
193
|
}
|
|
@@ -8,83 +8,80 @@ import { Container, Box } from '../../Layout';
|
|
|
8
8
|
import style from './style.module.css';
|
|
9
9
|
export default class Responsive__default extends React.Component {
|
|
10
10
|
render() {
|
|
11
|
-
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
className: ` ${style.box} ${deviceUpto('MOBILE') ? style.selected : ''} `
|
|
86
|
-
}, "MOBILE"))));
|
|
87
|
-
}));
|
|
11
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null, ({
|
|
12
|
+
breakPoint,
|
|
13
|
+
deviceUpto,
|
|
14
|
+
deviceBetween,
|
|
15
|
+
deviceOnly,
|
|
16
|
+
isTouchDevice
|
|
17
|
+
}) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
18
|
+
className: style.header
|
|
19
|
+
}, ` ${breakPoint} ${isTouchDevice} `), /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
flexible: true,
|
|
21
|
+
scroll: "vertical"
|
|
22
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: style.subHeading
|
|
24
|
+
}, "Common Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
25
|
+
isCover: false,
|
|
26
|
+
alignBox: "row",
|
|
27
|
+
wrap: "wrap"
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
29
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE']) ? style.selected : ''} `
|
|
30
|
+
}, "MOBILE - 480"), /*#__PURE__*/React.createElement(Box, {
|
|
31
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_S']) ? style.selected : ''} `
|
|
32
|
+
}, "TABLET_S - 640"), /*#__PURE__*/React.createElement(Box, {
|
|
33
|
+
className: ` ${style.box} ${deviceOnly(['TABLET']) ? style.selected : ''} `
|
|
34
|
+
}, "TABLET - 768"), /*#__PURE__*/React.createElement(Box, {
|
|
35
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_S']) ? style.selected : ''} `
|
|
36
|
+
}, "LAPTOP_S - 1024"), /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP']) ? style.selected : ''} `
|
|
38
|
+
}, "LAPTOP - 1440")), /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: style.subHeading
|
|
40
|
+
}, "Other Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
41
|
+
isCover: false,
|
|
42
|
+
alignBox: "row",
|
|
43
|
+
wrap: "wrap"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR']) ? style.selected : ''} `
|
|
46
|
+
}, "MONITOR - 1920"), /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR_M']) ? style.selected : ''} `
|
|
48
|
+
}, "MONITOR_M - 1600"), /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_M']) ? style.selected : ''} `
|
|
50
|
+
}, "LAPTOP_M - 1280"), /*#__PURE__*/React.createElement(Box, {
|
|
51
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_M']) ? style.selected : ''} `
|
|
52
|
+
}, "TABLET_M - 720"), /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_M']) ? style.selected : ''} `
|
|
54
|
+
}, "MOBILE_M - 375.04"), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_S']) ? style.selected : ''} `
|
|
56
|
+
}, "MOBILE_S - 360"), /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_XS']) ? style.selected : ''} `
|
|
58
|
+
}, "MOBILE_XS - 320")), /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: style.subHeading
|
|
60
|
+
}, "Device Between"), /*#__PURE__*/React.createElement(Container, {
|
|
61
|
+
isCover: false,
|
|
62
|
+
alignBox: "row",
|
|
63
|
+
wrap: "wrap"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
65
|
+
className: ` ${style.box} ${deviceBetween('MOBILE_XS', 'TABLET') ? style.selected : ''} `
|
|
66
|
+
}, "MOBILE - TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
67
|
+
className: ` ${style.box} ${deviceBetween('TABLET_M', 'LAPTOP') ? style.selected : ''} `
|
|
68
|
+
}, "TABLET - LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
className: ` ${style.box} ${deviceBetween('LAPTOP_M', 'MONITOR') ? style.selected : ''} `
|
|
70
|
+
}, "LAPTOP - MONITOR")), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: style.subHeading
|
|
72
|
+
}, "Device Upto"), /*#__PURE__*/React.createElement(Container, {
|
|
73
|
+
isCover: false,
|
|
74
|
+
alignBox: "row",
|
|
75
|
+
wrap: "wrap"
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
className: ` ${style.box} ${deviceUpto('MONITOR') ? style.selected : ''} `
|
|
78
|
+
}, "MONITOR"), /*#__PURE__*/React.createElement(Box, {
|
|
79
|
+
className: ` ${style.box} ${deviceUpto('LAPTOP') ? style.selected : ''} `
|
|
80
|
+
}, "LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
81
|
+
className: ` ${style.box} ${deviceUpto('TABLET') ? style.selected : ''} `
|
|
82
|
+
}, "TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
className: ` ${style.box} ${deviceUpto('MOBILE') ? style.selected : ''} `
|
|
84
|
+
}, "MOBILE"))))));
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
}
|
|
@@ -68,11 +68,7 @@ export class Subscribale {
|
|
|
68
68
|
this.subscribers.length && this.disconnect();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
dispatch() {
|
|
72
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
73
|
-
args[_key] = arguments[_key];
|
|
74
|
-
}
|
|
75
|
-
|
|
71
|
+
dispatch(...args) {
|
|
76
72
|
this.subscribers.forEach(subscriber => {
|
|
77
73
|
subscriber(...args);
|
|
78
74
|
});
|
|
@@ -10,9 +10,10 @@ export default function RippleEffect(props) {
|
|
|
10
10
|
palette,
|
|
11
11
|
hoverType,
|
|
12
12
|
isNeedEffect,
|
|
13
|
-
needBorder
|
|
13
|
+
needBorder,
|
|
14
|
+
isCopyTextEnabled
|
|
14
15
|
} = props;
|
|
15
|
-
let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${isDisabled ? CssProvider('isDisabled') : ''}` : '';
|
|
16
|
+
let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${isCopyTextEnabled ? style.notAllowed : isDisabled ? CssProvider('isDisabled') : ''}` : '';
|
|
16
17
|
let child = React.Children.only(children);
|
|
17
18
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
18
19
|
className: `${child.props.className || ''} ${className}`
|
|
@@ -24,7 +25,8 @@ RippleEffect.defaultProps = {
|
|
|
24
25
|
isNeedEffect: true,
|
|
25
26
|
needBorder: true,
|
|
26
27
|
hoverType: 'default',
|
|
27
|
-
palette: 'default'
|
|
28
|
+
palette: 'default',
|
|
29
|
+
isCopyTextEnabled: false
|
|
28
30
|
};
|
|
29
31
|
RippleEffect.propTypes = {
|
|
30
32
|
children: PropTypes.node,
|
|
@@ -33,7 +35,8 @@ RippleEffect.propTypes = {
|
|
|
33
35
|
isDisabled: PropTypes.bool,
|
|
34
36
|
isNeedEffect: PropTypes.bool,
|
|
35
37
|
needBorder: PropTypes.bool,
|
|
36
|
-
palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger'])
|
|
38
|
+
palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger']),
|
|
39
|
+
isCopyTextEnabled: PropTypes.bool
|
|
37
40
|
};
|
|
38
41
|
|
|
39
42
|
if (false) {
|
|
@@ -86,7 +86,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
86
86
|
fontSize: '13px',
|
|
87
87
|
padding: '4px 9px 7px',
|
|
88
88
|
cursor: 'pointer',
|
|
89
|
-
color: 'var(--
|
|
89
|
+
color: 'var(--dot_strongGreen)'
|
|
90
90
|
}
|
|
91
91
|
}, "Green"))), /*#__PURE__*/React.createElement("div", {
|
|
92
92
|
style: {
|
|
@@ -100,7 +100,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
100
100
|
fontSize: '13px',
|
|
101
101
|
padding: '4px 9px 7px',
|
|
102
102
|
cursor: 'pointer',
|
|
103
|
-
color: 'var(--
|
|
103
|
+
color: 'var(--dot_brightRed)'
|
|
104
104
|
}
|
|
105
105
|
}, "Danger")))), /*#__PURE__*/React.createElement("div", {
|
|
106
106
|
style: boxStyle
|
|
@@ -162,7 +162,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
162
162
|
fontSize: '13px',
|
|
163
163
|
padding: '4px 9px 7px',
|
|
164
164
|
cursor: 'pointer',
|
|
165
|
-
color: 'var(--
|
|
165
|
+
color: 'var(--dot_strongGreen)'
|
|
166
166
|
}
|
|
167
167
|
}, "Green"))), /*#__PURE__*/React.createElement("div", {
|
|
168
168
|
style: {
|
|
@@ -177,7 +177,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
177
177
|
fontSize: '13px',
|
|
178
178
|
padding: '4px 9px 7px',
|
|
179
179
|
cursor: 'pointer',
|
|
180
|
-
color: 'var(--
|
|
180
|
+
color: 'var(--dot_brightRed)'
|
|
181
181
|
}
|
|
182
182
|
}, "Danger")))), /*#__PURE__*/React.createElement("div", {
|
|
183
183
|
style: boxStyle
|
|
@@ -223,7 +223,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
223
223
|
fontSize: '13px',
|
|
224
224
|
padding: '4px 9px 7px',
|
|
225
225
|
cursor: 'pointer',
|
|
226
|
-
color: 'var(--
|
|
226
|
+
color: 'var(--dot_strongGreen)'
|
|
227
227
|
}
|
|
228
228
|
}, "Green"))), /*#__PURE__*/React.createElement("div", {
|
|
229
229
|
style: {
|
|
@@ -238,7 +238,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
238
238
|
fontSize: '13px',
|
|
239
239
|
padding: '4px 9px 7px',
|
|
240
240
|
cursor: 'pointer',
|
|
241
|
-
color: 'var(--
|
|
241
|
+
color: 'var(--dot_brightRed)'
|
|
242
242
|
}
|
|
243
243
|
}, "Danger"))), /*#__PURE__*/React.createElement("div", {
|
|
244
244
|
style: {
|
|
@@ -328,7 +328,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
328
328
|
style: {
|
|
329
329
|
fontSize: '13px',
|
|
330
330
|
padding: '4px 9px 7px',
|
|
331
|
-
color: 'var(--
|
|
331
|
+
color: 'var(--dot_strongGreen)'
|
|
332
332
|
}
|
|
333
333
|
}, "Green")))), /*#__PURE__*/React.createElement("div", {
|
|
334
334
|
style: boxStyle
|
|
@@ -405,7 +405,7 @@ export default class RippleEffect__default extends React.Component {
|
|
|
405
405
|
fontSize: '13px',
|
|
406
406
|
padding: '4px 9px 7px',
|
|
407
407
|
cursor: 'pointer',
|
|
408
|
-
color: 'var(--
|
|
408
|
+
color: 'var(--dot_strongGreen)'
|
|
409
409
|
}
|
|
410
410
|
}, "Green"))), /*#__PURE__*/React.createElement("div", {
|
|
411
411
|
style: {
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -489,8 +489,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
handleFetchOptions(APICall) {
|
|
493
|
-
let searchStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
492
|
+
handleFetchOptions(APICall, searchStr = '') {
|
|
494
493
|
// let funcArgs = args.slice(1, args.length);
|
|
495
494
|
let {
|
|
496
495
|
isFetchingOptions = false
|
package/es/Select/Select.js
CHANGED
|
@@ -455,8 +455,7 @@ export class SelectComponent extends Component {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
handleFetchOptions(APICall) {
|
|
459
|
-
let searchStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
458
|
+
handleFetchOptions(APICall, searchStr = '') {
|
|
460
459
|
// let funcArgs = args.slice(1, args.length);
|
|
461
460
|
let {
|
|
462
461
|
isFetchingOptions = false
|
|
@@ -141,7 +141,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
141
141
|
tagSize,
|
|
142
142
|
groupName,
|
|
143
143
|
i18nKeys,
|
|
144
|
-
htmlId
|
|
144
|
+
htmlId,
|
|
145
|
+
needEffect
|
|
145
146
|
} = this.props;
|
|
146
147
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
147
148
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -164,7 +165,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
164
165
|
let setAriaId = this.getNextAriaId();
|
|
165
166
|
let ariaErrorId = this.getNextAriaId();
|
|
166
167
|
return /*#__PURE__*/React.createElement("div", {
|
|
167
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${className ? className : ''}`,
|
|
168
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
168
169
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
169
170
|
"data-title": isDisabled ? title : ''
|
|
170
171
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -342,7 +343,8 @@ SelectWithAvatarComponent.propTypes = {
|
|
|
342
343
|
title: PropTypes.string,
|
|
343
344
|
togglePopup: PropTypes.func,
|
|
344
345
|
valueField: PropTypes.string,
|
|
345
|
-
htmlId: PropTypes.string
|
|
346
|
+
htmlId: PropTypes.string,
|
|
347
|
+
needEffect: PropTypes.bool
|
|
346
348
|
};
|
|
347
349
|
SelectWithAvatarComponent.defaultProps = {
|
|
348
350
|
animationStyle: 'bounce',
|
|
@@ -363,7 +365,8 @@ SelectWithAvatarComponent.defaultProps = {
|
|
|
363
365
|
dataId: 'selectWithAvatar',
|
|
364
366
|
borderColor: 'default',
|
|
365
367
|
isSearchClearOnClose: true,
|
|
366
|
-
i18nKeys: {}
|
|
368
|
+
i18nKeys: {},
|
|
369
|
+
needEffect: true
|
|
367
370
|
};
|
|
368
371
|
SelectWithAvatarComponent.displayName = 'SelectWithAvatar';
|
|
369
372
|
let SelectWithAvatar = Popup(SelectWithAvatarComponent);
|
|
@@ -87,8 +87,7 @@ export default class Select__default extends React.Component {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
customChildren() {
|
|
91
|
-
let serach = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
90
|
+
customChildren(serach = {}) {
|
|
92
91
|
return /*#__PURE__*/React.createElement("div", null, serach.searchString, "Custom Children");
|
|
93
92
|
}
|
|
94
93
|
|
package/es/Tab/Tab.js
CHANGED
|
@@ -22,33 +22,32 @@ const tabTypes = {
|
|
|
22
22
|
tab: 'tabDelta'
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
export default function Tab(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = _ref;
|
|
25
|
+
export default function Tab({
|
|
26
|
+
id,
|
|
27
|
+
style,
|
|
28
|
+
text,
|
|
29
|
+
children,
|
|
30
|
+
className,
|
|
31
|
+
dataId,
|
|
32
|
+
title,
|
|
33
|
+
titlePosition,
|
|
34
|
+
activeClass,
|
|
35
|
+
href,
|
|
36
|
+
isLink,
|
|
37
|
+
isDisabled,
|
|
38
|
+
tourId,
|
|
39
|
+
onClick,
|
|
40
|
+
isActive,
|
|
41
|
+
getTabRef,
|
|
42
|
+
onSelect,
|
|
43
|
+
type,
|
|
44
|
+
isAnimate,
|
|
45
|
+
needBorder,
|
|
46
|
+
needAppearance,
|
|
47
|
+
align,
|
|
48
|
+
isVirtual,
|
|
49
|
+
customProps
|
|
50
|
+
}) {
|
|
52
51
|
let clickListener = useCallback(event => {
|
|
53
52
|
if (isLink && event && (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)) {
|
|
54
53
|
event && event.stopPropagation();
|
package/es/Tab/TabContent.js
CHANGED
|
@@ -4,23 +4,20 @@ import { Container } from '../Layout';
|
|
|
4
4
|
import style from './TabContent.module.css';
|
|
5
5
|
/* eslint-disable react/forbid-component-props */
|
|
6
6
|
|
|
7
|
-
const TabContent =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
role: "tabpanel"
|
|
22
|
-
}, children);
|
|
23
|
-
};
|
|
7
|
+
const TabContent = ({
|
|
8
|
+
children,
|
|
9
|
+
scroll,
|
|
10
|
+
dataId,
|
|
11
|
+
id
|
|
12
|
+
}) => /*#__PURE__*/React.createElement(Container, {
|
|
13
|
+
className: style.container,
|
|
14
|
+
scroll: scroll,
|
|
15
|
+
dataId: `${dataId}_TabContent`,
|
|
16
|
+
isScrollAttribute: true,
|
|
17
|
+
"aria-labelledby": id,
|
|
18
|
+
tabindex: "0",
|
|
19
|
+
role: "tabpanel"
|
|
20
|
+
}, children);
|
|
24
21
|
|
|
25
22
|
TabContent.defaultProps = {
|
|
26
23
|
dataId: 'tabContent'
|
|
@@ -3,23 +3,20 @@ import { PropTypes } from 'prop-types';
|
|
|
3
3
|
import { Box } from '../Layout';
|
|
4
4
|
/* eslint-disable react/forbid-component-props */
|
|
5
5
|
|
|
6
|
-
const TabContentWrapper =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onScroll: onScroll
|
|
21
|
-
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
22
|
-
};
|
|
6
|
+
const TabContentWrapper = ({
|
|
7
|
+
style,
|
|
8
|
+
className,
|
|
9
|
+
children,
|
|
10
|
+
dataId,
|
|
11
|
+
selectedTab,
|
|
12
|
+
onScroll
|
|
13
|
+
}) => /*#__PURE__*/React.createElement(Box, {
|
|
14
|
+
flexible: true,
|
|
15
|
+
style: style,
|
|
16
|
+
dataId: dataId,
|
|
17
|
+
className: className,
|
|
18
|
+
onScroll: onScroll
|
|
19
|
+
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
23
20
|
|
|
24
21
|
TabContentWrapper.defaultProps = {
|
|
25
22
|
children: []
|