@zohodesk/components 1.2.21 → 1.2.23
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/.DS_Store +0 -0
- package/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/.cli/stringContains.js +1 -0
- package/README.md +10 -0
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +15 -0
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +1 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +15 -0
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +1 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +15 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +1 -0
- package/es/Accordion/Accordion.js +3 -7
- package/es/Accordion/AccordionItem.js +2 -4
- package/es/Animation/Animation.js +3 -3
- package/es/AppContainer/AppContainer.js +3 -14
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +11 -23
- package/es/Avatar/Avatar.module.css +18 -18
- package/es/AvatarTeam/AvatarTeam.js +3 -3
- package/es/AvatarTeam/AvatarTeam.module.css +37 -35
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +2 -1
- package/es/Button/Button.js +3 -4
- package/es/Button/css/Button.module.css +70 -70
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/Buttongroup.module.css +15 -13
- package/es/Card/Card.js +10 -21
- package/es/CheckBox/CheckBox.js +3 -5
- package/es/CheckBox/CheckBox.module.css +16 -16
- package/es/DateTime/CalendarView.js +20 -32
- package/es/DateTime/DateTime.js +6 -69
- package/es/DateTime/DateTime.module.css +40 -40
- package/es/DateTime/DateTimePopupFooter.js +1 -4
- package/es/DateTime/DateTimePopupHeader.js +2 -8
- package/es/DateTime/DateWidget.js +35 -98
- package/es/DateTime/DateWidget.module.css +5 -5
- package/es/DateTime/DaysRow.js +1 -4
- package/es/DateTime/Time.js +1 -10
- package/es/DateTime/YearView.js +4 -28
- package/es/DateTime/YearView.module.css +15 -15
- package/es/DateTime/common.js +0 -3
- package/es/DateTime/constants.js +0 -1
- package/es/DateTime/dateFormatUtils/dateFormat.js +30 -65
- package/es/DateTime/dateFormatUtils/dateFormats.js +1 -0
- package/es/DateTime/dateFormatUtils/dayChange.js +4 -13
- package/es/DateTime/dateFormatUtils/index.js +1 -31
- package/es/DateTime/dateFormatUtils/monthChange.js +0 -8
- package/es/DateTime/dateFormatUtils/timeChange.js +6 -22
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -11
- package/es/DateTime/objectUtils.js +20 -14
- package/es/DateTime/typeChecker.js +0 -3
- package/es/DateTime/validator.js +6 -58
- package/es/DropBox/DropBox.js +2 -6
- package/es/DropBox/DropBoxElement/DropBoxElement.js +2 -8
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +3 -5
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -3
- package/es/DropBox/css/DropBox.module.css +6 -6
- package/es/DropBox/props/defaultProps.js +2 -1
- package/es/DropBox/props/propTypes.js +2 -1
- package/es/DropDown/DropDown.js +1 -7
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.js +5 -4
- package/es/DropDown/DropDownHeading.module.css +6 -6
- package/es/DropDown/DropDownItem.js +0 -6
- package/es/DropDown/DropDownItem.module.css +12 -12
- package/es/DropDown/DropDownSearch.js +0 -4
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.js +0 -1
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/DropDown/props/propTypes.js +2 -1
- package/es/Heading/Heading.js +3 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.js +3 -2
- package/es/Label/Label.module.css +5 -5
- package/es/Label/__tests__/Label.spec.js +2 -1
- package/es/Layout/Box.js +2 -15
- package/es/Layout/Container.js +3 -14
- package/es/Layout/Layout.module.css +15 -15
- package/es/Layout/index.js +2 -1
- package/es/Layout/utils.js +0 -1
- package/es/ListItem/ListContainer.js +3 -8
- package/es/ListItem/ListItem.js +3 -9
- package/es/ListItem/ListItem.module.css +38 -27
- package/es/ListItem/ListItemWithAvatar.js +3 -9
- package/es/ListItem/ListItemWithCheckBox.js +2 -7
- package/es/ListItem/ListItemWithIcon.js +3 -8
- package/es/ListItem/ListItemWithRadio.js +3 -7
- package/es/Modal/Modal.js +11 -28
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +13 -89
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -32
- package/es/MultiSelect/EmptyState.js +0 -2
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
- package/es/MultiSelect/MultiSelect.js +30 -99
- package/es/MultiSelect/MultiSelect.module.css +31 -31
- package/es/MultiSelect/MultiSelectHeader.js +0 -3
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -10
- package/es/MultiSelect/SelectedOptions.js +3 -6
- package/es/MultiSelect/SelectedOptions.module.css +5 -5
- package/es/MultiSelect/Suggestions.js +3 -7
- package/es/MultiSelect/props/propTypes.js +2 -2
- package/es/PopOver/PopOver.js +0 -16
- package/es/Popup/Popup.js +24 -77
- package/es/Popup/viewPort.js +4 -16
- package/es/Provider/IdProvider.js +5 -10
- package/es/Provider/LibraryContext.js +4 -6
- package/es/Provider/NumberGenerator/NumberGenerator.js +7 -21
- package/es/Provider/ZindexProvider.js +2 -9
- package/es/Radio/Radio.js +0 -3
- package/es/Radio/Radio.module.css +9 -9
- package/es/Responsive/CustomResponsive.js +18 -30
- package/es/Responsive/RefWrapper.js +7 -6
- package/es/Responsive/ResizeComponent.js +25 -35
- package/es/Responsive/ResizeObserver.js +6 -26
- package/es/Responsive/Responsive.js +20 -34
- package/es/Responsive/index.js +3 -1
- package/es/Responsive/sizeObservers.js +7 -28
- package/es/Responsive/utils/index.js +5 -7
- package/es/Responsive/utils/shallowCompare.js +2 -7
- package/es/Responsive/windowResizeObserver.js +0 -7
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -4
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/ResponsiveDropBox/props/propTypes.js +2 -1
- package/es/Ribbon/Ribbon.js +2 -3
- package/es/Ribbon/Ribbon.module.css +48 -45
- package/es/RippleEffect/RippleEffect.js +3 -1
- package/es/Select/GroupSelect.js +14 -58
- package/es/Select/Select.js +34 -80
- package/es/Select/Select.module.css +23 -23
- package/es/Select/SelectWithAvatar.js +4 -17
- package/es/Select/SelectWithIcon.js +5 -46
- package/es/Select/props/propTypes.js +2 -2
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +3 -5
- package/es/Switch/Switch.module.css +23 -23
- package/es/Tab/Tab.js +4 -4
- package/es/Tab/Tab.module.css +14 -14
- package/es/Tab/TabContent.js +0 -1
- package/es/Tab/TabContentWrapper.js +8 -6
- package/es/Tab/TabWrapper.js +2 -5
- package/es/Tab/Tabs.js +7 -54
- package/es/Tab/Tabs.module.css +22 -22
- package/es/Tab/props/defaultProps.js +2 -1
- package/es/Tab/props/propTypes.js +3 -1
- package/es/Tag/Tag.js +3 -6
- package/es/Tag/Tag.module.css +26 -25
- package/es/TextBox/TextBox.js +3 -16
- package/es/TextBox/TextBox.module.css +10 -10
- package/es/TextBoxIcon/TextBoxIcon.js +2 -9
- package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/es/TextBoxIcon/props/propTypes.js +2 -1
- package/es/Textarea/Textarea.js +3 -12
- package/es/Textarea/Textarea.module.css +22 -22
- package/es/Tooltip/Tooltip.js +14 -58
- package/es/Tooltip/Tooltip.module.css +5 -9
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -3
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -7
- package/es/common/animation.module.css +8 -8
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +3 -3
- package/es/common/common.module.css +24 -24
- package/es/common/customscroll.module.css +2 -12
- package/es/deprecated/PortalLayer/PortalLayer.js +20 -25
- package/es/semantic/Button/Button.js +2 -3
- package/es/semantic/Button/semanticButton.module.css +1 -1
- package/es/utils/Common.js +9 -54
- package/es/utils/ContextOptimizer.js +5 -4
- package/es/utils/constructFullName.js +0 -2
- package/es/utils/datetime/common.js +5 -16
- package/es/utils/debounce.js +1 -5
- package/es/utils/dropDownUtils.js +11 -68
- package/es/utils/getInitial.js +0 -4
- package/es/utils/shallowEqual.js +0 -6
- package/es/v1/Accordion/Accordion.js +3 -4
- package/es/v1/Accordion/AccordionItem.js +2 -4
- package/es/v1/Animation/Animation.js +3 -1
- package/es/v1/AppContainer/AppContainer.js +3 -9
- package/es/v1/Avatar/Avatar.js +6 -18
- package/es/v1/AvatarTeam/AvatarTeam.js +0 -1
- package/es/v1/Button/Button.js +3 -3
- package/es/v1/Card/Card.js +8 -16
- package/es/v1/CheckBox/CheckBox.js +3 -6
- package/es/v1/DateTime/CalendarView.js +20 -32
- package/es/v1/DateTime/DateTime.js +6 -69
- package/es/v1/DateTime/DateTimePopupFooter.js +1 -4
- package/es/v1/DateTime/DateTimePopupHeader.js +2 -8
- package/es/v1/DateTime/DateWidget.js +35 -98
- package/es/v1/DateTime/DaysRow.js +1 -4
- package/es/v1/DateTime/Time.js +1 -10
- package/es/v1/DateTime/YearView.js +4 -28
- package/es/v1/DropBox/DropBox.js +2 -6
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +2 -8
- package/es/v1/DropBox/props/defaultProps.js +2 -1
- package/es/v1/DropBox/props/propTypes.js +2 -1
- package/es/v1/DropDown/DropDown.js +0 -3
- package/es/v1/DropDown/DropDownHeading.js +2 -2
- package/es/v1/DropDown/DropDownItem.js +0 -5
- package/es/v1/DropDown/DropDownSearch.js +2 -3
- package/es/v1/DropDown/props/propTypes.js +2 -1
- package/es/v1/Heading/Heading.js +3 -1
- package/es/v1/Layout/Box.js +2 -15
- package/es/v1/Layout/Container.js +3 -14
- package/es/v1/ListItem/ListContainer.js +3 -8
- package/es/v1/ListItem/ListItem.js +3 -10
- package/es/v1/ListItem/ListItemWithAvatar.js +1 -9
- package/es/v1/ListItem/ListItemWithCheckBox.js +2 -8
- package/es/v1/ListItem/ListItemWithIcon.js +3 -9
- package/es/v1/ListItem/ListItemWithRadio.js +3 -8
- package/es/v1/Modal/Modal.js +1 -17
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +15 -90
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -32
- package/es/v1/MultiSelect/EmptyState.js +0 -2
- package/es/v1/MultiSelect/MultiSelect.js +31 -100
- package/es/v1/MultiSelect/MultiSelectHeader.js +0 -3
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +3 -11
- package/es/v1/MultiSelect/SelectedOptions.js +3 -6
- package/es/v1/MultiSelect/Suggestions.js +3 -7
- package/es/v1/MultiSelect/props/propTypes.js +2 -2
- package/es/v1/PopOver/PopOver.js +0 -11
- package/es/v1/Popup/Popup.js +24 -77
- package/es/v1/Provider/IdProvider.js +5 -10
- package/es/v1/Provider/LibraryContext.js +4 -6
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +7 -21
- package/es/v1/Provider/ZindexProvider.js +2 -9
- package/es/v1/Radio/Radio.js +2 -5
- package/es/v1/Responsive/CustomResponsive.js +18 -30
- package/es/v1/Responsive/RefWrapper.js +7 -6
- package/es/v1/Responsive/ResizeComponent.js +25 -35
- package/es/v1/Responsive/ResizeObserver.js +6 -26
- package/es/v1/Responsive/Responsive.js +20 -34
- package/es/v1/Responsive/index.js +3 -1
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -1
- package/es/v1/ResponsiveDropBox/props/propTypes.js +2 -1
- package/es/v1/Select/GroupSelect.js +14 -58
- package/es/v1/Select/Select.js +38 -82
- package/es/v1/Select/SelectWithAvatar.js +4 -17
- package/es/v1/Select/SelectWithIcon.js +5 -46
- package/es/v1/Select/props/propTypes.js +2 -2
- package/es/v1/Stencils/Stencils.js +0 -2
- package/es/v1/Switch/Switch.js +3 -6
- package/es/v1/Tab/Tab.js +3 -3
- package/es/v1/Tab/TabContent.js +0 -1
- package/es/v1/Tab/TabContentWrapper.js +8 -6
- package/es/v1/Tab/TabWrapper.js +2 -5
- package/es/v1/Tab/Tabs.js +9 -54
- package/es/v1/Tab/props/defaultProps.js +2 -1
- package/es/v1/Tab/props/propTypes.js +3 -1
- package/es/v1/Tab/v1Tab.module.css +14 -14
- package/es/v1/Tab/v1Tabs.module.css +22 -22
- package/es/v1/Tag/Tag.js +1 -5
- package/es/v1/TextBox/TextBox.js +0 -14
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -6
- package/es/v1/TextBoxIcon/props/propTypes.js +2 -1
- package/es/v1/Textarea/Textarea.js +3 -10
- package/es/v1/Tooltip/Tooltip.js +14 -58
- package/es/v1/Typography/Typography.js +0 -2
- package/es/v1/Typography/css/Typography.module.css +31 -31
- package/es/v1/Typography/css/cssJSLogic.js +0 -3
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -1
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/v1/semantic/Button/Button.js +2 -1
- package/lib/Accordion/Accordion.js +18 -42
- package/lib/Accordion/AccordionItem.js +18 -40
- package/lib/Accordion/index.js +0 -3
- package/lib/Accordion/props/propTypes.js +0 -3
- package/lib/Animation/Animation.js +18 -38
- package/lib/Animation/props/propTypes.js +0 -3
- package/lib/AppContainer/AppContainer.js +20 -58
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/AppContainer/props/propTypes.js +0 -3
- package/lib/Avatar/Avatar.js +38 -78
- package/lib/Avatar/Avatar.module.css +18 -18
- package/lib/Avatar/__tests__/Avatar.spec.js +71 -95
- package/lib/Avatar/props/propTypes.js +0 -3
- package/lib/AvatarTeam/AvatarTeam.js +30 -52
- package/lib/AvatarTeam/AvatarTeam.module.css +37 -35
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +61 -77
- package/lib/AvatarTeam/props/propTypes.js +0 -3
- package/lib/Button/Button.js +22 -33
- package/lib/Button/__tests__/Button.spec.js +48 -65
- package/lib/Button/css/Button.module.css +70 -70
- package/lib/Button/css/cssJSLogic.js +17 -18
- package/lib/Button/index.js +0 -3
- package/lib/Button/props/defaultProps.js +0 -2
- package/lib/Button/props/propTypes.js +0 -3
- package/lib/Buttongroup/Buttongroup.js +12 -32
- package/lib/Buttongroup/Buttongroup.module.css +15 -13
- package/lib/Buttongroup/__tests__/Buttongroup.spec.js +10 -18
- package/lib/Buttongroup/props/propTypes.js +0 -3
- package/lib/Card/Card.js +46 -102
- package/lib/Card/index.js +0 -4
- package/lib/Card/props/propTypes.js +0 -3
- package/lib/CheckBox/CheckBox.js +47 -71
- package/lib/CheckBox/CheckBox.module.css +16 -16
- package/lib/CheckBox/props/propTypes.js +0 -3
- package/lib/DateTime/CalendarView.js +42 -82
- package/lib/DateTime/DateTime.js +156 -244
- package/lib/DateTime/DateTime.module.css +40 -40
- package/lib/DateTime/DateTimePopupFooter.js +8 -33
- package/lib/DateTime/DateTimePopupHeader.js +17 -49
- package/lib/DateTime/DateWidget.js +249 -350
- package/lib/DateTime/DateWidget.module.css +5 -5
- package/lib/DateTime/DaysRow.js +5 -28
- package/lib/DateTime/Time.js +32 -75
- package/lib/DateTime/YearView.js +27 -76
- package/lib/DateTime/YearView.module.css +15 -15
- package/lib/DateTime/common.js +0 -6
- package/lib/DateTime/constants.js +0 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +122 -187
- package/lib/DateTime/dateFormatUtils/dateFormats.js +1 -0
- package/lib/DateTime/dateFormatUtils/dayChange.js +7 -15
- package/lib/DateTime/dateFormatUtils/index.js +16 -73
- package/lib/DateTime/dateFormatUtils/monthChange.js +9 -20
- package/lib/DateTime/dateFormatUtils/timeChange.js +22 -54
- package/lib/DateTime/dateFormatUtils/yearChange.js +11 -23
- package/lib/DateTime/index.js +0 -2
- package/lib/DateTime/objectUtils.js +20 -24
- package/lib/DateTime/props/propTypes.js +1 -11
- package/lib/DateTime/typeChecker.js +0 -4
- package/lib/DateTime/validator.js +10 -73
- package/lib/DropBox/DropBox.js +21 -45
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +40 -60
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +76 -73
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +34 -42
- package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -3
- package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +9 -14
- package/lib/DropBox/css/DropBox.module.css +6 -6
- package/lib/DropBox/css/cssJSLogic.js +1 -3
- package/lib/DropBox/props/defaultProps.js +4 -8
- package/lib/DropBox/props/propTypes.js +4 -10
- package/lib/DropDown/DropDown.js +5 -51
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.js +20 -39
- package/lib/DropDown/DropDownHeading.module.css +6 -6
- package/lib/DropDown/DropDownItem.js +20 -42
- package/lib/DropDown/DropDownItem.module.css +12 -12
- package/lib/DropDown/DropDownSearch.js +17 -40
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.js +4 -24
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/DropDown/index.js +0 -9
- package/lib/DropDown/props/propTypes.js +4 -10
- package/lib/Heading/Heading.js +15 -37
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Heading/props/propTypes.js +0 -3
- package/lib/Label/Label.js +21 -41
- package/lib/Label/Label.module.css +5 -5
- package/lib/Label/__tests__/Label.spec.js +34 -48
- package/lib/Label/props/propTypes.js +0 -3
- package/lib/Layout/Box.js +15 -35
- package/lib/Layout/Container.js +14 -33
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/Layout/index.js +0 -3
- package/lib/Layout/props/propTypes.js +0 -3
- package/lib/Layout/utils.js +0 -11
- package/lib/ListItem/ListContainer.js +30 -55
- package/lib/ListItem/ListItem.js +45 -74
- package/lib/ListItem/ListItem.module.css +38 -27
- package/lib/ListItem/ListItemWithAvatar.js +48 -80
- package/lib/ListItem/ListItemWithCheckBox.js +40 -70
- package/lib/ListItem/ListItemWithIcon.js +44 -73
- package/lib/ListItem/ListItemWithRadio.js +42 -71
- package/lib/ListItem/index.js +0 -7
- package/lib/ListItem/props/propTypes.js +4 -6
- package/lib/Modal/Modal.js +10 -45
- package/lib/Modal/props/propTypes.js +0 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +166 -293
- package/lib/MultiSelect/AdvancedMultiSelect.js +125 -202
- package/lib/MultiSelect/EmptyState.js +24 -45
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +5 -14
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
- package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -3
- package/lib/MultiSelect/MultiSelect.js +214 -333
- package/lib/MultiSelect/MultiSelect.module.css +31 -31
- package/lib/MultiSelect/MultiSelectHeader.js +7 -29
- package/lib/MultiSelect/MultiSelectWithAvatar.js +43 -85
- package/lib/MultiSelect/SelectedOptions.js +17 -43
- package/lib/MultiSelect/SelectedOptions.module.css +5 -5
- package/lib/MultiSelect/Suggestions.js +32 -64
- package/lib/MultiSelect/index.js +0 -5
- package/lib/MultiSelect/props/defaultProps.js +0 -2
- package/lib/MultiSelect/props/propTypes.js +4 -14
- package/lib/PopOver/PopOver.js +47 -94
- package/lib/PopOver/index.js +0 -4
- package/lib/PopOver/props/propTypes.js +0 -3
- package/lib/Popup/Popup.js +81 -158
- package/lib/Popup/viewPort.js +14 -28
- package/lib/Provider/AvatarSize.js +0 -4
- package/lib/Provider/Config.js +0 -2
- package/lib/Provider/CssProvider.js +0 -4
- package/lib/Provider/IdProvider.js +6 -17
- package/lib/Provider/LibraryContext.js +15 -35
- package/lib/Provider/LibraryContextInit.js +0 -4
- package/lib/Provider/NumberGenerator/NumberGenerator.js +15 -44
- package/lib/Provider/ZindexProvider.js +3 -15
- package/lib/Provider/index.js +0 -5
- package/lib/Radio/Radio.js +36 -60
- package/lib/Radio/Radio.module.css +9 -9
- package/lib/Radio/__tests__/Radio.spec.js +103 -134
- package/lib/Radio/props/propTypes.js +0 -3
- package/lib/Responsive/CustomResponsive.js +29 -73
- package/lib/Responsive/RefWrapper.js +11 -17
- package/lib/Responsive/ResizeComponent.js +36 -62
- package/lib/Responsive/ResizeObserver.js +10 -24
- package/lib/Responsive/Responsive.js +30 -80
- package/lib/Responsive/index.js +0 -4
- package/lib/Responsive/props/propTypes.js +0 -3
- package/lib/Responsive/sizeObservers.js +17 -53
- package/lib/Responsive/utils/index.js +3 -11
- package/lib/Responsive/utils/shallowCompare.js +2 -11
- package/lib/Responsive/windowResizeObserver.js +0 -8
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +17 -45
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/ResponsiveDropBox/props/propTypes.js +4 -9
- package/lib/Ribbon/Ribbon.js +13 -33
- package/lib/Ribbon/Ribbon.module.css +48 -45
- package/lib/Ribbon/__tests__/Ribbon.spec.js +14 -24
- package/lib/Ribbon/props/propTypes.js +0 -3
- package/lib/RippleEffect/RippleEffect.js +10 -18
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +22 -34
- package/lib/RippleEffect/props/propTypes.js +0 -3
- package/lib/Select/GroupSelect.js +130 -229
- package/lib/Select/Select.js +212 -296
- package/lib/Select/Select.module.css +23 -23
- package/lib/Select/SelectWithAvatar.js +56 -102
- package/lib/Select/SelectWithIcon.js +76 -131
- package/lib/Select/index.js +0 -5
- package/lib/Select/props/defaultProps.js +4 -5
- package/lib/Select/props/propTypes.js +4 -10
- package/lib/Stencils/Stencils.js +10 -29
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Stencils/__tests__/Stencils.spec.js +13 -22
- package/lib/Stencils/props/propTypes.js +0 -3
- package/lib/Switch/Switch.js +34 -57
- package/lib/Switch/Switch.module.css +23 -23
- package/lib/Switch/__tests__/Switch.spec.js +72 -91
- package/lib/Switch/props/propTypes.js +0 -3
- package/lib/Tab/Tab.js +27 -40
- package/lib/Tab/Tab.module.css +14 -14
- package/lib/Tab/TabContent.js +5 -12
- package/lib/Tab/TabContentWrapper.js +13 -16
- package/lib/Tab/TabWrapper.js +19 -37
- package/lib/Tab/Tabs.js +91 -171
- package/lib/Tab/Tabs.module.css +22 -22
- package/lib/Tab/index.js +0 -6
- package/lib/Tab/props/defaultProps.js +2 -1
- package/lib/Tab/props/propTypes.js +3 -4
- package/lib/Tag/Tag.js +43 -72
- package/lib/Tag/Tag.module.css +26 -25
- package/lib/Tag/props/propTypes.js +0 -3
- package/lib/TextBox/TextBox.js +60 -86
- package/lib/TextBox/TextBox.module.css +10 -10
- package/lib/TextBox/props/propTypes.js +4 -6
- package/lib/TextBoxIcon/TextBoxIcon.js +53 -80
- package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/lib/TextBoxIcon/props/propTypes.js +4 -9
- package/lib/Textarea/Textarea.js +29 -54
- package/lib/Textarea/Textarea.module.css +22 -22
- package/lib/Textarea/props/propTypes.js +0 -3
- package/lib/Tooltip/Tooltip.js +31 -94
- package/lib/Tooltip/Tooltip.module.css +5 -9
- package/lib/Tooltip/props/propTypes.js +0 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +16 -40
- package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +25 -53
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
- package/lib/VelocityAnimation/index.js +0 -3
- package/lib/common/animation.module.css +8 -8
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +3 -3
- package/lib/common/common.module.css +24 -24
- package/lib/common/customscroll.module.css +2 -12
- package/lib/css.js +0 -40
- package/lib/deprecated/PortalLayer/PortalLayer.js +23 -46
- package/lib/deprecated/PortalLayer/props/propTypes.js +0 -3
- package/lib/index.js +0 -58
- package/lib/semantic/Button/Button.js +22 -42
- package/lib/semantic/Button/props/propTypes.js +0 -3
- package/lib/semantic/Button/semanticButton.module.css +1 -1
- package/lib/semantic/index.js +0 -2
- package/lib/utils/Common.js +18 -111
- package/lib/utils/ContextOptimizer.js +10 -16
- package/lib/utils/constructFullName.js +4 -13
- package/lib/utils/datetime/common.js +5 -34
- package/lib/utils/debounce.js +1 -6
- package/lib/utils/dropDownUtils.js +59 -175
- package/lib/utils/dummyFunction.js +0 -2
- package/lib/utils/getHTMLFontSize.js +0 -1
- package/lib/utils/getInitial.js +0 -6
- package/lib/utils/index.js +0 -1
- package/lib/utils/scrollTo.js +0 -2
- package/lib/utils/shallowEqual.js +0 -8
- package/lib/v1/Accordion/Accordion.js +19 -38
- package/lib/v1/Accordion/AccordionItem.js +13 -23
- package/lib/v1/Accordion/index.js +0 -3
- package/lib/v1/Accordion/props/propTypes.js +0 -3
- package/lib/v1/Animation/Animation.js +14 -20
- package/lib/v1/Animation/props/propTypes.js +0 -3
- package/lib/v1/AppContainer/AppContainer.js +17 -46
- package/lib/v1/AppContainer/props/propTypes.js +0 -3
- package/lib/v1/Avatar/Avatar.js +32 -68
- package/lib/v1/Avatar/props/propTypes.js +0 -3
- package/lib/v1/AvatarTeam/AvatarTeam.js +24 -32
- package/lib/v1/AvatarTeam/props/propTypes.js +0 -3
- package/lib/v1/Button/Button.js +22 -32
- package/lib/v1/Button/props/defaultProps.js +0 -2
- package/lib/v1/Button/props/propTypes.js +0 -3
- package/lib/v1/Buttongroup/Buttongroup.js +5 -13
- package/lib/v1/Buttongroup/props/propTypes.js +0 -3
- package/lib/v1/Card/Card.js +44 -78
- package/lib/v1/Card/index.js +0 -4
- package/lib/v1/Card/props/propTypes.js +0 -3
- package/lib/v1/CheckBox/CheckBox.js +41 -52
- package/lib/v1/CheckBox/props/propTypes.js +0 -3
- package/lib/v1/DateTime/CalendarView.js +48 -89
- package/lib/v1/DateTime/DateTime.js +158 -246
- package/lib/v1/DateTime/DateTimePopupFooter.js +8 -33
- package/lib/v1/DateTime/DateTimePopupHeader.js +17 -49
- package/lib/v1/DateTime/DateWidget.js +251 -352
- package/lib/v1/DateTime/DaysRow.js +5 -28
- package/lib/v1/DateTime/Time.js +32 -75
- package/lib/v1/DateTime/YearView.js +27 -76
- package/lib/v1/DateTime/index.js +0 -2
- package/lib/v1/DateTime/props/propTypes.js +1 -11
- package/lib/v1/DropBox/DropBox.js +21 -45
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +40 -60
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -3
- package/lib/v1/DropBox/props/defaultProps.js +4 -8
- package/lib/v1/DropBox/props/propTypes.js +4 -10
- package/lib/v1/DropDown/DropDown.js +3 -23
- package/lib/v1/DropDown/DropDownHeading.js +13 -20
- package/lib/v1/DropDown/DropDownItem.js +11 -26
- package/lib/v1/DropDown/DropDownSearch.js +16 -28
- package/lib/v1/DropDown/DropDownSeparator.js +1 -7
- package/lib/v1/DropDown/props/propTypes.js +4 -10
- package/lib/v1/Heading/Heading.js +14 -19
- package/lib/v1/Heading/props/propTypes.js +0 -3
- package/lib/v1/Label/Label.js +14 -22
- package/lib/v1/Label/props/propTypes.js +0 -3
- package/lib/v1/Layout/Box.js +15 -35
- package/lib/v1/Layout/Container.js +14 -33
- package/lib/v1/Layout/index.js +0 -3
- package/lib/v1/Layout/props/propTypes.js +0 -3
- package/lib/v1/ListItem/ListContainer.js +30 -55
- package/lib/v1/ListItem/ListItem.js +38 -53
- package/lib/v1/ListItem/ListItemWithAvatar.js +39 -62
- package/lib/v1/ListItem/ListItemWithCheckBox.js +34 -49
- package/lib/v1/ListItem/ListItemWithIcon.js +37 -52
- package/lib/v1/ListItem/ListItemWithRadio.js +35 -49
- package/lib/v1/ListItem/index.js +0 -7
- package/lib/v1/ListItem/props/propTypes.js +4 -6
- package/lib/v1/Modal/Modal.js +9 -46
- package/lib/v1/Modal/props/propTypes.js +0 -3
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +168 -294
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +125 -202
- package/lib/v1/MultiSelect/EmptyState.js +24 -45
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -14
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -3
- package/lib/v1/MultiSelect/MultiSelect.js +216 -335
- package/lib/v1/MultiSelect/MultiSelectHeader.js +7 -29
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +43 -86
- package/lib/v1/MultiSelect/SelectedOptions.js +17 -43
- package/lib/v1/MultiSelect/Suggestions.js +32 -64
- package/lib/v1/MultiSelect/index.js +0 -5
- package/lib/v1/MultiSelect/props/defaultProps.js +0 -2
- package/lib/v1/MultiSelect/props/propTypes.js +4 -14
- package/lib/v1/PopOver/PopOver.js +40 -71
- package/lib/v1/PopOver/props/propTypes.js +0 -3
- package/lib/v1/Popup/Popup.js +81 -158
- package/lib/v1/Provider/AvatarSize.js +0 -4
- package/lib/v1/Provider/Config.js +0 -2
- package/lib/v1/Provider/CssProvider.js +0 -4
- package/lib/v1/Provider/IdProvider.js +6 -17
- package/lib/v1/Provider/LibraryContext.js +15 -35
- package/lib/v1/Provider/LibraryContextInit.js +0 -4
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +15 -44
- package/lib/v1/Provider/ZindexProvider.js +3 -15
- package/lib/v1/Provider/index.js +0 -5
- package/lib/v1/Radio/Radio.js +32 -42
- package/lib/v1/Radio/props/propTypes.js +0 -3
- package/lib/v1/Responsive/CustomResponsive.js +29 -73
- package/lib/v1/Responsive/RefWrapper.js +11 -17
- package/lib/v1/Responsive/ResizeComponent.js +36 -62
- package/lib/v1/Responsive/ResizeObserver.js +10 -24
- package/lib/v1/Responsive/Responsive.js +30 -80
- package/lib/v1/Responsive/index.js +0 -4
- package/lib/v1/Responsive/props/propTypes.js +0 -3
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +13 -27
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +4 -9
- package/lib/v1/Ribbon/Ribbon.js +7 -14
- package/lib/v1/Ribbon/props/propTypes.js +0 -3
- package/lib/v1/RippleEffect/RippleEffect.js +7 -17
- package/lib/v1/RippleEffect/props/propTypes.js +0 -3
- package/lib/v1/Select/GroupSelect.js +130 -229
- package/lib/v1/Select/Select.js +215 -298
- package/lib/v1/Select/SelectWithAvatar.js +56 -102
- package/lib/v1/Select/SelectWithIcon.js +76 -131
- package/lib/v1/Select/index.js +0 -5
- package/lib/v1/Select/props/defaultProps.js +4 -5
- package/lib/v1/Select/props/propTypes.js +4 -10
- package/lib/v1/Stencils/Stencils.js +3 -13
- package/lib/v1/Stencils/props/propTypes.js +0 -3
- package/lib/v1/Switch/Switch.js +25 -38
- package/lib/v1/Switch/props/propTypes.js +0 -3
- package/lib/v1/Tab/Tab.js +27 -40
- package/lib/v1/Tab/TabContent.js +5 -12
- package/lib/v1/Tab/TabContentWrapper.js +13 -16
- package/lib/v1/Tab/TabWrapper.js +19 -37
- package/lib/v1/Tab/Tabs.js +83 -170
- package/lib/v1/Tab/index.js +0 -6
- package/lib/v1/Tab/props/defaultProps.js +2 -1
- package/lib/v1/Tab/props/propTypes.js +3 -4
- package/lib/v1/Tab/v1Tab.module.css +14 -14
- package/lib/v1/Tab/v1Tabs.module.css +22 -22
- package/lib/v1/Tag/Tag.js +32 -50
- package/lib/v1/Tag/props/propTypes.js +0 -3
- package/lib/v1/TextBox/TextBox.js +47 -70
- package/lib/v1/TextBox/props/propTypes.js +4 -6
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +55 -80
- package/lib/v1/TextBoxIcon/props/propTypes.js +4 -9
- package/lib/v1/Textarea/Textarea.js +28 -45
- package/lib/v1/Textarea/props/propTypes.js +0 -3
- package/lib/v1/Tooltip/Tooltip.js +31 -94
- package/lib/v1/Tooltip/props/propTypes.js +0 -3
- package/lib/v1/Typography/Typography.js +15 -26
- package/lib/v1/Typography/css/Typography.module.css +31 -31
- package/lib/v1/Typography/css/cssJSLogic.js +20 -25
- package/lib/v1/Typography/props/propTypes.js +0 -3
- package/lib/v1/Typography/utils/index.js +0 -1
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +12 -25
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -3
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +22 -38
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -3
- package/lib/v1/semantic/Button/Button.js +18 -24
- package/lib/v1/semantic/Button/props/propTypes.js +0 -3
- package/lib/v1/semantic/index.js +0 -2
- package/package.json +13 -12
- package/propValidationArg.json +2 -2
- package/result.json +1 -1
- /package/.cli/{AppearanceThemeValidationExcludeFiles.js → ThemeValidationExcludeFiles.js} +0 -0
|
@@ -8,7 +8,6 @@ export default class AccordionItem extends React.Component {
|
|
|
8
8
|
super(props);
|
|
9
9
|
this.equalityCheck = this.equalityCheck.bind(this);
|
|
10
10
|
}
|
|
11
|
-
|
|
12
11
|
equalityCheck() {
|
|
13
12
|
let {
|
|
14
13
|
equalityCheck,
|
|
@@ -17,7 +16,6 @@ export default class AccordionItem extends React.Component {
|
|
|
17
16
|
} = this.props;
|
|
18
17
|
return equalityCheck ? equalityCheck(id, selectedItem) : selectedItem == id;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
render() {
|
|
22
20
|
let {
|
|
23
21
|
id,
|
|
@@ -52,10 +50,10 @@ export default class AccordionItem extends React.Component {
|
|
|
52
50
|
isActive: this.equalityCheck()
|
|
53
51
|
}, children[1]));
|
|
54
52
|
}
|
|
55
|
-
|
|
56
53
|
}
|
|
57
54
|
AccordionItem.propTypes = AccordionItem_propTypes;
|
|
58
|
-
AccordionItem.defaultProps = AccordionItem_defaultProps;
|
|
55
|
+
AccordionItem.defaultProps = AccordionItem_defaultProps;
|
|
56
|
+
// if (__DOCS__) {
|
|
59
57
|
// AccordionItem.docs = {
|
|
60
58
|
// componentGroup: 'Animation',
|
|
61
59
|
// folderName: 'Style Guide'
|
|
@@ -7,7 +7,6 @@ export default class Animation extends React.Component {
|
|
|
7
7
|
constructor(props) {
|
|
8
8
|
super(props);
|
|
9
9
|
}
|
|
10
|
-
|
|
11
10
|
render() {
|
|
12
11
|
let {
|
|
13
12
|
name,
|
|
@@ -121,10 +120,11 @@ export default class Animation extends React.Component {
|
|
|
121
120
|
onExit: onExit
|
|
122
121
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
123
122
|
}
|
|
124
|
-
|
|
125
123
|
}
|
|
126
124
|
Animation.propTypes = propTypes;
|
|
127
|
-
Animation.defaultProps = defaultProps;
|
|
125
|
+
Animation.defaultProps = defaultProps;
|
|
126
|
+
|
|
127
|
+
// if (__DOCS__) {
|
|
128
128
|
// Animation.docs = {
|
|
129
129
|
// componentGroup: 'Animation',
|
|
130
130
|
// folderName: 'Style Guide',
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { defaultProps } from './props/defaultProps';
|
|
5
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -31,27 +30,22 @@ export default class AppContainer extends React.Component {
|
|
|
31
30
|
getTooltipContainer: () => this.containerElement
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
mouseOverDispatch(e) {
|
|
36
34
|
if (this.tooltipRef) {
|
|
37
35
|
this.tooltipRef.handleOver(e, this.containerElement);
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
|
-
|
|
41
38
|
removeTimeout() {
|
|
42
39
|
if (this.timer) {
|
|
43
40
|
this.timer = clearTimeout(this.timer);
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
|
-
|
|
47
43
|
handleOver(e) {
|
|
48
44
|
if (this.timer) {
|
|
49
45
|
this.timer = clearTimeout(this.timer);
|
|
50
46
|
}
|
|
51
|
-
|
|
52
47
|
this.timer = setTimeout(() => this.mouseOverDispatch(e), this.tooltipDebounce);
|
|
53
48
|
}
|
|
54
|
-
|
|
55
49
|
getContainerRef(ref) {
|
|
56
50
|
let {
|
|
57
51
|
eleRef
|
|
@@ -59,28 +53,23 @@ export default class AppContainer extends React.Component {
|
|
|
59
53
|
this.containerElement = ref;
|
|
60
54
|
eleRef && eleRef(ref);
|
|
61
55
|
}
|
|
62
|
-
|
|
63
56
|
setTooltipRef(ref) {
|
|
64
57
|
this.tooltipRef = ref;
|
|
65
58
|
}
|
|
66
|
-
|
|
67
59
|
componentDidMount() {
|
|
68
60
|
let {
|
|
69
61
|
needTooltip
|
|
70
62
|
} = this.props;
|
|
71
|
-
|
|
72
63
|
if (this.containerElement && needTooltip) {
|
|
73
64
|
this.containerElement.addEventListener('mouseover', this.handleOver, false);
|
|
74
65
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
75
66
|
this.tooltipRef.observeElement();
|
|
76
67
|
}
|
|
77
68
|
}
|
|
78
|
-
|
|
79
69
|
componentWillUnmount() {
|
|
80
70
|
let {
|
|
81
71
|
needTooltip
|
|
82
72
|
} = this.props;
|
|
83
|
-
|
|
84
73
|
if (this.containerElement && needTooltip) {
|
|
85
74
|
this.containerElement.removeEventListener('mouseover', this.handleOver, false);
|
|
86
75
|
this.containerElement.addEventListener('mouseout', this.removeTimeout, false);
|
|
@@ -90,7 +79,6 @@ export default class AppContainer extends React.Component {
|
|
|
90
79
|
});
|
|
91
80
|
}
|
|
92
81
|
}
|
|
93
|
-
|
|
94
82
|
render() {
|
|
95
83
|
let {
|
|
96
84
|
className,
|
|
@@ -126,10 +114,11 @@ export default class AppContainer extends React.Component {
|
|
|
126
114
|
customClass: tooltipClass
|
|
127
115
|
}, TooltipProps))) : null);
|
|
128
116
|
}
|
|
129
|
-
|
|
130
117
|
}
|
|
131
118
|
AppContainer.propTypes = propTypes;
|
|
132
|
-
AppContainer.defaultProps = defaultProps;
|
|
119
|
+
AppContainer.defaultProps = defaultProps;
|
|
120
|
+
|
|
121
|
+
// if (__DOCS__) {
|
|
133
122
|
// AppContainer.docs = {
|
|
134
123
|
// componentGroup: 'Template',
|
|
135
124
|
// folderName: 'Style Guide'
|
package/es/Avatar/Avatar.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { defaultProps } from './props/defaultProps';
|
|
5
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -18,7 +17,6 @@ eslint css-modules/no-unused-class: [2, { markAsUsed: ['circle', 'square',
|
|
|
18
17
|
'small','medium','xmedium',"xsmall", "large", "xlarge", "primary", "secondary",
|
|
19
18
|
"info","default"] }]
|
|
20
19
|
*/
|
|
21
|
-
|
|
22
20
|
export default class Avatar extends React.Component {
|
|
23
21
|
constructor(props) {
|
|
24
22
|
super(props);
|
|
@@ -29,7 +27,6 @@ export default class Avatar extends React.Component {
|
|
|
29
27
|
this.putValidImageURLJSON = this.putValidImageURLJSON.bind(this);
|
|
30
28
|
this.getInitialByFullName = this.getInitialByFullName.bind(this);
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
componentDidUpdate(prevProps, prevState) {
|
|
34
31
|
let {
|
|
35
32
|
src
|
|
@@ -37,14 +34,12 @@ export default class Avatar extends React.Component {
|
|
|
37
34
|
let {
|
|
38
35
|
isLoaded
|
|
39
36
|
} = this.state;
|
|
40
|
-
|
|
41
37
|
if (prevProps.src !== src) {
|
|
42
38
|
this.setState({
|
|
43
39
|
isLoaded: !isLoaded
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
|
-
|
|
48
43
|
putInvalidImageURLJSON() {
|
|
49
44
|
const {
|
|
50
45
|
src,
|
|
@@ -54,25 +49,23 @@ export default class Avatar extends React.Component {
|
|
|
54
49
|
isLoaded
|
|
55
50
|
} = this.state;
|
|
56
51
|
let _validImgArr = [...Avatar.validImageURLs];
|
|
57
|
-
let _invalidImgArr = [...Avatar.invalidImageURLs];
|
|
52
|
+
let _invalidImgArr = [...Avatar.invalidImageURLs];
|
|
53
|
+
|
|
54
|
+
// if (alternateSrc) {
|
|
58
55
|
// _validImgArr.push(alternateSrc);
|
|
59
56
|
// }
|
|
60
57
|
|
|
61
58
|
const validIndex = _validImgArr.indexOf(src);
|
|
62
|
-
|
|
63
59
|
if (validIndex !== -1) {
|
|
64
60
|
_validImgArr.splice(validIndex, 1);
|
|
65
61
|
}
|
|
66
|
-
|
|
67
62
|
_invalidImgArr.push(src);
|
|
68
|
-
|
|
69
63
|
Avatar.invalidImageURLs = _invalidImgArr;
|
|
70
64
|
Avatar.validImageURLs = _validImgArr;
|
|
71
65
|
this.setState({
|
|
72
66
|
isLoaded: !isLoaded
|
|
73
67
|
});
|
|
74
68
|
}
|
|
75
|
-
|
|
76
69
|
putValidImageURLJSON() {
|
|
77
70
|
const {
|
|
78
71
|
src
|
|
@@ -82,32 +75,28 @@ export default class Avatar extends React.Component {
|
|
|
82
75
|
} = this.state;
|
|
83
76
|
const validImgArr = Avatar.validImageURLs;
|
|
84
77
|
const invalidImgArr = Avatar.invalidImageURLs;
|
|
85
|
-
|
|
86
78
|
if (src && validImgArr.indexOf(src) === -1 && invalidImgArr.indexOf(src) === -1) {
|
|
87
79
|
let _validImgArr = [...validImgArr];
|
|
88
|
-
|
|
89
80
|
_validImgArr.push(src);
|
|
90
|
-
|
|
91
81
|
Avatar.validImageURLs = _validImgArr;
|
|
92
82
|
this.setState({
|
|
93
83
|
isLoaded: !isLoaded
|
|
94
84
|
});
|
|
95
85
|
}
|
|
96
86
|
}
|
|
97
|
-
/* this will cause error if user name already have some space need to move firstName lastName user preference pattern*/
|
|
98
|
-
|
|
99
87
|
|
|
88
|
+
/* this will cause error if user name already have some space need to move firstName lastName user preference pattern*/
|
|
100
89
|
getInitialByFullName() {
|
|
101
90
|
let fullName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
102
91
|
fullName = (fullName || '').trim();
|
|
103
92
|
let nameList = fullName.split(' ');
|
|
104
|
-
|
|
105
93
|
if (nameList.length === 1) {
|
|
106
94
|
return getInitial('', nameList[0]);
|
|
107
95
|
}
|
|
108
|
-
|
|
109
96
|
return getInitial(nameList[0], nameList[1]);
|
|
110
|
-
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// componentDidMount() {
|
|
111
100
|
// const { src } = this.props;
|
|
112
101
|
// const validImgArr = Avatar.validImageURLs;
|
|
113
102
|
// if (validImgArr.indexOf(src) === -1) {
|
|
@@ -116,7 +105,6 @@ export default class Avatar extends React.Component {
|
|
|
116
105
|
// }
|
|
117
106
|
// }
|
|
118
107
|
|
|
119
|
-
|
|
120
108
|
render() {
|
|
121
109
|
let {
|
|
122
110
|
src,
|
|
@@ -147,8 +135,8 @@ export default class Avatar extends React.Component {
|
|
|
147
135
|
let textStyle = textPalette ? style[textPalette] : palette === 'secondary' ? style.white : style.black;
|
|
148
136
|
let shapeStyle = shape === 'circle' ? 'circle' : `square_${size}`;
|
|
149
137
|
initial = initial || this.getInitialByFullName(name);
|
|
150
|
-
let isInvalidImageList = Avatar.invalidImageURLs.indexOf(src) !== -1;
|
|
151
|
-
|
|
138
|
+
let isInvalidImageList = Avatar.invalidImageURLs.indexOf(src) !== -1;
|
|
139
|
+
//let isValidImageList = Avatar.validImageURLs.indexOf(src) !== -1;
|
|
152
140
|
let showAvatar = src && !isInvalidImageList;
|
|
153
141
|
let showInitial = !showAvatar || showAvatar && isInvalidImageList;
|
|
154
142
|
const showAlternateAvatar = alternateSrc ? showInitial : false;
|
|
@@ -183,12 +171,12 @@ export default class Avatar extends React.Component {
|
|
|
183
171
|
className: `${style.shadow} ${textStyle} `
|
|
184
172
|
})));
|
|
185
173
|
}
|
|
186
|
-
|
|
187
174
|
}
|
|
188
175
|
Avatar.defaultProps = defaultProps;
|
|
189
176
|
Avatar.propTypes = propTypes;
|
|
190
177
|
Avatar.invalidImageURLs = [];
|
|
191
|
-
Avatar.validImageURLs = [];
|
|
178
|
+
Avatar.validImageURLs = [];
|
|
179
|
+
// if (__DOCS__) {
|
|
192
180
|
// Avatar.docs = {
|
|
193
181
|
// componentGroup: 'Avatar Group',
|
|
194
182
|
// folderName: 'Style Guide'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* avatar default variables */
|
|
3
3
|
--avatar_text_color: var(--zdt_avatar_default_text);
|
|
4
|
-
--avatar_font_size:
|
|
4
|
+
--avatar_font_size: 14px;
|
|
5
5
|
--avatar_bg_color: var(--zdt_avatar_default_bg);
|
|
6
6
|
--avatar_border_radius: 50%;
|
|
7
7
|
--avatar_border_width: 0;
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
|
|
50
50
|
.shadow {
|
|
51
51
|
position: absolute;
|
|
52
|
-
height: 100
|
|
53
|
-
width: 100
|
|
54
|
-
top: 0
|
|
52
|
+
height: 100%;
|
|
53
|
+
width: 100%;
|
|
54
|
+
top: 0;
|
|
55
55
|
pointer-events: none;
|
|
56
56
|
border-radius: var(--avatar_border_radius);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
[dir=ltr] .shadow {
|
|
60
|
-
left: 0
|
|
60
|
+
left: 0;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
[dir=rtl] .shadow {
|
|
64
|
-
right: 0
|
|
64
|
+
right: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.shadow.black {
|
|
@@ -81,20 +81,20 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.image {
|
|
84
|
-
width: 100
|
|
85
|
-
height: 100
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
86
|
position: absolute;
|
|
87
|
-
top: 0
|
|
87
|
+
top: 0;
|
|
88
88
|
z-index: 0;
|
|
89
89
|
border-radius: var(--avatar_border_radius);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
[dir=ltr] .image {
|
|
93
|
-
left: 0
|
|
93
|
+
left: 0;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
[dir=rtl] .image {
|
|
97
|
-
right: 0
|
|
97
|
+
right: 0;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.animate {
|
|
@@ -153,31 +153,31 @@
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.xxsmall {
|
|
156
|
-
--avatar_font_size:
|
|
156
|
+
--avatar_font_size: 8px;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.small {
|
|
160
|
-
--avatar_font_size:
|
|
160
|
+
--avatar_font_size: 9px;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.xsmall {
|
|
164
|
-
--avatar_font_size:
|
|
164
|
+
--avatar_font_size: 12px;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.medium {
|
|
168
|
-
--avatar_font_size:
|
|
168
|
+
--avatar_font_size: 14px;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.xmedium {
|
|
172
|
-
--avatar_font_size:
|
|
172
|
+
--avatar_font_size: 14px;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.large {
|
|
176
|
-
--avatar_font_size:
|
|
176
|
+
--avatar_font_size: 18px;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.xlarge {
|
|
180
|
-
--avatar_font_size:
|
|
180
|
+
--avatar_font_size: 28px;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.white {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { defaultProps } from './props/defaultProps';
|
|
5
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -72,10 +71,11 @@ export default class AvatarTeam extends React.Component {
|
|
|
72
71
|
${style[`${size}team`]} ${customAvatarTeam}`
|
|
73
72
|
}));
|
|
74
73
|
}
|
|
75
|
-
|
|
76
74
|
}
|
|
77
75
|
AvatarTeam.defaultProps = defaultProps;
|
|
78
|
-
AvatarTeam.propTypes = propTypes;
|
|
76
|
+
AvatarTeam.propTypes = propTypes;
|
|
77
|
+
|
|
78
|
+
// if (__DOCS__) {
|
|
79
79
|
// AvatarTeam.docs = {
|
|
80
80
|
// componentGroup: 'Avatar Group',
|
|
81
81
|
// folderName: 'Style Guide',
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
--avatarteam_outline_style: solid;
|
|
8
8
|
--avatarteam_outline_color: var(--zdt_avatarteam_innerCircle);
|
|
9
9
|
--avatarteam_bg_color: var(--zdt_avatarteam_default_bg);
|
|
10
|
-
--avatarteam_width:
|
|
11
|
-
--avatarteam_height:
|
|
10
|
+
--avatarteam_width: 5px;
|
|
11
|
+
--avatarteam_height: 5px;
|
|
12
12
|
--avatarteam_border_radius: 50%;
|
|
13
13
|
--avatarteam_bottom_top: initial;
|
|
14
14
|
--avatarteam_bottom_left: initial;
|
|
15
15
|
--avatarteam_bottom_right: initial;
|
|
16
|
-
--avatarteam_top_top:
|
|
16
|
+
--avatarteam_top_top: 1px;
|
|
17
17
|
}
|
|
18
18
|
.container {
|
|
19
19
|
position: relative;
|
|
20
20
|
display: inline-block;
|
|
21
|
-
font-size: 0
|
|
21
|
+
font-size: 0;
|
|
22
22
|
vertical-align: middle;
|
|
23
23
|
}
|
|
24
24
|
.team {
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
height: var(--avatarteam_height);
|
|
32
32
|
outline-width: var(--avatarteam_outline_width);
|
|
33
33
|
outline-style: var(--avatarteam_outline_style);
|
|
34
|
+
/* css:theme-validation:ignore */
|
|
34
35
|
outline-color: var(--avatarteam_outline_color);
|
|
35
36
|
border-width: var(--avatarteam_border_width);
|
|
36
37
|
border-style: var(--avatarteam_border_style);
|
|
@@ -40,11 +41,11 @@
|
|
|
40
41
|
}
|
|
41
42
|
[dir=ltr] .team {
|
|
42
43
|
transform: translate(-50%, -50%);
|
|
43
|
-
left: 50
|
|
44
|
+
left: 50%;
|
|
44
45
|
}
|
|
45
46
|
[dir=rtl] .team {
|
|
46
47
|
transform: translate(50%, -50%);
|
|
47
|
-
right: 50
|
|
48
|
+
right: 50%;
|
|
48
49
|
}
|
|
49
50
|
.nofill {
|
|
50
51
|
--avatarteam_border_color: var(--zdt_avatarteam_nofill_hover_border);
|
|
@@ -70,11 +71,12 @@
|
|
|
70
71
|
.team:before {
|
|
71
72
|
position: absolute;
|
|
72
73
|
content: '';
|
|
73
|
-
height: inherit
|
|
74
|
-
width: inherit
|
|
74
|
+
height: inherit;
|
|
75
|
+
width: inherit;
|
|
75
76
|
top: var(--avatarteam_bottom_top);
|
|
76
77
|
outline-width: var(--avatarteam_outline_width);
|
|
77
78
|
outline-style: var(--avatarteam_outline_style);
|
|
79
|
+
/* css:theme-validation:ignore */
|
|
78
80
|
outline-color: var( --avatarteam_outline_color);
|
|
79
81
|
}
|
|
80
82
|
.team:after, .team:before {
|
|
@@ -94,18 +96,18 @@
|
|
|
94
96
|
.smallteam,
|
|
95
97
|
.xsmallteam,
|
|
96
98
|
.xxsmallteam {
|
|
97
|
-
--avatarteam_height:
|
|
98
|
-
--avatarteam_width:
|
|
99
|
+
--avatarteam_height: 3px;
|
|
100
|
+
--avatarteam_width: 3px;
|
|
99
101
|
}
|
|
100
102
|
.mediumteam,
|
|
101
103
|
.xmediumteam {
|
|
102
|
-
--avatarteam_height:
|
|
103
|
-
--avatarteam_width:
|
|
104
|
+
--avatarteam_height: 5px;
|
|
105
|
+
--avatarteam_width: 5px;
|
|
104
106
|
}
|
|
105
107
|
.largeteam,
|
|
106
108
|
.xlargeteam {
|
|
107
|
-
--avatarteam_height:
|
|
108
|
-
--avatarteam_width:
|
|
109
|
+
--avatarteam_height: 7px;
|
|
110
|
+
--avatarteam_width: 7px;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
.xxsmallteam {
|
|
@@ -114,78 +116,78 @@
|
|
|
114
116
|
}
|
|
115
117
|
.xxsmallteam::after,
|
|
116
118
|
.xxsmallteam:before {
|
|
117
|
-
--avatarteam_bottom_top:
|
|
119
|
+
--avatarteam_bottom_top: 13px;
|
|
118
120
|
}
|
|
119
121
|
.xxsmallteam:after {
|
|
120
|
-
--avatarteam_bottom_left:
|
|
122
|
+
--avatarteam_bottom_left: -8px;
|
|
121
123
|
}
|
|
122
124
|
.xxsmallteam:before {
|
|
123
|
-
--avatarteam_bottom_right:
|
|
125
|
+
--avatarteam_bottom_right: -8px;
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
|
|
127
129
|
.smallteam::after,
|
|
128
130
|
.smallteam:before {
|
|
129
|
-
--avatarteam_bottom_top:
|
|
131
|
+
--avatarteam_bottom_top: 17px;
|
|
130
132
|
}
|
|
131
133
|
.smallteam:after {
|
|
132
|
-
--avatarteam_bottom_left:
|
|
134
|
+
--avatarteam_bottom_left: -8px;
|
|
133
135
|
}
|
|
134
136
|
.smallteam:before {
|
|
135
|
-
--avatarteam_bottom_right:
|
|
137
|
+
--avatarteam_bottom_right: -8px;
|
|
136
138
|
}
|
|
137
139
|
|
|
138
140
|
.xsmallteam::after,
|
|
139
141
|
.xsmallteam:before {
|
|
140
|
-
--avatarteam_bottom_top:
|
|
142
|
+
--avatarteam_bottom_top: 24px;
|
|
141
143
|
}
|
|
142
144
|
.xsmallteam:after {
|
|
143
|
-
--avatarteam_bottom_left:
|
|
145
|
+
--avatarteam_bottom_left: -10px;
|
|
144
146
|
}
|
|
145
147
|
.xsmallteam:before {
|
|
146
|
-
--avatarteam_bottom_right:
|
|
148
|
+
--avatarteam_bottom_right: -10px;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
.mediumteam::after,
|
|
150
152
|
.mediumteam:before {
|
|
151
|
-
--avatarteam_bottom_top:
|
|
153
|
+
--avatarteam_bottom_top: 26px;
|
|
152
154
|
}
|
|
153
155
|
.mediumteam:after {
|
|
154
|
-
--avatarteam_bottom_left:
|
|
156
|
+
--avatarteam_bottom_left: -13px;
|
|
155
157
|
}
|
|
156
158
|
.mediumteam:before {
|
|
157
|
-
--avatarteam_bottom_right:
|
|
159
|
+
--avatarteam_bottom_right: -13px;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
.xmediumteam::after,
|
|
161
163
|
.xmediumteam:before {
|
|
162
|
-
--avatarteam_bottom_top:
|
|
164
|
+
--avatarteam_bottom_top: 30px;
|
|
163
165
|
}
|
|
164
166
|
.xmediumteam:after {
|
|
165
|
-
--avatarteam_bottom_left:
|
|
167
|
+
--avatarteam_bottom_left: -16px;
|
|
166
168
|
}
|
|
167
169
|
.xmediumteam:before {
|
|
168
|
-
--avatarteam_bottom_right:
|
|
170
|
+
--avatarteam_bottom_right: -16px;
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
.largeteam::after,
|
|
172
174
|
.largeteam:before {
|
|
173
|
-
--avatarteam_bottom_top:
|
|
175
|
+
--avatarteam_bottom_top: 46px;
|
|
174
176
|
}
|
|
175
177
|
.largeteam:after {
|
|
176
|
-
--avatarteam_bottom_left:
|
|
178
|
+
--avatarteam_bottom_left: -24px;
|
|
177
179
|
}
|
|
178
180
|
.largeteam:before {
|
|
179
|
-
--avatarteam_bottom_right:
|
|
181
|
+
--avatarteam_bottom_right: -24px;
|
|
180
182
|
}
|
|
181
183
|
|
|
182
184
|
.xlargeteam::after,
|
|
183
185
|
.xlargeteam:before {
|
|
184
|
-
--avatarteam_bottom_top:
|
|
186
|
+
--avatarteam_bottom_top: 65px;
|
|
185
187
|
}
|
|
186
188
|
.xlargeteam:after {
|
|
187
|
-
--avatarteam_bottom_left:
|
|
189
|
+
--avatarteam_bottom_left: -29px;
|
|
188
190
|
}
|
|
189
191
|
.xlargeteam:before {
|
|
190
|
-
--avatarteam_bottom_right:
|
|
192
|
+
--avatarteam_bottom_right: -29px;
|
|
191
193
|
}
|
|
@@ -69,8 +69,9 @@ describe('AvatarTeam', () => {
|
|
|
69
69
|
});
|
|
70
70
|
test('rendering the onClick prop with asFragment and toMatchSnapshot', () => {
|
|
71
71
|
// Define an onClick mock function
|
|
72
|
-
const onClickMock = jest.fn();
|
|
72
|
+
const onClickMock = jest.fn();
|
|
73
73
|
|
|
74
|
+
// Render the Label component with the onClick prop
|
|
74
75
|
const {
|
|
75
76
|
asFragment
|
|
76
77
|
} = render( /*#__PURE__*/React.createElement(AvatarTeam, {
|
package/es/Button/Button.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { defaultProps } from './props/defaultProps';
|
|
5
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -11,9 +10,7 @@ Button text and children props?
|
|
|
11
10
|
use children for both cases
|
|
12
11
|
toLowerCase check needed?
|
|
13
12
|
*/
|
|
14
|
-
|
|
15
13
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small','medium','large','xlarge','button_medium','button_small','primary','primaryfilled','danger','dangerfilled','plainprimary', 'plainsecondary', 'secondary', 'secondaryfilled', 'successFilled','tertiaryFilled'] }] */
|
|
16
|
-
|
|
17
14
|
export default function Button(props) {
|
|
18
15
|
let {
|
|
19
16
|
text,
|
|
@@ -62,7 +59,9 @@ export default function Button(props) {
|
|
|
62
59
|
}))));
|
|
63
60
|
}
|
|
64
61
|
Button.defaultProps = defaultProps;
|
|
65
|
-
Button.propTypes = propTypes;
|
|
62
|
+
Button.propTypes = propTypes;
|
|
63
|
+
|
|
64
|
+
// if (__DOCS__) {
|
|
66
65
|
// Button.docs = {
|
|
67
66
|
// componentGroup: 'Form Elements',
|
|
68
67
|
// folderName: 'Style Guide'
|