@zohodesk/components 1.0.0-alpha-222 → 1.0.0-alpha-226
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 +15 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +356 -0
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +34 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +42 -0
- package/{es → assets}/Appearance/dark/themes/green/greenDarkCTATheme.module.css +11 -11
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +42 -0
- package/{lib → assets}/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +11 -11
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +42 -0
- package/{lib → assets}/Appearance/dark/themes/red/redDarkCTATheme.module.css +11 -11
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +42 -0
- package/{es → assets}/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +11 -11
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/default/mode/defaultMode.module.css +356 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +34 -0
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +42 -0
- package/{es → assets}/Appearance/default/themes/green/greenDefaultCTATheme.module.css +3 -3
- package/{lib → assets}/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +8 -8
- package/{es → assets}/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/{lib → assets}/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +7 -7
- package/{es → assets}/Appearance/default/themes/red/redDefaultCTATheme.module.css +8 -8
- package/{lib → assets}/Appearance/default/themes/red/redDefaultComponentTheme.module.css +7 -7
- package/{es → assets}/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/{es → assets}/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +7 -7
- package/es/AppContainer/AppContainer.js +6 -6
- package/es/Card/Card.module.css +3 -3
- package/es/ListItem/ListContainer.js +123 -0
- package/es/ListItem/ListItem.js +23 -31
- package/es/ListItem/ListItemWithAvatar.js +21 -27
- package/es/ListItem/ListItemWithCheckBox.js +23 -29
- package/es/ListItem/ListItemWithIcon.js +26 -26
- package/es/ListItem/ListItemWithRadio.js +24 -31
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Provider.js +22 -22
- package/es/Stencils/Stencils.module.css +4 -14
- package/es/common/docStyle.module.css +9 -9
- package/lib/AppContainer/AppContainer.js +6 -6
- package/lib/Card/Card.module.css +3 -3
- package/lib/ListItem/ListContainer.js +132 -0
- package/lib/ListItem/ListItem.js +25 -32
- package/lib/ListItem/ListItemWithAvatar.js +23 -28
- package/lib/ListItem/ListItemWithCheckBox.js +24 -27
- package/lib/ListItem/ListItemWithIcon.js +27 -26
- package/lib/ListItem/ListItemWithRadio.js +26 -27
- package/lib/PopOver/PopOver.module.css +1 -1
- package/lib/Provider.js +22 -22
- package/lib/Stencils/Stencils.module.css +4 -14
- package/lib/common/docStyle.module.css +9 -9
- package/package.json +8 -8
- package/README_Beta.md +0 -2
- package/__testUtils__/globals.js +0 -46
- package/__testUtils__/moduleMapKey.json +0 -138
- package/dubFinder.js +0 -96
- package/es/Accordion/docs/Accordion__Demo.docs.js +0 -80
- package/es/Animation/docs/Animation__default.docs.js +0 -34
- package/es/Animation/docs/Animation__fadeIn.docs.js +0 -34
- package/es/Animation/docs/Animation__scaleIn.docs.js +0 -34
- package/es/Animation/docs/Animation__skewIn.docs.js +0 -34
- package/es/Animation/docs/Animation__slideDown.docs.js +0 -34
- package/es/Animation/docs/Animation__slideLeft.docs.js +0 -34
- package/es/Animation/docs/Animation__zoomIn.docs.js +0 -34
- package/es/AppContainer/docs/AppContainer__default.docs.js +0 -20
- package/es/Appearance/dark/mode/darkMode.module.css +0 -356
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +0 -34
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -42
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -42
- package/es/Appearance/default/mode/defaultMode.module.css +0 -356
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -42
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +0 -42
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +0 -42
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +0 -42
- package/es/Avatar/docs/Avatar__custom.docs.js +0 -29
- package/es/Avatar/docs/Avatar__default.docs.js +0 -29
- package/es/Avatar/docs/Avatar__palette.docs.js +0 -49
- package/es/Avatar/docs/Avatar__text.docs.js +0 -28
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -73
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -31
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -50
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -49
- package/es/Button/docs/Button__custom.docs.js +0 -771
- package/es/Button/docs/Button__default.docs.js +0 -536
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -37
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -33
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -42
- package/es/Card/docs/Card__Custom.docs.js +0 -34
- package/es/Card/docs/Card__Default.docs.js +0 -37
- package/es/Card/docs/Card__Scroll.docs.js +0 -59
- package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -293
- package/es/CheckBox/docs/CheckBox__default.docs.js +0 -219
- package/es/DateTime/docs/DateTime__default.docs.js +0 -91
- package/es/DateTime/docs/DateWidget__default.docs.js +0 -183
- package/es/DateTime/docs/timezonedata.json +0 -1
- package/es/DropBox/docs/DropBox__custom.docs.js +0 -66
- package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -92
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -91
- package/es/DropBox/docs/DropBox__position.docs.js +0 -87
- package/es/DropBox/docs/DropBox__size.docs.js +0 -61
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -23
- package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -21
- package/es/Label/docs/Label__clipped.docs.js +0 -27
- package/es/Label/docs/Label__custom.docs.js +0 -30
- package/es/Label/docs/Label__palette.docs.js +0 -42
- package/es/Label/docs/Label__size.docs.js +0 -29
- package/es/Label/docs/Label__type.docs.js +0 -37
- package/es/Layout/docs/Layout__Hidden.docs.js +0 -77
- package/es/Layout/docs/Layout__default.docs.js +0 -49
- package/es/Layout/docs/Layout__four_Column.docs.js +0 -85
- package/es/Layout/docs/Layout__three_Column.docs.js +0 -76
- package/es/Layout/docs/Layout__two_Column.docs.js +0 -69
- package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -74
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -155
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -112
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -91
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -65
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -68
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -62
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -91
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -65
- package/es/ListItem/docs/ListItem__custom.docs.js +0 -114
- package/es/ListItem/docs/ListItem__default.docs.js +0 -82
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -125
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -114
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -141
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -161
- package/es/PopOver/docs/PopOver__default.docs.js +0 -32
- package/es/Provider/docs/Provider_Id__Class.docs.js +0 -29
- package/es/Provider/docs/Provider_Id__Function.docs.js +0 -18
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -32
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -23
- package/es/Radio/docs/Radio__custom.docs.js +0 -245
- package/es/Radio/docs/Radio__default.docs.js +0 -169
- package/es/Responsive/docs/Responsive__Custom.docs.js +0 -206
- package/es/Responsive/docs/Responsive__default.docs.js +0 -97
- package/es/Responsive/docs/style.module.css +0 -56
- package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -386
- package/es/Ribbon/docs/Ribbon__default.docs.js +0 -342
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -435
- package/es/Select/docs/GroupSelect__default.docs.js +0 -149
- package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -97
- package/es/Select/docs/SelectWithIcon__default.docs.js +0 -138
- package/es/Select/docs/Select__default.docs.js +0 -288
- package/es/Stencils/docs/Stencils__custom.docs.js +0 -45
- package/es/Stencils/docs/Stencils__default.docs.js +0 -50
- package/es/Switch/docs/Switch__custom.docs.js +0 -153
- package/es/Switch/docs/Switch__default.docs.js +0 -107
- package/es/Tab/docs/Tab__default.docs.js +0 -258
- package/es/Tab/docs/tabdocs.module.css +0 -29
- package/es/Tag/docs/Tag__custom.docs.js +0 -368
- package/es/Tag/docs/Tag__default.docs.js +0 -253
- package/es/TextBox/docs/TextBox__custom.docs.js +0 -43
- package/es/TextBox/docs/TextBox__default.docs.js +0 -40
- package/es/TextBox/docs/TextBox__size.docs.js +0 -38
- package/es/TextBox/docs/TextBox__variant.docs.js +0 -38
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -89
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -61
- package/es/Textarea/docs/Textarea__animated.docs.js +0 -41
- package/es/Textarea/docs/Textarea__custom.docs.js +0 -82
- package/es/Textarea/docs/Textarea__default.docs.js +0 -76
- package/es/Textarea/docs/Textarea__disabled.docs.js +0 -29
- package/es/Tooltip/docs/Tooltip__default.docs.js +0 -332
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -97
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -150
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -72
- package/es/semantic/Button/docs/Button__default.docs.js +0 -20
- package/externalDocsBuild.js +0 -21
- package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -126
- package/lib/Animation/docs/Animation__default.docs.js +0 -85
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -85
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -85
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -85
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -70
- package/lib/Appearance/dark/mode/darkMode.module.css +0 -356
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +0 -42
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +0 -42
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +0 -42
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +0 -42
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +0 -34
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +0 -42
- package/lib/Appearance/default/mode/defaultMode.module.css +0 -356
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +0 -42
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +0 -34
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +0 -42
- package/lib/Avatar/docs/Avatar__custom.docs.js +0 -87
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -83
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -107
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -86
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -124
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -82
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -101
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -100
- package/lib/Button/docs/Button__custom.docs.js +0 -826
- package/lib/Button/docs/Button__default.docs.js +0 -590
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -89
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -85
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -98
- package/lib/Card/docs/Card__Custom.docs.js +0 -90
- package/lib/Card/docs/Card__Default.docs.js +0 -92
- package/lib/Card/docs/Card__Scroll.docs.js +0 -114
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -348
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -273
- package/lib/DateTime/docs/DateTime__default.docs.js +0 -142
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -240
- package/lib/DateTime/docs/timezonedata.json +0 -1
- package/lib/DropBox/docs/DropBox__custom.docs.js +0 -122
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -141
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -140
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -142
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -116
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -73
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -70
- package/lib/Label/docs/Label__clipped.docs.js +0 -81
- package/lib/Label/docs/Label__custom.docs.js +0 -85
- package/lib/Label/docs/Label__palette.docs.js +0 -96
- package/lib/Label/docs/Label__size.docs.js +0 -83
- package/lib/Label/docs/Label__type.docs.js +0 -91
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -127
- package/lib/Layout/docs/Layout__default.docs.js +0 -98
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -135
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -126
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -119
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -131
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -206
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -162
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -119
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -112
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -142
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -115
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -164
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -131
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -177
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -191
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -214
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -86
- package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -77
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -29
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -80
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -34
- package/lib/Radio/docs/Radio__custom.docs.js +0 -299
- package/lib/Radio/docs/Radio__default.docs.js +0 -222
- package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -272
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -142
- package/lib/Responsive/docs/style.module.css +0 -56
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -437
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -392
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -484
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -199
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -152
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -190
- package/lib/Select/docs/Select__default.docs.js +0 -340
- package/lib/Stencils/docs/Stencils__custom.docs.js +0 -96
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -101
- package/lib/Switch/docs/Switch__custom.docs.js +0 -203
- package/lib/Switch/docs/Switch__default.docs.js +0 -156
- package/lib/Tab/docs/Tab__default.docs.js +0 -308
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tag/docs/Tag__custom.docs.js +0 -423
- package/lib/Tag/docs/Tag__default.docs.js +0 -307
- package/lib/TextBox/docs/TextBox__custom.docs.js +0 -98
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -95
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -93
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -93
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -145
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -117
- package/lib/Textarea/docs/Textarea__animated.docs.js +0 -95
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -137
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -130
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -83
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -391
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -150
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -206
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -145
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -66
- package/preprocess/componentAppearanceColors.js +0 -65
- package/preprocess/componentThemeColors.js +0 -119
- package/preprocess/ctaThemeColors.js +0 -95
- package/preprocess/index.js +0 -3
- package/preprocess/json/componentAppearanceVariableJson.js +0 -1515
- package/preprocess/json/componentThemeVariableJson.js +0 -259
- package/preprocess/json/ctaThemeVariableJson.js +0 -337
|
@@ -3,8 +3,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Radio from '../Radio/Radio';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
6
|
+
import { Box } from '../Layout';
|
|
7
|
+
import ListContainer from './ListContainer';
|
|
8
8
|
import style from './ListItem.module.css';
|
|
9
9
|
export default class ListItemWithRadio extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
@@ -58,43 +58,35 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
58
58
|
isDisabled,
|
|
59
59
|
disableTitle,
|
|
60
60
|
a11y,
|
|
61
|
-
customClass
|
|
61
|
+
customClass,
|
|
62
|
+
customProps
|
|
62
63
|
} = this.props;
|
|
64
|
+
let {
|
|
65
|
+
ListItemProps = {},
|
|
66
|
+
ContainerProps = {}
|
|
67
|
+
} = customProps;
|
|
63
68
|
let {
|
|
64
69
|
customListItem = '',
|
|
65
70
|
customRadio = '',
|
|
66
71
|
customRadioWrap = ''
|
|
67
72
|
} = customClass;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (!isDisabled && active) {
|
|
79
|
-
options.tabindex = '0';
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
83
|
-
role: role,
|
|
84
|
-
"aria-selected": ariaSelected,
|
|
85
|
-
isCover: false,
|
|
86
|
-
align: "vertical",
|
|
87
|
-
alignBox: "row",
|
|
88
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${isDisabled ? CssProvider('isDisable') : ''} `,
|
|
89
|
-
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style[`active${palette}`] : highlight && !isDisabled ? style[`${palette}Hover`] : ''} ${autoHover && !isDisabled ? style[`${palette}Effect`] : ''}
|
|
90
|
-
${isDisabled ? CssProvider('isDisable') : ''} ${customListItem}`,
|
|
73
|
+
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
74
|
+
a11y: a11y,
|
|
75
|
+
size: size,
|
|
76
|
+
palette: palette,
|
|
77
|
+
highlight: highlight,
|
|
78
|
+
isDisabled: isDisabled,
|
|
79
|
+
active: active,
|
|
80
|
+
autoHover: autoHover,
|
|
81
|
+
customClass: customListItem,
|
|
91
82
|
dataId: dataId,
|
|
92
|
-
onClick:
|
|
83
|
+
onClick: this.onClick,
|
|
93
84
|
onMouseOver: this.onHover,
|
|
94
85
|
eleRef: this.getRef,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
disableTitle: disableTitle,
|
|
87
|
+
title: null,
|
|
88
|
+
customProps: ListItemProps
|
|
89
|
+
}, ContainerProps), /*#__PURE__*/React.createElement(Box, {
|
|
98
90
|
className: style.iconBox
|
|
99
91
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
100
92
|
checked: checked,
|
|
@@ -125,7 +117,8 @@ ListItemWithRadio.defaultProps = {
|
|
|
125
117
|
value: 'List',
|
|
126
118
|
dataId: 'listItemWithRadioComp',
|
|
127
119
|
a11y: {},
|
|
128
|
-
customClass: {}
|
|
120
|
+
customClass: {},
|
|
121
|
+
customProps: {}
|
|
129
122
|
};
|
|
130
123
|
ListItemWithRadio.propTypes = {
|
|
131
124
|
active: PropTypes.bool,
|
package/es/Provider.js
CHANGED
|
@@ -4,30 +4,30 @@ import { Container } from './Layout';
|
|
|
4
4
|
import Switch from './Switch/Switch';
|
|
5
5
|
/* default mode & theme css */
|
|
6
6
|
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
7
|
+
import '../assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css';
|
|
8
|
+
import '../assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css';
|
|
9
|
+
import '../assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css';
|
|
10
|
+
import '../assets/Appearance/default/themes/red/redDefaultCTATheme.module.css';
|
|
11
|
+
import '../assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css';
|
|
12
|
+
import '../assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css';
|
|
13
|
+
import '../assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css';
|
|
14
|
+
import '../assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css';
|
|
15
|
+
import '../assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css';
|
|
16
|
+
import '../assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css';
|
|
17
|
+
import '../assets/Appearance/default/mode/defaultMode.module.css';
|
|
18
18
|
/* dark mode & theme css */
|
|
19
19
|
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
20
|
+
import '../assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css';
|
|
21
|
+
import '../assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css';
|
|
22
|
+
import '../assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css';
|
|
23
|
+
import '../assets/Appearance/dark/themes/red/redDarkCTATheme.module.css';
|
|
24
|
+
import '../assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css';
|
|
25
|
+
import '../assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css';
|
|
26
|
+
import '../assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css';
|
|
27
|
+
import '../assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css';
|
|
28
|
+
import '../assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css';
|
|
29
|
+
import '../assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css';
|
|
30
|
+
import '../assets/Appearance/dark/mode/darkMode.module.css';
|
|
31
31
|
import LibraryContext from './Provider/LibraryContextInit';
|
|
32
32
|
import { setGlobalIdPrefix } from './Provider/IdProvider';
|
|
33
33
|
export default class Provider extends React.Component {
|
|
@@ -14,28 +14,18 @@
|
|
|
14
14
|
background-size: 800px 1px;
|
|
15
15
|
}
|
|
16
16
|
[dir=ltr] .stencil {
|
|
17
|
-
animation-
|
|
17
|
+
animation-name: placeHolderShimmer-ltr ;
|
|
18
18
|
animation-fill-mode: forwards;
|
|
19
19
|
animation-iteration-count: infinite;
|
|
20
|
-
animation-
|
|
20
|
+
animation-duration: var(--zd_transition10);
|
|
21
21
|
animation-timing-function: linear;
|
|
22
|
-
-webkit-animation-duration: var(--zd_transition10);
|
|
23
|
-
-webkit-animation-fill-mode: forwards;
|
|
24
|
-
-webkit-animation-iteration-count: infinite;
|
|
25
|
-
-webkit-animation-name: placeHolderShimmer-ltr ;
|
|
26
|
-
-webkit-animation-timing-function: linear;
|
|
27
22
|
}
|
|
28
23
|
[dir=rtl] .stencil {
|
|
29
|
-
animation-
|
|
24
|
+
animation-name: placeHolderShimmer-rtl ;
|
|
30
25
|
animation-fill-mode: forwards;
|
|
31
26
|
animation-iteration-count: infinite;
|
|
32
|
-
animation-
|
|
27
|
+
animation-duration: var(--zd_transition10);
|
|
33
28
|
animation-timing-function: linear;
|
|
34
|
-
-webkit-animation-duration: var(--zd_transition10);
|
|
35
|
-
-webkit-animation-fill-mode: forwards;
|
|
36
|
-
-webkit-animation-iteration-count: infinite;
|
|
37
|
-
-webkit-animation-name: placeHolderShimmer-rtl ;
|
|
38
|
-
-webkit-animation-timing-function: linear;
|
|
39
29
|
}
|
|
40
30
|
@keyframes placeHolderShimmer-ltr {
|
|
41
31
|
0% {
|
|
@@ -94,18 +94,18 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.blue {
|
|
97
|
-
color: var(--
|
|
97
|
+
color: var(--zd_prime);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.dark {
|
|
101
101
|
composes: p10;
|
|
102
|
-
background-color: var(--
|
|
102
|
+
background-color: var(--dot_black);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.table {
|
|
106
106
|
composes: p10;
|
|
107
107
|
composes: cboth;
|
|
108
|
-
border: 1px solid var(--
|
|
108
|
+
border: 1px solid var(--zd_smoke84);
|
|
109
109
|
border-radius: 3px;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
|
|
120
120
|
.tableheading {
|
|
121
121
|
composes: blue;
|
|
122
|
-
background:
|
|
122
|
+
background:var(--zd_smoke1);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.palette {
|
|
@@ -130,13 +130,13 @@
|
|
|
130
130
|
width: 200px;
|
|
131
131
|
composes: tcenter;
|
|
132
132
|
font-weight: bold;
|
|
133
|
-
border: 1px solid var(--
|
|
133
|
+
border: 1px solid var(--zd_smoke83);
|
|
134
134
|
border-radius: 3px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.palette .palettecard {
|
|
138
138
|
height: 80px;
|
|
139
|
-
border: 1px solid var(--
|
|
139
|
+
border: 1px solid var(--zd_smoke83);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.palette span {
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
composes: tcenter;
|
|
150
150
|
composes: p10;
|
|
151
151
|
composes: m10;
|
|
152
|
-
border: 1px solid var(--
|
|
152
|
+
border: 1px solid var(--zd_smoke83);
|
|
153
153
|
border-radius: 3px;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
.cover {
|
|
162
162
|
composes: p10;
|
|
163
163
|
composes: m10;
|
|
164
|
-
border: 1px solid var(--
|
|
164
|
+
border: 1px solid var(--zd_smoke1);
|
|
165
165
|
border-radius: 5px;
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -759,4 +759,4 @@
|
|
|
759
759
|
--textarea_text_color: hsl(var(--hue), 100%, 80%);
|
|
760
760
|
--textarea_padding: 2px 10px;
|
|
761
761
|
background-color: hsl(var(--hue), 100%, 97%);
|
|
762
|
-
}
|
|
762
|
+
}
|
|
@@ -17,19 +17,19 @@ var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
|
17
17
|
|
|
18
18
|
require("../common/basic.module.css");
|
|
19
19
|
|
|
20
|
-
require("@zohodesk/variables/
|
|
20
|
+
require("@zohodesk/variables/assets/colorVariables.module.css");
|
|
21
21
|
|
|
22
|
-
require("@zohodesk/variables/
|
|
22
|
+
require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
23
23
|
|
|
24
|
-
require("@zohodesk/variables/
|
|
24
|
+
require("@zohodesk/variables/assets/sizeVariables.module.css");
|
|
25
25
|
|
|
26
|
-
require("@zohodesk/variables/
|
|
26
|
+
require("@zohodesk/variables/assets/fontsizeVariables.module.css");
|
|
27
27
|
|
|
28
28
|
require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
|
|
29
29
|
|
|
30
|
-
require("@zohodesk/variables/
|
|
30
|
+
require("@zohodesk/variables/assets/transitionVariables.module.css");
|
|
31
31
|
|
|
32
|
-
require("@zohodesk/variables/
|
|
32
|
+
require("@zohodesk/variables/assets/no_transitionVariables.module.css");
|
|
33
33
|
|
|
34
34
|
var _AppContainerModule = _interopRequireDefault(require("./AppContainer.module.css"));
|
|
35
35
|
|
package/lib/Card/Card.module.css
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
.scroll {
|
|
5
|
-
/* background: var(--
|
|
5
|
+
/* background: var(--dot_white);
|
|
6
6
|
position: relative; */
|
|
7
7
|
}
|
|
8
|
-
/*
|
|
8
|
+
/*
|
|
9
9
|
.scroll::after {
|
|
10
|
-
box-shadow: 0 0 6px var(--
|
|
10
|
+
box-shadow: 0 0 6px var(--zd_dark10);
|
|
11
11
|
border-radius: 100px / 10px;
|
|
12
12
|
content: '';
|
|
13
13
|
left: var(--zd_size50);
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _Layout = require("../Layout");
|
|
13
|
+
|
|
14
|
+
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
15
|
+
|
|
16
|
+
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
var ListContainer = function ListContainer(props) {
|
|
23
|
+
var size = props.size,
|
|
24
|
+
active = props.active,
|
|
25
|
+
highlight = props.highlight,
|
|
26
|
+
autoHover = props.autoHover,
|
|
27
|
+
palette = props.palette,
|
|
28
|
+
title = props.title,
|
|
29
|
+
disableTitle = props.disableTitle,
|
|
30
|
+
needTick = props.needTick,
|
|
31
|
+
isLink = props.isLink,
|
|
32
|
+
href = props.href,
|
|
33
|
+
target = props.target,
|
|
34
|
+
needBorder = props.needBorder,
|
|
35
|
+
isDisabled = props.isDisabled,
|
|
36
|
+
children = props.children,
|
|
37
|
+
dataId = props.dataId,
|
|
38
|
+
a11y = props.a11y,
|
|
39
|
+
customClass = props.customClass,
|
|
40
|
+
customProps = props.customProps,
|
|
41
|
+
onClick = props.onClick,
|
|
42
|
+
onMouseEnter = props.onMouseEnter,
|
|
43
|
+
onMouseOver = props.onMouseOver,
|
|
44
|
+
eleRef = props.eleRef;
|
|
45
|
+
var role = a11y.role,
|
|
46
|
+
ariaSelected = a11y.ariaSelected;
|
|
47
|
+
var options = {};
|
|
48
|
+
|
|
49
|
+
if (isLink) {
|
|
50
|
+
options.href = href;
|
|
51
|
+
options.target = "_".concat(target);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (active) {
|
|
55
|
+
options['data-selected'] = active;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (!isDisabled && !isLink && active) {
|
|
59
|
+
options.tabindex = '0';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
63
|
+
role: role,
|
|
64
|
+
"aria-selected": ariaSelected,
|
|
65
|
+
isCover: false,
|
|
66
|
+
align: "vertical",
|
|
67
|
+
alignBox: "row",
|
|
68
|
+
className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " ").concat(needTick ? _ListItemModule["default"]["".concat(size, "withTick")] : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? active ? _ListItemModule["default"].activewithBorder : _ListItemModule["default"].withBorder : '', " ").concat(customClass),
|
|
69
|
+
dataId: dataId,
|
|
70
|
+
onClick: !isDisabled && onClick,
|
|
71
|
+
onMouseEnter: onMouseEnter,
|
|
72
|
+
onMouseOver: onMouseOver,
|
|
73
|
+
eleRef: eleRef,
|
|
74
|
+
tagName: isLink ? 'a' : 'li',
|
|
75
|
+
"data-title": isDisabled ? disableTitle : title
|
|
76
|
+
}, options, customProps), children);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
ListContainer.defaultProps = {
|
|
80
|
+
active: false,
|
|
81
|
+
autoHover: false,
|
|
82
|
+
highlight: false,
|
|
83
|
+
needTick: false,
|
|
84
|
+
palette: 'default',
|
|
85
|
+
size: 'medium',
|
|
86
|
+
isLink: false,
|
|
87
|
+
target: 'blank',
|
|
88
|
+
needBorder: true,
|
|
89
|
+
a11y: {},
|
|
90
|
+
customClass: {},
|
|
91
|
+
customProps: {}
|
|
92
|
+
};
|
|
93
|
+
var _default = ListContainer;
|
|
94
|
+
exports["default"] = _default;
|
|
95
|
+
ListContainer.propTypes = {
|
|
96
|
+
active: _propTypes["default"].bool,
|
|
97
|
+
autoHover: _propTypes["default"].bool,
|
|
98
|
+
children: _propTypes["default"].node,
|
|
99
|
+
dataId: _propTypes["default"].string,
|
|
100
|
+
disableTitle: _propTypes["default"].string,
|
|
101
|
+
highlight: _propTypes["default"].bool,
|
|
102
|
+
href: _propTypes["default"].string,
|
|
103
|
+
isDisabled: _propTypes["default"].bool,
|
|
104
|
+
isLink: _propTypes["default"].bool,
|
|
105
|
+
needBorder: _propTypes["default"].bool,
|
|
106
|
+
needTick: _propTypes["default"].bool,
|
|
107
|
+
onClick: _propTypes["default"].func,
|
|
108
|
+
onMouseEnter: _propTypes["default"].func,
|
|
109
|
+
onMouseOver: _propTypes["default"].func,
|
|
110
|
+
palette: _propTypes["default"].oneOf(['default', 'primary', 'secondary', 'dark']),
|
|
111
|
+
size: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
112
|
+
target: _propTypes["default"].oneOf(['blank', 'self']),
|
|
113
|
+
title: _propTypes["default"].string,
|
|
114
|
+
a11y: _propTypes["default"].shape({
|
|
115
|
+
role: _propTypes["default"].string,
|
|
116
|
+
ariaSelected: _propTypes["default"].bool
|
|
117
|
+
}),
|
|
118
|
+
customClass: _propTypes["default"].shape({
|
|
119
|
+
customListItem: _propTypes["default"].string,
|
|
120
|
+
customTickIcon: _propTypes["default"].string
|
|
121
|
+
}),
|
|
122
|
+
customProps: _propTypes["default"].shape({
|
|
123
|
+
ListItemProps: _propTypes["default"].object
|
|
124
|
+
})
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
if (false) {
|
|
128
|
+
ListContainer.docs = {
|
|
129
|
+
componentGroup: 'Molecule',
|
|
130
|
+
folderName: 'Style Guide'
|
|
131
|
+
};
|
|
132
|
+
}
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -13,9 +13,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
19
19
|
|
|
20
20
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
21
21
|
|
|
@@ -114,46 +114,39 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
|
|
|
114
114
|
customClass = _this$props4.customClass,
|
|
115
115
|
customProps = _this$props4.customProps;
|
|
116
116
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
117
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem
|
|
117
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
118
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
119
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
118
120
|
var _customClass$customLi = customClass.customListItem,
|
|
119
121
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
120
122
|
_customClass$customTi = customClass.customTickIcon,
|
|
121
123
|
customTickIcon = _customClass$customTi === void 0 ? '' : _customClass$customTi;
|
|
122
|
-
var
|
|
123
|
-
ariaSelected = a11y.ariaSelected,
|
|
124
|
-
_a11y$ariaHidden = a11y.ariaHidden,
|
|
124
|
+
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
125
125
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
126
126
|
var tickIconPalette = _ListItemModule["default"]["".concat(palette, "Tick")] ? _ListItemModule["default"]["".concat(palette, "Tick")] : '';
|
|
127
|
-
var options = {};
|
|
128
|
-
|
|
129
|
-
if (isLink) {
|
|
130
|
-
options.href = href;
|
|
131
|
-
options.target = "_".concat(target);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (active) {
|
|
135
|
-
options['data-selected'] = active;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (!isDisabled && !isLink && active) {
|
|
139
|
-
options.tabindex = '0';
|
|
140
|
-
}
|
|
141
|
-
|
|
142
127
|
var dataIdString = dataId ? dataId : value ? String(value).replace("'", '_') : 'listItem';
|
|
143
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
129
|
+
a11y: a11y,
|
|
130
|
+
size: size,
|
|
131
|
+
palette: palette,
|
|
132
|
+
highlight: highlight,
|
|
133
|
+
isDisabled: isDisabled,
|
|
134
|
+
active: active,
|
|
135
|
+
autoHover: autoHover,
|
|
136
|
+
needTick: needTick,
|
|
137
|
+
needBorder: needBorder,
|
|
138
|
+
customClass: customListItem,
|
|
150
139
|
dataId: dataIdString,
|
|
151
|
-
|
|
140
|
+
isLink: isLink,
|
|
141
|
+
href: href,
|
|
142
|
+
target: target,
|
|
143
|
+
disableTitle: disableTitle,
|
|
144
|
+
title: title,
|
|
145
|
+
onClick: this.handleClick,
|
|
152
146
|
onMouseEnter: this.handleMouseEnter,
|
|
153
147
|
eleRef: this.getRef,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}, options, ListItemProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
148
|
+
customProps: ListItemProps
|
|
149
|
+
}, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
157
150
|
shrink: true,
|
|
158
151
|
adjust: true,
|
|
159
152
|
className: _ListItemModule["default"].value
|
|
@@ -13,14 +13,14 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
|
16
|
+
var _ListContainer = _interopRequireDefault(require("./ListContainer"));
|
|
17
|
+
|
|
16
18
|
var _Avatar = _interopRequireDefault(require("../Avatar/Avatar"));
|
|
17
19
|
|
|
18
20
|
var _AvatarTeam = _interopRequireDefault(require("../AvatarTeam/AvatarTeam"));
|
|
19
21
|
|
|
20
22
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
21
23
|
|
|
22
|
-
var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
23
|
-
|
|
24
24
|
var _ListItemModule = _interopRequireDefault(require("./ListItem.module.css"));
|
|
25
25
|
|
|
26
26
|
var _ListItemWithAvatar$p;
|
|
@@ -124,43 +124,38 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
124
124
|
customClass = _this$props4.customClass,
|
|
125
125
|
customProps = _this$props4.customProps;
|
|
126
126
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
127
|
-
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem
|
|
127
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
128
|
+
_customProps$Containe = customProps.ContainerProps,
|
|
129
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
128
130
|
var _customClass$customLi = customClass.customListItem,
|
|
129
131
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
130
132
|
_customClass$customAv = customClass.customAvatar,
|
|
131
133
|
customAvatar = _customClass$customAv === void 0 ? '' : _customClass$customAv,
|
|
132
134
|
_customClass$customAv2 = customClass.customAvatarTeam,
|
|
133
135
|
customAvatarTeam = _customClass$customAv2 === void 0 ? '' : _customClass$customAv2;
|
|
134
|
-
var
|
|
135
|
-
var role = a11y.role,
|
|
136
|
-
ariaSelected = a11y.ariaSelected,
|
|
137
|
-
_a11y$ariaHidden = a11y.ariaHidden,
|
|
136
|
+
var _a11y$ariaHidden = a11y.ariaHidden,
|
|
138
137
|
ariaHidden = _a11y$ariaHidden === void 0 ? true : _a11y$ariaHidden;
|
|
139
138
|
var isDarkPalette = palette === 'dark';
|
|
140
|
-
|
|
141
|
-
if (active) {
|
|
142
|
-
options['data-selected'] = active;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if (!isDisabled && active) {
|
|
146
|
-
options.tabindex = '0';
|
|
147
|
-
}
|
|
148
|
-
|
|
149
139
|
var dataIdString = value ? value : dataId;
|
|
150
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
|
|
141
|
+
a11y: a11y,
|
|
142
|
+
size: size,
|
|
143
|
+
palette: palette,
|
|
144
|
+
highlight: highlight,
|
|
145
|
+
isDisabled: isDisabled,
|
|
146
|
+
active: active,
|
|
147
|
+
autoHover: autoHover,
|
|
148
|
+
needTick: needTick,
|
|
149
|
+
needBorder: needBorder,
|
|
150
|
+
customClass: customListItem,
|
|
151
|
+
dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
|
|
152
|
+
onClick: this.handleClick,
|
|
158
153
|
onMouseEnter: this.handleMouseEnter,
|
|
159
154
|
eleRef: this.getRef,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
155
|
+
disableTitle: disableTitle,
|
|
156
|
+
title: null,
|
|
157
|
+
customProps: ListItemProps
|
|
158
|
+
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
159
|
className: _ListItemModule["default"].leftAvatar
|
|
165
160
|
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
166
161
|
name: name,
|