@sb1/ffe-form-react 10.0.1 → 10.0.2
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/es/BaseFieldMessage.js +5 -11
- package/es/BaseRadioButton.js +10 -47
- package/es/Checkbox.js +4 -12
- package/es/ErrorFieldMessage.js +0 -3
- package/es/InfoFieldMessage.js +0 -3
- package/es/Input.js +4 -12
- package/es/InputGroup.js +13 -41
- package/es/Label.js +4 -11
- package/es/PhoneNumber.js +14 -50
- package/es/RadioBlock.js +11 -48
- package/es/RadioButton.js +2 -10
- package/es/RadioButtonInputGroup.js +11 -35
- package/es/RadioSwitch.js +9 -25
- package/es/SuccessFieldMessage.js +0 -3
- package/es/TextArea.js +1 -6
- package/es/ToggleSwitch.js +8 -44
- package/es/Tooltip.js +7 -38
- package/lib/BaseFieldMessage.js +4 -15
- package/lib/BaseRadioButton.js +10 -55
- package/lib/Checkbox.js +4 -22
- package/lib/ErrorFieldMessage.js +0 -6
- package/lib/InfoFieldMessage.js +0 -6
- package/lib/Input.js +4 -18
- package/lib/InputGroup.js +13 -52
- package/lib/Label.js +4 -15
- package/lib/PhoneNumber.js +14 -57
- package/lib/RadioBlock.js +11 -55
- package/lib/RadioButton.js +2 -15
- package/lib/RadioButtonInputGroup.js +11 -41
- package/lib/RadioSwitch.js +9 -33
- package/lib/SuccessFieldMessage.js +0 -6
- package/lib/TextArea.js +1 -12
- package/lib/ToggleSwitch.js +8 -50
- package/lib/Tooltip.js +7 -44
- package/lib/i18n/i18n.js +0 -5
- package/lib/index.js +0 -16
- package/package.json +47 -47
package/es/RadioBlock.js
CHANGED
|
@@ -1,77 +1,51 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
|
|
3
2
|
var _excluded = ["checked", "children", "className", "innerRef", "label", "labelClass", "name", "selectedValue", "showChildren", "value"];
|
|
4
|
-
|
|
5
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
|
|
9
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
|
|
11
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
|
-
|
|
13
7
|
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); } }
|
|
14
|
-
|
|
15
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
|
|
17
9
|
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
|
-
|
|
19
10
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
|
|
21
11
|
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); }; }
|
|
22
|
-
|
|
23
12
|
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); }
|
|
24
|
-
|
|
25
13
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
|
|
27
14
|
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; } }
|
|
28
|
-
|
|
29
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
-
|
|
31
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
32
|
-
|
|
33
17
|
import React, { Component } from 'react';
|
|
34
18
|
import { bool, node, oneOfType, string, func, object, shape } from 'prop-types';
|
|
35
19
|
import classNames from 'classnames';
|
|
36
20
|
import { v4 as uuid } from 'uuid';
|
|
37
|
-
|
|
38
21
|
var RadioBlock = /*#__PURE__*/function (_Component) {
|
|
39
22
|
_inherits(RadioBlock, _Component);
|
|
40
|
-
|
|
41
23
|
var _super = _createSuper(RadioBlock);
|
|
42
|
-
|
|
43
24
|
function RadioBlock() {
|
|
44
25
|
var _this;
|
|
45
|
-
|
|
46
26
|
_classCallCheck(this, RadioBlock);
|
|
47
|
-
|
|
48
27
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
28
|
args[_key] = arguments[_key];
|
|
50
29
|
}
|
|
51
|
-
|
|
52
30
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
53
|
-
|
|
54
31
|
_defineProperty(_assertThisInitialized(_this), "id", "radio-block-".concat(uuid()));
|
|
55
|
-
|
|
56
32
|
return _this;
|
|
57
33
|
}
|
|
58
|
-
|
|
59
34
|
_createClass(RadioBlock, [{
|
|
60
35
|
key: "render",
|
|
61
36
|
value: function render() {
|
|
62
37
|
var _this$props = this.props,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
38
|
+
checked = _this$props.checked,
|
|
39
|
+
children = _this$props.children,
|
|
40
|
+
className = _this$props.className,
|
|
41
|
+
innerRef = _this$props.innerRef,
|
|
42
|
+
label = _this$props.label,
|
|
43
|
+
labelClass = _this$props.labelClass,
|
|
44
|
+
name = _this$props.name,
|
|
45
|
+
selectedValue = _this$props.selectedValue,
|
|
46
|
+
showChildren = _this$props.showChildren,
|
|
47
|
+
value = _this$props.value,
|
|
48
|
+
inputProps = _objectWithoutProperties(_this$props, _excluded);
|
|
75
49
|
var isSelected = checked || selectedValue === value;
|
|
76
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
77
51
|
className: classNames('ffe-radio-block', className)
|
|
@@ -97,40 +71,29 @@ var RadioBlock = /*#__PURE__*/function (_Component) {
|
|
|
97
71
|
}, children)));
|
|
98
72
|
}
|
|
99
73
|
}]);
|
|
100
|
-
|
|
101
74
|
return RadioBlock;
|
|
102
75
|
}(Component);
|
|
103
|
-
|
|
104
76
|
RadioBlock.propTypes = {
|
|
105
77
|
/** Whether or not the radio block is selected */
|
|
106
78
|
checked: bool,
|
|
107
|
-
|
|
108
79
|
/** The content rendered when choice is selected */
|
|
109
80
|
children: node,
|
|
110
|
-
|
|
111
81
|
/** Additional class names applied to the outer div */
|
|
112
82
|
className: string,
|
|
113
|
-
|
|
114
83
|
/** Ref-setting function, or ref created by useRef, passed to the input element */
|
|
115
84
|
innerRef: oneOfType([func, shape({
|
|
116
85
|
current: object
|
|
117
86
|
})]),
|
|
118
|
-
|
|
119
87
|
/** The always visible label of the radio block */
|
|
120
88
|
label: oneOfType([node, string]).isRequired,
|
|
121
|
-
|
|
122
89
|
/** Additional class names applied to the label element */
|
|
123
90
|
labelClass: string,
|
|
124
|
-
|
|
125
91
|
/** The name of the radio button set */
|
|
126
92
|
name: string.isRequired,
|
|
127
|
-
|
|
128
93
|
/** The selected value of the radio button set */
|
|
129
94
|
selectedValue: string,
|
|
130
|
-
|
|
131
95
|
/** Whether or not children are always visible */
|
|
132
96
|
showChildren: bool,
|
|
133
|
-
|
|
134
97
|
/** The value of the radio block */
|
|
135
98
|
value: string.isRequired
|
|
136
99
|
};
|
package/es/RadioButton.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
var _excluded = ["className", "inline"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import { bool, string } from 'prop-types';
|
|
11
7
|
import classNames from 'classnames';
|
|
12
8
|
import BaseRadioButton from './BaseRadioButton';
|
|
13
|
-
|
|
14
9
|
var RadioButton = function RadioButton(props) {
|
|
15
10
|
var className = props.className,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
inline = props.inline,
|
|
12
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
19
13
|
return /*#__PURE__*/React.createElement(BaseRadioButton, _extends({
|
|
20
14
|
className: classNames('ffe-radio-button', {
|
|
21
15
|
'ffe-radio-button--inline': inline
|
|
22
16
|
}, className)
|
|
23
17
|
}, rest));
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
RadioButton.propTypes = {
|
|
27
20
|
/** Additional class names applied to the label */
|
|
28
21
|
className: string,
|
|
29
|
-
|
|
30
22
|
/** Indicates whether the radio button is rendered inline or as a block */
|
|
31
23
|
inline: bool
|
|
32
24
|
};
|
|
@@ -1,46 +1,34 @@
|
|
|
1
1
|
var _excluded = ["children", "className", "extraMargin", "description", "fieldMessage", "inline", "label", "name", "selectedValue", "tooltip"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
-
|
|
7
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
-
|
|
9
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
-
|
|
11
6
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
-
|
|
13
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
14
|
-
|
|
15
8
|
import React from 'react';
|
|
16
9
|
import { bool, func, oneOfType, oneOf, node, string, number } from 'prop-types';
|
|
17
10
|
import classNames from 'classnames';
|
|
18
11
|
import ErrorFieldMessage from './ErrorFieldMessage';
|
|
19
12
|
import Tooltip from './Tooltip';
|
|
20
|
-
|
|
21
13
|
var RadioButtonInputGroup = function RadioButtonInputGroup(props) {
|
|
22
14
|
var children = props.children,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
className = props.className,
|
|
16
|
+
extraMargin = props.extraMargin,
|
|
17
|
+
description = props.description,
|
|
18
|
+
fieldMessage = props.fieldMessage,
|
|
19
|
+
inline = props.inline,
|
|
20
|
+
label = props.label,
|
|
21
|
+
name = props.name,
|
|
22
|
+
selectedValue = props.selectedValue,
|
|
23
|
+
tooltip = props.tooltip,
|
|
24
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
34
25
|
if (tooltip && description) {
|
|
35
26
|
throw new Error('Don\'t use both "tooltip" and "description" on an <RadioButtonInputGroup />, pick one of them');
|
|
36
27
|
}
|
|
37
|
-
|
|
38
28
|
var buttonProps = {
|
|
39
29
|
inline: inline,
|
|
40
30
|
name: name,
|
|
41
|
-
onChange:
|
|
42
|
-
/* istanbul ignore next */
|
|
43
|
-
function onChange(f) {
|
|
31
|
+
onChange: /* istanbul ignore next */function onChange(f) {
|
|
44
32
|
return f;
|
|
45
33
|
},
|
|
46
34
|
selectedValue: selectedValue
|
|
@@ -59,58 +47,46 @@ var RadioButtonInputGroup = function RadioButtonInputGroup(props) {
|
|
|
59
47
|
element: "p"
|
|
60
48
|
}, fieldMessage), /*#__PURE__*/React.isValidElement(fieldMessage) && fieldMessage);
|
|
61
49
|
};
|
|
62
|
-
|
|
63
50
|
RadioButtonInputGroup.propTypes = {
|
|
64
51
|
/**
|
|
65
52
|
* Indicates whether the radio buttons inside this radio button group is
|
|
66
53
|
* invalid or not. Propagated to all children.
|
|
67
54
|
* */
|
|
68
55
|
'aria-invalid': oneOf(['true', 'false']),
|
|
69
|
-
|
|
70
56
|
/**
|
|
71
57
|
* Function receiving props relevant to each radio button as an object
|
|
72
58
|
* argument. Expected to return a set of radio buttons, which should get
|
|
73
59
|
* these properties applied to them.
|
|
74
60
|
* */
|
|
75
61
|
children: func.isRequired,
|
|
76
|
-
|
|
77
62
|
/** Additional class names applied to the fieldset */
|
|
78
63
|
className: string,
|
|
79
|
-
|
|
80
64
|
/** To just render a static, always visible tooltip, use this. */
|
|
81
65
|
description: oneOfType([node, string]),
|
|
82
|
-
|
|
83
66
|
/** Reserve space for showing `fieldMessage`s so content below don't move
|
|
84
67
|
* vertically if an errormessage shows up. Note that this will only reserve
|
|
85
68
|
* space for one line of content, so keep messages short.
|
|
86
69
|
*/
|
|
87
70
|
extraMargin: bool,
|
|
88
|
-
|
|
89
71
|
/** String or ErrorFieldMessage component with message */
|
|
90
72
|
fieldMessage: oneOfType([node, string]),
|
|
91
|
-
|
|
92
73
|
/**
|
|
93
74
|
* Indicates whether the radio buttons inside this radio button group is
|
|
94
75
|
* rendered inline or as a block.
|
|
95
76
|
* */
|
|
96
77
|
inline: bool,
|
|
97
|
-
|
|
98
78
|
/**
|
|
99
79
|
* The text describing the radio button set. Note that if you don't use this
|
|
100
80
|
* prop but provide your own label you should make sure your solution passes
|
|
101
81
|
* acessibility validation using a tool such as aXe DevTools.
|
|
102
82
|
*/
|
|
103
83
|
label: oneOfType([node, string]),
|
|
104
|
-
|
|
105
84
|
/** The name of the radio button, required to avoid missing name */
|
|
106
85
|
name: string.isRequired,
|
|
107
|
-
|
|
108
86
|
/** Change handler, receives value of selected radio button */
|
|
109
87
|
onChange: func,
|
|
110
|
-
|
|
111
88
|
/** The currently selected value */
|
|
112
89
|
selectedValue: oneOfType([bool, string, number]),
|
|
113
|
-
|
|
114
90
|
/**
|
|
115
91
|
* String or Tooltip component with further detail about the radio button
|
|
116
92
|
* set
|
package/es/RadioSwitch.js
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
var _excluded = ["className", "leftLabel", "leftValue", "leftInnerRef", "rightLabel", "rightValue", "rightInnerRef", "condensed", "aria-invalid"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
-
|
|
9
5
|
import React, { Fragment } from 'react';
|
|
10
6
|
import { bool, oneOf, oneOfType, string, number, func, object, shape } from 'prop-types';
|
|
11
7
|
import classNames from 'classnames';
|
|
12
8
|
import BaseRadioButton from './BaseRadioButton';
|
|
13
|
-
|
|
14
9
|
var RadioSwitch = function RadioSwitch(props) {
|
|
15
10
|
var className = props.className,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
leftLabel = props.leftLabel,
|
|
12
|
+
leftValue = props.leftValue,
|
|
13
|
+
leftInnerRef = props.leftInnerRef,
|
|
14
|
+
rightLabel = props.rightLabel,
|
|
15
|
+
rightValue = props.rightValue,
|
|
16
|
+
rightInnerRef = props.rightInnerRef,
|
|
17
|
+
condensed = props.condensed,
|
|
18
|
+
ariaInvalid = props['aria-invalid'],
|
|
19
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
26
20
|
var noneSelected = [null, undefined, ''].includes(props.selectedValue);
|
|
27
21
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BaseRadioButton, _extends({
|
|
28
22
|
className: classNames('ffe-radio-switch', className, {
|
|
@@ -40,39 +34,29 @@ var RadioSwitch = function RadioSwitch(props) {
|
|
|
40
34
|
"aria-invalid": String(ariaInvalid === 'true' && (props.selectedValue === rightValue || noneSelected))
|
|
41
35
|
}, rest), rightLabel));
|
|
42
36
|
};
|
|
43
|
-
|
|
44
37
|
RadioSwitch.propTypes = {
|
|
45
38
|
/** Additional class names applied to both radio buttons */
|
|
46
39
|
className: string,
|
|
47
|
-
|
|
48
40
|
/** The label of the choice to the left */
|
|
49
41
|
leftLabel: string.isRequired,
|
|
50
|
-
|
|
51
42
|
/** The value of the choice to the left */
|
|
52
43
|
leftValue: oneOfType([bool, string, number]).isRequired,
|
|
53
|
-
|
|
54
44
|
/** Ref-setting function, or ref created by useRef, passed to the input element */
|
|
55
45
|
leftInnerRef: oneOfType([func, shape({
|
|
56
46
|
current: object
|
|
57
47
|
})]),
|
|
58
|
-
|
|
59
48
|
/** The label of the choice to the right */
|
|
60
49
|
rightLabel: string.isRequired,
|
|
61
|
-
|
|
62
50
|
/** The value of the choice to the right */
|
|
63
51
|
rightValue: oneOfType([bool, string, number]).isRequired,
|
|
64
|
-
|
|
65
52
|
/** Ref-setting function, or ref created by useRef, passed to the input element */
|
|
66
53
|
rightInnerRef: oneOfType([func, shape({
|
|
67
54
|
current: object
|
|
68
55
|
})]),
|
|
69
|
-
|
|
70
56
|
/** The selected value of the radio button set */
|
|
71
57
|
selectedValue: oneOfType([bool, string, number]),
|
|
72
|
-
|
|
73
58
|
/** Condensed modifier. Use in condensed designs */
|
|
74
59
|
condensed: bool,
|
|
75
|
-
|
|
76
60
|
/**
|
|
77
61
|
* Indicates whether the radio buttons inside this radio button group is
|
|
78
62
|
* invalid or not. Propagated to all children.
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import BaseFieldMessage from './BaseFieldMessage';
|
|
5
|
-
|
|
6
4
|
var SuccessFieldMessage = function SuccessFieldMessage(props) {
|
|
7
5
|
return /*#__PURE__*/React.createElement(BaseFieldMessage, _extends({}, props, {
|
|
8
6
|
type: "success"
|
|
9
7
|
}));
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
export default SuccessFieldMessage;
|
package/es/TextArea.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
var _excluded = ["className"];
|
|
2
|
-
|
|
3
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
|
|
5
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
|
-
|
|
9
5
|
import React from 'react';
|
|
10
6
|
import { string } from 'prop-types';
|
|
11
7
|
import classNames from 'classnames';
|
|
12
8
|
var TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
13
9
|
var className = props.className,
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
16
11
|
return /*#__PURE__*/React.createElement("textarea", _extends({
|
|
17
12
|
className: classNames('ffe-textarea', className),
|
|
18
13
|
ref: ref
|
package/es/ToggleSwitch.js
CHANGED
|
@@ -1,75 +1,49 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
|
|
3
2
|
var _excluded = ["children", "className", "description", "hideOnOff", "onText", "offText", "id"];
|
|
4
|
-
|
|
5
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
|
|
9
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
|
|
11
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
|
-
|
|
13
7
|
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); } }
|
|
14
|
-
|
|
15
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
|
|
17
9
|
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
|
-
|
|
19
10
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
|
|
21
11
|
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); }; }
|
|
22
|
-
|
|
23
12
|
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); }
|
|
24
|
-
|
|
25
13
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
|
|
27
14
|
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; } }
|
|
28
|
-
|
|
29
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
-
|
|
31
16
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
32
|
-
|
|
33
17
|
import React from 'react';
|
|
34
18
|
import { bool, node, string, oneOf } from 'prop-types';
|
|
35
19
|
import { v4 as uuidv4 } from 'uuid';
|
|
36
20
|
import classNames from 'classnames';
|
|
37
21
|
import i18n from './i18n/i18n';
|
|
38
|
-
|
|
39
22
|
var ToggleSwitch = /*#__PURE__*/function (_React$Component) {
|
|
40
23
|
_inherits(ToggleSwitch, _React$Component);
|
|
41
|
-
|
|
42
24
|
var _super = _createSuper(ToggleSwitch);
|
|
43
|
-
|
|
44
25
|
function ToggleSwitch() {
|
|
45
26
|
var _this;
|
|
46
|
-
|
|
47
27
|
_classCallCheck(this, ToggleSwitch);
|
|
48
|
-
|
|
49
28
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
29
|
args[_key] = arguments[_key];
|
|
51
30
|
}
|
|
52
|
-
|
|
53
31
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
54
|
-
|
|
55
32
|
_defineProperty(_assertThisInitialized(_this), "id", "toggle-".concat(uuidv4()));
|
|
56
|
-
|
|
57
33
|
return _this;
|
|
58
34
|
}
|
|
59
|
-
|
|
60
35
|
_createClass(ToggleSwitch, [{
|
|
61
36
|
key: "render",
|
|
62
37
|
value: function render() {
|
|
63
38
|
var _this$props = this.props,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
39
|
+
children = _this$props.children,
|
|
40
|
+
className = _this$props.className,
|
|
41
|
+
description = _this$props.description,
|
|
42
|
+
hideOnOff = _this$props.hideOnOff,
|
|
43
|
+
onText = _this$props.onText,
|
|
44
|
+
offText = _this$props.offText,
|
|
45
|
+
id = _this$props.id,
|
|
46
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
73
47
|
var supportedLocales = ['nb', 'nn', 'en'];
|
|
74
48
|
var text = i18n[supportedLocales.indexOf(this.props.locale) !== -1 ? this.props.locale : 'nb'];
|
|
75
49
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -100,35 +74,25 @@ var ToggleSwitch = /*#__PURE__*/function (_React$Component) {
|
|
|
100
74
|
}, onText ? onText : text.ON)));
|
|
101
75
|
}
|
|
102
76
|
}]);
|
|
103
|
-
|
|
104
77
|
return ToggleSwitch;
|
|
105
78
|
}(React.Component);
|
|
106
|
-
|
|
107
79
|
ToggleSwitch.propTypes = {
|
|
108
80
|
/** The label text */
|
|
109
81
|
children: node.isRequired,
|
|
110
|
-
|
|
111
82
|
/** Any extra classes */
|
|
112
83
|
className: string,
|
|
113
|
-
|
|
114
84
|
/** A second line of text in the label */
|
|
115
85
|
locale: oneOf(['nb', 'nn', 'en']),
|
|
116
|
-
|
|
117
86
|
/** On/Off text language */
|
|
118
87
|
description: string,
|
|
119
|
-
|
|
120
88
|
/** Custom text to specify the on-option */
|
|
121
89
|
onText: string,
|
|
122
|
-
|
|
123
90
|
/** Custom text to specify the off-option */
|
|
124
91
|
offText: string,
|
|
125
|
-
|
|
126
92
|
/** Hide On & Off labels next to switch */
|
|
127
93
|
hideOnOff: bool,
|
|
128
|
-
|
|
129
94
|
/** Override the generated id with a custom one */
|
|
130
95
|
id: string,
|
|
131
|
-
|
|
132
96
|
/** Override the value attribute of the input with a custom one */
|
|
133
97
|
value: string
|
|
134
98
|
};
|
package/es/Tooltip.js
CHANGED
|
@@ -1,51 +1,30 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
|
|
3
2
|
var _excluded = ["aria-controls", "aria-label", "children", "className", "onClick", "tabIndex"];
|
|
4
|
-
|
|
5
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
|
-
|
|
7
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
|
|
9
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
|
|
11
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
|
-
|
|
13
7
|
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); } }
|
|
14
|
-
|
|
15
8
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
-
|
|
17
9
|
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
|
-
|
|
19
10
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
|
|
21
11
|
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); }; }
|
|
22
|
-
|
|
23
12
|
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); }
|
|
24
|
-
|
|
25
13
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
26
|
-
|
|
27
14
|
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; } }
|
|
28
|
-
|
|
29
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
-
|
|
31
16
|
import React from 'react';
|
|
32
17
|
import { bool, func, node, string, number } from 'prop-types';
|
|
33
18
|
import classNames from 'classnames';
|
|
34
19
|
import Collapse from '@sb1/ffe-collapse-react';
|
|
35
20
|
import { v4 as uuid } from 'uuid';
|
|
36
|
-
|
|
37
21
|
var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
38
22
|
_inherits(Tooltip, _React$Component);
|
|
39
|
-
|
|
40
23
|
var _super = _createSuper(Tooltip);
|
|
41
|
-
|
|
42
24
|
function Tooltip(_ref) {
|
|
43
25
|
var _this;
|
|
44
|
-
|
|
45
26
|
var isOpen = _ref.isOpen;
|
|
46
|
-
|
|
47
27
|
_classCallCheck(this, Tooltip);
|
|
48
|
-
|
|
49
28
|
_this = _super.call(this);
|
|
50
29
|
_this.state = {
|
|
51
30
|
isOpen: !!isOpen
|
|
@@ -55,7 +34,6 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
55
34
|
_this.tooltipButtonId = uuid();
|
|
56
35
|
return _this;
|
|
57
36
|
}
|
|
58
|
-
|
|
59
37
|
_createClass(Tooltip, [{
|
|
60
38
|
key: "onToggle",
|
|
61
39
|
value: function onToggle(evt) {
|
|
@@ -64,7 +42,6 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
64
42
|
isOpen: !prevState.isOpen
|
|
65
43
|
};
|
|
66
44
|
});
|
|
67
|
-
|
|
68
45
|
if (this.props.onClick) {
|
|
69
46
|
this.props.onClick(evt);
|
|
70
47
|
}
|
|
@@ -73,14 +50,13 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
73
50
|
key: "render",
|
|
74
51
|
value: function render() {
|
|
75
52
|
var _this$props = this.props,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
53
|
+
ariaControls = _this$props['aria-controls'],
|
|
54
|
+
ariaLabel = _this$props['aria-label'],
|
|
55
|
+
children = _this$props.children,
|
|
56
|
+
className = _this$props.className,
|
|
57
|
+
onClick = _this$props.onClick,
|
|
58
|
+
tabIndex = _this$props.tabIndex,
|
|
59
|
+
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
84
60
|
var isOpen = this.state.isOpen;
|
|
85
61
|
return /*#__PURE__*/React.createElement("span", _extends({}, rest, {
|
|
86
62
|
className: classNames('ffe-tooltip', {
|
|
@@ -107,27 +83,20 @@ var Tooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
107
83
|
}, children)));
|
|
108
84
|
}
|
|
109
85
|
}]);
|
|
110
|
-
|
|
111
86
|
return Tooltip;
|
|
112
87
|
}(React.Component);
|
|
113
|
-
|
|
114
88
|
Tooltip.propTypes = {
|
|
115
89
|
/** Provide the id of the controlled element *unless* you're sending in children */
|
|
116
90
|
'aria-controls': string,
|
|
117
|
-
|
|
118
91
|
/** Descriptive text for the Tooltip expand icon */
|
|
119
92
|
'aria-label': string,
|
|
120
|
-
|
|
121
93
|
/** The children are rendered in the expanded tooltip. */
|
|
122
94
|
children: node,
|
|
123
|
-
|
|
124
95
|
/** The className is set on the root node of the expanded tooltip. */
|
|
125
96
|
className: string,
|
|
126
97
|
isOpen: bool,
|
|
127
|
-
|
|
128
98
|
/** Optional listener for clicks on the tooltip button. Is passed the event object. */
|
|
129
99
|
onClick: func,
|
|
130
|
-
|
|
131
100
|
/** Sets the tabIndex of the tooltip button. */
|
|
132
101
|
tabIndex: number
|
|
133
102
|
};
|