@zohodesk/components 1.0.0-temp-67 → 1.0.0-temp-350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1045 -1020
- package/assets/Appearance/dark/mode/darkMode.module.css +2 -2
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +4 -4
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +12 -12
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +3 -3
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +2 -2
- package/docs/external/active-line.js +72 -0
- package/docs/external/autorefresh.js +47 -0
- package/docs/external/codemirror.js +9681 -0
- package/docs/external/css/hopscotch.css +576 -0
- package/docs/external/css/styleGuide.css +1100 -0
- package/docs/external/css.js +466 -0
- package/docs/external/designTokens.js +1 -0
- package/docs/external/foldcode.js +152 -0
- package/docs/external/format.js +129 -0
- package/docs/external/htmlmixed.js +84 -0
- package/docs/external/images/bottom.png +0 -0
- package/docs/external/images/bottombg.jpg +0 -0
- package/docs/external/images/desk.png +0 -0
- package/docs/external/images/desklogo.png +0 -0
- package/docs/external/images/menu.png +0 -0
- package/docs/external/index.html +127 -0
- package/docs/external/javascript.js +422 -0
- package/docs/external/jsx.js +148 -0
- package/docs/external/matchbrackets.js +145 -0
- package/docs/external/xml.js +322 -0
- package/docs/package.json +41 -0
- package/docs/src/index.js +1311 -0
- package/es/Accordion/docs/Accordion__Demo.docs.js +80 -0
- package/es/Animation/docs/Animation__default.docs.js +34 -0
- package/es/Animation/docs/Animation__fadeIn.docs.js +34 -0
- package/es/Animation/docs/Animation__scaleIn.docs.js +34 -0
- package/es/Animation/docs/Animation__skewIn.docs.js +34 -0
- package/es/Animation/docs/Animation__slideDown.docs.js +34 -0
- package/es/Animation/docs/Animation__slideLeft.docs.js +34 -0
- package/es/Animation/docs/Animation__zoomIn.docs.js +34 -0
- package/es/AppContainer/AppContainer.js +6 -1
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/AppContainer/docs/AppContainer__default.docs.js +20 -0
- package/es/Avatar/Avatar.js +9 -9
- package/es/Avatar/Avatar.module.css +115 -117
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/es/Avatar/docs/Avatar__custom.docs.js +29 -0
- package/es/Avatar/docs/Avatar__default.docs.js +29 -0
- package/es/Avatar/docs/Avatar__palette.docs.js +49 -0
- package/es/Avatar/docs/Avatar__text.docs.js +28 -0
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +147 -161
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +73 -0
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +31 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +50 -0
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +49 -0
- package/es/Button/Button.js +4 -4
- package/es/Button/Button.module.css +448 -521
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/es/Button/docs/Button__custom.docs.js +771 -0
- package/es/Button/docs/Button__default.docs.js +536 -0
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +60 -89
- package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +37 -0
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +33 -0
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +42 -0
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/Card/docs/Card__Custom.docs.js +34 -0
- package/es/Card/docs/Card__Default.docs.js +37 -0
- package/es/Card/docs/Card__Scroll.docs.js +59 -0
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +147 -153
- package/es/CheckBox/docs/CheckBox__custom.docs.js +293 -0
- package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +46 -19
- package/es/DateTime/DateTime.module.css +160 -187
- package/es/DateTime/DateWidget.js +10 -2
- package/es/DateTime/DateWidget.module.css +34 -42
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +70 -80
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/docs/DateTime__default.docs.js +91 -0
- package/es/DateTime/docs/DateWidget__default.docs.js +183 -0
- package/es/DateTime/docs/timezonedata.json +1 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +0 -0
- package/es/DropBox/DropBox.module.css +370 -406
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropBox/docs/DropBox__custom.docs.js +66 -0
- package/es/DropBox/docs/DropBox__customOrder.docs.js +92 -0
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +91 -0
- package/es/DropBox/docs/DropBox__position.docs.js +87 -0
- package/es/DropBox/docs/DropBox__size.docs.js +61 -0
- package/es/DropDown/DropDown.js +0 -0
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +49 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +68 -94
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +23 -0
- package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/es/Label/docs/Label__clipped.docs.js +27 -0
- package/es/Label/docs/Label__custom.docs.js +30 -0
- package/es/Label/docs/Label__palette.docs.js +42 -0
- package/es/Label/docs/Label__size.docs.js +29 -0
- package/es/Label/docs/Label__type.docs.js +37 -0
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +324 -324
- package/es/Layout/docs/Layout__Hidden.docs.js +77 -0
- package/es/Layout/docs/Layout__default.docs.js +49 -0
- package/es/Layout/docs/Layout__four_Column.docs.js +85 -0
- package/es/Layout/docs/Layout__three_Column.docs.js +76 -0
- package/es/Layout/docs/Layout__two_Column.docs.js +69 -0
- package/es/Layout/utils.js +0 -0
- package/es/LightNightMode/Colors.json +397 -397
- package/es/LightNightMode/docs/AlternativeColors.docs.js +74 -0
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +173 -205
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +155 -0
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +112 -0
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +65 -0
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +68 -0
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +62 -0
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +65 -0
- package/es/ListItem/docs/ListItem__custom.docs.js +114 -0
- package/es/ListItem/docs/ListItem__default.docs.js +82 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +105 -80
- package/es/MultiSelect/AdvancedMultiSelect.js +75 -49
- package/es/MultiSelect/AdvancedMultiSelect.module.css +113 -127
- package/es/MultiSelect/MultiSelect.js +85 -60
- package/es/MultiSelect/MultiSelect.module.css +181 -193
- package/es/MultiSelect/MultiSelectWithAvatar.js +77 -52
- package/es/MultiSelect/SelectedOptions.module.css +9 -15
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +125 -0
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +114 -0
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +141 -0
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +161 -0
- package/es/PopOver/PopOver.js +10 -4
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/PopOver/docs/PopOver__default.docs.js +32 -0
- package/es/Popup/Popup.js +0 -0
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Provider/Config.js +1 -2
- package/es/Provider/docs/Provider_Id__Class.docs.js +29 -0
- package/es/Provider/docs/Provider_Id__Function.docs.js +18 -0
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +32 -0
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +23 -0
- package/es/Provider.js +5 -105
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +104 -110
- package/es/Radio/docs/Radio__custom.docs.js +245 -0
- package/es/Radio/docs/Radio__default.docs.js +169 -0
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/Responsive/ResizeComponent.js +69 -14
- package/es/Responsive/Responsive.js +1 -0
- package/es/Responsive/docs/Responsive__Custom.docs.js +206 -0
- package/es/Responsive/docs/Responsive__default.docs.js +97 -0
- package/es/Responsive/docs/style.module.css +47 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.js +74 -0
- package/es/ResponsiveDropbox/ResponsiveDropbox.module.css +6 -0
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +311 -376
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
- package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
- package/es/RippleEffect/RippleEffect.module.css +99 -70
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +435 -0
- package/es/Select/GroupSelect.js +99 -74
- package/es/Select/Select.js +95 -68
- package/es/Select/Select.module.css +96 -100
- package/es/Select/SelectWithAvatar.js +91 -66
- package/es/Select/SelectWithIcon.js +100 -74
- package/es/Select/__tests__/Select.spec.js +0 -0
- package/es/Select/docs/GroupSelect__default.docs.js +149 -0
- package/es/Select/docs/SelectWithAvatar__default.docs.js +97 -0
- package/es/Select/docs/SelectWithIcon__default.docs.js +138 -0
- package/es/Select/docs/Select__default.docs.js +288 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +78 -96
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/es/Stencils/docs/Stencils__custom.docs.js +45 -0
- package/es/Stencils/docs/Stencils__default.docs.js +50 -0
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +110 -109
- package/es/Switch/docs/Switch__custom.docs.js +153 -0
- package/es/Switch/docs/Switch__default.docs.js +107 -0
- package/es/Tab/Tab.module.css +92 -101
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +85 -60
- package/es/Tab/Tabs.module.css +107 -140
- package/es/Tab/docs/Tab__default.docs.js +258 -0
- package/es/Tab/docs/tabdocs.module.css +29 -0
- package/es/Tag/Tag.js +9 -9
- package/es/Tag/Tag.module.css +232 -250
- package/es/Tag/docs/Tag__custom.docs.js +368 -0
- package/es/Tag/docs/Tag__default.docs.js +323 -0
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +161 -157
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/es/TextBox/docs/TextBox__custom.docs.js +43 -0
- package/es/TextBox/docs/TextBox__default.docs.js +40 -0
- package/es/TextBox/docs/TextBox__size.docs.js +38 -0
- package/es/TextBox/docs/TextBox__variant.docs.js +38 -0
- package/es/TextBoxIcon/TextBoxIcon.js +0 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +71 -78
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +89 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +140 -139
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/es/Textarea/docs/Textarea__animated.docs.js +41 -0
- package/es/Textarea/docs/Textarea__custom.docs.js +82 -0
- package/es/Textarea/docs/Textarea__default.docs.js +76 -0
- package/es/Textarea/docs/Textarea__disabled.docs.js +29 -0
- package/es/Tooltip/Tooltip.js +40 -2
- package/es/Tooltip/Tooltip.module.css +108 -109
- package/es/Tooltip/docs/Tooltip__default.docs.js +371 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +97 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +150 -0
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +139 -0
- package/es/beta/FocusRing/FocusRing.module.css +126 -151
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +48 -0
- package/es/common/animation.module.css +426 -624
- package/es/common/avatarsizes.module.css +44 -44
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +50 -40
- package/es/common/common.module.css +458 -502
- package/es/common/customscroll.module.css +93 -89
- package/es/common/docStyle.module.css +719 -766
- package/es/common/reset.module.css +12 -12
- package/es/common/transition.module.css +106 -146
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +72 -0
- package/es/index.js +2 -1
- package/es/semantic/Button/docs/Button__default.docs.js +20 -0
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +0 -0
- package/es/utils/dropDownUtils.js +0 -0
- package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
- package/lib/Animation/docs/Animation__default.docs.js +85 -0
- package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
- package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
- package/lib/AppContainer/AppContainer.js +1 -1
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
- package/lib/Avatar/Avatar.js +9 -9
- package/lib/Avatar/Avatar.module.css +117 -117
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
- package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
- package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
- package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
- package/lib/AvatarTeam/AvatarTeam.js +7 -7
- package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
- package/lib/Button/Button.js +4 -4
- package/lib/Button/Button.module.css +521 -521
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/lib/Button/docs/Button__custom.docs.js +826 -0
- package/lib/Button/docs/Button__default.docs.js +590 -0
- package/lib/Buttongroup/Buttongroup.js +1 -1
- package/lib/Buttongroup/Buttongroup.module.css +89 -89
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
- package/lib/Card/Card.js +4 -4
- package/lib/Card/Card.module.css +20 -20
- package/lib/Card/docs/Card__Custom.docs.js +90 -0
- package/lib/Card/docs/Card__Default.docs.js +92 -0
- package/lib/Card/docs/Card__Scroll.docs.js +114 -0
- package/lib/CheckBox/CheckBox.js +1 -2
- package/lib/CheckBox/CheckBox.module.css +153 -153
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
- package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
- package/lib/DateTime/CalendarView.js +0 -0
- package/lib/DateTime/DateTime.js +0 -0
- package/lib/DateTime/DateTime.module.css +187 -187
- package/lib/DateTime/DateWidget.js +0 -0
- package/lib/DateTime/DateWidget.module.css +42 -42
- package/lib/DateTime/YearView.js +0 -0
- package/lib/DateTime/YearView.module.css +80 -80
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
- package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
- package/lib/DateTime/docs/timezonedata.json +1 -0
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +0 -0
- package/lib/DropBox/DropBox.js +1 -1
- package/lib/DropBox/DropBox.module.css +406 -406
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
- package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
- package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
- package/lib/DropDown/DropDown.js +0 -0
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +0 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +0 -0
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +0 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +0 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
- package/lib/Label/Label.js +0 -0
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/lib/Label/docs/Label__clipped.docs.js +81 -0
- package/lib/Label/docs/Label__custom.docs.js +85 -0
- package/lib/Label/docs/Label__palette.docs.js +96 -0
- package/lib/Label/docs/Label__size.docs.js +83 -0
- package/lib/Label/docs/Label__type.docs.js +91 -0
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +324 -324
- package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
- package/lib/Layout/docs/Layout__default.docs.js +98 -0
- package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
- package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
- package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
- package/lib/Layout/utils.js +0 -0
- package/lib/LightNightMode/Colors.json +397 -397
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
- package/lib/ListItem/ListContainer.js +4 -7
- package/lib/ListItem/ListItem.js +1 -1
- package/lib/ListItem/ListItem.module.css +210 -205
- package/lib/ListItem/ListItemWithAvatar.js +1 -1
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithIcon.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
- package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -12
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -127
- package/lib/MultiSelect/MultiSelect.js +11 -12
- package/lib/MultiSelect/MultiSelect.module.css +193 -193
- package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +165 -0
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
- package/lib/Popup/Popup.js +0 -0
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Provider/Config.js +1 -4
- package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
- package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
- package/lib/Provider.js +37 -88
- package/lib/Radio/Radio.js +0 -0
- package/lib/Radio/Radio.module.css +110 -110
- package/lib/Radio/docs/Radio__custom.docs.js +299 -0
- package/lib/Radio/docs/Radio__default.docs.js +222 -0
- package/lib/Responsive/CustomResponsive.js +0 -0
- package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
- package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
- package/lib/Responsive/docs/style.module.css +56 -0
- package/lib/Ribbon/Ribbon.js +0 -0
- package/lib/Ribbon/Ribbon.module.css +376 -376
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
- package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
- package/lib/RippleEffect/RippleEffect.module.css +70 -70
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
- package/lib/Select/GroupSelect.js +1 -1
- package/lib/Select/Select.js +4 -9
- package/lib/Select/Select.module.css +100 -100
- package/lib/Select/SelectWithAvatar.js +0 -0
- package/lib/Select/SelectWithIcon.js +0 -0
- package/lib/Select/__tests__/Select.spec.js +0 -0
- package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
- package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
- package/lib/Select/docs/Select__default.docs.js +340 -0
- package/lib/Stencils/Stencils.js +0 -0
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
- package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
- package/lib/Switch/Switch.js +0 -0
- package/lib/Switch/Switch.module.css +109 -109
- package/lib/Switch/docs/Switch__custom.docs.js +203 -0
- package/lib/Switch/docs/Switch__default.docs.js +156 -0
- package/lib/Tab/Tab.module.css +101 -101
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/Tabs.js +11 -11
- package/lib/Tab/Tabs.module.css +140 -140
- package/lib/Tab/docs/Tab__default.docs.js +308 -0
- package/lib/Tab/docs/tabdocs.module.css +29 -0
- package/lib/Tag/Tag.js +8 -8
- package/lib/Tag/Tag.module.css +250 -250
- package/lib/Tag/docs/Tag__custom.docs.js +423 -0
- package/lib/Tag/docs/Tag__default.docs.js +377 -0
- package/lib/TextBox/TextBox.js +0 -0
- package/lib/TextBox/TextBox.module.css +157 -157
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
- package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
- package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
- package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
- package/lib/Textarea/Textarea.js +0 -0
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
- package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
- package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
- package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
- package/lib/Tooltip/Tooltip.js +8 -15
- package/lib/Tooltip/Tooltip.module.css +104 -109
- package/lib/Tooltip/docs/Tooltip__default.docs.js +391 -0
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
- package/lib/beta/FocusRing/FocusRing.module.css +151 -151
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +44 -44
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/common.module.css +502 -502
- package/lib/common/customscroll.module.css +89 -89
- package/lib/common/docStyle.module.css +762 -766
- package/lib/common/reset.module.css +12 -12
- package/lib/common/transition.module.css +146 -146
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
- package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +0 -0
- package/lib/utils/dropDownUtils.js +0 -0
- package/package.json +75 -75
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "core-js/modules/es.array.includes";
|
|
1
2
|
import React, { Component } from 'react';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
/**** Components ****/
|
|
@@ -5,12 +6,13 @@ import PropTypes from 'prop-types';
|
|
|
5
6
|
import Popup from '../Popup/Popup';
|
|
6
7
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
7
8
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
8
|
-
import DropBox from '../DropBox/DropBox';
|
|
9
9
|
import ListItemWithIcon from '../ListItem/ListItemWithIcon';
|
|
10
10
|
import Card, { CardHeader, CardContent } from '../Card/Card';
|
|
11
11
|
import EmptyState from '../MultiSelect/EmptyState';
|
|
12
12
|
import { Container, Box } from '../Layout';
|
|
13
13
|
import { getUniqueId } from '../Provider/IdProvider';
|
|
14
|
+
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
15
|
+
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
14
16
|
/**** Methods ****/
|
|
15
17
|
|
|
16
18
|
import { scrollTo } from '../utils/Common.js';
|
|
@@ -233,6 +235,17 @@ class SelectWithIcon extends Component {
|
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
|
|
238
|
+
responsiveFunc(_ref) {
|
|
239
|
+
let {
|
|
240
|
+
mediaQueryOR
|
|
241
|
+
} = _ref;
|
|
242
|
+
return {
|
|
243
|
+
tabletMode: mediaQueryOR([{
|
|
244
|
+
maxWidth: 700
|
|
245
|
+
}])
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
236
249
|
render() {
|
|
237
250
|
let {
|
|
238
251
|
animationStyle,
|
|
@@ -345,82 +358,95 @@ class SelectWithIcon extends Component {
|
|
|
345
358
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
346
359
|
name: "ZD-down",
|
|
347
360
|
size: "7"
|
|
348
|
-
})))))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
isAnimate: true,
|
|
353
|
-
isArrow: false,
|
|
354
|
-
onClick: removeClose,
|
|
355
|
-
getRef: getContainerRef,
|
|
356
|
-
needResponsive: needResponsive,
|
|
357
|
-
dataId: `${dataId}_suggestions`,
|
|
358
|
-
size: boxSize,
|
|
359
|
-
isPadding: false
|
|
360
|
-
}, /*#__PURE__*/React.createElement(Card, {
|
|
361
|
-
onScroll: this.handleScroll,
|
|
362
|
-
htmlId: setAriaId,
|
|
363
|
-
a11y: {
|
|
364
|
-
role: 'listbox'
|
|
365
|
-
}
|
|
366
|
-
}, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
|
|
367
|
-
className: `${style.search} ${style[size]}`
|
|
368
|
-
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
369
|
-
onClear: this.onSearchClear,
|
|
370
|
-
onChange: this.onSearch,
|
|
371
|
-
placeHolder: searchBoxPlaceHolder,
|
|
372
|
-
value: searchValue,
|
|
373
|
-
maxLength: maxLength,
|
|
374
|
-
onKeyDown: this.handleKeyDown,
|
|
375
|
-
inputRef: this.searchInputRef,
|
|
376
|
-
size: searchBoxSize,
|
|
377
|
-
dataId: `${dataId}_search`,
|
|
378
|
-
a11y: {
|
|
379
|
-
ariaDescribedby: ariaErrorId
|
|
380
|
-
},
|
|
381
|
-
autoComplete: false
|
|
382
|
-
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
383
|
-
customClass: `${style.dropBoxList} ${dropBoxSize ? style[dropBoxSize] : ''}`,
|
|
384
|
-
eleRef: this.scrollContentRef
|
|
385
|
-
}, options.length ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((options, i) => {
|
|
361
|
+
})))))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
362
|
+
query: this.responsiveFunc,
|
|
363
|
+
responsiveId: "Helmet"
|
|
364
|
+
}, _ref2 => {
|
|
386
365
|
let {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
onClick:
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
highlight: selectedIndex === i,
|
|
409
|
-
getRef: this.itemRef,
|
|
366
|
+
tabletMode
|
|
367
|
+
} = _ref2;
|
|
368
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
369
|
+
animationStyle: animationStyle,
|
|
370
|
+
boxPosition: position,
|
|
371
|
+
isActive: isPopupReady,
|
|
372
|
+
isAnimate: true,
|
|
373
|
+
isArrow: false,
|
|
374
|
+
onClick: removeClose,
|
|
375
|
+
getRef: getContainerRef,
|
|
376
|
+
needResponsive: needResponsive,
|
|
377
|
+
dataId: `${dataId}_suggestions`,
|
|
378
|
+
size: boxSize,
|
|
379
|
+
isPadding: false,
|
|
380
|
+
isResponsivePadding: true,
|
|
381
|
+
alignBox: "row"
|
|
382
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
383
|
+
flexible: true
|
|
384
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
385
|
+
onScroll: this.handleScroll,
|
|
386
|
+
htmlId: setAriaId,
|
|
410
387
|
a11y: {
|
|
411
|
-
role: '
|
|
412
|
-
ariaSelected: selectedId === options[idKey]
|
|
388
|
+
role: 'listbox'
|
|
413
389
|
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
390
|
+
}, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
|
|
391
|
+
className: `${style.search} ${style[size]}`
|
|
392
|
+
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
393
|
+
onClear: this.onSearchClear,
|
|
394
|
+
onChange: this.onSearch,
|
|
395
|
+
placeHolder: searchBoxPlaceHolder,
|
|
396
|
+
value: searchValue,
|
|
397
|
+
maxLength: maxLength,
|
|
398
|
+
onKeyDown: this.handleKeyDown,
|
|
399
|
+
inputRef: this.searchInputRef,
|
|
400
|
+
size: searchBoxSize,
|
|
401
|
+
dataId: `${dataId}_search`,
|
|
402
|
+
a11y: {
|
|
403
|
+
ariaDescribedby: ariaErrorId
|
|
404
|
+
},
|
|
405
|
+
autoComplete: false
|
|
406
|
+
}))) : null, /*#__PURE__*/React.createElement(CardContent, {
|
|
407
|
+
customClass: `${tabletMode ? style.responsivedropBoxList : style.dropBoxList} ${!tabletMode && dropBoxSize ? style[dropBoxSize] : ''}`,
|
|
408
|
+
shrink: true,
|
|
409
|
+
eleRef: this.scrollContentRef
|
|
410
|
+
}, options.length ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((options, i) => {
|
|
411
|
+
let {
|
|
412
|
+
iconName,
|
|
413
|
+
iconSize,
|
|
414
|
+
iconColor
|
|
415
|
+
} = options;
|
|
416
|
+
return /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
417
|
+
key: options[idKey],
|
|
418
|
+
value: options[valueKey],
|
|
419
|
+
size: "medium",
|
|
420
|
+
onClick: this.handleChange,
|
|
421
|
+
id: options[idKey],
|
|
422
|
+
index: i,
|
|
423
|
+
title: options[valueKey],
|
|
424
|
+
palette: "default",
|
|
425
|
+
dataId: options[idKey],
|
|
426
|
+
iconName: iconName,
|
|
427
|
+
iconSize: iconSize,
|
|
428
|
+
iconClass: iconColor,
|
|
429
|
+
active: selectedId === options[idKey],
|
|
430
|
+
needBorder: needListBorder,
|
|
431
|
+
needTick: needTick,
|
|
432
|
+
onMouseEnter: this.handleMouseEnter,
|
|
433
|
+
highlight: selectedIndex === i,
|
|
434
|
+
getRef: this.itemRef,
|
|
435
|
+
a11y: {
|
|
436
|
+
role: 'option',
|
|
437
|
+
ariaSelected: selectedId === options[idKey]
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
})) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
441
|
+
isLoading: isFetchingOptions,
|
|
442
|
+
options: options,
|
|
443
|
+
searchString: searchValue,
|
|
444
|
+
suggestions: options,
|
|
445
|
+
dataId: dataId,
|
|
446
|
+
i18nKeys: i18nKeys,
|
|
447
|
+
htmlId: ariaErrorId
|
|
448
|
+
})))));
|
|
449
|
+
}) : null);
|
|
424
450
|
}
|
|
425
451
|
|
|
426
452
|
}
|
|
File without changes
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**** Libraries ****/
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
|
+
/**** Components ****/
|
|
4
|
+
|
|
5
|
+
import GroupSelect from '../GroupSelect';
|
|
6
|
+
let groupedOptions = [{
|
|
7
|
+
id: 'tickets',
|
|
8
|
+
name: 'Tickets',
|
|
9
|
+
options: [{
|
|
10
|
+
id: '001',
|
|
11
|
+
subject: 'Ticket001'
|
|
12
|
+
}, {
|
|
13
|
+
id: '002',
|
|
14
|
+
subject: 'Ticket002'
|
|
15
|
+
}, {
|
|
16
|
+
id: '003',
|
|
17
|
+
subject: 'Ticket003'
|
|
18
|
+
}, {
|
|
19
|
+
id: '004',
|
|
20
|
+
subject: 'Ticket004'
|
|
21
|
+
}, {
|
|
22
|
+
id: '005',
|
|
23
|
+
subject: 'Ticket005'
|
|
24
|
+
}],
|
|
25
|
+
valueField: 'id',
|
|
26
|
+
textField: 'subject'
|
|
27
|
+
}, {
|
|
28
|
+
id: 'tasks',
|
|
29
|
+
name: 'Tasks',
|
|
30
|
+
options: [{
|
|
31
|
+
id: '001',
|
|
32
|
+
subject: 'Task001'
|
|
33
|
+
}, {
|
|
34
|
+
id: '002',
|
|
35
|
+
subject: 'Task002'
|
|
36
|
+
}, {
|
|
37
|
+
id: '003',
|
|
38
|
+
subject: 'Task003'
|
|
39
|
+
}, {
|
|
40
|
+
id: '004',
|
|
41
|
+
subject: 'Task004'
|
|
42
|
+
}, {
|
|
43
|
+
id: '005',
|
|
44
|
+
subject: 'Task005'
|
|
45
|
+
}],
|
|
46
|
+
valueField: 'id',
|
|
47
|
+
textField: 'subject'
|
|
48
|
+
}, {
|
|
49
|
+
id: 'accounts',
|
|
50
|
+
name: 'Accounts',
|
|
51
|
+
options: [{
|
|
52
|
+
id: '001',
|
|
53
|
+
name: 'Account001'
|
|
54
|
+
}, {
|
|
55
|
+
id: '002',
|
|
56
|
+
name: 'Account002'
|
|
57
|
+
}, {
|
|
58
|
+
id: '003',
|
|
59
|
+
name: 'Account003'
|
|
60
|
+
}, {
|
|
61
|
+
id: '004',
|
|
62
|
+
name: 'Account004'
|
|
63
|
+
}, {
|
|
64
|
+
id: '005',
|
|
65
|
+
name: 'Account005'
|
|
66
|
+
}],
|
|
67
|
+
valueField: 'id',
|
|
68
|
+
textField: 'name'
|
|
69
|
+
}, {
|
|
70
|
+
id: 'contacts',
|
|
71
|
+
name: 'Contacts',
|
|
72
|
+
options: [{
|
|
73
|
+
id: '001',
|
|
74
|
+
name: 'Contact001'
|
|
75
|
+
}, {
|
|
76
|
+
id: '002',
|
|
77
|
+
name: 'Contact002'
|
|
78
|
+
}, {
|
|
79
|
+
id: '003',
|
|
80
|
+
name: 'Contact003'
|
|
81
|
+
}, {
|
|
82
|
+
id: '004',
|
|
83
|
+
name: 'Contact004'
|
|
84
|
+
}, {
|
|
85
|
+
id: '005',
|
|
86
|
+
name: 'Contact005'
|
|
87
|
+
}],
|
|
88
|
+
valueField: 'id',
|
|
89
|
+
textField: 'name'
|
|
90
|
+
}];
|
|
91
|
+
export default class GroupSelect__default extends Component {
|
|
92
|
+
constructor(props) {
|
|
93
|
+
super(props);
|
|
94
|
+
this.state = {
|
|
95
|
+
selectedOption: {
|
|
96
|
+
groupId: 'tickets',
|
|
97
|
+
selected: '001'
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
this.handleChange = this.handleChange.bind(this);
|
|
101
|
+
this.groupFooter = this.groupFooter.bind(this);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
handleChange(selectedOption) {
|
|
105
|
+
this.setState({
|
|
106
|
+
selectedOption
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
groupFooter() {
|
|
111
|
+
return /*#__PURE__*/React.createElement("div", null, "Footer");
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
render() {
|
|
115
|
+
let {
|
|
116
|
+
selectedOption
|
|
117
|
+
} = this.state;
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(GroupSelect, {
|
|
119
|
+
groupedOptions: groupedOptions,
|
|
120
|
+
selectedOption: selectedOption,
|
|
121
|
+
onChange: this.handleChange,
|
|
122
|
+
needSearch: true,
|
|
123
|
+
searchEmptyMessage: "No matches found",
|
|
124
|
+
emptyMessage: "No Options",
|
|
125
|
+
isDefaultSelectValue: false,
|
|
126
|
+
placeHolder: "Select Option",
|
|
127
|
+
needLocalSearch: true
|
|
128
|
+
}), /*#__PURE__*/React.createElement(GroupSelect, {
|
|
129
|
+
groupedOptions: groupedOptions,
|
|
130
|
+
selectedOption: selectedOption,
|
|
131
|
+
onChange: this.handleChange,
|
|
132
|
+
needSearch: true,
|
|
133
|
+
searchEmptyMessage: "No matches found",
|
|
134
|
+
emptyMessage: "No Options",
|
|
135
|
+
isDefaultSelectValue: false,
|
|
136
|
+
placeHolder: "Select Option",
|
|
137
|
+
needLocalSearch: true,
|
|
138
|
+
getFooter: this.groupFooter
|
|
139
|
+
}, "Children"));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (false) {
|
|
145
|
+
GroupSelect__default.docs = {
|
|
146
|
+
componentGroup: 'Form Elements',
|
|
147
|
+
folderName: 'Style Guide'
|
|
148
|
+
};
|
|
149
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import SelectWithAvatar from '../SelectWithAvatar';
|
|
3
|
+
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
+
let option = [{
|
|
5
|
+
text: 'Option 1',
|
|
6
|
+
id: '1'
|
|
7
|
+
}, {
|
|
8
|
+
text: 'Option 2',
|
|
9
|
+
id: '2'
|
|
10
|
+
}, {
|
|
11
|
+
text: 'Option 3',
|
|
12
|
+
id: '3'
|
|
13
|
+
}, {
|
|
14
|
+
text: 'Option 4',
|
|
15
|
+
id: '4'
|
|
16
|
+
}, {
|
|
17
|
+
text: 'Option 5',
|
|
18
|
+
id: '5'
|
|
19
|
+
}, {
|
|
20
|
+
text: 'Option 6',
|
|
21
|
+
id: '6'
|
|
22
|
+
}, {
|
|
23
|
+
text: 'Option 7',
|
|
24
|
+
id: '7'
|
|
25
|
+
}, {
|
|
26
|
+
text: 'Option 8',
|
|
27
|
+
id: '8'
|
|
28
|
+
}, {
|
|
29
|
+
text: 'Option 9',
|
|
30
|
+
id: '9'
|
|
31
|
+
}, {
|
|
32
|
+
text: 'Option 10',
|
|
33
|
+
id: '10'
|
|
34
|
+
}];
|
|
35
|
+
export default class SelectWithAvatar__default extends Component {
|
|
36
|
+
constructor(props) {
|
|
37
|
+
super(props);
|
|
38
|
+
this.state = {
|
|
39
|
+
value: ''
|
|
40
|
+
};
|
|
41
|
+
this.handleChange = this.handleChange.bind(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
handleChange(value) {
|
|
45
|
+
this.setState({
|
|
46
|
+
value
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
render() {
|
|
51
|
+
let {
|
|
52
|
+
value
|
|
53
|
+
} = this.state;
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
style: {
|
|
56
|
+
width: '360px'
|
|
57
|
+
}
|
|
58
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(SelectWithAvatar, {
|
|
59
|
+
options: option,
|
|
60
|
+
onChange: this.handleChange,
|
|
61
|
+
selectedValue: value,
|
|
62
|
+
needSearch: true,
|
|
63
|
+
emptyMessage: "No matches found",
|
|
64
|
+
placeHolder: "PlaceHolder",
|
|
65
|
+
isDefaultSelectValue: false,
|
|
66
|
+
onRemove: () => {
|
|
67
|
+
this.handleChange('');
|
|
68
|
+
}
|
|
69
|
+
}), /*#__PURE__*/React.createElement(SelectWithAvatar, {
|
|
70
|
+
options: option,
|
|
71
|
+
onChange: this.handleChange,
|
|
72
|
+
selectedValue: value,
|
|
73
|
+
needSearch: true,
|
|
74
|
+
emptyMessage: "No matches found",
|
|
75
|
+
placeHolder: "PlaceHolder",
|
|
76
|
+
isDefaultSelectValue: false,
|
|
77
|
+
isReadOnly: true
|
|
78
|
+
}), /*#__PURE__*/React.createElement(SelectWithAvatar, {
|
|
79
|
+
options: option,
|
|
80
|
+
onChange: this.handleChange,
|
|
81
|
+
selectedValue: value,
|
|
82
|
+
needSearch: true,
|
|
83
|
+
emptyMessage: "No matches found",
|
|
84
|
+
placeHolder: "PlaceHolder",
|
|
85
|
+
isDefaultSelectValue: false,
|
|
86
|
+
isDisabled: true
|
|
87
|
+
})));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (false) {
|
|
93
|
+
SelectWithAvatar__default.docs = {
|
|
94
|
+
componentGroup: 'Form Elements',
|
|
95
|
+
folderName: 'Style Guide'
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import SelectWithIcon from '../SelectWithIcon';
|
|
3
|
+
export default class SelectWithIcon__default extends Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
this.options = [{
|
|
7
|
+
value: 'Bar',
|
|
8
|
+
id: 'bar',
|
|
9
|
+
iconName: 'ZD-RP-clrBar',
|
|
10
|
+
iconSize: '13'
|
|
11
|
+
}, {
|
|
12
|
+
value: 'Stacked Bar',
|
|
13
|
+
id: 'stackedBar',
|
|
14
|
+
iconName: 'ZD-RP-clrStackedBar',
|
|
15
|
+
iconSize: '13'
|
|
16
|
+
}, {
|
|
17
|
+
value: 'Percentage Bar',
|
|
18
|
+
id: 'percentageBar',
|
|
19
|
+
iconName: 'ZD-RP-clrPercentageBar',
|
|
20
|
+
iconSize: '13'
|
|
21
|
+
}, {
|
|
22
|
+
value: 'Pie',
|
|
23
|
+
id: 'pie',
|
|
24
|
+
iconName: 'ZD-RP-clrPie',
|
|
25
|
+
iconSize: '13'
|
|
26
|
+
}, {
|
|
27
|
+
value: 'Funnel',
|
|
28
|
+
id: 'funnel',
|
|
29
|
+
iconName: 'ZD-RP-clrFunnel',
|
|
30
|
+
iconSize: '13'
|
|
31
|
+
}, {
|
|
32
|
+
value: 'Line',
|
|
33
|
+
id: 'line',
|
|
34
|
+
iconName: 'ZD-RP-clrLine',
|
|
35
|
+
iconSize: '13'
|
|
36
|
+
}, {
|
|
37
|
+
value: 'Multiple Line',
|
|
38
|
+
id: 'multipleLine',
|
|
39
|
+
iconName: 'ZD-RP-clrMultiline',
|
|
40
|
+
iconSize: '13'
|
|
41
|
+
}, {
|
|
42
|
+
value: 'Table',
|
|
43
|
+
id: 'table',
|
|
44
|
+
iconName: 'ZD-RP-clrTableReport',
|
|
45
|
+
iconSize: '13'
|
|
46
|
+
}];
|
|
47
|
+
this.state = {
|
|
48
|
+
selectedValue: this.options[0].value,
|
|
49
|
+
selectedId: this.options[0].id,
|
|
50
|
+
selectedIcon: this.options[0].iconName,
|
|
51
|
+
selectedIconSize: this.options[0].iconSize
|
|
52
|
+
};
|
|
53
|
+
this.handleChange = this.handleChange.bind(this);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
handleChange(selectedId, selectedValue, index, e) {
|
|
57
|
+
this.setState({
|
|
58
|
+
selectedValue,
|
|
59
|
+
selectedId,
|
|
60
|
+
selectedIcon: this.options[index].iconName,
|
|
61
|
+
selectedIconSize: this.options[index].iconSize
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
render() {
|
|
66
|
+
let {
|
|
67
|
+
selectedValue,
|
|
68
|
+
selectedId,
|
|
69
|
+
selectedIconSize,
|
|
70
|
+
selectedIcon
|
|
71
|
+
} = this.state;
|
|
72
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
style: {
|
|
74
|
+
width: '300px',
|
|
75
|
+
marginBottom: '20px'
|
|
76
|
+
}
|
|
77
|
+
}, /*#__PURE__*/React.createElement(SelectWithIcon, {
|
|
78
|
+
options: this.options,
|
|
79
|
+
needSearch: true,
|
|
80
|
+
searchPlaceHolder: "Search",
|
|
81
|
+
searchEmptyMessage: 'No matches found',
|
|
82
|
+
selectedValue: selectedValue,
|
|
83
|
+
onChange: this.handleChange,
|
|
84
|
+
placeHolder: "Placeholder",
|
|
85
|
+
selectedId: selectedId,
|
|
86
|
+
needTick: true,
|
|
87
|
+
textBoxVariant: "primary",
|
|
88
|
+
iconSize: selectedIconSize,
|
|
89
|
+
iconName: selectedIcon
|
|
90
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
style: {
|
|
92
|
+
width: '300px',
|
|
93
|
+
marginBottom: '20px'
|
|
94
|
+
}
|
|
95
|
+
}, /*#__PURE__*/React.createElement(SelectWithIcon, {
|
|
96
|
+
options: this.options,
|
|
97
|
+
needSearch: true,
|
|
98
|
+
searchPlaceHolder: "Search",
|
|
99
|
+
searchEmptyMessage: 'No matches found',
|
|
100
|
+
selectedValue: selectedValue,
|
|
101
|
+
onChange: this.handleChange,
|
|
102
|
+
placeHolder: "Placeholder",
|
|
103
|
+
selectedId: selectedId,
|
|
104
|
+
needTick: true,
|
|
105
|
+
textBoxVariant: "primary",
|
|
106
|
+
isDisabled: true,
|
|
107
|
+
iconSize: selectedIconSize,
|
|
108
|
+
iconName: selectedIcon
|
|
109
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
110
|
+
style: {
|
|
111
|
+
width: '300px',
|
|
112
|
+
marginBottom: '20px'
|
|
113
|
+
}
|
|
114
|
+
}, /*#__PURE__*/React.createElement(SelectWithIcon, {
|
|
115
|
+
options: this.options,
|
|
116
|
+
needSearch: true,
|
|
117
|
+
searchPlaceHolder: "Search",
|
|
118
|
+
searchEmptyMessage: 'No matches found',
|
|
119
|
+
selectedValue: selectedValue,
|
|
120
|
+
onChange: this.handleChange,
|
|
121
|
+
placeHolder: "Placeholder",
|
|
122
|
+
selectedId: selectedId,
|
|
123
|
+
needTick: true,
|
|
124
|
+
textBoxVariant: "primary",
|
|
125
|
+
isReadOnly: true,
|
|
126
|
+
iconSize: selectedIconSize,
|
|
127
|
+
iconName: selectedIcon
|
|
128
|
+
})));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (false) {
|
|
134
|
+
SelectWithIcon__default.docs = {
|
|
135
|
+
componentGroup: 'Form Elements',
|
|
136
|
+
folderName: 'Style Guide'
|
|
137
|
+
};
|
|
138
|
+
}
|