@zohodesk/components 1.0.0-temp-84 → 1.0.0-temp-108

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.
Files changed (236) hide show
  1. package/assets/Appearance/dark/mode/darkMode.module.css +11 -11
  2. package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +5 -5
  3. package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +5 -5
  4. package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +5 -5
  5. package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +5 -5
  6. package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +5 -5
  7. package/assets/Appearance/default/mode/defaultMode.module.css +10 -10
  8. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +5 -5
  9. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +5 -5
  10. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +5 -5
  11. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +5 -5
  12. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +5 -5
  13. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +13 -13
  14. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +5 -5
  15. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +5 -5
  16. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +5 -5
  17. package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +5 -5
  18. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +5 -5
  19. package/css_error.log +5 -0
  20. package/es/index.js +107 -106
  21. package/lib/index.js +1 -842
  22. package/package.json +4 -4
  23. package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
  24. package/es/Animation/docs/Animation__default.docs.js +0 -32
  25. package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
  26. package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
  27. package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
  28. package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
  29. package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
  30. package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
  31. package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
  32. package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
  33. package/es/Avatar/docs/Avatar__default.docs.js +0 -27
  34. package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
  35. package/es/Avatar/docs/Avatar__text.docs.js +0 -26
  36. package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
  37. package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
  38. package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
  39. package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
  40. package/es/Button/docs/Button__custom.docs.js +0 -769
  41. package/es/Button/docs/Button__default.docs.js +0 -534
  42. package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
  43. package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
  44. package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
  45. package/es/Card/docs/Card__Custom.docs.js +0 -32
  46. package/es/Card/docs/Card__Default.docs.js +0 -35
  47. package/es/Card/docs/Card__Scroll.docs.js +0 -56
  48. package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
  49. package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
  50. package/es/DateTime/docs/DateTime__default.docs.js +0 -88
  51. package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
  52. package/es/DateTime/docs/timezonedata.json +0 -1
  53. package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
  54. package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
  55. package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
  56. package/es/DropBox/docs/DropBox__position.docs.js +0 -85
  57. package/es/DropBox/docs/DropBox__size.docs.js +0 -59
  58. package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
  59. package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
  60. package/es/Heading/docs/Heading__default.docs.js +0 -19
  61. package/es/Label/docs/Label__clipped.docs.js +0 -25
  62. package/es/Label/docs/Label__custom.docs.js +0 -28
  63. package/es/Label/docs/Label__palette.docs.js +0 -40
  64. package/es/Label/docs/Label__size.docs.js +0 -27
  65. package/es/Label/docs/Label__type.docs.js +0 -35
  66. package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
  67. package/es/Layout/docs/Layout__default.docs.js +0 -48
  68. package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
  69. package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
  70. package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
  71. package/es/LightNightMode/Colors.json +0 -497
  72. package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
  73. package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
  74. package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
  75. package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
  76. package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
  77. package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
  78. package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
  79. package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
  80. package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
  81. package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
  82. package/es/ListItem/docs/ListItem__default.docs.js +0 -80
  83. package/es/Modal/__docs__/Modal__default.docs.js +0 -42
  84. package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
  85. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
  86. package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
  87. package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
  88. package/es/PopOver/docs/PopOver__default.docs.js +0 -30
  89. package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
  90. package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
  91. package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
  92. package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
  93. package/es/Provider.js +0 -105
  94. package/es/Radio/docs/Radio__custom.docs.js +0 -241
  95. package/es/Radio/docs/Radio__default.docs.js +0 -165
  96. package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
  97. package/es/Responsive/docs/Responsive__default.docs.js +0 -95
  98. package/es/Responsive/docs/style.module.css +0 -56
  99. package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
  100. package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
  101. package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
  102. package/es/Select/docs/GroupSelect__default.docs.js +0 -144
  103. package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
  104. package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
  105. package/es/Select/docs/Select__default.docs.js +0 -283
  106. package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
  107. package/es/Stencils/docs/Stencils__default.docs.js +0 -48
  108. package/es/Switch/docs/Switch__custom.docs.js +0 -151
  109. package/es/Switch/docs/Switch__default.docs.js +0 -105
  110. package/es/Tab/docs/Tab__default.docs.js +0 -253
  111. package/es/Tab/docs/tabdocs.module.css +0 -29
  112. package/es/Tag/docs/Tag__custom.docs.js +0 -366
  113. package/es/Tag/docs/Tag__default.docs.js +0 -321
  114. package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
  115. package/es/TextBox/docs/TextBox__default.docs.js +0 -38
  116. package/es/TextBox/docs/TextBox__size.docs.js +0 -36
  117. package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
  118. package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
  119. package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
  120. package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
  121. package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
  122. package/es/Textarea/docs/Textarea__default.docs.js +0 -74
  123. package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
  124. package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
  125. package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
  126. package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
  127. package/es/common/docStyle.module.css +0 -887
  128. package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
  129. package/es/semantic/Button/docs/Button__default.docs.js +0 -17
  130. package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
  131. package/lib/Animation/docs/Animation__default.docs.js +0 -61
  132. package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
  133. package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
  134. package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
  135. package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
  136. package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
  137. package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
  138. package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
  139. package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
  140. package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
  141. package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
  142. package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
  143. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
  144. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
  145. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
  146. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
  147. package/lib/Button/docs/Button__custom.docs.js +0 -800
  148. package/lib/Button/docs/Button__default.docs.js +0 -565
  149. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
  150. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
  151. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
  152. package/lib/Card/docs/Card__Custom.docs.js +0 -63
  153. package/lib/Card/docs/Card__Default.docs.js +0 -66
  154. package/lib/Card/docs/Card__Scroll.docs.js +0 -87
  155. package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
  156. package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
  157. package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
  158. package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
  159. package/lib/DateTime/docs/timezonedata.json +0 -1
  160. package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
  161. package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
  162. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
  163. package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
  164. package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
  165. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
  166. package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
  167. package/lib/Heading/docs/Heading__default.docs.js +0 -50
  168. package/lib/Label/docs/Label__clipped.docs.js +0 -56
  169. package/lib/Label/docs/Label__custom.docs.js +0 -59
  170. package/lib/Label/docs/Label__palette.docs.js +0 -71
  171. package/lib/Label/docs/Label__size.docs.js +0 -58
  172. package/lib/Label/docs/Label__type.docs.js +0 -66
  173. package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
  174. package/lib/Layout/docs/Layout__default.docs.js +0 -77
  175. package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
  176. package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
  177. package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
  178. package/lib/LightNightMode/Colors.json +0 -497
  179. package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
  180. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
  181. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
  182. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
  183. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
  184. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
  185. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
  186. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
  187. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
  188. package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
  189. package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
  190. package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
  191. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
  192. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
  193. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
  194. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
  195. package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
  196. package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
  197. package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
  198. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
  199. package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
  200. package/lib/Provider.js +0 -134
  201. package/lib/Radio/docs/Radio__custom.docs.js +0 -273
  202. package/lib/Radio/docs/Radio__default.docs.js +0 -197
  203. package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
  204. package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
  205. package/lib/Responsive/docs/style.module.css +0 -56
  206. package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
  207. package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
  208. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
  209. package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
  210. package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
  211. package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
  212. package/lib/Select/docs/Select__default.docs.js +0 -313
  213. package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
  214. package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
  215. package/lib/Switch/docs/Switch__custom.docs.js +0 -180
  216. package/lib/Switch/docs/Switch__default.docs.js +0 -134
  217. package/lib/Tab/docs/Tab__default.docs.js +0 -283
  218. package/lib/Tab/docs/tabdocs.module.css +0 -29
  219. package/lib/Tag/docs/Tag__custom.docs.js +0 -397
  220. package/lib/Tag/docs/Tag__default.docs.js +0 -352
  221. package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
  222. package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
  223. package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
  224. package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
  225. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
  226. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
  227. package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
  228. package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
  229. package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
  230. package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
  231. package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
  232. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
  233. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
  234. package/lib/common/docStyle.module.css +0 -887
  235. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
  236. package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
@@ -1,367 +0,0 @@
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
- tooltip() {
11
- let titleStyle = {
12
- fontSize: '15px',
13
- padding: '15px 0',
14
- borderTop: '1px solid #e0e0e0',
15
- marginTop: '20px'
16
- },
17
- inlineBlock = {
18
- display: 'inline-block',
19
- marginRight: '10px',
20
- marginBottom: '5px'
21
- },
22
- dottedstyle = {
23
- display: 'inline-flex',
24
- width: '100px',
25
- textOverflow: 'ellipsis',
26
- whitepace: 'nowrap',
27
- overflow: 'hidden',
28
- marginRight: '10px',
29
- whiteSpace: 'nowrap'
30
- },
31
- flex = {
32
- display: 'inline-flex',
33
- alignItems: 'center',
34
- fontSize: '14px'
35
- },
36
- clampDotted = {
37
- overflow: 'hidden',
38
- display: '-webkit-box',
39
- webkitLineClamp: '3',
40
- webkitBoxOrient: 'vertical',
41
- width: '100px',
42
- fontSize: '14px',
43
- background: 'var(--zdt_cta_primary_bg)',
44
- padding: '3px 15px',
45
- color: '#fff',
46
- borderRadius: '4px',
47
- marginBottom: '5px'
48
- },
49
- whiteSpaceNoWrap = {
50
- overflow: 'hidden',
51
- display: '-webkit-box',
52
- webkitLineClamp: '3',
53
- webkitBoxOrient: 'vertical',
54
- whiteSpace: 'pre-wrap',
55
- fontSize: '14px',
56
- background: 'var(--zdt_cta_primary_bg)',
57
- padding: '3px 15px',
58
- color: '#fff',
59
- borderRadius: '4px',
60
- marginBottom: '5px',
61
- width: '200px'
62
- };
63
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
64
- style: titleStyle
65
- }, /*#__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", {
66
- style: inlineBlock,
67
- "data-title": "Register Account with Lengthy Content",
68
- "data-title-position": "top"
69
- }, /*#__PURE__*/React.createElement(Button, {
70
- text: "Lengthy",
71
- palette: "primaryFilled"
72
- })), /*#__PURE__*/React.createElement("span", {
73
- style: inlineBlock,
74
- "data-title": "I am Top Tooltip",
75
- "data-title-position": "top"
76
- }, /*#__PURE__*/React.createElement(Button, {
77
- text: "I am Top",
78
- palette: "primaryFilled"
79
- })), /*#__PURE__*/React.createElement("span", {
80
- style: inlineBlock,
81
- "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.",
82
- "data-title-position": "top"
83
- }, /*#__PURE__*/React.createElement(Button, {
84
- text: "No Space in Top ???",
85
- palette: "primaryFilled"
86
- })), /*#__PURE__*/React.createElement("span", {
87
- style: dottedstyle,
88
- "data-title": "I am Top Tooltip",
89
- "data-title-position": "top"
90
- }, /*#__PURE__*/React.createElement(Button, {
91
- text: "I am Top Tooltip",
92
- palette: "primaryFilled"
93
- })), /*#__PURE__*/React.createElement("span", {
94
- style: inlineBlock,
95
- "data-title": "<h2>HTML Heading</h2>",
96
- "data-ishtml": true,
97
- "data-title-position": "top"
98
- }, /*#__PURE__*/React.createElement(Button, {
99
- text: "HTML in Tooltip",
100
- palette: "primaryFilled"
101
- })), /*#__PURE__*/React.createElement("span", {
102
- style: inlineBlock,
103
- "data-title": "Top Tooltip without Arrow",
104
- "data-title-position": "top",
105
- "data-tooltip-noarrow": true
106
- }, /*#__PURE__*/React.createElement(Button, {
107
- text: "No Need Arrow",
108
- palette: "primaryFilled"
109
- })), /*#__PURE__*/React.createElement("span", {
110
- style: clampDotted,
111
- "data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
112
- "data-title-position": "top"
113
- }, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
114
- style: whiteSpaceNoWrap,
115
- "data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
116
- "data-title-position": "top",
117
- "data-title-wrap": "true"
118
- }, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
119
- style: titleStyle
120
- }, /*#__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", {
121
- style: inlineBlock,
122
- "data-title": "Register Account with Lengthy Content",
123
- "data-title-position": "bottom"
124
- }, /*#__PURE__*/React.createElement(Button, {
125
- text: "Lengthy",
126
- palette: "primaryFilled"
127
- })), /*#__PURE__*/React.createElement("span", {
128
- style: inlineBlock,
129
- "data-title": "I am Bottom Tooltip",
130
- "data-title-position": "bottom"
131
- }, /*#__PURE__*/React.createElement(Button, {
132
- text: "I am Bottom",
133
- palette: "primaryFilled"
134
- })), /*#__PURE__*/React.createElement("span", {
135
- style: inlineBlock,
136
- "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.",
137
- "data-title-position": "bottom"
138
- }, /*#__PURE__*/React.createElement(Button, {
139
- text: "No Space in Bottom ???",
140
- palette: "primaryFilled"
141
- })), /*#__PURE__*/React.createElement("span", {
142
- style: dottedstyle,
143
- "data-title": "I am Bottom Tooltip",
144
- "data-dottedTitle": "I am Bottom Tooltip with Dotted Content",
145
- "data-title-position": "bottom"
146
- }, /*#__PURE__*/React.createElement(Button, {
147
- text: "DottedDottedDottedDotted",
148
- palette: "primaryFilled"
149
- })), /*#__PURE__*/React.createElement("span", {
150
- style: inlineBlock,
151
- "data-title": "<span style=\"color:red\">HTML Heading</span>",
152
- "data-ishtml": true,
153
- "data-title-position": "bottom"
154
- }, /*#__PURE__*/React.createElement(Button, {
155
- text: "HTML in Tooltip",
156
- palette: "primaryFilled"
157
- })), /*#__PURE__*/React.createElement("span", {
158
- style: inlineBlock,
159
- "data-title": "Bottom Tooltip without Arrow",
160
- "data-title-position": "bottom",
161
- "data-tooltip-noarrow": true
162
- }, /*#__PURE__*/React.createElement(Button, {
163
- text: "No Need Arrow",
164
- palette: "primaryFilled"
165
- })), /*#__PURE__*/React.createElement("span", {
166
- style: clampDotted,
167
- "data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
168
- "data-title-position": "bottom"
169
- }, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
170
- style: whiteSpaceNoWrap,
171
- "data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
172
- "data-title-position": "bottom",
173
- "data-title-wrap": "true"
174
- }, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
175
- style: titleStyle
176
- }, /*#__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", {
177
- style: inlineBlock,
178
- "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.",
179
- "data-title-position": "left"
180
- }, /*#__PURE__*/React.createElement(Button, {
181
- text: "Lengthy",
182
- palette: "primaryFilled"
183
- })), /*#__PURE__*/React.createElement("span", {
184
- style: inlineBlock,
185
- "data-title": "Left Tooltip",
186
- "data-title-position": "left"
187
- }, /*#__PURE__*/React.createElement(Button, {
188
- text: "I am Left",
189
- palette: "primaryFilled"
190
- })), /*#__PURE__*/React.createElement("span", {
191
- style: inlineBlock,
192
- "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.",
193
- "data-title-position": "left"
194
- }, /*#__PURE__*/React.createElement(Button, {
195
- text: "No Space in Left ???",
196
- palette: "primaryFilled"
197
- })), /*#__PURE__*/React.createElement("span", {
198
- style: dottedstyle,
199
- "data-title": "I am Left Tooltip",
200
- "data-dottedTitle": "I am Left Tooltip with Dotted Content",
201
- "data-title-position": "left"
202
- }, /*#__PURE__*/React.createElement(Button, {
203
- text: "DottedDottedDottedDotted",
204
- palette: "primaryFilled"
205
- })), /*#__PURE__*/React.createElement("span", {
206
- style: inlineBlock,
207
- "data-title": "<div style=\"width:500px;height:50px;background:#fff;color:orange;\">HTML Heading</div>",
208
- "data-ishtml": true,
209
- "data-title-position": "left"
210
- }, /*#__PURE__*/React.createElement(Button, {
211
- text: "HTML in Tooltip",
212
- palette: "primaryFilled"
213
- })), /*#__PURE__*/React.createElement("span", {
214
- style: inlineBlock,
215
- "data-title": "Left Tooltip without Arrow",
216
- "data-title-position": "left",
217
- "data-tooltip-noarrow": true
218
- }, /*#__PURE__*/React.createElement(Button, {
219
- text: "No Need Arrow",
220
- palette: "primaryFilled"
221
- })), /*#__PURE__*/React.createElement("span", {
222
- style: clampDotted,
223
- "data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
224
- "data-title-position": "left"
225
- }, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
226
- style: whiteSpaceNoWrap,
227
- "data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
228
- "data-title-position": "left",
229
- "data-title-wrap": "true"
230
- }, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
231
- style: titleStyle
232
- }, /*#__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", {
233
- style: inlineBlock,
234
- "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.",
235
- "data-title-position": "right"
236
- }, /*#__PURE__*/React.createElement(Button, {
237
- text: "Lengthy",
238
- palette: "primaryFilled"
239
- })), /*#__PURE__*/React.createElement("span", {
240
- style: inlineBlock,
241
- "data-title": "Right Tooltip",
242
- "data-title-position": "right"
243
- }, /*#__PURE__*/React.createElement(Button, {
244
- text: "I am Right",
245
- palette: "primaryFilled"
246
- })), /*#__PURE__*/React.createElement("span", {
247
- style: inlineBlock,
248
- "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.",
249
- "data-title-position": "right"
250
- }, /*#__PURE__*/React.createElement(Button, {
251
- text: "No Space in Right ???",
252
- palette: "primaryFilled"
253
- })), /*#__PURE__*/React.createElement("span", {
254
- style: dottedstyle,
255
- "data-title": "I am Right Tooltip",
256
- "data-dottedTitle": "I am Right Tooltip with Dotted Content",
257
- "data-title-position": "right"
258
- }, /*#__PURE__*/React.createElement(Button, {
259
- text: "DottedDottedDottedDotted",
260
- palette: "primaryFilled"
261
- })), /*#__PURE__*/React.createElement("span", {
262
- style: inlineBlock,
263
- "data-title": "<i>HTML Heading</i>",
264
- "data-ishtml": true,
265
- "data-title-position": "right"
266
- }, /*#__PURE__*/React.createElement(Button, {
267
- text: "HTML in Tooltip",
268
- palette: "primaryFilled"
269
- })), /*#__PURE__*/React.createElement("span", {
270
- style: inlineBlock,
271
- "data-title": "Right Tooltip without Arrow",
272
- "data-title-position": "right",
273
- "data-tooltip-noarrow": true
274
- }, /*#__PURE__*/React.createElement(Button, {
275
- text: "No Need Arrow",
276
- palette: "primaryFilled"
277
- })), /*#__PURE__*/React.createElement("span", {
278
- style: clampDotted,
279
- "data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
280
- "data-title-position": "right"
281
- }, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
282
- style: whiteSpaceNoWrap,
283
- "data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
284
- "data-title-position": "right",
285
- "data-title-wrap": "true"
286
- }, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`))), /*#__PURE__*/React.createElement("div", {
287
- style: titleStyle
288
- }, /*#__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", {
289
- style: inlineBlock,
290
- "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."
291
- }, /*#__PURE__*/React.createElement(Button, {
292
- text: "Lengthy",
293
- palette: "primaryFilled"
294
- })), /*#__PURE__*/React.createElement("span", {
295
- style: inlineBlock,
296
- "data-title": "Normal Tooltip"
297
- }, /*#__PURE__*/React.createElement(Button, {
298
- text: "I am Normal",
299
- palette: "primaryFilled"
300
- })), /*#__PURE__*/React.createElement("span", {
301
- style: inlineBlock,
302
- "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"
303
- }, /*#__PURE__*/React.createElement(Button, {
304
- text: "No Space in Top/Bottom ???",
305
- palette: "primaryFilled"
306
- })), /*#__PURE__*/React.createElement("span", {
307
- style: dottedstyle,
308
- "data-title": "I am Default Tooltip",
309
- "data-dottedTitle": "I am Default Tooltip with Dotted Content"
310
- }, /*#__PURE__*/React.createElement(Button, {
311
- text: "DottedDottedDottedDotted",
312
- palette: "primaryFilled"
313
- })), /*#__PURE__*/React.createElement("span", {
314
- style: inlineBlock,
315
- "data-title": "<b style=\"color:yellow;background:orange;\">HTML Heading</b>",
316
- "data-ishtml": true
317
- }, /*#__PURE__*/React.createElement(Button, {
318
- text: "HTML in Tooltip",
319
- palette: "primaryFilled"
320
- })), /*#__PURE__*/React.createElement("span", {
321
- style: inlineBlock,
322
- "data-title": "Tooltip without Arrow",
323
- "data-tooltip-noarrow": true
324
- }, /*#__PURE__*/React.createElement(Button, {
325
- text: "No Need Arrow",
326
- palette: "primaryFilled"
327
- }))), /*#__PURE__*/React.createElement("span", {
328
- style: clampDotted,
329
- "data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted"
330
- }, /*#__PURE__*/React.createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/React.createElement("span", {
331
- style: whiteSpaceNoWrap,
332
- "data-title": `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`,
333
- "data-title-wrap": "true"
334
- }, /*#__PURE__*/React.createElement("span", null, `Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted`)));
335
- }
336
- render() {
337
- let parent = {
338
- display: 'flex'
339
- },
340
- split = {
341
- padding: '20px',
342
- width: '50%'
343
- },
344
- dark = {
345
- background: '#2c334d',
346
- padding: '20px',
347
- width: '50%',
348
- color: '#fff'
349
- };
350
- return /*#__PURE__*/React.createElement("div", {
351
- onMouseOver: e => this.tooltipRef && this.tooltipRef.handleOver(e)
352
- }, /*#__PURE__*/React.createElement("div", {
353
- style: parent
354
- }, /*#__PURE__*/React.createElement("div", {
355
- style: split
356
- }, this.tooltip()), /*#__PURE__*/React.createElement("div", {
357
- style: dark
358
- }, this.tooltip())));
359
- }
360
- }
361
- if (false) {
362
- Tooltip__default.docs = {
363
- componentGroup: 'Atom',
364
- folderName: 'Style Guide',
365
- description: ' '
366
- };
367
- }
@@ -1,92 +0,0 @@
1
- import React from 'react';
2
- import Proptypes from 'prop-types';
3
- import Select from '../../../Select/Select';
4
- import Button from '../../../Button/Button';
5
- import VelocityAnimation from '../VelocityAnimation';
6
- let animationList = [{
7
- text: 'fade',
8
- id: 'animate-1'
9
- }, {
10
- text: 'slideDown',
11
- id: 'animate-2'
12
- }, {
13
- text: 'flyDown',
14
- id: 'animate-3'
15
- }, {
16
- text: 'slideRight',
17
- id: 'animate-4'
18
- }, {
19
- text: 'shrink',
20
- id: 'animate-5'
21
- }, {
22
- text: 'expand',
23
- id: 'animate-6'
24
- }, {
25
- text: 'slideLeft',
26
- id: 'animate-7'
27
- }];
28
- export default class VelocityAnimation__demo extends React.Component {
29
- constructor(props) {
30
- super(props);
31
- this.state = {
32
- value: animationList[0],
33
- isActive: false
34
- };
35
- this.handleChange = this.handleChange.bind(this);
36
- this.handleView = this.handleView.bind(this);
37
- }
38
- handleChange(fieldId, value) {
39
- this.setState({
40
- value
41
- });
42
- }
43
- handleView() {
44
- this.setState({
45
- isActive: !this.state.isActive
46
- });
47
- }
48
- render() {
49
- let {
50
- value,
51
- isActive
52
- } = this.state;
53
- let animate = {
54
- width: '200px',
55
- height: '100px',
56
- background: 'var(--dot_black)',
57
- textAlign: 'center',
58
- color: 'var(--dot_white)',
59
- lineHeight: '100px'
60
- };
61
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
62
- style: {
63
- width: '30%',
64
- display: 'flex',
65
- justifyContent: 'space-around'
66
- }
67
- }, /*#__PURE__*/React.createElement(Select, {
68
- onChange: this.handleChange,
69
- options: animationList,
70
- selectedValue: value.id
71
- }), /*#__PURE__*/React.createElement(Button, {
72
- onClick: this.handleView
73
- }, !isActive ? 'show' : 'hide')), /*#__PURE__*/React.createElement("span", {
74
- style: {
75
- display: 'flex',
76
- alignItems: 'center',
77
- flexDirection: 'column'
78
- }
79
- }, /*#__PURE__*/React.createElement(VelocityAnimation, {
80
- isActive: isActive,
81
- name: value.text,
82
- duration: 300
83
- }, /*#__PURE__*/React.createElement("div", {
84
- style: animate
85
- }, "Animation"))));
86
- }
87
- }
88
- if (false) {
89
- VelocityAnimation__demo.docs = {
90
- componentGroup: 'Animation'
91
- };
92
- }
@@ -1,139 +0,0 @@
1
- import React from 'react';
2
- import Label from '../../../Label/Label';
3
- import Select from '../../../Select/Select';
4
- import TextBox from '../../../TextBox/TextBox';
5
- import Button from '../../../Button/Button';
6
- import VelocityAnimationGroup from '../VelocityAnimationGroup';
7
- import { Container } from '../../../Layout';
8
- let animations = ['fade', 'slideDown', 'flyDown', 'shrink', 'expand', 'slideRight', 'slideLeft'];
9
- function animationList() {
10
- let animationList = [];
11
- for (let i = 0; i < animations.length; i++) {
12
- animationList.push(Object.assign({
13
- text: `${animations[i]}`,
14
- id: `${animations[i]}-1`
15
- }));
16
- }
17
- return animationList;
18
- }
19
- export default class VelocityAnimationGroup__demo extends React.Component {
20
- constructor(props) {
21
- super(props);
22
- this.state = {
23
- animationList: animationList(),
24
- isActive: false,
25
- entryTime: 800,
26
- exitTime: 800,
27
- animationName: {}
28
- };
29
- this.handleChange = this.handleChange.bind(this);
30
- this.handleView = this.handleView.bind(this);
31
- this.handleSelect = this.handleSelect.bind(this);
32
- }
33
- componentDidMount() {
34
- this.setState({
35
- animationName: this.state.animationList[0]
36
- });
37
- }
38
- handleView() {
39
- this.setState({
40
- isActive: !this.state.isActive
41
- });
42
- }
43
- handleChange(name, value) {
44
- if (name == 'entryTime') {
45
- this.setState({
46
- entryTime: value
47
- });
48
- } else if (name == 'exitTime') {
49
- this.setState({
50
- exitTime: value
51
- });
52
- }
53
- }
54
- handleSelect(fieldId, selectedValue) {
55
- this.setState({
56
- animationName: selectedValue
57
- });
58
- }
59
- render() {
60
- let {
61
- entryTime,
62
- animationName,
63
- exitTime,
64
- isActive,
65
- animationList
66
- } = this.state;
67
- let animate = {
68
- width: '200px',
69
- height: '100px',
70
- background: 'var(--dot_black)',
71
- textAlign: 'center',
72
- color: 'var(--dot_white)',
73
- lineHeight: '100px'
74
- },
75
- field = {
76
- display: 'flex',
77
- justifyContent: 'space-between',
78
- padding: '20px 0'
79
- },
80
- box = {
81
- display: 'flex',
82
- alignItems: 'center',
83
- flexDirection: 'column'
84
- };
85
- return /*#__PURE__*/React.createElement("span", {
86
- style: box
87
- }, /*#__PURE__*/React.createElement("div", {
88
- style: {
89
- width: '50%'
90
- }
91
- }, /*#__PURE__*/React.createElement("div", {
92
- style: field
93
- }, /*#__PURE__*/React.createElement(Label, {
94
- text: "Name",
95
- size: "medium",
96
- palette: "default"
97
- }), /*#__PURE__*/React.createElement(Select, {
98
- onChange: this.handleSelect,
99
- options: animationList,
100
- selectedValue: animationName.id,
101
- id: "entryName"
102
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, {
103
- text: "Enter Duration(ms)",
104
- id: "entryTime",
105
- size: "medium",
106
- palette: "default"
107
- }), /*#__PURE__*/React.createElement(TextBox, {
108
- onChange: this.handleChange,
109
- value: entryTime,
110
- id: "entryTime"
111
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Label, {
112
- text: "Exit Duration(ms)",
113
- id: "exitTime",
114
- size: "medium",
115
- palette: "default"
116
- }), /*#__PURE__*/React.createElement(TextBox, {
117
- onChange: this.handleChange,
118
- value: exitTime,
119
- id: "exitTime"
120
- }))), /*#__PURE__*/React.createElement(Button, {
121
- onClick: this.handleView
122
- }, !isActive ? 'show' : 'hide')), /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
123
- name: animationName.text,
124
- enterDuration: entryTime,
125
- exitDuration: exitTime,
126
- isActive: isActive,
127
- component: Container,
128
- isCustomized: true,
129
- isFlex: false
130
- }, /*#__PURE__*/React.createElement("div", {
131
- style: animate
132
- }, "Animation")));
133
- }
134
- }
135
- if (false) {
136
- VelocityAnimationGroup__demo.docs = {
137
- componentGroup: 'Animation'
138
- };
139
- }