@zohodesk/components 1.0.0-temp-71 → 1.0.0-temp-73
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/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/Accordion/Accordion.js +4 -20
- package/es/Accordion/AccordionItem.js +4 -19
- package/es/Accordion/props/defaultProps.js +8 -0
- package/es/Accordion/props/propTypes.js +30 -0
- package/es/Animation/Animation.js +4 -25
- package/es/Animation/props/defaultProps.js +7 -0
- package/es/Animation/props/propTypes.js +12 -0
- package/es/AppContainer/AppContainer.js +4 -23
- package/es/AppContainer/props/defaultProps.js +8 -0
- package/es/AppContainer/props/propTypes.js +15 -0
- package/es/Avatar/Avatar.js +4 -44
- package/es/Avatar/Avatar.module.css +11 -9
- package/es/Avatar/props/defaultProps.js +13 -0
- package/es/Avatar/props/propTypes.js +22 -0
- package/es/AvatarTeam/AvatarTeam.js +4 -36
- package/es/AvatarTeam/AvatarTeam.module.css +21 -7
- package/es/AvatarTeam/props/defaultProps.js +13 -0
- package/es/AvatarTeam/props/propTypes.js +23 -0
- package/es/Button/Button.js +4 -47
- package/es/Button/Button.module.css +97 -24
- package/es/Button/props/defaultProps.js +15 -0
- package/es/Button/props/propTypes.js +22 -0
- package/es/Buttongroup/Buttongroup.js +4 -11
- package/es/Buttongroup/Buttongroup.module.css +37 -8
- package/es/Buttongroup/props/defaultProps.js +4 -0
- package/es/Buttongroup/props/propTypes.js +7 -0
- package/es/Card/Card.js +12 -60
- package/es/Card/props/defaultProps.js +15 -0
- package/es/Card/props/propTypes.js +43 -0
- package/es/CheckBox/CheckBox.js +4 -59
- package/es/CheckBox/CheckBox.module.css +29 -19
- package/es/CheckBox/props/defaultProps.js +18 -0
- package/es/CheckBox/props/propTypes.js +41 -0
- package/es/DateTime/CalendarView.js +6 -26
- package/es/DateTime/DateTime.js +4 -62
- package/es/DateTime/DateTime.module.css +39 -12
- package/es/DateTime/DateWidget.js +4 -83
- package/es/DateTime/DateWidget.module.css +9 -5
- package/es/DateTime/YearView.js +4 -12
- package/es/DateTime/YearView.module.css +17 -7
- package/es/DateTime/props/defaultProps.js +50 -0
- package/es/DateTime/props/propTypes.js +130 -0
- package/es/DropBox/DropBox.js +4 -71
- package/es/DropBox/DropBox.module.css +47 -11
- package/es/DropBox/props/defaultProps.js +20 -0
- package/es/DropBox/props/propTypes.js +47 -0
- package/es/DropDown/DropDown.js +7 -34
- package/es/DropDown/DropDownHeading.js +4 -19
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.js +4 -18
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/DropDown/DropDownSearch.js +4 -24
- package/es/DropDown/DropDownSeparator.js +2 -4
- package/es/DropDown/props/defaultProps.js +18 -0
- package/es/DropDown/props/propTypes.js +77 -0
- package/es/Label/Label.js +4 -24
- package/es/Label/props/defaultProps.js +10 -0
- package/es/Label/props/propTypes.js +14 -0
- package/es/Layout/Box.js +15 -30
- package/es/Layout/Container.js +15 -27
- package/es/Layout/Layout.module.css +13 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +16 -22
- package/es/Layout/props/defaultProps.js +12 -0
- package/es/Layout/props/propTypes.js +42 -0
- package/es/ListItem/ListContainer.js +4 -41
- package/es/ListItem/ListItem.js +4 -50
- package/es/ListItem/ListItem.module.css +69 -33
- package/es/ListItem/ListItemWithAvatar.js +4 -56
- package/es/ListItem/ListItemWithCheckBox.js +4 -40
- package/es/ListItem/ListItemWithIcon.js +4 -47
- package/es/ListItem/ListItemWithRadio.js +4 -41
- package/es/ListItem/props/defaultProps.js +85 -0
- package/es/ListItem/props/propTypes.js +185 -0
- package/es/Modal/Modal.js +4 -9
- package/es/Modal/props/defaultProps.js +3 -0
- package/es/Modal/props/propTypes.js +6 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -91
- package/es/MultiSelect/AdvancedMultiSelect.js +4 -113
- package/es/MultiSelect/EmptyState.js +4 -29
- package/es/MultiSelect/MultiSelect.js +4 -113
- package/es/MultiSelect/MultiSelect.module.css +28 -11
- package/es/MultiSelect/MultiSelectHeader.js +4 -12
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -99
- package/es/MultiSelect/SelectedOptions.js +4 -19
- package/es/MultiSelect/SelectedOptions.module.css +8 -2
- package/es/MultiSelect/Suggestions.js +5 -34
- package/es/MultiSelect/props/defaultProps.js +140 -0
- package/es/MultiSelect/props/propTypes.js +360 -0
- package/es/PopOver/PopOver.js +7 -78
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/PopOver/props/defaultProps.js +7 -0
- package/es/PopOver/props/propTypes.js +53 -0
- package/es/Radio/Radio.js +4 -46
- package/es/Radio/Radio.module.css +18 -10
- package/es/Radio/props/defaultProps.js +14 -0
- package/es/Radio/props/propTypes.js +32 -0
- package/es/Responsive/CustomResponsive.js +8 -19
- package/es/Responsive/ResizeComponent.js +15 -82
- package/es/Responsive/ResizeObserver.js +2 -6
- package/es/Responsive/Responsive.js +8 -22
- package/es/Responsive/docs/style.module.css +17 -8
- package/es/Responsive/props/defaultProps.js +13 -0
- package/es/Responsive/props/propTypes.js +25 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -11
- package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
- package/es/ResponsiveDropBox/props/propTypes.js +7 -0
- package/es/Ribbon/Ribbon.js +4 -25
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/Ribbon/props/defaultProps.js +8 -0
- package/es/Ribbon/props/propTypes.js +10 -0
- package/es/RippleEffect/RippleEffect.js +4 -20
- package/es/RippleEffect/RippleEffect.module.css +37 -44
- package/es/RippleEffect/props/defaultProps.js +9 -0
- package/es/RippleEffect/props/propTypes.js +11 -0
- package/es/Select/GroupSelect.js +4 -109
- package/es/Select/Select.js +4 -120
- package/es/Select/Select.module.css +12 -2
- package/es/Select/SelectWithAvatar.js +4 -80
- package/es/Select/SelectWithIcon.js +4 -69
- package/es/Select/props/defaultProps.js +110 -0
- package/es/Select/props/propTypes.js +266 -0
- package/es/Stencils/Stencils.js +4 -17
- package/es/Stencils/Stencils.module.css +21 -3
- package/es/Stencils/props/defaultProps.js +6 -0
- package/es/Stencils/props/propTypes.js +7 -0
- package/es/Switch/Switch.js +4 -37
- package/es/Switch/Switch.module.css +9 -9
- package/es/Switch/props/defaultProps.js +10 -0
- package/es/Switch/props/propTypes.js +27 -0
- package/es/Tab/Tab.js +4 -31
- package/es/Tab/Tab.module.css +16 -7
- package/es/Tab/TabContent.js +4 -10
- package/es/Tab/TabContentWrapper.js +4 -12
- package/es/Tab/TabWrapper.js +4 -25
- package/es/Tab/Tabs.js +6 -68
- package/es/Tab/Tabs.module.css +42 -8
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tab/props/defaultProps.js +39 -0
- package/es/Tab/props/propTypes.js +102 -0
- package/es/Tag/Tag.js +4 -47
- package/es/Tag/Tag.module.css +36 -14
- package/es/Tag/props/defaultProps.js +13 -0
- package/es/Tag/props/propTypes.js +34 -0
- package/es/TextBox/TextBox.js +4 -72
- package/es/TextBox/TextBox.module.css +7 -11
- package/es/TextBox/props/defaultProps.js +19 -0
- package/es/TextBox/props/propTypes.js +53 -0
- package/es/TextBoxIcon/TextBoxIcon.js +4 -70
- package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
- package/es/TextBoxIcon/props/defaultProps.js +21 -0
- package/es/TextBoxIcon/props/propTypes.js +49 -0
- package/es/Textarea/Textarea.js +4 -47
- package/es/Textarea/Textarea.module.css +6 -7
- package/es/Textarea/props/defaultProps.js +16 -0
- package/es/Textarea/props/propTypes.js +31 -0
- package/es/Tooltip/Tooltip.js +4 -12
- package/es/Tooltip/Tooltip.module.css +9 -8
- package/es/Tooltip/props/defaultProps.js +4 -0
- package/es/Tooltip/props/propTypes.js +8 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -23
- package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
- package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -37
- package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
- package/es/common/animation.module.css +219 -21
- package/es/common/basicReset.module.css +2 -12
- package/es/common/common.module.css +88 -21
- package/es/common/customscroll.module.css +17 -21
- package/es/common/docStyle.module.css +79 -32
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/AdvancedMultiSelect.module.css +22 -8
- package/es/deprecated/PortalLayer/PortalLayer.js +4 -16
- package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
- package/es/deprecated/PortalLayer/props/propTypes.js +11 -0
- package/es/index.js +9 -4
- package/es/semantic/Button/Button.js +4 -38
- package/es/semantic/Button/props/defaultProps.js +12 -0
- package/es/semantic/Button/props/propTypes.js +26 -0
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/ucl/Grid/Grid.js +45 -0
- package/es/ucl/Grid/componentNames.js +6 -0
- package/es/ucl/Grid/css/Grid.module.css +217 -0
- package/es/ucl/Grid/css/cssJSLogic.js +46 -0
- package/es/ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +49 -0
- package/es/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +32 -0
- package/es/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Box_Alignment.docs.js +37 -0
- package/es/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +45 -0
- package/es/ucl/Grid/docs/Grid__default.docs.js +61 -0
- package/es/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
- package/es/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
- package/es/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
- package/es/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
- package/es/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
- package/es/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
- package/es/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
- package/es/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
- package/es/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
- package/es/ucl/Grid/index.js +5 -0
- package/es/ucl/Grid/props/ariaPropTypes.js +6 -0
- package/es/ucl/Grid/props/defaultProps.js +8 -0
- package/es/ucl/Grid/props/propConstants.js +66 -0
- package/es/ucl/Grid/props/propTypes.js +27 -0
- package/lib/Accordion/Accordion.js +5 -20
- package/lib/Accordion/AccordionItem.js +5 -19
- package/lib/Accordion/props/defaultProps.js +16 -0
- package/lib/Accordion/props/propTypes.js +42 -0
- package/lib/Animation/Animation.js +5 -25
- package/lib/Animation/props/defaultProps.js +14 -0
- package/lib/Animation/props/propTypes.js +23 -0
- package/lib/AppContainer/AppContainer.js +13 -24
- package/lib/AppContainer/props/defaultProps.js +15 -0
- package/lib/AppContainer/props/propTypes.js +26 -0
- package/lib/Avatar/Avatar.js +5 -44
- package/lib/Avatar/props/defaultProps.js +20 -0
- package/lib/Avatar/props/propTypes.js +33 -0
- package/lib/AvatarTeam/AvatarTeam.js +5 -36
- package/lib/AvatarTeam/props/defaultProps.js +20 -0
- package/lib/AvatarTeam/props/propTypes.js +34 -0
- package/lib/Button/Button.js +5 -48
- package/lib/Button/props/defaultProps.js +24 -0
- package/lib/Button/props/propTypes.js +33 -0
- package/lib/Buttongroup/Buttongroup.js +5 -11
- package/lib/Buttongroup/props/defaultProps.js +11 -0
- package/lib/Buttongroup/props/propTypes.js +18 -0
- package/lib/Card/Card.js +13 -60
- package/lib/Card/props/defaultProps.js +23 -0
- package/lib/Card/props/propTypes.js +57 -0
- package/lib/CheckBox/CheckBox.js +7 -60
- package/lib/CheckBox/CheckBox.module.css +12 -8
- package/lib/CheckBox/props/defaultProps.js +25 -0
- package/lib/CheckBox/props/propTypes.js +52 -0
- package/lib/DateTime/CalendarView.js +7 -26
- package/lib/DateTime/DateTime.js +53 -82
- package/lib/DateTime/DateTime.module.css +1 -1
- package/lib/DateTime/DateWidget.js +17 -85
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/YearView.js +5 -12
- package/lib/DateTime/YearView.module.css +1 -0
- package/lib/DateTime/props/defaultProps.js +61 -0
- package/lib/DateTime/props/propTypes.js +145 -0
- package/lib/DropBox/DropBox.js +6 -72
- package/lib/DropBox/props/defaultProps.js +27 -0
- package/lib/DropBox/props/propTypes.js +58 -0
- package/lib/DropDown/DropDown.js +8 -34
- package/lib/DropDown/DropDownHeading.js +5 -19
- package/lib/DropDown/DropDownItem.js +5 -18
- package/lib/DropDown/DropDownSearch.js +5 -23
- package/lib/DropDown/DropDownSeparator.js +2 -4
- package/lib/DropDown/props/defaultProps.js +28 -0
- package/lib/DropDown/props/propTypes.js +94 -0
- package/lib/Label/Label.js +5 -24
- package/lib/Label/props/defaultProps.js +17 -0
- package/lib/Label/props/propTypes.js +25 -0
- package/lib/Layout/Box.js +18 -32
- package/lib/Layout/Container.js +18 -29
- package/lib/Layout/Layout.module.css +13 -1
- package/lib/Layout/docs/Layout__four_Column.docs.js +16 -22
- package/lib/Layout/props/defaultProps.js +20 -0
- package/lib/Layout/props/propTypes.js +54 -0
- package/lib/LightNightMode/Colors.json +496 -397
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +23 -1
- package/lib/ListItem/ListContainer.js +13 -46
- package/lib/ListItem/ListItem.js +7 -52
- package/lib/ListItem/ListItem.module.css +18 -19
- package/lib/ListItem/ListItemWithAvatar.js +7 -38
- package/lib/ListItem/ListItemWithCheckBox.js +7 -42
- package/lib/ListItem/ListItemWithIcon.js +7 -49
- package/lib/ListItem/ListItemWithRadio.js +7 -43
- package/lib/ListItem/props/defaultProps.js +97 -0
- package/lib/ListItem/props/propTypes.js +181 -0
- package/lib/Modal/Modal.js +5 -9
- package/lib/Modal/props/defaultProps.js +10 -0
- package/lib/Modal/props/propTypes.js +17 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +118 -172
- package/lib/MultiSelect/AdvancedMultiSelect.js +101 -172
- package/lib/MultiSelect/EmptyState.js +5 -29
- package/lib/MultiSelect/MultiSelect.js +91 -173
- package/lib/MultiSelect/MultiSelect.module.css +15 -2
- package/lib/MultiSelect/MultiSelectHeader.js +5 -12
- package/lib/MultiSelect/MultiSelectWithAvatar.js +83 -152
- package/lib/MultiSelect/SelectedOptions.js +5 -19
- package/lib/MultiSelect/Suggestions.js +6 -34
- package/lib/MultiSelect/props/defaultProps.js +156 -0
- package/lib/MultiSelect/props/propTypes.js +378 -0
- package/lib/PopOver/PopOver.js +19 -82
- package/lib/PopOver/props/defaultProps.js +15 -0
- package/lib/PopOver/props/propTypes.js +66 -0
- package/lib/Provider/Config.js +3 -1
- package/lib/Provider.js +32 -98
- package/lib/Radio/Radio.js +5 -46
- package/lib/Radio/Radio.module.css +8 -6
- package/lib/Radio/props/defaultProps.js +21 -0
- package/lib/Radio/props/propTypes.js +43 -0
- package/lib/Responsive/CustomResponsive.js +11 -21
- package/lib/Responsive/Responsive.js +17 -24
- package/lib/Responsive/props/defaultProps.js +23 -0
- package/lib/Responsive/props/propTypes.js +39 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +124 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/ResponsiveDropBox/props/defaultProps.js +11 -0
- package/lib/ResponsiveDropBox/props/propTypes.js +18 -0
- package/lib/Ribbon/Ribbon.js +5 -25
- package/lib/Ribbon/props/defaultProps.js +15 -0
- package/lib/Ribbon/props/propTypes.js +21 -0
- package/lib/RippleEffect/RippleEffect.js +5 -20
- package/lib/RippleEffect/RippleEffect.module.css +37 -15
- package/lib/RippleEffect/props/defaultProps.js +16 -0
- package/lib/RippleEffect/props/propTypes.js +22 -0
- package/lib/Select/GroupSelect.js +105 -186
- package/lib/Select/Select.js +113 -196
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +101 -151
- package/lib/Select/SelectWithIcon.js +102 -134
- package/lib/Select/props/defaultProps.js +113 -0
- package/lib/Select/props/propTypes.js +280 -0
- package/lib/Stencils/Stencils.js +5 -17
- package/lib/Stencils/props/defaultProps.js +13 -0
- package/lib/Stencils/props/propTypes.js +18 -0
- package/lib/Switch/Switch.js +5 -37
- package/lib/Switch/Switch.module.css +3 -2
- package/lib/Switch/props/defaultProps.js +17 -0
- package/lib/Switch/props/propTypes.js +38 -0
- package/lib/Tab/Tab.js +5 -31
- package/lib/Tab/TabContent.js +5 -10
- package/lib/Tab/TabContentWrapper.js +5 -12
- package/lib/Tab/TabWrapper.js +5 -27
- package/lib/Tab/Tabs.js +80 -114
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/props/defaultProps.js +50 -0
- package/lib/Tab/props/propTypes.js +117 -0
- package/lib/Tag/Tag.js +5 -47
- package/lib/Tag/Tag.module.css +6 -2
- package/lib/Tag/props/defaultProps.js +20 -0
- package/lib/Tag/props/propTypes.js +45 -0
- package/lib/TextBox/TextBox.js +5 -70
- package/lib/TextBox/props/defaultProps.js +26 -0
- package/lib/TextBox/props/propTypes.js +62 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +5 -70
- package/lib/TextBoxIcon/props/defaultProps.js +28 -0
- package/lib/TextBoxIcon/props/propTypes.js +60 -0
- package/lib/Textarea/Textarea.js +5 -47
- package/lib/Textarea/props/defaultProps.js +23 -0
- package/lib/Textarea/props/propTypes.js +42 -0
- package/lib/Tooltip/Tooltip.js +65 -20
- package/lib/Tooltip/Tooltip.module.css +6 -1
- package/lib/Tooltip/docs/Tooltip__default.docs.js +50 -11
- package/lib/Tooltip/props/defaultProps.js +11 -0
- package/lib/Tooltip/props/propTypes.js +19 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +5 -23
- package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
- package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +12 -38
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
- package/lib/common/common.module.css +26 -3
- package/lib/common/docStyle.module.css +6 -2
- package/lib/css.js +0 -2
- package/lib/{MultiSelect → deprecated}/AdvancedMultiSelect.module.css +1 -1
- package/lib/deprecated/PortalLayer/PortalLayer.js +5 -16
- package/lib/deprecated/PortalLayer/props/defaultProps.js +12 -0
- package/lib/deprecated/PortalLayer/props/propTypes.js +22 -0
- package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
- package/lib/index.js +80 -21
- package/lib/semantic/Button/Button.js +5 -38
- package/lib/semantic/Button/props/defaultProps.js +19 -0
- package/lib/semantic/Button/props/propTypes.js +37 -0
- package/lib/ucl/Grid/Grid.js +70 -0
- package/lib/ucl/Grid/componentNames.js +13 -0
- package/lib/ucl/Grid/css/Grid.module.css +217 -0
- package/lib/ucl/Grid/css/cssJSLogic.js +44 -0
- package/lib/{beta/FocusRing/docs/FocusRing__default.docs.js → ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js} +42 -50
- package/lib/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +101 -0
- package/lib/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +86 -0
- package/lib/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +93 -0
- package/lib/ucl/Grid/docs/Grid__Box_Alignment.docs.js +91 -0
- package/lib/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +93 -0
- package/lib/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +97 -0
- package/lib/ucl/Grid/docs/Grid__default.docs.js +113 -0
- package/lib/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
- package/lib/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
- package/lib/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
- package/lib/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
- package/lib/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
- package/lib/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
- package/lib/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
- package/lib/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
- package/lib/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
- package/lib/ucl/Grid/index.js +31 -0
- package/lib/ucl/Grid/props/ariaPropTypes.js +23 -0
- package/lib/ucl/Grid/props/defaultProps.js +19 -0
- package/lib/ucl/Grid/props/propConstants.js +73 -0
- package/lib/ucl/Grid/props/propTypes.js +46 -0
- package/package.json +6 -3
- package/es/MultiSelect/AdvancedMultiSelect.module.css +0 -113
- package/es/a11y/FocusScope/FocusScope.js +0 -370
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
- package/es/beta/FocusRing/FocusRing.js +0 -281
- package/es/beta/FocusRing/FocusRing.module.css +0 -127
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
- package/lib/a11y/FocusScope/FocusScope.js +0 -443
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
- package/lib/beta/FocusRing/FocusRing.js +0 -338
- package/lib/beta/FocusRing/FocusRing.module.css +0 -152
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const propTypes = {
|
|
3
|
+
active: PropTypes.bool,
|
|
4
|
+
checked: PropTypes.bool,
|
|
5
|
+
dataId: PropTypes.string,
|
|
6
|
+
disabled: PropTypes.bool,
|
|
7
|
+
disabledTitle: PropTypes.string,
|
|
8
|
+
id: PropTypes.string,
|
|
9
|
+
isFilled: PropTypes.bool,
|
|
10
|
+
isReadOnly: PropTypes.bool,
|
|
11
|
+
labelPalette: PropTypes.oneOf(['default', 'primary', 'danger', 'mandatory']),
|
|
12
|
+
labelSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
13
|
+
name: PropTypes.string,
|
|
14
|
+
palette: PropTypes.oneOf(['primary', 'danger']),
|
|
15
|
+
size: PropTypes.oneOf(['small', 'medium']),
|
|
16
|
+
title: PropTypes.string,
|
|
17
|
+
value: PropTypes.string,
|
|
18
|
+
variant: PropTypes.oneOf(['primary', 'default']),
|
|
19
|
+
customClass: PropTypes.shape({
|
|
20
|
+
customRadioWrap: PropTypes.string,
|
|
21
|
+
customRadio: PropTypes.string,
|
|
22
|
+
customLabel: PropTypes.string
|
|
23
|
+
}),
|
|
24
|
+
a11y: PropTypes.shape({
|
|
25
|
+
ariaChecked: PropTypes.bool,
|
|
26
|
+
ariaHidden: PropTypes.bool,
|
|
27
|
+
role: PropTypes.string,
|
|
28
|
+
ariaLabelledby: PropTypes.string,
|
|
29
|
+
ariaLabel: PropTypes.string,
|
|
30
|
+
ariaReadonly: PropTypes.bool
|
|
31
|
+
})
|
|
32
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useContext, useEffect, useState, useRef, useMemo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CustomResponsiveSender_defaultProps, CustomResponsiveReceiver_defaultProps } from './props/defaultProps';
|
|
3
|
+
import { CustomResponsiveSender_propTypes, CustomResponsiveReceiver_propTypes } from './props/propTypes';
|
|
3
4
|
import ResizeObserver from './ResizeObserver';
|
|
4
5
|
import DOMRefWrapper from './RefWrapper';
|
|
5
6
|
import shallowCompare from './utils/shallowCompare';
|
|
@@ -88,16 +89,11 @@ export function ResponsiveSender(props) {
|
|
|
88
89
|
ref: containerRef
|
|
89
90
|
}, children)));
|
|
90
91
|
}
|
|
91
|
-
ResponsiveSender.defaultProps = {
|
|
92
|
-
responsiveId: defaultResponsiveId
|
|
93
|
-
domRefKey: 'eleRef'
|
|
92
|
+
ResponsiveSender.defaultProps = { ...CustomResponsiveSender_defaultProps,
|
|
93
|
+
responsiveId: defaultResponsiveId
|
|
94
94
|
};
|
|
95
95
|
ResponsiveSender.contextType = ResponsiveContext;
|
|
96
|
-
ResponsiveSender.propTypes =
|
|
97
|
-
children: PropTypes.any.isRequired,
|
|
98
|
-
domRefKey: PropTypes.string,
|
|
99
|
-
responsiveId: PropTypes.string
|
|
100
|
-
};
|
|
96
|
+
ResponsiveSender.propTypes = CustomResponsiveSender_propTypes;
|
|
101
97
|
export function useResponsiveReceiver() {
|
|
102
98
|
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
103
99
|
let query = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -187,14 +183,7 @@ export function ResponsiveReceiver(_ref) {
|
|
|
187
183
|
ref: eleRef
|
|
188
184
|
}, child) : child;
|
|
189
185
|
}
|
|
190
|
-
ResponsiveReceiver.defaultProps = {
|
|
191
|
-
responsiveId: defaultResponsiveId
|
|
192
|
-
domRefKey: 'eleRef'
|
|
186
|
+
ResponsiveReceiver.defaultProps = { ...CustomResponsiveReceiver_defaultProps,
|
|
187
|
+
responsiveId: defaultResponsiveId
|
|
193
188
|
};
|
|
194
|
-
ResponsiveReceiver.propTypes =
|
|
195
|
-
children: PropTypes.func,
|
|
196
|
-
domRefKey: PropTypes.string,
|
|
197
|
-
eleRef: PropTypes.func,
|
|
198
|
-
query: PropTypes.func,
|
|
199
|
-
responsiveId: PropTypes.string
|
|
200
|
-
};
|
|
189
|
+
ResponsiveReceiver.propTypes = CustomResponsiveReceiver_propTypes;
|
|
@@ -13,33 +13,13 @@ export default class ResizeComponent extends React.Component {
|
|
|
13
13
|
this.childrenCurrentList = [];
|
|
14
14
|
this.widthCheck = debounce(this.widthCheck.bind(this), 10); // this.widthCheck = this.widthCheck.bind(this);
|
|
15
15
|
|
|
16
|
-
this.onResize =
|
|
16
|
+
this.onResize = this.onResize.bind(this);
|
|
17
17
|
this.onResizeMutation = this.onResizeMutation.bind(this);
|
|
18
18
|
this.tabsObserver = new ResizeObserver(this.onResize);
|
|
19
19
|
this.tabObserver = new MutationObserver(this.onResizeMutation);
|
|
20
20
|
this.reset = this.reset.bind(this);
|
|
21
21
|
this.constructChildren = this.constructChildren.bind(this);
|
|
22
22
|
this.querySelector = this.querySelector.bind(this);
|
|
23
|
-
this.onAnimationStart = this.onAnimationStart.bind(this);
|
|
24
|
-
this.onAnimationEnd = this.onAnimationEnd.bind(this);
|
|
25
|
-
this.isAnimating = false;
|
|
26
|
-
this.state = {
|
|
27
|
-
responsiveHook: true,
|
|
28
|
-
validListCount: this.props.childrenList ? this.props.childrenList.length : 0,
|
|
29
|
-
emptyDataCount: this.props.childrenList ? this.props.childrenList.length : 0
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
onAnimationStart(e) {
|
|
34
|
-
if (this.props.wrapperDivRef.current === e.target) {
|
|
35
|
-
this.isAnimating = true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
onAnimationEnd(e) {
|
|
40
|
-
if (this.props.wrapperDivRef.current === e.target) {
|
|
41
|
-
this.isAnimating = false;
|
|
42
|
-
}
|
|
43
23
|
}
|
|
44
24
|
|
|
45
25
|
querySelector() {
|
|
@@ -92,8 +72,6 @@ export default class ResizeComponent extends React.Component {
|
|
|
92
72
|
|
|
93
73
|
componentDidMount() {
|
|
94
74
|
if (this.props.wrapperDivRef && this.props.wrapperDivRef.current) {
|
|
95
|
-
this.props.wrapperDivRef.current.addEventListener('animationstart', this.onAnimationStart, false);
|
|
96
|
-
this.props.wrapperDivRef.current.addEventListener('animationend', this.onAnimationEnd, false);
|
|
97
75
|
this.tabsObserver.observe(this.props.wrapperDivRef.current);
|
|
98
76
|
this.tabObserver.observe(this.props.wrapperDivRef.current, {
|
|
99
77
|
characterData: true,
|
|
@@ -110,20 +88,13 @@ export default class ResizeComponent extends React.Component {
|
|
|
110
88
|
}
|
|
111
89
|
|
|
112
90
|
reset() {
|
|
113
|
-
this.forceUpdate = true;
|
|
114
91
|
this.childrenCurrentList = [];
|
|
115
92
|
this.tabsObserver.disconnect();
|
|
116
93
|
this.tabObserver && this.tabObserver.disconnect();
|
|
117
|
-
this.props.wrapperDivRef.current.removeEventListener('animationstart', this.onAnimationStart);
|
|
118
|
-
this.props.wrapperDivRef.current.removeEventListener('animationend', this.onAnimationEnd);
|
|
119
94
|
}
|
|
120
95
|
|
|
121
|
-
componentDidUpdate(prevProps
|
|
122
|
-
|
|
123
|
-
// this.childrenCurrentList = this.querySelector();
|
|
124
|
-
// this.widthCheck();
|
|
125
|
-
// }
|
|
126
|
-
if (this.state.responsiveHook !== prevState.responsiveHook && !this.state.responsiveHook) {
|
|
96
|
+
componentDidUpdate(prevProps) {
|
|
97
|
+
if (this.childrenCurrentList.length === 0) {
|
|
127
98
|
this.childrenCurrentList = this.querySelector();
|
|
128
99
|
this.widthCheck();
|
|
129
100
|
}
|
|
@@ -145,27 +116,10 @@ export default class ResizeComponent extends React.Component {
|
|
|
145
116
|
}
|
|
146
117
|
}
|
|
147
118
|
|
|
148
|
-
onResize(
|
|
149
|
-
if (
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
this.forceUpdate = false;
|
|
153
|
-
this.height = size.height;
|
|
154
|
-
this.width = size.width;
|
|
155
|
-
this.scrollHeight = size.scrollHeight;
|
|
156
|
-
this.scrollWidth = size.scrollWidth;
|
|
157
|
-
this.childrenCurrentList = [];
|
|
158
|
-
this.constructChildren(0, false);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
} else {
|
|
162
|
-
this.childrenCurrentList = [];
|
|
163
|
-
this.constructChildren(0, false);
|
|
164
|
-
} // if (this.childrenCurrentList.length !== 0) {
|
|
165
|
-
// this.childrenCurrentList = [];
|
|
166
|
-
// this.constructChildren(0, false);
|
|
167
|
-
//}
|
|
168
|
-
|
|
119
|
+
onResize() {
|
|
120
|
+
// if (this.childrenCurrentList.length !== 0) {
|
|
121
|
+
this.childrenCurrentList = [];
|
|
122
|
+
this.constructChildren(0, false); //}
|
|
169
123
|
} // shouldComponentUpdate() {
|
|
170
124
|
// return this.childrenCurrentList.length === 0
|
|
171
125
|
// }
|
|
@@ -185,7 +139,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
185
139
|
let dataCount = 0;
|
|
186
140
|
this.noSpaceForChildren = false;
|
|
187
141
|
|
|
188
|
-
if (totalWidth
|
|
142
|
+
if (totalWidth <= moreWidth) {
|
|
189
143
|
this.noSpaceForChildren = true;
|
|
190
144
|
} else {
|
|
191
145
|
for (let i = 0; i < childrenWidthList.length; i++) {
|
|
@@ -198,14 +152,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
198
152
|
|
|
199
153
|
if (totalWidth <= _childrenTotalWidth) {
|
|
200
154
|
dataCount = i;
|
|
201
|
-
|
|
202
|
-
if (dataCount == 0) {
|
|
203
|
-
this.noSpaceForChildren = true;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
155
|
break;
|
|
207
|
-
} else {
|
|
208
|
-
dataCount++;
|
|
209
156
|
}
|
|
210
157
|
}
|
|
211
158
|
}
|
|
@@ -220,45 +167,31 @@ export default class ResizeComponent extends React.Component {
|
|
|
220
167
|
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
221
168
|
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
222
169
|
const {
|
|
223
|
-
childrenList
|
|
170
|
+
childrenList,
|
|
171
|
+
getData
|
|
224
172
|
} = this.props; // If the data count is zero we assume that we can render all the items - data count will be zero only when we want to calculate the whole list width
|
|
225
|
-
// let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
226
|
-
// let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
227
|
-
//let isResize = arguments.length > 2 ? arguments[2] : false;
|
|
228
173
|
|
|
229
174
|
dataCount = dataCount || childrenList && childrenList.length;
|
|
230
|
-
|
|
231
|
-
let emptyCount = childrenList.length - rederElementCount; // dataCount = responsive ? dataCount : dataCount || (childrenList && childrenList.length);
|
|
232
|
-
//dataCount = !isResize ? dataCount : dataCount || (childrenList && childrenList.length);
|
|
233
|
-
|
|
234
|
-
this.setState({
|
|
175
|
+
getData({
|
|
235
176
|
responsiveHook: responsive,
|
|
236
|
-
validListCount: this.noSpaceForChildren ? 0 : dataCount
|
|
237
|
-
emptyDataCount: emptyCount
|
|
177
|
+
validListCount: this.noSpaceForChildren ? 0 : dataCount
|
|
238
178
|
});
|
|
239
179
|
}
|
|
240
180
|
|
|
241
181
|
render() {
|
|
242
|
-
|
|
243
|
-
responsiveHook,
|
|
244
|
-
validListCount,
|
|
245
|
-
emptyDataCount
|
|
246
|
-
} = this.state;
|
|
247
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children({
|
|
248
|
-
responsiveHook,
|
|
249
|
-
validListCount,
|
|
250
|
-
emptyDataCount
|
|
251
|
-
}));
|
|
182
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children);
|
|
252
183
|
}
|
|
253
184
|
|
|
254
185
|
}
|
|
255
186
|
ResizeComponent.propTypes = {
|
|
256
187
|
children: PropTypes.node,
|
|
188
|
+
getData: PropTypes.func,
|
|
257
189
|
resizeId: PropTypes.number,
|
|
258
190
|
childrenList: PropTypes.array,
|
|
259
191
|
wrapperDivRef: PropTypes.any,
|
|
260
192
|
moreDivRef: PropTypes.any
|
|
261
193
|
};
|
|
262
194
|
ResizeComponent.defaultProps = {
|
|
195
|
+
getData: () => {},
|
|
263
196
|
resizeId: null
|
|
264
197
|
};
|
|
@@ -8,16 +8,12 @@ const mutationObserverOptions = {
|
|
|
8
8
|
function getSize(element) {
|
|
9
9
|
let {
|
|
10
10
|
offsetHeight,
|
|
11
|
-
offsetWidth
|
|
12
|
-
scrollHeight,
|
|
13
|
-
scrollWidth
|
|
11
|
+
offsetWidth
|
|
14
12
|
} = element; // const { height, width } = element.getBoundingClientRect();
|
|
15
13
|
|
|
16
14
|
return {
|
|
17
15
|
height: offsetHeight,
|
|
18
|
-
width: offsetWidth
|
|
19
|
-
scrollHeight: scrollHeight,
|
|
20
|
-
scrollWidth: scrollWidth
|
|
16
|
+
width: offsetWidth
|
|
21
17
|
};
|
|
22
18
|
}
|
|
23
19
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "core-js/modules/es.array.includes";
|
|
2
2
|
import React, { useContext, useEffect, useState, useMemo } from 'react'; // import React, { useState, useMemo, useCallback, useContext } from 'react';
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import { ResponsiveSender_defaultProps, ResponsiveReceiver_defaultProps } from './props/defaultProps';
|
|
5
|
+
import { ResponsiveSender_propTypes, ResponsiveReceiver_propTypes } from './props/propTypes';
|
|
5
6
|
import ResizeObserver from './ResizeObserver';
|
|
6
7
|
import DOMRefWrapper from './RefWrapper';
|
|
7
8
|
import { windowResizeObserver } from './windowResizeObserver';
|
|
@@ -91,18 +92,11 @@ export class ResponsiveSender extends React.Component {
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
}
|
|
94
|
-
ResponsiveSender.defaultProps = {
|
|
95
|
-
responsiveId: defaultResponsiveId
|
|
96
|
-
domRefKey: 'eleRef' // matcher: defaultMatcher
|
|
97
|
-
|
|
95
|
+
ResponsiveSender.defaultProps = { ...ResponsiveSender_defaultProps,
|
|
96
|
+
responsiveId: defaultResponsiveId
|
|
98
97
|
};
|
|
99
98
|
ResponsiveSender.contextType = ResponsiveContext;
|
|
100
|
-
ResponsiveSender.propTypes =
|
|
101
|
-
children: PropTypes.any.isRequired,
|
|
102
|
-
domRefKey: PropTypes.string,
|
|
103
|
-
responsiveId: PropTypes.string // matcher: PropTypes.func
|
|
104
|
-
|
|
105
|
-
};
|
|
99
|
+
ResponsiveSender.propTypes = ResponsiveSender_propTypes;
|
|
106
100
|
export function useResponsiveReceiver() {
|
|
107
101
|
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
108
102
|
const [_, forceUpdate] = useState();
|
|
@@ -195,15 +189,7 @@ export function ResponsiveReceiver(_ref) {
|
|
|
195
189
|
ref: eleRef
|
|
196
190
|
}, child) : child : null;
|
|
197
191
|
}
|
|
198
|
-
ResponsiveReceiver.defaultProps = {
|
|
199
|
-
responsiveId: defaultResponsiveId
|
|
200
|
-
domRefKey: 'eleRef',
|
|
201
|
-
hiddenSizes: []
|
|
192
|
+
ResponsiveReceiver.defaultProps = { ...ResponsiveReceiver_defaultProps,
|
|
193
|
+
responsiveId: defaultResponsiveId
|
|
202
194
|
};
|
|
203
|
-
ResponsiveReceiver.propTypes =
|
|
204
|
-
children: PropTypes.func,
|
|
205
|
-
domRefKey: PropTypes.string,
|
|
206
|
-
eleRef: PropTypes.func,
|
|
207
|
-
hiddenSizes: PropTypes.array,
|
|
208
|
-
responsiveId: PropTypes.string
|
|
209
|
-
};
|
|
195
|
+
ResponsiveReceiver.propTypes = ResponsiveReceiver_propTypes;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
.header{
|
|
2
|
-
background-color: #c60000;
|
|
3
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
4
2
|
color: #fff;
|
|
5
3
|
font-size: 24px;
|
|
4
|
+
background-color: #c60000;
|
|
6
5
|
padding: 10px;
|
|
7
6
|
text-align: center;
|
|
8
7
|
margin: 10px 6px;
|
|
8
|
+
}[dir=ltr] .header{
|
|
9
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
10
|
+
}[dir=rtl] .header{
|
|
11
|
+
box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
9
12
|
}
|
|
10
13
|
.box{
|
|
11
14
|
height: 80px;
|
|
12
|
-
background-color: #ffbb11;
|
|
13
|
-
text-align: center;
|
|
14
15
|
line-height: 80px;
|
|
15
16
|
min-width: 300px;
|
|
17
|
+
background-color: #ffbb11;
|
|
18
|
+
text-align: center;
|
|
16
19
|
margin:6px;
|
|
17
20
|
padding: 0 100x;
|
|
18
21
|
}
|
|
@@ -20,10 +23,10 @@
|
|
|
20
23
|
background-color: #60de55
|
|
21
24
|
}
|
|
22
25
|
.subHeading{
|
|
23
|
-
text-align: center;
|
|
24
|
-
padding: 10px;
|
|
25
26
|
position: sticky;
|
|
26
27
|
top: 0;
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 10px;
|
|
27
30
|
background-color: #fff
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -37,11 +40,17 @@
|
|
|
37
40
|
position: absolute;
|
|
38
41
|
width: 60%;
|
|
39
42
|
top: 50%;
|
|
40
|
-
transform: translate(-50%,-50%);
|
|
41
|
-
left: 50%;
|
|
42
43
|
border: 1px solid #aaa;
|
|
43
44
|
border-radius: 4px
|
|
44
45
|
}
|
|
46
|
+
[dir=ltr] .wrapper{
|
|
47
|
+
transform: translate(-50%,-50%);
|
|
48
|
+
left: 50%
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .wrapper{
|
|
51
|
+
transform: translate(50%,-50%);
|
|
52
|
+
right: 50%
|
|
53
|
+
}
|
|
45
54
|
.avatar{
|
|
46
55
|
margin:20px auto
|
|
47
56
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const CustomResponsiveSender_defaultProps = {
|
|
2
|
+
domRefKey: 'eleRef'
|
|
3
|
+
};
|
|
4
|
+
export const CustomResponsiveReceiver_defaultProps = {
|
|
5
|
+
domRefKey: 'eleRef'
|
|
6
|
+
};
|
|
7
|
+
export const ResponsiveSender_defaultProps = {
|
|
8
|
+
domRefKey: 'eleRef'
|
|
9
|
+
};
|
|
10
|
+
export const ResponsiveReceiver_defaultProps = {
|
|
11
|
+
domRefKey: 'eleRef',
|
|
12
|
+
hiddenSizes: []
|
|
13
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export const CustomResponsiveSender_propTypes = {
|
|
3
|
+
children: PropTypes.any.isRequired,
|
|
4
|
+
domRefKey: PropTypes.string,
|
|
5
|
+
responsiveId: PropTypes.string
|
|
6
|
+
};
|
|
7
|
+
export const CustomResponsiveReceiver_propTypes = {
|
|
8
|
+
children: PropTypes.func,
|
|
9
|
+
domRefKey: PropTypes.string,
|
|
10
|
+
eleRef: PropTypes.func,
|
|
11
|
+
query: PropTypes.func,
|
|
12
|
+
responsiveId: PropTypes.string
|
|
13
|
+
};
|
|
14
|
+
export const ResponsiveSender_propTypes = {
|
|
15
|
+
children: PropTypes.any.isRequired,
|
|
16
|
+
domRefKey: PropTypes.string,
|
|
17
|
+
responsiveId: PropTypes.string
|
|
18
|
+
};
|
|
19
|
+
export const ResponsiveReceiver_propTypes = {
|
|
20
|
+
children: PropTypes.func,
|
|
21
|
+
domRefKey: PropTypes.string,
|
|
22
|
+
eleRef: PropTypes.func,
|
|
23
|
+
hiddenSizes: PropTypes.array,
|
|
24
|
+
responsiveId: PropTypes.string
|
|
25
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || 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
2
|
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { defaultProps } from './props/defaultProps';
|
|
5
|
+
import { propTypes } from './props/propTypes';
|
|
5
6
|
import DropBox from '../DropBox/DropBox';
|
|
6
7
|
import { Container } from '../Layout';
|
|
7
8
|
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
@@ -62,13 +63,5 @@ export default class ResponsiveDropBox extends Component {
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
}
|
|
65
|
-
ResponsiveDropBox.propTypes =
|
|
66
|
-
|
|
67
|
-
customClass: PropTypes.object,
|
|
68
|
-
isResponsivePadding: PropTypes.bool,
|
|
69
|
-
alignBox: PropTypes.oneOf(['column', 'row'])
|
|
70
|
-
};
|
|
71
|
-
ResponsiveDropBox.defaultProps = {
|
|
72
|
-
isResponsivePadding: false,
|
|
73
|
-
alignBox: 'column'
|
|
74
|
-
};
|
|
66
|
+
ResponsiveDropBox.propTypes = propTypes;
|
|
67
|
+
ResponsiveDropBox.defaultProps = defaultProps;
|
package/es/Ribbon/Ribbon.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
3
4
|
/* eslint css-modules/no-unused-class: [2, { markAsUsed: [default, flag, plain, ribbon, box, stamp, sticker, small, medium, large, xlarge, palette_default, palette_danger, palette_primary, palette_secondary, palette_info, palette_dark, plain_default, plain_danger, plain_primary, plain_secondary, plain_info, plain_dark, tag] }] */
|
|
4
5
|
|
|
5
6
|
import style from './Ribbon.module.css';
|
|
@@ -30,30 +31,8 @@ export default class Ribbon extends React.Component {
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
}
|
|
33
|
-
Ribbon.propTypes =
|
|
34
|
-
|
|
35
|
-
dataId: PropTypes.string,
|
|
36
|
-
palette: PropTypes.oneOf(['default', 'danger', 'primary', 'secondary', 'info', 'dark']),
|
|
37
|
-
size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
|
|
38
|
-
text: PropTypes.string,
|
|
39
|
-
type: PropTypes.oneOf(['default', 'flag', 'plain', 'ribbon', 'box', 'stamp', 'sticker', 'tag']),
|
|
40
|
-
customClass: PropTypes.string
|
|
41
|
-
}; // Ribbon.propTypesDescription = {
|
|
42
|
-
// text: ' ',
|
|
43
|
-
// type: ' ',
|
|
44
|
-
// children: ' ',
|
|
45
|
-
// palette: ' ',
|
|
46
|
-
// size: ' '
|
|
47
|
-
// };
|
|
48
|
-
|
|
49
|
-
Ribbon.defaultProps = {
|
|
50
|
-
palette: 'default',
|
|
51
|
-
size: 'large',
|
|
52
|
-
text: 'Ribbon',
|
|
53
|
-
type: 'default',
|
|
54
|
-
dataId: 'ribbonComp',
|
|
55
|
-
customClass: ''
|
|
56
|
-
};
|
|
34
|
+
Ribbon.propTypes = propTypes;
|
|
35
|
+
Ribbon.defaultProps = defaultProps;
|
|
57
36
|
|
|
58
37
|
if (false) {
|
|
59
38
|
Ribbon.docs = {
|