@zohodesk/components 1.0.0-alpha-252 → 1.0.0-alpha-253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/es/Avatar/Avatar.js +2 -1
- package/es/Card/props/defaultProps.js +0 -1
- package/es/Card/props/propTypes.js +2 -2
- package/es/DateTime/CalendarView.js +4 -2
- package/es/DateTime/DateTime.module.css +1 -0
- package/es/DateTime/DateTimePopupHeader.js +21 -8
- package/es/DateTime/DateWidget.js +4 -2
- package/es/DateTime/DaysRow.js +2 -1
- package/es/DateTime/YearView.js +12 -4
- package/es/DateTime/YearView.module.css +19 -1
- package/es/DropDown/DropDownHeading.js +3 -1
- package/es/DropDown/props/propTypes.js +2 -1
- package/es/Label/Label.js +4 -2
- package/es/Layout/props/propTypes.js +3 -3
- package/es/ListItem/ListContainer.js +4 -2
- package/es/MultiSelect/MultiSelect.js +4 -2
- package/es/MultiSelect/Suggestions.js +2 -1
- package/es/Responsive/CustomResponsive.js +7 -3
- package/es/Select/Select.js +7 -4
- package/es/Select/SelectWithIcon.js +2 -1
- package/es/Tab/Tabs.js +9 -4
- package/es/Tab/Tabs.module.css +1 -1
- package/es/Tooltip/Tooltip.js +4 -1
- package/es/index.js +107 -106
- package/lib/Avatar/Avatar.js +2 -1
- package/lib/Card/props/defaultProps.js +0 -1
- package/lib/Card/props/propTypes.js +2 -2
- package/lib/DateTime/CalendarView.js +4 -2
- package/lib/DateTime/DateTime.module.css +1 -0
- package/lib/DateTime/DateTimePopupHeader.js +21 -8
- package/lib/DateTime/DateWidget.js +4 -2
- package/lib/DateTime/DaysRow.js +2 -1
- package/lib/DateTime/YearView.js +12 -4
- package/lib/DateTime/YearView.module.css +19 -1
- package/lib/DropDown/DropDownHeading.js +3 -1
- package/lib/DropDown/props/propTypes.js +2 -1
- package/lib/Label/Label.js +4 -2
- package/lib/Layout/props/propTypes.js +3 -3
- package/lib/ListItem/ListContainer.js +4 -2
- package/lib/MultiSelect/MultiSelect.js +4 -2
- package/lib/MultiSelect/Suggestions.js +2 -1
- package/lib/Responsive/CustomResponsive.js +7 -3
- package/lib/Select/Select.js +7 -4
- package/lib/Select/SelectWithIcon.js +2 -1
- package/lib/Tab/Tabs.js +9 -4
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/Tooltip/Tooltip.js +4 -1
- package/lib/index.js +1 -842
- package/package.json +10 -5
- package/es/Accordion/docs/Accordion__Demo.docs.js +0 -78
- package/es/Animation/docs/Animation__default.docs.js +0 -32
- package/es/Animation/docs/Animation__fadeIn.docs.js +0 -32
- package/es/Animation/docs/Animation__scaleIn.docs.js +0 -32
- package/es/Animation/docs/Animation__skewIn.docs.js +0 -32
- package/es/Animation/docs/Animation__slideDown.docs.js +0 -32
- package/es/Animation/docs/Animation__slideLeft.docs.js +0 -32
- package/es/Animation/docs/Animation__zoomIn.docs.js +0 -32
- package/es/AppContainer/docs/AppContainer__default.docs.js +0 -18
- package/es/Avatar/docs/Avatar__custom.docs.js +0 -27
- package/es/Avatar/docs/Avatar__default.docs.js +0 -27
- package/es/Avatar/docs/Avatar__palette.docs.js +0 -47
- package/es/Avatar/docs/Avatar__text.docs.js +0 -26
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -71
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -29
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -48
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -47
- package/es/Button/docs/Button__custom.docs.js +0 -769
- package/es/Button/docs/Button__default.docs.js +0 -534
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +0 -35
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +0 -31
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +0 -40
- package/es/Card/docs/Card__Custom.docs.js +0 -32
- package/es/Card/docs/Card__Default.docs.js +0 -35
- package/es/Card/docs/Card__Scroll.docs.js +0 -56
- package/es/CheckBox/docs/CheckBox__custom.docs.js +0 -289
- package/es/CheckBox/docs/CheckBox__default.docs.js +0 -215
- package/es/DateTime/docs/DateTime__default.docs.js +0 -88
- package/es/DateTime/docs/DateWidget__default.docs.js +0 -178
- package/es/DateTime/docs/timezonedata.json +0 -1
- package/es/DropBox/docs/DropBox__custom.docs.js +0 -64
- package/es/DropBox/docs/DropBox__customOrder.docs.js +0 -85
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +0 -84
- package/es/DropBox/docs/DropBox__position.docs.js +0 -85
- package/es/DropBox/docs/DropBox__size.docs.js +0 -59
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +0 -21
- package/es/DropDown/docs/DropDownHeading__default.docs.js +0 -19
- package/es/Heading/docs/Heading__default.docs.js +0 -19
- package/es/Label/docs/Label__clipped.docs.js +0 -25
- package/es/Label/docs/Label__custom.docs.js +0 -28
- package/es/Label/docs/Label__palette.docs.js +0 -40
- package/es/Label/docs/Label__size.docs.js +0 -27
- package/es/Label/docs/Label__type.docs.js +0 -35
- package/es/Layout/docs/Layout__Hidden.docs.js +0 -76
- package/es/Layout/docs/Layout__default.docs.js +0 -48
- package/es/Layout/docs/Layout__four_Column.docs.js +0 -78
- package/es/Layout/docs/Layout__three_Column.docs.js +0 -75
- package/es/Layout/docs/Layout__two_Column.docs.js +0 -68
- package/es/LightNightMode/Colors.json +0 -497
- package/es/LightNightMode/docs/AlternativeColors.docs.js +0 -92
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -153
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -110
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -63
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -66
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +0 -60
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -89
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +0 -63
- package/es/ListItem/docs/ListItem__custom.docs.js +0 -112
- package/es/ListItem/docs/ListItem__default.docs.js +0 -80
- package/es/Modal/__docs__/Modal__default.docs.js +0 -42
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -118
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -108
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -137
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +0 -156
- package/es/PopOver/docs/PopOver__default.docs.js +0 -30
- package/es/Provider/docs/Provider_Id__Class.docs.js +0 -28
- package/es/Provider/docs/Provider_Id__Function.docs.js +0 -17
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +0 -31
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +0 -22
- package/es/Provider.js +0 -91
- package/es/Radio/docs/Radio__custom.docs.js +0 -241
- package/es/Radio/docs/Radio__default.docs.js +0 -165
- package/es/Responsive/docs/Responsive__Custom.docs.js +0 -214
- package/es/Responsive/docs/Responsive__default.docs.js +0 -95
- package/es/Responsive/docs/style.module.css +0 -56
- package/es/Ribbon/docs/Ribbon__custom.docs.js +0 -385
- package/es/Ribbon/docs/Ribbon__default.docs.js +0 -341
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +0 -433
- package/es/Select/docs/GroupSelect__default.docs.js +0 -144
- package/es/Select/docs/SelectWithAvatar__default.docs.js +0 -93
- package/es/Select/docs/SelectWithIcon__default.docs.js +0 -134
- package/es/Select/docs/Select__default.docs.js +0 -283
- package/es/Stencils/docs/Stencils__custom.docs.js +0 -43
- package/es/Stencils/docs/Stencils__default.docs.js +0 -48
- package/es/Switch/docs/Switch__custom.docs.js +0 -151
- package/es/Switch/docs/Switch__default.docs.js +0 -105
- package/es/Tab/docs/Tab__default.docs.js +0 -253
- package/es/Tab/docs/tabdocs.module.css +0 -29
- package/es/Tag/docs/Tag__custom.docs.js +0 -366
- package/es/Tag/docs/Tag__default.docs.js +0 -321
- package/es/TextBox/docs/TextBox__custom.docs.js +0 -41
- package/es/TextBox/docs/TextBox__default.docs.js +0 -38
- package/es/TextBox/docs/TextBox__size.docs.js +0 -36
- package/es/TextBox/docs/TextBox__variant.docs.js +0 -36
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -87
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -59
- package/es/Textarea/docs/Textarea__animated.docs.js +0 -39
- package/es/Textarea/docs/Textarea__custom.docs.js +0 -80
- package/es/Textarea/docs/Textarea__default.docs.js +0 -74
- package/es/Textarea/docs/Textarea__disabled.docs.js +0 -27
- package/es/Tooltip/docs/Tooltip__default.docs.js +0 -367
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -92
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -139
- package/es/common/docStyle.module.css +0 -766
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -65
- package/es/semantic/Button/docs/Button__default.docs.js +0 -17
- package/lib/Accordion/docs/Accordion__Demo.docs.js +0 -104
- package/lib/Animation/docs/Animation__default.docs.js +0 -61
- package/lib/Animation/docs/Animation__fadeIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__scaleIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__skewIn.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideDown.docs.js +0 -61
- package/lib/Animation/docs/Animation__slideLeft.docs.js +0 -61
- package/lib/Animation/docs/Animation__zoomIn.docs.js +0 -61
- package/lib/AppContainer/docs/AppContainer__default.docs.js +0 -47
- package/lib/Avatar/docs/Avatar__custom.docs.js +0 -62
- package/lib/Avatar/docs/Avatar__default.docs.js +0 -60
- package/lib/Avatar/docs/Avatar__palette.docs.js +0 -82
- package/lib/Avatar/docs/Avatar__text.docs.js +0 -61
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +0 -100
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +0 -58
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +0 -77
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +0 -76
- package/lib/Button/docs/Button__custom.docs.js +0 -800
- package/lib/Button/docs/Button__default.docs.js +0 -565
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +0 -64
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +0 -60
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +0 -71
- package/lib/Card/docs/Card__Custom.docs.js +0 -63
- package/lib/Card/docs/Card__Default.docs.js +0 -66
- package/lib/Card/docs/Card__Scroll.docs.js +0 -87
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +0 -323
- package/lib/CheckBox/docs/CheckBox__default.docs.js +0 -249
- package/lib/DateTime/docs/DateTime__default.docs.js +0 -119
- package/lib/DateTime/docs/DateWidget__default.docs.js +0 -212
- package/lib/DateTime/docs/timezonedata.json +0 -1
- package/lib/DropBox/docs/DropBox__custom.docs.js +0 -97
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +0 -114
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +0 -113
- package/lib/DropBox/docs/DropBox__position.docs.js +0 -118
- package/lib/DropBox/docs/DropBox__size.docs.js +0 -92
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +0 -50
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +0 -48
- package/lib/Heading/docs/Heading__default.docs.js +0 -50
- package/lib/Label/docs/Label__clipped.docs.js +0 -56
- package/lib/Label/docs/Label__custom.docs.js +0 -59
- package/lib/Label/docs/Label__palette.docs.js +0 -71
- package/lib/Label/docs/Label__size.docs.js +0 -58
- package/lib/Label/docs/Label__type.docs.js +0 -66
- package/lib/Layout/docs/Layout__Hidden.docs.js +0 -105
- package/lib/Layout/docs/Layout__default.docs.js +0 -77
- package/lib/Layout/docs/Layout__four_Column.docs.js +0 -107
- package/lib/Layout/docs/Layout__three_Column.docs.js +0 -104
- package/lib/Layout/docs/Layout__two_Column.docs.js +0 -97
- package/lib/LightNightMode/Colors.json +0 -497
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +0 -128
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +0 -182
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +0 -139
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +0 -95
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +0 -89
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +0 -118
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +0 -92
- package/lib/ListItem/docs/ListItem__custom.docs.js +0 -141
- package/lib/ListItem/docs/ListItem__default.docs.js +0 -109
- package/lib/Modal/__docs__/Modal__default.docs.js +0 -65
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +0 -154
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +0 -140
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +0 -165
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +0 -186
- package/lib/PopOver/docs/PopOver__default.docs.js +0 -61
- package/lib/Provider/docs/Provider_Id__Class.docs.js +0 -56
- package/lib/Provider/docs/Provider_Id__Function.docs.js +0 -24
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +0 -59
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +0 -29
- package/lib/Provider.js +0 -116
- package/lib/Radio/docs/Radio__custom.docs.js +0 -273
- package/lib/Radio/docs/Radio__default.docs.js +0 -197
- package/lib/Responsive/docs/Responsive__Custom.docs.js +0 -247
- package/lib/Responsive/docs/Responsive__default.docs.js +0 -118
- package/lib/Responsive/docs/style.module.css +0 -56
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +0 -414
- package/lib/Ribbon/docs/Ribbon__default.docs.js +0 -370
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +0 -462
- package/lib/Select/docs/GroupSelect__default.docs.js +0 -173
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +0 -124
- package/lib/Select/docs/SelectWithIcon__default.docs.js +0 -165
- package/lib/Select/docs/Select__default.docs.js +0 -313
- package/lib/Stencils/docs/Stencils__custom.docs.js +0 -72
- package/lib/Stencils/docs/Stencils__default.docs.js +0 -77
- package/lib/Switch/docs/Switch__custom.docs.js +0 -180
- package/lib/Switch/docs/Switch__default.docs.js +0 -134
- package/lib/Tab/docs/Tab__default.docs.js +0 -283
- package/lib/Tab/docs/tabdocs.module.css +0 -29
- package/lib/Tag/docs/Tag__custom.docs.js +0 -397
- package/lib/Tag/docs/Tag__default.docs.js +0 -352
- package/lib/TextBox/docs/TextBox__custom.docs.js +0 -72
- package/lib/TextBox/docs/TextBox__default.docs.js +0 -69
- package/lib/TextBox/docs/TextBox__size.docs.js +0 -67
- package/lib/TextBox/docs/TextBox__variant.docs.js +0 -67
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +0 -118
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +0 -90
- package/lib/Textarea/docs/Textarea__animated.docs.js +0 -70
- package/lib/Textarea/docs/Textarea__custom.docs.js +0 -111
- package/lib/Textarea/docs/Textarea__default.docs.js +0 -105
- package/lib/Textarea/docs/Textarea__disabled.docs.js +0 -58
- package/lib/Tooltip/docs/Tooltip__default.docs.js +0 -402
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +0 -123
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +0 -174
- package/lib/common/docStyle.module.css +0 -766
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +0 -111
- package/lib/semantic/Button/docs/Button__default.docs.js +0 -43
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _Textarea = _interopRequireDefault(require("../Textarea"));
|
|
10
|
-
var _CodeExtractor = _interopRequireDefault(require("@zohodesk/docstool/lib/CodeExtractor/CodeExtractor"));
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
19
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
20
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
21
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
-
var Textarea__disabled = /*#__PURE__*/function (_Component) {
|
|
25
|
-
_inherits(Textarea__disabled, _Component);
|
|
26
|
-
var _super = _createSuper(Textarea__disabled);
|
|
27
|
-
function Textarea__disabled() {
|
|
28
|
-
_classCallCheck(this, Textarea__disabled);
|
|
29
|
-
return _super.apply(this, arguments);
|
|
30
|
-
}
|
|
31
|
-
_createClass(Textarea__disabled, [{
|
|
32
|
-
key: "render",
|
|
33
|
-
value: function render() {
|
|
34
|
-
var style = {
|
|
35
|
-
marginBottom: '20px',
|
|
36
|
-
width: '350px'
|
|
37
|
-
};
|
|
38
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
-
style: style
|
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement(_CodeExtractor["default"], null, /*#__PURE__*/_react["default"].createElement(_Textarea["default"], {
|
|
41
|
-
value: "TextArea component description",
|
|
42
|
-
id: "textarea",
|
|
43
|
-
maxLength: 100,
|
|
44
|
-
onChange: function onChange() {},
|
|
45
|
-
isDisabled: true
|
|
46
|
-
})));
|
|
47
|
-
}
|
|
48
|
-
}]);
|
|
49
|
-
return Textarea__disabled;
|
|
50
|
-
}(_react.Component);
|
|
51
|
-
exports["default"] = Textarea__disabled;
|
|
52
|
-
if (false) {
|
|
53
|
-
Textarea__disabled.docs = {
|
|
54
|
-
componentGroup: 'Form Elements',
|
|
55
|
-
folderName: 'Style Guide',
|
|
56
|
-
description: ' '
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
10
|
-
var _Button = _interopRequireDefault(require("../../Button/Button"));
|
|
11
|
-
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
-
var Tooltip__default = /*#__PURE__*/function (_Component) {
|
|
26
|
-
_inherits(Tooltip__default, _Component);
|
|
27
|
-
var _super = _createSuper(Tooltip__default);
|
|
28
|
-
function Tooltip__default(props) {
|
|
29
|
-
var _this;
|
|
30
|
-
_classCallCheck(this, Tooltip__default);
|
|
31
|
-
_this = _super.call(this, props);
|
|
32
|
-
_this.tooltip = _this.tooltip.bind(_assertThisInitialized(_this));
|
|
33
|
-
return _this;
|
|
34
|
-
}
|
|
35
|
-
_createClass(Tooltip__default, [{
|
|
36
|
-
key: "tooltip",
|
|
37
|
-
value: function tooltip() {
|
|
38
|
-
var titleStyle = {
|
|
39
|
-
fontSize: '15px',
|
|
40
|
-
padding: '15px 0',
|
|
41
|
-
borderTop: '1px solid #e0e0e0',
|
|
42
|
-
marginTop: '20px'
|
|
43
|
-
},
|
|
44
|
-
inlineBlock = {
|
|
45
|
-
display: 'inline-block',
|
|
46
|
-
marginRight: '10px',
|
|
47
|
-
marginBottom: '5px'
|
|
48
|
-
},
|
|
49
|
-
dottedstyle = {
|
|
50
|
-
display: 'inline-flex',
|
|
51
|
-
width: '100px',
|
|
52
|
-
textOverflow: 'ellipsis',
|
|
53
|
-
whitepace: 'nowrap',
|
|
54
|
-
overflow: 'hidden',
|
|
55
|
-
marginRight: '10px',
|
|
56
|
-
whiteSpace: 'nowrap'
|
|
57
|
-
},
|
|
58
|
-
flex = {
|
|
59
|
-
display: 'inline-flex',
|
|
60
|
-
alignItems: 'center',
|
|
61
|
-
fontSize: '14px'
|
|
62
|
-
},
|
|
63
|
-
clampDotted = {
|
|
64
|
-
overflow: 'hidden',
|
|
65
|
-
display: '-webkit-box',
|
|
66
|
-
webkitLineClamp: '3',
|
|
67
|
-
webkitBoxOrient: 'vertical',
|
|
68
|
-
width: '100px',
|
|
69
|
-
fontSize: '14px',
|
|
70
|
-
background: 'var(--zdt_cta_primary_bg)',
|
|
71
|
-
padding: '3px 15px',
|
|
72
|
-
color: '#fff',
|
|
73
|
-
borderRadius: '4px',
|
|
74
|
-
marginBottom: '5px'
|
|
75
|
-
},
|
|
76
|
-
whiteSpaceNoWrap = {
|
|
77
|
-
overflow: 'hidden',
|
|
78
|
-
display: '-webkit-box',
|
|
79
|
-
webkitLineClamp: '3',
|
|
80
|
-
webkitBoxOrient: 'vertical',
|
|
81
|
-
whiteSpace: 'pre-wrap',
|
|
82
|
-
fontSize: '14px',
|
|
83
|
-
background: 'var(--zdt_cta_primary_bg)',
|
|
84
|
-
padding: '3px 15px',
|
|
85
|
-
color: '#fff',
|
|
86
|
-
borderRadius: '4px',
|
|
87
|
-
marginBottom: '5px',
|
|
88
|
-
width: '200px'
|
|
89
|
-
};
|
|
90
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
style: titleStyle
|
|
92
|
-
}, /*#__PURE__*/_react["default"].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["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
-
style: inlineBlock,
|
|
94
|
-
"data-title": "Register Account with Lengthy Content",
|
|
95
|
-
"data-title-position": "top"
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
97
|
-
text: "Lengthy",
|
|
98
|
-
palette: "primaryFilled"
|
|
99
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
|
-
style: inlineBlock,
|
|
101
|
-
"data-title": "I am Top Tooltip",
|
|
102
|
-
"data-title-position": "top"
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
104
|
-
text: "I am Top",
|
|
105
|
-
palette: "primaryFilled"
|
|
106
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
|
-
style: inlineBlock,
|
|
108
|
-
"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.",
|
|
109
|
-
"data-title-position": "top"
|
|
110
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
111
|
-
text: "No Space in Top ???",
|
|
112
|
-
palette: "primaryFilled"
|
|
113
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
-
style: dottedstyle,
|
|
115
|
-
"data-title": "I am Top Tooltip",
|
|
116
|
-
"data-title-position": "top"
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
118
|
-
text: "I am Top Tooltip",
|
|
119
|
-
palette: "primaryFilled"
|
|
120
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
121
|
-
style: inlineBlock,
|
|
122
|
-
"data-title": "<h2>HTML Heading</h2>",
|
|
123
|
-
"data-ishtml": true,
|
|
124
|
-
"data-title-position": "top"
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
126
|
-
text: "HTML in Tooltip",
|
|
127
|
-
palette: "primaryFilled"
|
|
128
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
|
-
style: inlineBlock,
|
|
130
|
-
"data-title": "Top Tooltip without Arrow",
|
|
131
|
-
"data-title-position": "top",
|
|
132
|
-
"data-tooltip-noarrow": true
|
|
133
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
134
|
-
text: "No Need Arrow",
|
|
135
|
-
palette: "primaryFilled"
|
|
136
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
-
style: clampDotted,
|
|
138
|
-
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
139
|
-
"data-title-position": "top"
|
|
140
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
-
style: whiteSpaceNoWrap,
|
|
142
|
-
"data-title": "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted",
|
|
143
|
-
"data-title-position": "top",
|
|
144
|
-
"data-title-wrap": "true"
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
146
|
-
style: titleStyle
|
|
147
|
-
}, /*#__PURE__*/_react["default"].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["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
148
|
-
style: inlineBlock,
|
|
149
|
-
"data-title": "Register Account with Lengthy Content",
|
|
150
|
-
"data-title-position": "bottom"
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
152
|
-
text: "Lengthy",
|
|
153
|
-
palette: "primaryFilled"
|
|
154
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
155
|
-
style: inlineBlock,
|
|
156
|
-
"data-title": "I am Bottom Tooltip",
|
|
157
|
-
"data-title-position": "bottom"
|
|
158
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
159
|
-
text: "I am Bottom",
|
|
160
|
-
palette: "primaryFilled"
|
|
161
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
162
|
-
style: inlineBlock,
|
|
163
|
-
"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.",
|
|
164
|
-
"data-title-position": "bottom"
|
|
165
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
166
|
-
text: "No Space in Bottom ???",
|
|
167
|
-
palette: "primaryFilled"
|
|
168
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
169
|
-
style: dottedstyle,
|
|
170
|
-
"data-title": "I am Bottom Tooltip",
|
|
171
|
-
"data-dottedTitle": "I am Bottom Tooltip with Dotted Content",
|
|
172
|
-
"data-title-position": "bottom"
|
|
173
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
174
|
-
text: "DottedDottedDottedDotted",
|
|
175
|
-
palette: "primaryFilled"
|
|
176
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
177
|
-
style: inlineBlock,
|
|
178
|
-
"data-title": "<span style=\"color:red\">HTML Heading</span>",
|
|
179
|
-
"data-ishtml": true,
|
|
180
|
-
"data-title-position": "bottom"
|
|
181
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
182
|
-
text: "HTML in Tooltip",
|
|
183
|
-
palette: "primaryFilled"
|
|
184
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
185
|
-
style: inlineBlock,
|
|
186
|
-
"data-title": "Bottom Tooltip without Arrow",
|
|
187
|
-
"data-title-position": "bottom",
|
|
188
|
-
"data-tooltip-noarrow": true
|
|
189
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
190
|
-
text: "No Need Arrow",
|
|
191
|
-
palette: "primaryFilled"
|
|
192
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
193
|
-
style: clampDotted,
|
|
194
|
-
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
195
|
-
"data-title-position": "bottom"
|
|
196
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
style: whiteSpaceNoWrap,
|
|
198
|
-
"data-title": "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted",
|
|
199
|
-
"data-title-position": "bottom",
|
|
200
|
-
"data-title-wrap": "true"
|
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
|
-
style: titleStyle
|
|
203
|
-
}, /*#__PURE__*/_react["default"].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["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
204
|
-
style: inlineBlock,
|
|
205
|
-
"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.",
|
|
206
|
-
"data-title-position": "left"
|
|
207
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
208
|
-
text: "Lengthy",
|
|
209
|
-
palette: "primaryFilled"
|
|
210
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
211
|
-
style: inlineBlock,
|
|
212
|
-
"data-title": "Left Tooltip",
|
|
213
|
-
"data-title-position": "left"
|
|
214
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
215
|
-
text: "I am Left",
|
|
216
|
-
palette: "primaryFilled"
|
|
217
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
218
|
-
style: inlineBlock,
|
|
219
|
-
"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.",
|
|
220
|
-
"data-title-position": "left"
|
|
221
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
222
|
-
text: "No Space in Left ???",
|
|
223
|
-
palette: "primaryFilled"
|
|
224
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
225
|
-
style: dottedstyle,
|
|
226
|
-
"data-title": "I am Left Tooltip",
|
|
227
|
-
"data-dottedTitle": "I am Left Tooltip with Dotted Content",
|
|
228
|
-
"data-title-position": "left"
|
|
229
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
230
|
-
text: "DottedDottedDottedDotted",
|
|
231
|
-
palette: "primaryFilled"
|
|
232
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
233
|
-
style: inlineBlock,
|
|
234
|
-
"data-title": "<div style=\"width:500px;height:50px;background:#fff;color:orange;\">HTML Heading</div>",
|
|
235
|
-
"data-ishtml": true,
|
|
236
|
-
"data-title-position": "left"
|
|
237
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
238
|
-
text: "HTML in Tooltip",
|
|
239
|
-
palette: "primaryFilled"
|
|
240
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
241
|
-
style: inlineBlock,
|
|
242
|
-
"data-title": "Left Tooltip without Arrow",
|
|
243
|
-
"data-title-position": "left",
|
|
244
|
-
"data-tooltip-noarrow": true
|
|
245
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
246
|
-
text: "No Need Arrow",
|
|
247
|
-
palette: "primaryFilled"
|
|
248
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
249
|
-
style: clampDotted,
|
|
250
|
-
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
251
|
-
"data-title-position": "left"
|
|
252
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
253
|
-
style: whiteSpaceNoWrap,
|
|
254
|
-
"data-title": "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted",
|
|
255
|
-
"data-title-position": "left",
|
|
256
|
-
"data-title-wrap": "true"
|
|
257
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
258
|
-
style: titleStyle
|
|
259
|
-
}, /*#__PURE__*/_react["default"].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["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
260
|
-
style: inlineBlock,
|
|
261
|
-
"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.",
|
|
262
|
-
"data-title-position": "right"
|
|
263
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
264
|
-
text: "Lengthy",
|
|
265
|
-
palette: "primaryFilled"
|
|
266
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
267
|
-
style: inlineBlock,
|
|
268
|
-
"data-title": "Right Tooltip",
|
|
269
|
-
"data-title-position": "right"
|
|
270
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
271
|
-
text: "I am Right",
|
|
272
|
-
palette: "primaryFilled"
|
|
273
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
274
|
-
style: inlineBlock,
|
|
275
|
-
"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.",
|
|
276
|
-
"data-title-position": "right"
|
|
277
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
278
|
-
text: "No Space in Right ???",
|
|
279
|
-
palette: "primaryFilled"
|
|
280
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
281
|
-
style: dottedstyle,
|
|
282
|
-
"data-title": "I am Right Tooltip",
|
|
283
|
-
"data-dottedTitle": "I am Right Tooltip with Dotted Content",
|
|
284
|
-
"data-title-position": "right"
|
|
285
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
286
|
-
text: "DottedDottedDottedDotted",
|
|
287
|
-
palette: "primaryFilled"
|
|
288
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
289
|
-
style: inlineBlock,
|
|
290
|
-
"data-title": "<i>HTML Heading</i>",
|
|
291
|
-
"data-ishtml": true,
|
|
292
|
-
"data-title-position": "right"
|
|
293
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
294
|
-
text: "HTML in Tooltip",
|
|
295
|
-
palette: "primaryFilled"
|
|
296
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
297
|
-
style: inlineBlock,
|
|
298
|
-
"data-title": "Right Tooltip without Arrow",
|
|
299
|
-
"data-title-position": "right",
|
|
300
|
-
"data-tooltip-noarrow": true
|
|
301
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
302
|
-
text: "No Need Arrow",
|
|
303
|
-
palette: "primaryFilled"
|
|
304
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
305
|
-
style: clampDotted,
|
|
306
|
-
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted",
|
|
307
|
-
"data-title-position": "right"
|
|
308
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
309
|
-
style: whiteSpaceNoWrap,
|
|
310
|
-
"data-title": "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted",
|
|
311
|
-
"data-title-position": "right",
|
|
312
|
-
"data-title-wrap": "true"
|
|
313
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
314
|
-
style: titleStyle
|
|
315
|
-
}, /*#__PURE__*/_react["default"].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["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
|
-
style: inlineBlock,
|
|
317
|
-
"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."
|
|
318
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
319
|
-
text: "Lengthy",
|
|
320
|
-
palette: "primaryFilled"
|
|
321
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
322
|
-
style: inlineBlock,
|
|
323
|
-
"data-title": "Normal Tooltip"
|
|
324
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
325
|
-
text: "I am Normal",
|
|
326
|
-
palette: "primaryFilled"
|
|
327
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
328
|
-
style: inlineBlock,
|
|
329
|
-
"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"
|
|
330
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
331
|
-
text: "No Space in Top/Bottom ???",
|
|
332
|
-
palette: "primaryFilled"
|
|
333
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
334
|
-
style: dottedstyle,
|
|
335
|
-
"data-title": "I am Default Tooltip",
|
|
336
|
-
"data-dottedTitle": "I am Default Tooltip with Dotted Content"
|
|
337
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
338
|
-
text: "DottedDottedDottedDotted",
|
|
339
|
-
palette: "primaryFilled"
|
|
340
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
341
|
-
style: inlineBlock,
|
|
342
|
-
"data-title": "<b style=\"color:yellow;background:orange;\">HTML Heading</b>",
|
|
343
|
-
"data-ishtml": true
|
|
344
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
345
|
-
text: "HTML in Tooltip",
|
|
346
|
-
palette: "primaryFilled"
|
|
347
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
348
|
-
style: inlineBlock,
|
|
349
|
-
"data-title": "Tooltip without Arrow",
|
|
350
|
-
"data-tooltip-noarrow": true
|
|
351
|
-
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
352
|
-
text: "No Need Arrow",
|
|
353
|
-
palette: "primaryFilled"
|
|
354
|
-
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
355
|
-
style: clampDotted,
|
|
356
|
-
"data-title": "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted"
|
|
357
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted Multiple Line Dotted Multiple Line Dotted")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
358
|
-
style: whiteSpaceNoWrap,
|
|
359
|
-
"data-title": "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted",
|
|
360
|
-
"data-title-wrap": "true"
|
|
361
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, "Multiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted\nMultiple Line Dotted")));
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
key: "render",
|
|
365
|
-
value: function render() {
|
|
366
|
-
var _this2 = this;
|
|
367
|
-
var parent = {
|
|
368
|
-
display: 'flex'
|
|
369
|
-
},
|
|
370
|
-
split = {
|
|
371
|
-
padding: '20px',
|
|
372
|
-
width: '50%'
|
|
373
|
-
},
|
|
374
|
-
dark = {
|
|
375
|
-
background: '#2c334d',
|
|
376
|
-
padding: '20px',
|
|
377
|
-
width: '50%',
|
|
378
|
-
color: '#fff'
|
|
379
|
-
};
|
|
380
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
381
|
-
onMouseOver: function onMouseOver(e) {
|
|
382
|
-
return _this2.tooltipRef && _this2.tooltipRef.handleOver(e);
|
|
383
|
-
}
|
|
384
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
385
|
-
style: parent
|
|
386
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
387
|
-
style: split
|
|
388
|
-
}, this.tooltip()), /*#__PURE__*/_react["default"].createElement("div", {
|
|
389
|
-
style: dark
|
|
390
|
-
}, this.tooltip())));
|
|
391
|
-
}
|
|
392
|
-
}]);
|
|
393
|
-
return Tooltip__default;
|
|
394
|
-
}(_react.Component);
|
|
395
|
-
exports["default"] = Tooltip__default;
|
|
396
|
-
if (false) {
|
|
397
|
-
Tooltip__default.docs = {
|
|
398
|
-
componentGroup: 'Atom',
|
|
399
|
-
folderName: 'Style Guide',
|
|
400
|
-
description: ' '
|
|
401
|
-
};
|
|
402
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _Select = _interopRequireDefault(require("../../../Select/Select"));
|
|
11
|
-
var _Button = _interopRequireDefault(require("../../../Button/Button"));
|
|
12
|
-
var _VelocityAnimation = _interopRequireDefault(require("../VelocityAnimation"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
19
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
20
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
21
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
|
-
var animationList = [{
|
|
25
|
-
text: 'fade',
|
|
26
|
-
id: 'animate-1'
|
|
27
|
-
}, {
|
|
28
|
-
text: 'slideDown',
|
|
29
|
-
id: 'animate-2'
|
|
30
|
-
}, {
|
|
31
|
-
text: 'flyDown',
|
|
32
|
-
id: 'animate-3'
|
|
33
|
-
}, {
|
|
34
|
-
text: 'slideRight',
|
|
35
|
-
id: 'animate-4'
|
|
36
|
-
}, {
|
|
37
|
-
text: 'shrink',
|
|
38
|
-
id: 'animate-5'
|
|
39
|
-
}, {
|
|
40
|
-
text: 'expand',
|
|
41
|
-
id: 'animate-6'
|
|
42
|
-
}, {
|
|
43
|
-
text: 'slideLeft',
|
|
44
|
-
id: 'animate-7'
|
|
45
|
-
}];
|
|
46
|
-
var VelocityAnimation__demo = /*#__PURE__*/function (_React$Component) {
|
|
47
|
-
_inherits(VelocityAnimation__demo, _React$Component);
|
|
48
|
-
var _super = _createSuper(VelocityAnimation__demo);
|
|
49
|
-
function VelocityAnimation__demo(props) {
|
|
50
|
-
var _this;
|
|
51
|
-
_classCallCheck(this, VelocityAnimation__demo);
|
|
52
|
-
_this = _super.call(this, props);
|
|
53
|
-
_this.state = {
|
|
54
|
-
value: animationList[0],
|
|
55
|
-
isActive: false
|
|
56
|
-
};
|
|
57
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
58
|
-
_this.handleView = _this.handleView.bind(_assertThisInitialized(_this));
|
|
59
|
-
return _this;
|
|
60
|
-
}
|
|
61
|
-
_createClass(VelocityAnimation__demo, [{
|
|
62
|
-
key: "handleChange",
|
|
63
|
-
value: function handleChange(fieldId, value) {
|
|
64
|
-
this.setState({
|
|
65
|
-
value: value
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
key: "handleView",
|
|
70
|
-
value: function handleView() {
|
|
71
|
-
this.setState({
|
|
72
|
-
isActive: !this.state.isActive
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
key: "render",
|
|
77
|
-
value: function render() {
|
|
78
|
-
var _this$state = this.state,
|
|
79
|
-
value = _this$state.value,
|
|
80
|
-
isActive = _this$state.isActive;
|
|
81
|
-
var animate = {
|
|
82
|
-
width: '200px',
|
|
83
|
-
height: '100px',
|
|
84
|
-
background: 'var(--dot_black)',
|
|
85
|
-
textAlign: 'center',
|
|
86
|
-
color: 'var(--dot_white)',
|
|
87
|
-
lineHeight: '100px'
|
|
88
|
-
};
|
|
89
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
-
style: {
|
|
91
|
-
width: '30%',
|
|
92
|
-
display: 'flex',
|
|
93
|
-
justifyContent: 'space-around'
|
|
94
|
-
}
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
96
|
-
onChange: this.handleChange,
|
|
97
|
-
options: animationList,
|
|
98
|
-
selectedValue: value.id
|
|
99
|
-
}), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
100
|
-
onClick: this.handleView
|
|
101
|
-
}, !isActive ? 'show' : 'hide')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
102
|
-
style: {
|
|
103
|
-
display: 'flex',
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
flexDirection: 'column'
|
|
106
|
-
}
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement(_VelocityAnimation["default"], {
|
|
108
|
-
isActive: isActive,
|
|
109
|
-
name: value.text,
|
|
110
|
-
duration: 300
|
|
111
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
-
style: animate
|
|
113
|
-
}, "Animation"))));
|
|
114
|
-
}
|
|
115
|
-
}]);
|
|
116
|
-
return VelocityAnimation__demo;
|
|
117
|
-
}(_react["default"].Component);
|
|
118
|
-
exports["default"] = VelocityAnimation__demo;
|
|
119
|
-
if (false) {
|
|
120
|
-
VelocityAnimation__demo.docs = {
|
|
121
|
-
componentGroup: 'Animation'
|
|
122
|
-
};
|
|
123
|
-
}
|