@zohodesk/components 1.0.0-alpha-252 → 1.0.0-alpha-254
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 +6 -0
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/red/redDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/red/redDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +3 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +3 -0
- package/css_error.log +0 -0
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/Avatar/Avatar.js +2 -1
- package/es/Button/Button.js +5 -3
- package/es/Card/props/defaultProps.js +0 -1
- package/es/Card/props/propTypes.js +2 -2
- package/es/DateTime/CalendarView.js +4 -2
- package/es/DateTime/DateTime.module.css +1 -0
- package/es/DateTime/DateTimePopupHeader.js +21 -8
- package/es/DateTime/DateWidget.js +4 -2
- package/es/DateTime/DaysRow.js +2 -1
- package/es/DateTime/YearView.js +12 -4
- package/es/DateTime/YearView.module.css +19 -1
- package/es/DropBox/DropBox.js +24 -4
- package/es/DropBox/props/defaultProps.js +2 -1
- package/es/DropBox/props/propTypes.js +1 -0
- package/es/DropDown/DropDownHeading.js +3 -1
- package/es/DropDown/props/propTypes.js +2 -1
- package/es/Label/Label.js +4 -2
- package/es/Layout/props/propTypes.js +3 -3
- package/es/ListItem/ListContainer.js +5 -2
- package/es/MultiSelect/MultiSelect.js +4 -2
- package/es/MultiSelect/Suggestions.js +2 -1
- package/es/Responsive/CustomResponsive.js +7 -3
- package/es/Select/Select.js +7 -4
- package/es/Select/SelectWithIcon.js +2 -1
- package/es/Switch/Switch.js +7 -5
- package/es/Tab/TabContent.js +1 -1
- package/es/Tab/Tabs.js +13 -7
- package/es/Tab/Tabs.module.css +1 -1
- package/es/Tooltip/Tooltip.js +4 -1
- package/es/common/a11y.module.css +4 -0
- package/es/index.js +107 -106
- package/lib/AppContainer/AppContainer.js +1 -0
- package/lib/Avatar/Avatar.js +2 -1
- package/lib/Button/Button.js +5 -3
- package/lib/Card/props/defaultProps.js +0 -1
- package/lib/Card/props/propTypes.js +2 -2
- package/lib/DateTime/CalendarView.js +4 -2
- package/lib/DateTime/DateTime.module.css +1 -0
- package/lib/DateTime/DateTimePopupHeader.js +21 -8
- package/lib/DateTime/DateWidget.js +4 -2
- package/lib/DateTime/DaysRow.js +2 -1
- package/lib/DateTime/YearView.js +12 -4
- package/lib/DateTime/YearView.module.css +19 -1
- package/lib/DropBox/DropBox.js +24 -4
- package/lib/DropBox/props/defaultProps.js +2 -1
- package/lib/DropBox/props/propTypes.js +1 -0
- package/lib/DropDown/DropDownHeading.js +3 -1
- package/lib/DropDown/props/propTypes.js +2 -1
- package/lib/Label/Label.js +4 -2
- package/lib/Layout/props/propTypes.js +3 -3
- package/lib/ListItem/ListContainer.js +5 -2
- package/lib/MultiSelect/MultiSelect.js +4 -2
- package/lib/MultiSelect/Suggestions.js +2 -1
- package/lib/Responsive/CustomResponsive.js +7 -3
- package/lib/Select/Select.js +7 -4
- package/lib/Select/SelectWithIcon.js +2 -1
- package/lib/Switch/Switch.js +7 -5
- package/lib/Tab/TabContent.js +1 -1
- package/lib/Tab/Tabs.js +13 -7
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/Tooltip/Tooltip.js +4 -1
- package/lib/common/a11y.module.css +4 -0
- package/lib/index.js +1 -842
- package/package.json +14 -7
- package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
- package/es/Animation/docs/Animation__default.docs.js +0 -32
- package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
- package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
- package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
- package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
- package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
- package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
- package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
- package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
- package/es/Avatar/docs/Avatar__default.docs.js +0 -27
- package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
- package/es/Avatar/docs/Avatar__text.docs.js +0 -26
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
- package/es/Button/docs/Button__custom.docs.js +0 -769
- package/es/Button/docs/Button__default.docs.js +0 -534
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
- package/es/Card/docs/Card__Custom.docs.js +0 -32
- package/es/Card/docs/Card__Default.docs.js +0 -35
- package/es/Card/docs/Card__Scroll.docs.js +0 -56
- package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
- package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
- package/es/DateTime/docs/DateTime__default.docs.js +0 -88
- package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
- package/es/DateTime/docs/timezonedata.json +0 -1
- package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
- package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
- package/es/DropBox/docs/DropBox__position.docs.js +0 -85
- package/es/DropBox/docs/DropBox__size.docs.js +0 -59
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
- package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
- package/es/Heading/docs/Heading__default.docs.js +0 -19
- package/es/Label/docs/Label__clipped.docs.js +0 -25
- package/es/Label/docs/Label__custom.docs.js +0 -28
- package/es/Label/docs/Label__palette.docs.js +0 -40
- package/es/Label/docs/Label__size.docs.js +0 -27
- package/es/Label/docs/Label__type.docs.js +0 -35
- package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
- package/es/Layout/docs/Layout__default.docs.js +0 -48
- package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
- package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
- package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
- package/es/LightNightMode/Colors.json +0 -497
- package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
- package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
- package/es/ListItem/docs/ListItem__default.docs.js +0 -80
- package/es/Modal/__docs__/Modal__default.docs.js +0 -42
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
- package/es/PopOver/docs/PopOver__default.docs.js +0 -30
- package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
- package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
- package/es/Provider.js +0 -91
- package/es/Radio/docs/Radio__custom.docs.js +0 -241
- package/es/Radio/docs/Radio__default.docs.js +0 -165
- package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
- package/es/Responsive/docs/Responsive__default.docs.js +0 -95
- package/es/Responsive/docs/style.module.css +0 -56
- package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
- package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
- package/es/Select/docs/GroupSelect__default.docs.js +0 -144
- package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
- package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
- package/es/Select/docs/Select__default.docs.js +0 -283
- package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
- package/es/Stencils/docs/Stencils__default.docs.js +0 -48
- package/es/Switch/docs/Switch__custom.docs.js +0 -151
- package/es/Switch/docs/Switch__default.docs.js +0 -105
- package/es/Tab/docs/Tab__default.docs.js +0 -253
- package/es/Tab/docs/tabdocs.module.css +0 -29
- package/es/Tag/docs/Tag__custom.docs.js +0 -366
- package/es/Tag/docs/Tag__default.docs.js +0 -321
- package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
- package/es/TextBox/docs/TextBox__default.docs.js +0 -38
- package/es/TextBox/docs/TextBox__size.docs.js +0 -36
- package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
- package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
- package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
- package/es/Textarea/docs/Textarea__default.docs.js +0 -74
- package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
- package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
- package/es/common/docStyle.module.css +0 -766
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
- package/es/semantic/Button/docs/Button__default.docs.js +0 -17
- package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
- package/lib/Animation/docs/Animation__default.docs.js +0 -61
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
- package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
- package/lib/Button/docs/Button__custom.docs.js +0 -800
- package/lib/Button/docs/Button__default.docs.js +0 -565
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
- package/lib/Card/docs/Card__Custom.docs.js +0 -63
- package/lib/Card/docs/Card__Default.docs.js +0 -66
- package/lib/Card/docs/Card__Scroll.docs.js +0 -87
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
- package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
- package/lib/DateTime/docs/timezonedata.json +0 -1
- package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
- package/lib/Heading/docs/Heading__default.docs.js +0 -50
- package/lib/Label/docs/Label__clipped.docs.js +0 -56
- package/lib/Label/docs/Label__custom.docs.js +0 -59
- package/lib/Label/docs/Label__palette.docs.js +0 -71
- package/lib/Label/docs/Label__size.docs.js +0 -58
- package/lib/Label/docs/Label__type.docs.js +0 -66
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
- package/lib/Layout/docs/Layout__default.docs.js +0 -77
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
- package/lib/LightNightMode/Colors.json +0 -497
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
- package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
- package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
- package/lib/Provider.js +0 -116
- package/lib/Radio/docs/Radio__custom.docs.js +0 -273
- package/lib/Radio/docs/Radio__default.docs.js +0 -197
- package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
- package/lib/Responsive/docs/style.module.css +0 -56
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
- package/lib/Select/docs/Select__default.docs.js +0 -313
- package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
- package/lib/Switch/docs/Switch__custom.docs.js +0 -180
- package/lib/Switch/docs/Switch__default.docs.js +0 -134
- package/lib/Tab/docs/Tab__default.docs.js +0 -283
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tag/docs/Tag__custom.docs.js +0 -397
- package/lib/Tag/docs/Tag__default.docs.js +0 -352
- package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
- package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
- package/lib/common/docStyle.module.css +0 -766
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**** Libraries ****/
|
|
2
|
-
import React, { Component } from 'react';
|
|
3
|
-
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
-
import { Container } from '../../Layout';
|
|
5
|
-
import Icon from '@zohodesk/icons/lib/Icon';
|
|
6
|
-
|
|
7
|
-
/**** Components ****/
|
|
8
|
-
import MultiSelect from '../MultiSelect';
|
|
9
|
-
export default class MultiSelect__default extends Component {
|
|
10
|
-
constructor(props) {
|
|
11
|
-
super(props);
|
|
12
|
-
this.state = {
|
|
13
|
-
options: ['text1', 'text2', 'text3', 'text4', 'text5', 'text6', 'text7', 'text8', 'text9', 'text10'],
|
|
14
|
-
selectedOptions: ['text1', 'text2', 'text3']
|
|
15
|
-
};
|
|
16
|
-
this.handleSelect = this.handleSelect.bind(this);
|
|
17
|
-
this.getFooter = this.getFooter.bind(this);
|
|
18
|
-
}
|
|
19
|
-
handleSelect(options) {
|
|
20
|
-
this.setState({
|
|
21
|
-
selectedOptions: options
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
getFooter() {
|
|
25
|
-
return /*#__PURE__*/React.createElement("div", null, "Custom Footer");
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
const {
|
|
29
|
-
selectedOptions,
|
|
30
|
-
options
|
|
31
|
-
} = this.state;
|
|
32
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement("div", null, "Default"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
33
|
-
valueField: "id",
|
|
34
|
-
textField: "text",
|
|
35
|
-
options: options,
|
|
36
|
-
onChange: this.handleSelect,
|
|
37
|
-
selectedOptions: selectedOptions,
|
|
38
|
-
needSelectAll: true,
|
|
39
|
-
selectAllText: "Select All",
|
|
40
|
-
placeHolder: "Select Text",
|
|
41
|
-
i18nKeys: {
|
|
42
|
-
clearText: 'Clear Selected Items',
|
|
43
|
-
loadingText: 'Fetching...',
|
|
44
|
-
emptyText: 'No Options .',
|
|
45
|
-
noMoreText: 'No More Options .',
|
|
46
|
-
searchEmptyText: 'No Matches Found .'
|
|
47
|
-
}
|
|
48
|
-
}), /*#__PURE__*/React.createElement("div", null, "Disabled"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
49
|
-
isDisabled: true,
|
|
50
|
-
valueField: "id",
|
|
51
|
-
textField: "text",
|
|
52
|
-
options: options,
|
|
53
|
-
onChange: this.handleSelect,
|
|
54
|
-
selectedOptions: selectedOptions,
|
|
55
|
-
needSelectAll: true,
|
|
56
|
-
selectAllText: "Select All",
|
|
57
|
-
placeHolder: "Select Text",
|
|
58
|
-
emptyMessage: "No Options",
|
|
59
|
-
noMoreOptionsMessage: "No More Options",
|
|
60
|
-
searchEmptyMessage: "No Matches Found"
|
|
61
|
-
}), /*#__PURE__*/React.createElement("div", null, "Readonly"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
62
|
-
isReadOnly: true,
|
|
63
|
-
valueField: "id",
|
|
64
|
-
textField: "text",
|
|
65
|
-
options: options,
|
|
66
|
-
onChange: this.handleSelect,
|
|
67
|
-
selectedOptions: selectedOptions,
|
|
68
|
-
needSelectAll: true,
|
|
69
|
-
selectAllText: "Select All",
|
|
70
|
-
placeHolder: "Select Text",
|
|
71
|
-
emptyMessage: "No Options",
|
|
72
|
-
noMoreOptionsMessage: "No More Options",
|
|
73
|
-
searchEmptyMessage: "No Matches Found"
|
|
74
|
-
}), /*#__PURE__*/React.createElement("div", null, "disableAction"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
75
|
-
valueField: "id",
|
|
76
|
-
textField: "text",
|
|
77
|
-
options: options,
|
|
78
|
-
onChange: this.handleSelect,
|
|
79
|
-
selectedOptions: selectedOptions,
|
|
80
|
-
needSelectAll: true,
|
|
81
|
-
selectAllText: "Select All",
|
|
82
|
-
placeHolder: "Select Text",
|
|
83
|
-
emptyMessage: "No Options",
|
|
84
|
-
noMoreOptionsMessage: "No More Options",
|
|
85
|
-
searchEmptyMessage: "No Matches Found",
|
|
86
|
-
needBorder: false,
|
|
87
|
-
disableAction: true
|
|
88
|
-
}), /*#__PURE__*/React.createElement("div", null, "Children"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
89
|
-
valueField: "id",
|
|
90
|
-
textField: "text",
|
|
91
|
-
options: options,
|
|
92
|
-
onChange: this.handleSelect,
|
|
93
|
-
selectedOptions: selectedOptions,
|
|
94
|
-
needSelectAll: true,
|
|
95
|
-
selectAllText: "Select All",
|
|
96
|
-
placeHolder: "Select Text",
|
|
97
|
-
i18nKeys: {
|
|
98
|
-
clearText: 'Clear Selected Items',
|
|
99
|
-
loadingText: 'Fetching...',
|
|
100
|
-
emptyText: 'No Options .',
|
|
101
|
-
noMoreText: 'No More Options .',
|
|
102
|
-
searchEmptyText: 'No Matches Found .'
|
|
103
|
-
}
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
105
|
-
align: "both",
|
|
106
|
-
style: {
|
|
107
|
-
marginRight: '15px'
|
|
108
|
-
}
|
|
109
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
110
|
-
name: "ZD-SE-setpracket",
|
|
111
|
-
size: "18"
|
|
112
|
-
}))), /*#__PURE__*/React.createElement("div", null, "Disabled Options"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
113
|
-
valueField: "id",
|
|
114
|
-
textField: "text",
|
|
115
|
-
options: options,
|
|
116
|
-
onChange: this.handleSelect,
|
|
117
|
-
selectedOptions: selectedOptions,
|
|
118
|
-
needSelectAll: true,
|
|
119
|
-
selectAllText: "Select All",
|
|
120
|
-
placeHolder: "Select Text",
|
|
121
|
-
i18nKeys: {
|
|
122
|
-
clearText: 'Clear Selected Items',
|
|
123
|
-
loadingText: 'Fetching...',
|
|
124
|
-
emptyText: 'No Options .',
|
|
125
|
-
noMoreText: 'No More Options .',
|
|
126
|
-
searchEmptyText: 'No Matches Found .'
|
|
127
|
-
},
|
|
128
|
-
disabledOptions: ['text2', 'text3']
|
|
129
|
-
}), /*#__PURE__*/React.createElement("div", null, "Custom Footer"), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
130
|
-
valueField: "id",
|
|
131
|
-
textField: "text",
|
|
132
|
-
options: options,
|
|
133
|
-
onChange: this.handleSelect,
|
|
134
|
-
selectedOptions: selectedOptions,
|
|
135
|
-
needSelectAll: true,
|
|
136
|
-
selectAllText: "Select All",
|
|
137
|
-
placeHolder: "Select Text",
|
|
138
|
-
i18nKeys: {
|
|
139
|
-
clearText: 'Clear Selected Items',
|
|
140
|
-
loadingText: 'Fetching...',
|
|
141
|
-
emptyText: 'No Options .',
|
|
142
|
-
noMoreText: 'No More Options .',
|
|
143
|
-
searchEmptyText: 'No Matches Found .'
|
|
144
|
-
},
|
|
145
|
-
getFooter: this.getFooter
|
|
146
|
-
})));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (false) {
|
|
150
|
-
MultiSelect__default.docs = {
|
|
151
|
-
componentGroup: 'Form Elements',
|
|
152
|
-
folderName: 'Style Guide',
|
|
153
|
-
external: true,
|
|
154
|
-
description: ' '
|
|
155
|
-
};
|
|
156
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PopOver, { PopOverTarget, PopOverContainer } from '../PopOver';
|
|
3
|
-
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
-
export default class PopOver__default extends React.Component {
|
|
5
|
-
render() {
|
|
6
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
7
|
-
style: {
|
|
8
|
-
width: '200px',
|
|
9
|
-
display: 'inline-block'
|
|
10
|
-
},
|
|
11
|
-
className: 'popParent'
|
|
12
|
-
}, /*#__PURE__*/React.createElement(PopOver, {
|
|
13
|
-
isArrow: true,
|
|
14
|
-
isAnimate: true,
|
|
15
|
-
boxPosition: "bottomRight"
|
|
16
|
-
}, /*#__PURE__*/React.createElement(PopOverTarget, null, " Click Me! "), /*#__PURE__*/React.createElement(PopOverContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
style: {
|
|
18
|
-
padding: '20px'
|
|
19
|
-
}
|
|
20
|
-
}, "Content"), ' ')));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (false) {
|
|
24
|
-
PopOver__default.docs = {
|
|
25
|
-
componentGroup: 'Form Elements',
|
|
26
|
-
folderName: 'Style Guide',
|
|
27
|
-
description: ' ',
|
|
28
|
-
external: true
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { getUniqueId, setGlobalIdPrefix } from '../IdProvider';
|
|
3
|
-
export default class Provider_Id__Class extends React.Component {
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
setGlobalIdPrefix('zohodesk');
|
|
7
|
-
this.getNextId = getUniqueId(this);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
let id = this.getNextId();
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
id: id
|
|
13
|
-
}, "Id ", id), /*#__PURE__*/React.createElement("div", {
|
|
14
|
-
id: id
|
|
15
|
-
}, "Id ", id));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
if (false) {
|
|
19
|
-
Provider_Id__Class.docs = {
|
|
20
|
-
componentGroup: 'Provider',
|
|
21
|
-
folderName: 'Functions'
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// setGlobalIdPrefix => to set prefix for all id
|
|
26
|
-
// removeGlobalIdPrefix => remove prfeix
|
|
27
|
-
// useUniqueId => for function components
|
|
28
|
-
// getUniqueId => for class components
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useUniqueId } from '../IdProvider';
|
|
3
|
-
export default function Provider_Id__Function() {
|
|
4
|
-
let getNextId = useUniqueId();
|
|
5
|
-
let id = getNextId();
|
|
6
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
id: id
|
|
8
|
-
}, "Id ", id), /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
id: id
|
|
10
|
-
}, "Id ", id));
|
|
11
|
-
}
|
|
12
|
-
if (false) {
|
|
13
|
-
Provider_Id__Function.docs = {
|
|
14
|
-
componentGroup: 'Provider',
|
|
15
|
-
folderName: 'Functions'
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { getZIndex, setInitialZIndex } from '../ZindexProvider';
|
|
3
|
-
export default class Provider_Zindex__Class extends React.Component {
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
setInitialZIndex('1000');
|
|
7
|
-
this.getNextId = getZIndex(this);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
let zIndex = this.getNextId();
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
style: {
|
|
13
|
-
zIndex: `${zIndex}`
|
|
14
|
-
}
|
|
15
|
-
}, "Zindex ", zIndex), /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
style: {
|
|
17
|
-
zIndex: `${zIndex}`
|
|
18
|
-
}
|
|
19
|
-
}, "Zindex ", zIndex));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (false) {
|
|
23
|
-
Provider_Zindex__Class.docs = {
|
|
24
|
-
componentGroup: 'Provider',
|
|
25
|
-
folderName: 'Functions'
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// setGlobalZIndexPrefix
|
|
30
|
-
// useZIndex
|
|
31
|
-
// getZIndex
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useZIndex } from '../ZindexProvider';
|
|
3
|
-
export default function Provider_Zindex__Function() {
|
|
4
|
-
let getNextId = useZIndex();
|
|
5
|
-
let Zindex = getNextId();
|
|
6
|
-
let Zindex2 = getNextId();
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
style: {
|
|
9
|
-
'zIndex': `${Zindex}`
|
|
10
|
-
}
|
|
11
|
-
}, "Zindex ", Zindex), /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
style: {
|
|
13
|
-
'zIndex': `${Zindex2}`
|
|
14
|
-
}
|
|
15
|
-
}, "Zindex ", Zindex2));
|
|
16
|
-
}
|
|
17
|
-
if (false) {
|
|
18
|
-
Provider_Zindex__Function.docs = {
|
|
19
|
-
componentGroup: 'Provider',
|
|
20
|
-
folderName: 'Functions'
|
|
21
|
-
};
|
|
22
|
-
}
|
package/es/Provider.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AppContainer from './AppContainer/AppContainer';
|
|
3
|
-
import { Container } from './Layout';
|
|
4
|
-
import ThemeTool from '../../common/lib/ThemeTool/ThemeTool';
|
|
5
|
-
|
|
6
|
-
/* default mode & theme css */
|
|
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
|
-
|
|
19
|
-
/* dark mode & theme css */
|
|
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
|
-
|
|
32
|
-
/* pure dark mode & theme css */
|
|
33
|
-
import '../assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css';
|
|
34
|
-
import '../assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css';
|
|
35
|
-
import '../assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css';
|
|
36
|
-
import '../assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css';
|
|
37
|
-
import '../assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css';
|
|
38
|
-
import '../assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css';
|
|
39
|
-
import '../assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css';
|
|
40
|
-
import '../assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css';
|
|
41
|
-
import '../assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css';
|
|
42
|
-
import '../assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css';
|
|
43
|
-
import '../assets/Appearance/pureDark/mode/pureDarkMode.module.css';
|
|
44
|
-
import LibraryContext from './Provider/LibraryContextInit';
|
|
45
|
-
import { setGlobalIdPrefix } from './Provider/IdProvider';
|
|
46
|
-
export default class Provider extends React.Component {
|
|
47
|
-
constructor(props) {
|
|
48
|
-
super(props);
|
|
49
|
-
setGlobalIdPrefix('ZD');
|
|
50
|
-
this.state = {
|
|
51
|
-
appearanceName: 'default',
|
|
52
|
-
themeName: 'blue'
|
|
53
|
-
};
|
|
54
|
-
this.setTheme = this.setTheme.bind(this);
|
|
55
|
-
this.setAppearance = this.setAppearance.bind(this);
|
|
56
|
-
}
|
|
57
|
-
setAppearance(mode) {
|
|
58
|
-
this.setState({
|
|
59
|
-
appearanceName: mode
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
setTheme(theme) {
|
|
63
|
-
this.setState({
|
|
64
|
-
themeName: theme
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
let {
|
|
69
|
-
appearanceName,
|
|
70
|
-
themeName
|
|
71
|
-
} = this.state;
|
|
72
|
-
return /*#__PURE__*/React.createElement(LibraryContext.Provider, {
|
|
73
|
-
value: {
|
|
74
|
-
isReducedMotion: false,
|
|
75
|
-
direction: 'ltr'
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/React.createElement(AppContainer, {
|
|
78
|
-
customProps: {
|
|
79
|
-
ExtraProps: {
|
|
80
|
-
'data-mode': appearanceName,
|
|
81
|
-
'data-theme': themeName
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
85
|
-
scroll: "vertical"
|
|
86
|
-
}, this.props.children), /*#__PURE__*/React.createElement(ThemeTool, {
|
|
87
|
-
onThemeChange: this.setTheme,
|
|
88
|
-
onAppearanceChange: this.setAppearance
|
|
89
|
-
})));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import Radio from '../Radio';
|
|
3
|
-
import styles from '../../common/docStyle.module.css';
|
|
4
|
-
export default class Radio__custom extends Component {
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
this.onChange = this.onChange.bind(this);
|
|
8
|
-
this.state = {
|
|
9
|
-
checked: false
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
onChange() {
|
|
13
|
-
this.setState({
|
|
14
|
-
checked: !this.state.checked
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
let style = {
|
|
19
|
-
margin: '10px'
|
|
20
|
-
},
|
|
21
|
-
titleStyle = {
|
|
22
|
-
fontSize: '13px',
|
|
23
|
-
padding: '15px 0',
|
|
24
|
-
textTransform: 'upperCase',
|
|
25
|
-
borderTop: '1px solid #e3e6eb'
|
|
26
|
-
},
|
|
27
|
-
spanStyle = {
|
|
28
|
-
display: 'inline-block',
|
|
29
|
-
margin: '10px 10px 10px 0'
|
|
30
|
-
};
|
|
31
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
style: style
|
|
33
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
style: {
|
|
35
|
-
margin: '10px 0'
|
|
36
|
-
}
|
|
37
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
38
|
-
style: {
|
|
39
|
-
marginBottom: '10px'
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
style: titleStyle
|
|
43
|
-
}, "Default Radio Button"), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Radio, {
|
|
44
|
-
customClass: {
|
|
45
|
-
customRadio: styles.radio,
|
|
46
|
-
customRadioWrap: styles.radioWrap,
|
|
47
|
-
customLabel: styles.customLbl
|
|
48
|
-
},
|
|
49
|
-
onChange: this.onChange,
|
|
50
|
-
checked: this.state.checked
|
|
51
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
style: {
|
|
53
|
-
marginBottom: '10px'
|
|
54
|
-
}
|
|
55
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
style: titleStyle
|
|
57
|
-
}, "Disabled Type Radio Button"), /*#__PURE__*/React.createElement("span", {
|
|
58
|
-
style: {
|
|
59
|
-
marginRight: '10px'
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
62
|
-
customClass: {
|
|
63
|
-
customRadio: styles.radioDisabled,
|
|
64
|
-
customRadioWrap: styles.radioWrap,
|
|
65
|
-
customLabel: styles.customLbl
|
|
66
|
-
},
|
|
67
|
-
checked: true,
|
|
68
|
-
disabled: true
|
|
69
|
-
})), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Radio, {
|
|
70
|
-
customClass: {
|
|
71
|
-
customRadio: styles.radioDisabled,
|
|
72
|
-
customRadioWrap: styles.radioWrap,
|
|
73
|
-
customLabel: styles.customLbl
|
|
74
|
-
},
|
|
75
|
-
disabled: true
|
|
76
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
77
|
-
style: titleStyle
|
|
78
|
-
}, "Label With Radio Button"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
79
|
-
style: spanStyle
|
|
80
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
81
|
-
customClass: {
|
|
82
|
-
customRadio: styles.radio,
|
|
83
|
-
customRadioWrap: styles.radioWrap,
|
|
84
|
-
customLabel: styles.customLbl
|
|
85
|
-
},
|
|
86
|
-
id: "text1",
|
|
87
|
-
value: "1",
|
|
88
|
-
name: "category",
|
|
89
|
-
text: "Check With Label"
|
|
90
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
91
|
-
style: spanStyle
|
|
92
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
93
|
-
customClass: {
|
|
94
|
-
customRadio: styles.radio,
|
|
95
|
-
customRadioWrap: styles.radioWrap,
|
|
96
|
-
customLabel: styles.customLbl
|
|
97
|
-
},
|
|
98
|
-
id: "test2",
|
|
99
|
-
checked: true,
|
|
100
|
-
active: true,
|
|
101
|
-
value: "2",
|
|
102
|
-
name: "category",
|
|
103
|
-
text: "Checked Active With Label"
|
|
104
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
105
|
-
style: spanStyle
|
|
106
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
107
|
-
customClass: {
|
|
108
|
-
customRadio: styles.radioDisabled,
|
|
109
|
-
customRadioWrap: styles.radioWrap,
|
|
110
|
-
customLabel: styles.disabledLabel
|
|
111
|
-
},
|
|
112
|
-
id: "text3",
|
|
113
|
-
value: "1",
|
|
114
|
-
name: "name",
|
|
115
|
-
checked: true,
|
|
116
|
-
disabled: true,
|
|
117
|
-
text: "Disabled With Label"
|
|
118
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
119
|
-
style: spanStyle
|
|
120
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
121
|
-
customClass: {
|
|
122
|
-
customRadio: styles.radio,
|
|
123
|
-
customRadioWrap: styles.radioWrap,
|
|
124
|
-
customLabel: styles.customLbl
|
|
125
|
-
},
|
|
126
|
-
id: "test4",
|
|
127
|
-
value: "2",
|
|
128
|
-
name: "name",
|
|
129
|
-
isReadOnly: true,
|
|
130
|
-
text: "ReadOnly With Label"
|
|
131
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
132
|
-
style: spanStyle
|
|
133
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
134
|
-
customClass: {
|
|
135
|
-
customRadio: styles.radio,
|
|
136
|
-
customRadioWrap: styles.radioWrap,
|
|
137
|
-
customLabel: styles.customLbl
|
|
138
|
-
},
|
|
139
|
-
id: "text1",
|
|
140
|
-
value: "1",
|
|
141
|
-
name: "category",
|
|
142
|
-
text: "Check With Label",
|
|
143
|
-
palette: "danger"
|
|
144
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
145
|
-
style: spanStyle
|
|
146
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
147
|
-
customClass: {
|
|
148
|
-
customRadio: styles.radio,
|
|
149
|
-
customRadioWrap: styles.radioWrap,
|
|
150
|
-
customLabel: styles.customLbl
|
|
151
|
-
},
|
|
152
|
-
id: "test2",
|
|
153
|
-
checked: true,
|
|
154
|
-
active: true,
|
|
155
|
-
value: "2",
|
|
156
|
-
name: "category",
|
|
157
|
-
palette: "danger",
|
|
158
|
-
text: "Checked Active With Label"
|
|
159
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
160
|
-
style: spanStyle
|
|
161
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
162
|
-
customClass: {
|
|
163
|
-
customRadio: styles.radioDisabled,
|
|
164
|
-
customRadioWrap: styles.radioWrap,
|
|
165
|
-
customLabel: styles.disabledLabel
|
|
166
|
-
},
|
|
167
|
-
id: "text3",
|
|
168
|
-
value: "1",
|
|
169
|
-
name: "name",
|
|
170
|
-
checked: true,
|
|
171
|
-
disabled: true,
|
|
172
|
-
palette: "danger",
|
|
173
|
-
text: "Disabled With Label"
|
|
174
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
175
|
-
style: spanStyle
|
|
176
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
177
|
-
customClass: {
|
|
178
|
-
customRadio: styles.radio,
|
|
179
|
-
customRadioWrap: styles.radioWrap,
|
|
180
|
-
customLabel: styles.customLbl
|
|
181
|
-
},
|
|
182
|
-
id: "test4",
|
|
183
|
-
value: "2",
|
|
184
|
-
name: "name",
|
|
185
|
-
isReadOnly: true,
|
|
186
|
-
palette: "danger",
|
|
187
|
-
text: "ReadOnly With Label"
|
|
188
|
-
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
189
|
-
style: titleStyle
|
|
190
|
-
}, "Size"), /*#__PURE__*/React.createElement("span", {
|
|
191
|
-
style: spanStyle
|
|
192
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
193
|
-
customClass: {
|
|
194
|
-
customRadio: styles.radio,
|
|
195
|
-
customRadioWrap: styles.radioWrap,
|
|
196
|
-
customLabel: styles.customLbl
|
|
197
|
-
},
|
|
198
|
-
checked: true,
|
|
199
|
-
size: "small"
|
|
200
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
201
|
-
style: spanStyle
|
|
202
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
203
|
-
customClass: {
|
|
204
|
-
customRadio: styles.radio,
|
|
205
|
-
customRadioWrap: styles.radioWrap,
|
|
206
|
-
customLabel: styles.customLbl
|
|
207
|
-
},
|
|
208
|
-
checked: true
|
|
209
|
-
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
210
|
-
style: titleStyle
|
|
211
|
-
}, "Palette"), /*#__PURE__*/React.createElement("span", {
|
|
212
|
-
style: spanStyle
|
|
213
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
214
|
-
customClass: {
|
|
215
|
-
customRadio: styles.radio,
|
|
216
|
-
customRadioWrap: styles.radioWrap,
|
|
217
|
-
customLabel: styles.customLbl
|
|
218
|
-
},
|
|
219
|
-
checked: true,
|
|
220
|
-
text: "Primary"
|
|
221
|
-
})), /*#__PURE__*/React.createElement("span", {
|
|
222
|
-
style: spanStyle
|
|
223
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
224
|
-
customClass: {
|
|
225
|
-
customRadio: styles.radio,
|
|
226
|
-
customRadioWrap: styles.radioWrap,
|
|
227
|
-
customLabel: styles.customLbl
|
|
228
|
-
},
|
|
229
|
-
checked: true,
|
|
230
|
-
palette: "danger",
|
|
231
|
-
text: "Danger"
|
|
232
|
-
}))));
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
if (false) {
|
|
236
|
-
Radio__custom.docs = {
|
|
237
|
-
componentGroup: 'Form Elements',
|
|
238
|
-
folderName: 'Style Guide',
|
|
239
|
-
description: ' '
|
|
240
|
-
};
|
|
241
|
-
}
|