@zohodesk/components 1.0.0-alpha-237 → 1.0.0-alpha-240
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 +19 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -3
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -4
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +356 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
- 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/docs/AppContainer__default.docs.js +20 -0
- 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/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/docs/Button__custom.docs.js +771 -0
- package/es/Button/docs/Button__default.docs.js +536 -0
- 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/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/docs/CheckBox__custom.docs.js +293 -0
- package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
- package/es/DateTime/DateTime.js +46 -19
- package/es/DateTime/DateWidget.js +10 -2
- package/es/DateTime/DateWidget.module.css +0 -4
- 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/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/docs/DropDownHeading__custom.docs.js +23 -0
- package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
- 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/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/LightNightMode/docs/AlternativeColors.docs.js +74 -0
- 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 +100 -75
- package/es/MultiSelect/AdvancedMultiSelect.js +75 -49
- package/es/MultiSelect/MultiSelect.js +80 -55
- package/es/MultiSelect/MultiSelect.module.css +6 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +77 -52
- 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/docs/PopOver__default.docs.js +32 -0
- 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 +72 -35
- package/es/Radio/docs/Radio__custom.docs.js +245 -0
- package/es/Radio/docs/Radio__default.docs.js +169 -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 +56 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +74 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
- package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
- 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 +6 -0
- package/es/Select/SelectWithAvatar.js +91 -66
- package/es/Select/SelectWithIcon.js +99 -74
- 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/docs/Stencils__custom.docs.js +45 -0
- package/es/Stencils/docs/Stencils__default.docs.js +50 -0
- package/es/Switch/docs/Switch__custom.docs.js +153 -0
- package/es/Switch/docs/Switch__default.docs.js +107 -0
- package/es/Tab/Tabs.js +68 -43
- package/es/Tab/Tabs.module.css +2 -1
- package/es/Tab/docs/Tab__default.docs.js +258 -0
- package/es/Tab/docs/tabdocs.module.css +29 -0
- package/es/Tag/docs/Tag__custom.docs.js +368 -0
- package/es/Tag/docs/Tag__default.docs.js +323 -0
- 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/docs/TextBoxIcon__custom.docs.js +89 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
- 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/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/docs/FocusRing__default.docs.js +48 -0
- package/es/common/docStyle.module.css +6 -2
- 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/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 +7 -0
- package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
- 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/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/docs/Button__custom.docs.js +826 -0
- package/lib/Button/docs/Button__default.docs.js +590 -0
- 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/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/docs/CheckBox__custom.docs.js +348 -0
- package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
- package/lib/DateTime/DateTime.js +46 -20
- package/lib/DateTime/DateWidget.js +10 -2
- package/lib/DateTime/DateWidget.module.css +0 -4
- 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/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/docs/DropDownHeading__custom.docs.js +73 -0
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
- 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/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/LightNightMode/docs/AlternativeColors.docs.js +131 -0
- 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 +99 -77
- package/lib/MultiSelect/AdvancedMultiSelect.js +76 -50
- package/lib/MultiSelect/MultiSelect.js +81 -56
- package/lib/MultiSelect/MultiSelect.module.css +6 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +78 -53
- 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.js +11 -4
- package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
- package/lib/Provider/Config.js +1 -2
- 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 +88 -37
- package/lib/Radio/docs/Radio__custom.docs.js +299 -0
- package/lib/Radio/docs/Radio__default.docs.js +222 -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/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
- package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
- package/lib/Select/GroupSelect.js +99 -76
- package/lib/Select/Select.js +102 -75
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +96 -71
- package/lib/Select/SelectWithIcon.js +97 -74
- 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/docs/Stencils__custom.docs.js +96 -0
- package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
- package/lib/Switch/docs/Switch__custom.docs.js +203 -0
- package/lib/Switch/docs/Switch__default.docs.js +156 -0
- package/lib/Tab/Tabs.js +67 -44
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/docs/Tab__default.docs.js +308 -0
- package/lib/Tab/docs/tabdocs.module.css +29 -0
- package/lib/Tag/docs/Tag__custom.docs.js +423 -0
- package/lib/Tag/docs/Tag__default.docs.js +377 -0
- 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/docs/TextBoxIcon__custom.docs.js +145 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
- 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 +47 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +430 -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/docs/FocusRing__default.docs.js +101 -0
- package/lib/common/docStyle.module.css +6 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
- package/lib/index.js +10 -1
- package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
- package/package.json +7 -7
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import Textarea from '../Textarea';
|
|
3
|
+
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
+
import styles from '../../common/docStyle.module.css';
|
|
5
|
+
export default class Textarea__custom extends Component {
|
|
6
|
+
render() {
|
|
7
|
+
let style = {
|
|
8
|
+
marginBottom: '20px'
|
|
9
|
+
};
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
style: {
|
|
12
|
+
width: '350px'
|
|
13
|
+
}
|
|
14
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
style: style
|
|
16
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
17
|
+
customClass: styles.customTextarea,
|
|
18
|
+
placeHolder: "TextArea",
|
|
19
|
+
id: "textarea",
|
|
20
|
+
maxLength: "100",
|
|
21
|
+
onChange: () => {}
|
|
22
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
style: style
|
|
24
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
25
|
+
customClass: styles.customTextarea,
|
|
26
|
+
placeHolder: "TextArea",
|
|
27
|
+
id: "textarea",
|
|
28
|
+
maxLength: "100",
|
|
29
|
+
onChange: () => {},
|
|
30
|
+
text: "Readonly",
|
|
31
|
+
isReadOnly: true
|
|
32
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
style: style
|
|
34
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
35
|
+
customClass: styles.disabledTarea,
|
|
36
|
+
placeHolder: "TextArea",
|
|
37
|
+
id: "textarea",
|
|
38
|
+
maxLength: "100",
|
|
39
|
+
onChange: () => {},
|
|
40
|
+
text: "Disabled",
|
|
41
|
+
isDisabled: true,
|
|
42
|
+
needEffect: false
|
|
43
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
style: style
|
|
45
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
46
|
+
customClass: styles.customTextarea,
|
|
47
|
+
placeHolder: "TextArea",
|
|
48
|
+
id: "textarea",
|
|
49
|
+
maxLength: "100",
|
|
50
|
+
onChange: () => {},
|
|
51
|
+
size: "medium"
|
|
52
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
style: style
|
|
54
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
55
|
+
customClass: styles.customTextarea,
|
|
56
|
+
placeHolder: "TextArea",
|
|
57
|
+
id: "textarea",
|
|
58
|
+
maxLength: "100",
|
|
59
|
+
onChange: () => {},
|
|
60
|
+
size: "large"
|
|
61
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
62
|
+
style: style
|
|
63
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
64
|
+
customClass: styles.customTextarea,
|
|
65
|
+
placeHolder: "TextArea",
|
|
66
|
+
id: "textarea",
|
|
67
|
+
maxLength: "100",
|
|
68
|
+
onChange: () => {},
|
|
69
|
+
size: "large",
|
|
70
|
+
autoFocus: true
|
|
71
|
+
}))));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (false) {
|
|
77
|
+
Textarea__custom.docs = {
|
|
78
|
+
componentGroup: 'Form Elements',
|
|
79
|
+
folderName: 'Style Guide',
|
|
80
|
+
description: ' '
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import Textarea from '../Textarea';
|
|
3
|
+
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
+
export default class Textarea__default extends Component {
|
|
5
|
+
render() {
|
|
6
|
+
let style = {
|
|
7
|
+
marginBottom: '20px'
|
|
8
|
+
};
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
style: {
|
|
11
|
+
width: '350px'
|
|
12
|
+
}
|
|
13
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
style: style
|
|
15
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
16
|
+
placeHolder: "TextArea",
|
|
17
|
+
id: "textarea",
|
|
18
|
+
maxLength: "100",
|
|
19
|
+
onChange: () => {}
|
|
20
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
style: style
|
|
22
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
23
|
+
placeHolder: "TextArea",
|
|
24
|
+
id: "textarea",
|
|
25
|
+
maxLength: "100",
|
|
26
|
+
onChange: () => {},
|
|
27
|
+
text: "Readonly",
|
|
28
|
+
isReadOnly: true,
|
|
29
|
+
needEffect: false
|
|
30
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
style: style
|
|
32
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
33
|
+
placeHolder: "TextArea",
|
|
34
|
+
id: "textarea",
|
|
35
|
+
maxLength: "100",
|
|
36
|
+
onChange: () => {},
|
|
37
|
+
text: "Disabled",
|
|
38
|
+
isDisabled: true,
|
|
39
|
+
needEffect: false
|
|
40
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
style: style
|
|
42
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
43
|
+
placeHolder: "TextArea",
|
|
44
|
+
id: "textarea",
|
|
45
|
+
maxLength: "100",
|
|
46
|
+
onChange: () => {},
|
|
47
|
+
size: "medium"
|
|
48
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
style: style
|
|
50
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
51
|
+
placeHolder: "TextArea",
|
|
52
|
+
id: "textarea",
|
|
53
|
+
maxLength: "100",
|
|
54
|
+
onChange: () => {},
|
|
55
|
+
size: "large"
|
|
56
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
style: style
|
|
58
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
59
|
+
placeHolder: "TextArea",
|
|
60
|
+
id: "textarea",
|
|
61
|
+
maxLength: "100",
|
|
62
|
+
onChange: () => {},
|
|
63
|
+
size: "large",
|
|
64
|
+
autoFocus: true
|
|
65
|
+
}))));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (false) {
|
|
71
|
+
Textarea__default.docs = {
|
|
72
|
+
componentGroup: 'Form Elements',
|
|
73
|
+
folderName: 'Style Guide',
|
|
74
|
+
description: ' '
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import Textarea from '../Textarea';
|
|
3
|
+
import CodeExtract from '@zohodesk/docstool/lib/CodeExtractor/CodeExtractor';
|
|
4
|
+
export default class Textarea__disabled extends Component {
|
|
5
|
+
render() {
|
|
6
|
+
let style = {
|
|
7
|
+
marginBottom: '20px',
|
|
8
|
+
width: '350px'
|
|
9
|
+
};
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
style: style
|
|
12
|
+
}, /*#__PURE__*/React.createElement(CodeExtract, null, /*#__PURE__*/React.createElement(Textarea, {
|
|
13
|
+
value: "TextArea component description",
|
|
14
|
+
id: "textarea",
|
|
15
|
+
maxLength: 100,
|
|
16
|
+
onChange: () => {},
|
|
17
|
+
isDisabled: true
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (false) {
|
|
24
|
+
Textarea__disabled.docs = {
|
|
25
|
+
componentGroup: 'Form Elements',
|
|
26
|
+
folderName: 'Style Guide',
|
|
27
|
+
description: ' '
|
|
28
|
+
};
|
|
29
|
+
}
|
package/es/Tooltip/Tooltip.js
CHANGED
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { getLibraryConfig } from '../Provider/Config';
|
|
4
4
|
import style from './Tooltip.module.css';
|
|
5
|
+
import ResizeObserver from '../Responsive/ResizeObserver';
|
|
5
6
|
export default class Tooltip extends React.Component {
|
|
6
7
|
constructor(props) {
|
|
7
8
|
super(props);
|
|
@@ -19,6 +20,43 @@ export default class Tooltip extends React.Component {
|
|
|
19
20
|
this.getDirection = document.getElementsByTagName('html')[0];
|
|
20
21
|
this.leftRightScreenEdge = this.leftRightScreenEdge.bind(this);
|
|
21
22
|
this.topBottomScreenEdge = this.topBottomScreenEdge.bind(this);
|
|
23
|
+
this.observer = new ResizeObserver(this.onResize);
|
|
24
|
+
this.isResized = true;
|
|
25
|
+
this.tooltipContainerClientRect = {};
|
|
26
|
+
this.tooltipContainerEl = {};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
onResize(sizeOfObservedEl, observedEl) {
|
|
30
|
+
this.isResized = true;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
observeElement() {
|
|
34
|
+
this.tooltipContainerEl = this.getToolTipContainerEl();
|
|
35
|
+
this.observer.observe(this.tooltipContainerEl);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
unObserveElement() {
|
|
39
|
+
this.observer.unobserve(this.tooltipContainerEl);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
getClientRectOfContEl(el) {
|
|
43
|
+
if (this.isResized) {
|
|
44
|
+
return this.setClientRectOfContEl(el);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return this.tooltipContainerClientRect;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
setClientRectOfContEl(containerEl) {
|
|
51
|
+
this.isResized = false;
|
|
52
|
+
this.tooltipContainerClientRect = containerEl.getBoundingClientRect();
|
|
53
|
+
return this.tooltipContainerClientRect;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
getToolTipContainerEl() {
|
|
57
|
+
const getTooltipContainer = getLibraryConfig('getTooltipContainer');
|
|
58
|
+
const tooltipContainer = typeof getTooltipContainer === 'function' ? getTooltipContainer() : null;
|
|
59
|
+
return tooltipContainer ? tooltipContainer : document.body;
|
|
22
60
|
}
|
|
23
61
|
|
|
24
62
|
getToolTipDOM(el) {
|
|
@@ -92,7 +130,7 @@ export default class Tooltip extends React.Component {
|
|
|
92
130
|
}
|
|
93
131
|
|
|
94
132
|
handleOver(e, targetElement) {
|
|
95
|
-
let containerElement =
|
|
133
|
+
let containerElement = this.tooltipContainerEl;
|
|
96
134
|
let element = e.target;
|
|
97
135
|
let titleDiv = element.hasAttribute('data-title') || element.hasAttribute('title') ? element : element.closest('[data-title]') || element.closest('[title]');
|
|
98
136
|
|
|
@@ -150,7 +188,7 @@ export default class Tooltip extends React.Component {
|
|
|
150
188
|
let dataTooltipnoArrow = titleDiv.getAttribute('data-tooltip-noarrow') === 'true' ? true : false;
|
|
151
189
|
let dataTooltipWrap = titleDiv.getAttribute('data-title-wrap') === 'true' ? true : false;
|
|
152
190
|
let clientRect = titleDiv.getBoundingClientRect();
|
|
153
|
-
let boxLayout =
|
|
191
|
+
let boxLayout = this.getClientRectOfContEl(containerElement);
|
|
154
192
|
this.setState({
|
|
155
193
|
title,
|
|
156
194
|
isHtml,
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import Tooltip from '../Tooltip';
|
|
3
|
+
import Button from '../../Button/Button';
|
|
4
|
+
import Icon from '@zohodesk/icons/lib/Icon';
|
|
5
|
+
export default class Tooltip__default extends Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.tooltip = this.tooltip.bind(this);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
tooltip() {
|
|
12
|
+
let titleStyle = {
|
|
13
|
+
fontSize: '15px',
|
|
14
|
+
padding: '15px 0',
|
|
15
|
+
borderTop: '1px solid #e0e0e0',
|
|
16
|
+
marginTop: '20px'
|
|
17
|
+
},
|
|
18
|
+
inlineBlock = {
|
|
19
|
+
display: 'inline-block',
|
|
20
|
+
marginRight: '10px',
|
|
21
|
+
marginBottom: '5px'
|
|
22
|
+
},
|
|
23
|
+
dottedstyle = {
|
|
24
|
+
display: 'inline-flex',
|
|
25
|
+
width: '100px',
|
|
26
|
+
textOverflow: 'ellipsis',
|
|
27
|
+
whitepace: 'nowrap',
|
|
28
|
+
overflow: 'hidden',
|
|
29
|
+
marginRight: '10px',
|
|
30
|
+
whiteSpace: 'nowrap'
|
|
31
|
+
},
|
|
32
|
+
flex = {
|
|
33
|
+
display: 'inline-flex',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
fontSize: '14px'
|
|
36
|
+
},
|
|
37
|
+
clampDotted = {
|
|
38
|
+
overflow: 'hidden',
|
|
39
|
+
display: '-webkit-box',
|
|
40
|
+
webkitLineClamp: '3',
|
|
41
|
+
webkitBoxOrient: 'vertical',
|
|
42
|
+
width: '100px',
|
|
43
|
+
fontSize: '14px',
|
|
44
|
+
background: 'var(--zdt_cta_primary_bg)',
|
|
45
|
+
padding: '3px 15px',
|
|
46
|
+
color: '#fff',
|
|
47
|
+
borderRadius: '4px',
|
|
48
|
+
marginBottom: '5px'
|
|
49
|
+
},
|
|
50
|
+
whiteSpaceNoWrap = {
|
|
51
|
+
overflow: 'hidden',
|
|
52
|
+
display: '-webkit-box',
|
|
53
|
+
webkitLineClamp: '3',
|
|
54
|
+
webkitBoxOrient: 'vertical',
|
|
55
|
+
whiteSpace: 'pre-wrap',
|
|
56
|
+
fontSize: '14px',
|
|
57
|
+
background: 'var(--zdt_cta_primary_bg)',
|
|
58
|
+
padding: '3px 15px',
|
|
59
|
+
color: '#fff',
|
|
60
|
+
borderRadius: '4px',
|
|
61
|
+
marginBottom: '5px',
|
|
62
|
+
width: '200px'
|
|
63
|
+
};
|
|
64
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
style: titleStyle
|
|
66
|
+
}, /*#__PURE__*/React.createElement("b", null, "Top Position Tooltip"), " - 1) Lengthy Content, 2) Default Top, 3) Show in Bottom Area if Top doesn t have enough space, 4) Dotted Tooltip, 5) HTML in Tooltip, 6) Tooltip without Arrow, 7)No-Wrapped(normal) Tooltip, 8) Wrapped Tooltip"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
67
|
+
style: inlineBlock,
|
|
68
|
+
"data-title": "Register Account with Lengthy Content",
|
|
69
|
+
"data-title-position": "top"
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
71
|
+
text: "Lengthy",
|
|
72
|
+
palette: "primaryFilled"
|
|
73
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
74
|
+
style: inlineBlock,
|
|
75
|
+
"data-title": "I am Top Tooltip",
|
|
76
|
+
"data-title-position": "top"
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
78
|
+
text: "I am Top",
|
|
79
|
+
palette: "primaryFilled"
|
|
80
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
81
|
+
style: inlineBlock,
|
|
82
|
+
"data-title": "If top does not have enough space I will be shown in bottom area.If top does not have enough space I will be shown in bottom area.If top does not have enough space I will be shown in bottom area.If top does not have enough space I will be shown in bottom area.If top does not have enough space I will be shown in bottom area.",
|
|
83
|
+
"data-title-position": "top"
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
85
|
+
text: "No Space in Top ???",
|
|
86
|
+
palette: "primaryFilled"
|
|
87
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
88
|
+
style: dottedstyle,
|
|
89
|
+
"data-title": "I am Top Tooltip",
|
|
90
|
+
"data-title-position": "top"
|
|
91
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
92
|
+
text: "I am Top Tooltip",
|
|
93
|
+
palette: "primaryFilled"
|
|
94
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
95
|
+
style: inlineBlock,
|
|
96
|
+
"data-title": "<h2>HTML Heading</h2>",
|
|
97
|
+
"data-ishtml": true,
|
|
98
|
+
"data-title-position": "top"
|
|
99
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
100
|
+
text: "HTML in Tooltip",
|
|
101
|
+
palette: "primaryFilled"
|
|
102
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
103
|
+
style: inlineBlock,
|
|
104
|
+
"data-title": "Top Tooltip without Arrow",
|
|
105
|
+
"data-title-position": "top",
|
|
106
|
+
"data-tooltip-noarrow": true
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
108
|
+
text: "No Need Arrow",
|
|
109
|
+
palette: "primaryFilled"
|
|
110
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
111
|
+
style: clampDotted,
|
|
112
|
+
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
113
|
+
"data-title-position": "top"
|
|
114
|
+
}, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
|
|
115
|
+
style: whiteSpaceNoWrap,
|
|
116
|
+
"data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
|
|
117
|
+
"data-title-position": "top",
|
|
118
|
+
"data-title-wrap": "true"
|
|
119
|
+
}, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
style: titleStyle
|
|
121
|
+
}, /*#__PURE__*/React.createElement("b", null, "Bottom Position Tooltip"), " - 1) Lengthy Content, 2) Default Bottom, 3) Show in Top Area if Bottom doesn t have enough space, 4) Dotted Tooltip, 5) HTML in Tooltip, 6) Tooltip without Arrow, 7)No-Wrapped(normal) Tooltip, 8) Wrapped Tooltip"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
122
|
+
style: inlineBlock,
|
|
123
|
+
"data-title": "Register Account with Lengthy Content",
|
|
124
|
+
"data-title-position": "bottom"
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
126
|
+
text: "Lengthy",
|
|
127
|
+
palette: "primaryFilled"
|
|
128
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
129
|
+
style: inlineBlock,
|
|
130
|
+
"data-title": "I am Bottom Tooltip",
|
|
131
|
+
"data-title-position": "bottom"
|
|
132
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
133
|
+
text: "I am Bottom",
|
|
134
|
+
palette: "primaryFilled"
|
|
135
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
136
|
+
style: inlineBlock,
|
|
137
|
+
"data-title": "If bottom does not have enough space I will be shown in top area.If bottom does not have enough space I will be shown in top area.If bottom does not have enough space I will be shown in top area.If bottom does not have enough space I will be shown in top area.",
|
|
138
|
+
"data-title-position": "bottom"
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
140
|
+
text: "No Space in Bottom ???",
|
|
141
|
+
palette: "primaryFilled"
|
|
142
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
143
|
+
style: dottedstyle,
|
|
144
|
+
"data-title": "I am Bottom Tooltip",
|
|
145
|
+
"data-dottedTitle": "I am Bottom Tooltip with Dotted Content",
|
|
146
|
+
"data-title-position": "bottom"
|
|
147
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
148
|
+
text: "DottedDottedDottedDotted",
|
|
149
|
+
palette: "primaryFilled"
|
|
150
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
151
|
+
style: inlineBlock,
|
|
152
|
+
"data-title": "<span style=\"color:red\">HTML Heading</span>",
|
|
153
|
+
"data-ishtml": true,
|
|
154
|
+
"data-title-position": "bottom"
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
156
|
+
text: "HTML in Tooltip",
|
|
157
|
+
palette: "primaryFilled"
|
|
158
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
159
|
+
style: inlineBlock,
|
|
160
|
+
"data-title": "Bottom Tooltip without Arrow",
|
|
161
|
+
"data-title-position": "bottom",
|
|
162
|
+
"data-tooltip-noarrow": true
|
|
163
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
164
|
+
text: "No Need Arrow",
|
|
165
|
+
palette: "primaryFilled"
|
|
166
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
167
|
+
style: clampDotted,
|
|
168
|
+
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
169
|
+
"data-title-position": "bottom"
|
|
170
|
+
}, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
|
|
171
|
+
style: whiteSpaceNoWrap,
|
|
172
|
+
"data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
|
|
173
|
+
"data-title-position": "bottom",
|
|
174
|
+
"data-title-wrap": "true"
|
|
175
|
+
}, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
|
|
176
|
+
style: titleStyle
|
|
177
|
+
}, /*#__PURE__*/React.createElement("b", null, "Left Position Tooltip"), " - 1) Lengthy Content, 2) Default Left, 3) Show in Right Area if Left doesn t have enough space, 4) Dotted Tooltip, 5) HTML in Tooltip, 6) Tooltip without Arrow, 7)No-Wrapped(normal) Tooltip, 8) Wrapped Tooltip"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
178
|
+
style: inlineBlock,
|
|
179
|
+
"data-title": "I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.I am left tooltip with lengthy description.",
|
|
180
|
+
"data-title-position": "left"
|
|
181
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
182
|
+
text: "Lengthy",
|
|
183
|
+
palette: "primaryFilled"
|
|
184
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
185
|
+
style: inlineBlock,
|
|
186
|
+
"data-title": "Left Tooltip",
|
|
187
|
+
"data-title-position": "left"
|
|
188
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
189
|
+
text: "I am Left",
|
|
190
|
+
palette: "primaryFilled"
|
|
191
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
192
|
+
style: inlineBlock,
|
|
193
|
+
"data-title": "If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.If left does not have enough space I will be shown in right area.",
|
|
194
|
+
"data-title-position": "left"
|
|
195
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
196
|
+
text: "No Space in Left ???",
|
|
197
|
+
palette: "primaryFilled"
|
|
198
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
199
|
+
style: dottedstyle,
|
|
200
|
+
"data-title": "I am Left Tooltip",
|
|
201
|
+
"data-dottedTitle": "I am Left Tooltip with Dotted Content",
|
|
202
|
+
"data-title-position": "left"
|
|
203
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
204
|
+
text: "DottedDottedDottedDotted",
|
|
205
|
+
palette: "primaryFilled"
|
|
206
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
207
|
+
style: inlineBlock,
|
|
208
|
+
"data-title": "<div style=\"width:500px;height:50px;background:#fff;color:orange;\">HTML Heading</div>",
|
|
209
|
+
"data-ishtml": true,
|
|
210
|
+
"data-title-position": "left"
|
|
211
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
212
|
+
text: "HTML in Tooltip",
|
|
213
|
+
palette: "primaryFilled"
|
|
214
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
215
|
+
style: inlineBlock,
|
|
216
|
+
"data-title": "Left Tooltip without Arrow",
|
|
217
|
+
"data-title-position": "left",
|
|
218
|
+
"data-tooltip-noarrow": true
|
|
219
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
220
|
+
text: "No Need Arrow",
|
|
221
|
+
palette: "primaryFilled"
|
|
222
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
223
|
+
style: clampDotted,
|
|
224
|
+
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
225
|
+
"data-title-position": "left"
|
|
226
|
+
}, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
|
|
227
|
+
style: whiteSpaceNoWrap,
|
|
228
|
+
"data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
|
|
229
|
+
"data-title-position": "left",
|
|
230
|
+
"data-title-wrap": "true"
|
|
231
|
+
}, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
|
|
232
|
+
style: titleStyle
|
|
233
|
+
}, /*#__PURE__*/React.createElement("b", null, "Right Position Tooltip"), " - 1) Lengthy Content, 2) Default Right, 3) Show in Left Area if Right doesn t have enough space, 4) Dotted Tooltip, 5) HTML in Tooltip, 6) Tooltip without Arrow, 7)No-Wrapped(normal) Tooltip, 8) Wrapped Tooltip"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
234
|
+
style: inlineBlock,
|
|
235
|
+
"data-title": "I am right tooltip with lengthy description.I am right tooltip with lengthy description.I am right tooltip with lengthy description.I am right tooltip with lengthy description.I am right tooltip with lengthy description.I am right tooltip with lengthy description.I am right tooltip with lengthy description.",
|
|
236
|
+
"data-title-position": "right"
|
|
237
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
238
|
+
text: "Lengthy",
|
|
239
|
+
palette: "primaryFilled"
|
|
240
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
241
|
+
style: inlineBlock,
|
|
242
|
+
"data-title": "Right Tooltip",
|
|
243
|
+
"data-title-position": "right"
|
|
244
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
245
|
+
text: "I am Right",
|
|
246
|
+
palette: "primaryFilled"
|
|
247
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
248
|
+
style: inlineBlock,
|
|
249
|
+
"data-title": "If right does not have enough space I will be shown in left area.If right does not have enough space I will be shown in left area.If right does not have enough space I will be shown in left area.If right does not have enough space I will be shown in left area.",
|
|
250
|
+
"data-title-position": "right"
|
|
251
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
252
|
+
text: "No Space in Right ???",
|
|
253
|
+
palette: "primaryFilled"
|
|
254
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
255
|
+
style: dottedstyle,
|
|
256
|
+
"data-title": "I am Right Tooltip",
|
|
257
|
+
"data-dottedTitle": "I am Right Tooltip with Dotted Content",
|
|
258
|
+
"data-title-position": "right"
|
|
259
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
260
|
+
text: "DottedDottedDottedDotted",
|
|
261
|
+
palette: "primaryFilled"
|
|
262
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
263
|
+
style: inlineBlock,
|
|
264
|
+
"data-title": "<i>HTML Heading</i>",
|
|
265
|
+
"data-ishtml": true,
|
|
266
|
+
"data-title-position": "right"
|
|
267
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
268
|
+
text: "HTML in Tooltip",
|
|
269
|
+
palette: "primaryFilled"
|
|
270
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
271
|
+
style: inlineBlock,
|
|
272
|
+
"data-title": "Right Tooltip without Arrow",
|
|
273
|
+
"data-title-position": "right",
|
|
274
|
+
"data-tooltip-noarrow": true
|
|
275
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
276
|
+
text: "No Need Arrow",
|
|
277
|
+
palette: "primaryFilled"
|
|
278
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
279
|
+
style: clampDotted,
|
|
280
|
+
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
281
|
+
"data-title-position": "right"
|
|
282
|
+
}, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
|
|
283
|
+
style: whiteSpaceNoWrap,
|
|
284
|
+
"data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
|
|
285
|
+
"data-title-position": "right",
|
|
286
|
+
"data-title-wrap": "true"
|
|
287
|
+
}, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
|
|
288
|
+
style: titleStyle
|
|
289
|
+
}, /*#__PURE__*/React.createElement("b", null, "No Position Tooltip"), " - 1) Lengthy Content, 2) Default Top/Bottom, 3) Show in Top Area if Bottom doesn t have enough space, 4) Dotted Tooltip, 5) HTML in Tooltip, 6) Tooltip without Arrow, 7)No-Wrapped(normal) Tooltip, 8) Wrapped Tooltip"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
290
|
+
style: inlineBlock,
|
|
291
|
+
"data-title": "I am normal tooltip without mentioning data-title-position.I am normal tooltip without mentioning data-title-position.I am normal tooltip without mentioning data-title-position.I am normal tooltip without mentioning data-title-position.I am normal tooltip without mentioning data-title-position.I am normal tooltip without mentioning data-title-position."
|
|
292
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
293
|
+
text: "Lengthy",
|
|
294
|
+
palette: "primaryFilled"
|
|
295
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
296
|
+
style: inlineBlock,
|
|
297
|
+
"data-title": "Normal Tooltip"
|
|
298
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
299
|
+
text: "I am Normal",
|
|
300
|
+
palette: "primaryFilled"
|
|
301
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
302
|
+
style: inlineBlock,
|
|
303
|
+
"data-title": "If Top/Bottom does not have enough space I will be shown in Bottom/Top position.If Top/Bottom does not have enough space I will be shown in Bottom/Top positionIf Top/Bottom does not have enough space I will be shown in Bottom/Top positionIf Top/Bottom does not have enough space I will be shown in Bottom/Top position"
|
|
304
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
305
|
+
text: "No Space in Top/Bottom ???",
|
|
306
|
+
palette: "primaryFilled"
|
|
307
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
308
|
+
style: dottedstyle,
|
|
309
|
+
"data-title": "I am Default Tooltip",
|
|
310
|
+
"data-dottedTitle": "I am Default Tooltip with Dotted Content"
|
|
311
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
312
|
+
text: "DottedDottedDottedDotted",
|
|
313
|
+
palette: "primaryFilled"
|
|
314
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
315
|
+
style: inlineBlock,
|
|
316
|
+
"data-title": "<b style=\"color:yellow;background:orange;\">HTML Heading</b>",
|
|
317
|
+
"data-ishtml": true
|
|
318
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
319
|
+
text: "HTML in Tooltip",
|
|
320
|
+
palette: "primaryFilled"
|
|
321
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
322
|
+
style: inlineBlock,
|
|
323
|
+
"data-title": "Tooltip without Arrow",
|
|
324
|
+
"data-tooltip-noarrow": true
|
|
325
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
326
|
+
text: "No Need Arrow",
|
|
327
|
+
palette: "primaryFilled"
|
|
328
|
+
}))), /*#__PURE__*/React.createElement("span", {
|
|
329
|
+
style: clampDotted,
|
|
330
|
+
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted"
|
|
331
|
+
}, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
|
|
332
|
+
style: whiteSpaceNoWrap,
|
|
333
|
+
"data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
|
|
334
|
+
"data-title-wrap": "true"
|
|
335
|
+
}, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`)));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
render() {
|
|
339
|
+
let parent = {
|
|
340
|
+
display: 'flex'
|
|
341
|
+
},
|
|
342
|
+
split = {
|
|
343
|
+
padding: '20px',
|
|
344
|
+
width: '50%'
|
|
345
|
+
},
|
|
346
|
+
dark = {
|
|
347
|
+
background: '#2c334d',
|
|
348
|
+
padding: '20px',
|
|
349
|
+
width: '50%',
|
|
350
|
+
color: '#fff'
|
|
351
|
+
};
|
|
352
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
353
|
+
onMouseOver: e => this.tooltipRef && this.tooltipRef.handleOver(e)
|
|
354
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
355
|
+
style: parent
|
|
356
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
357
|
+
style: split
|
|
358
|
+
}, this.tooltip()), /*#__PURE__*/React.createElement("div", {
|
|
359
|
+
style: dark
|
|
360
|
+
}, this.tooltip())));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (false) {
|
|
366
|
+
Tooltip__default.docs = {
|
|
367
|
+
componentGroup: 'Atom',
|
|
368
|
+
folderName: 'Style Guide',
|
|
369
|
+
description: ' '
|
|
370
|
+
};
|
|
371
|
+
}
|