dibk-design 0.4.21 → 0.4.25
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/dist/components/Accordion.js +39 -77
- package/dist/components/Accordion.module.scss +3 -2
- package/dist/components/Button.js +31 -75
- package/dist/components/Button.module.scss +25 -2
- package/dist/components/CheckBoxIcon.js +24 -64
- package/dist/components/CheckBoxIcon.md +6 -0
- package/dist/components/CheckBoxInput.js +26 -59
- package/dist/components/CheckBoxInput.md +6 -0
- package/dist/components/CheckBoxListItem.js +18 -51
- package/dist/components/CheckBoxListItem.md +9 -0
- package/dist/components/ContentBox.js +30 -67
- package/dist/components/Dialog.js +57 -98
- package/dist/components/DragAndDropFileInput.js +84 -134
- package/dist/components/Footer.js +8 -44
- package/dist/components/Header.js +11 -47
- package/dist/components/InputField.js +90 -141
- package/dist/components/Label.js +11 -53
- package/dist/components/List.js +21 -72
- package/dist/components/LoadingAnimation.js +6 -42
- package/dist/components/NavigationBar.js +126 -179
- package/dist/components/NavigationBarListItem.js +22 -59
- package/dist/components/Paper.js +6 -42
- package/dist/components/RadioButtonIcon.js +18 -60
- package/dist/components/RadioButtonInput.js +17 -53
- package/dist/components/RadioButtonListItem.js +13 -49
- package/dist/components/Select.js +100 -142
- package/dist/components/Textarea.js +52 -91
- package/dist/components/Theme.js +55 -98
- package/dist/components/WizardNavigation/Step.js +35 -72
- package/dist/components/WizardNavigation.js +25 -59
- package/dist/functions/theme.js +10 -10
- package/dist/index.js +24 -24
- package/dist/style/abstracts/variables/_typography.scss +2 -1
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -17,156 +15,108 @@ var _DragAndDropFileInputModule = _interopRequireDefault(require("./DragAndDropF
|
|
|
17
15
|
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
class DragAndDropFileInput extends _react.default.Component {
|
|
19
|
+
constructor(props) {
|
|
20
|
+
super(props);
|
|
21
|
+
this.state = {
|
|
22
|
+
highlight: false
|
|
23
|
+
};
|
|
24
|
+
this.setWrapperRef = this.setWrapperRef.bind(this);
|
|
25
|
+
this.setFileInputElementRef = this.setFileInputElementRef.bind(this);
|
|
26
|
+
this.highlight = this.highlight.bind(this);
|
|
27
|
+
this.unhighlight = this.unhighlight.bind(this);
|
|
28
|
+
this.handleDrop = this.handleDrop.bind(this);
|
|
29
|
+
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
componentDidMount() {
|
|
32
|
+
const containerElement = this.containerElement;
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
if (containerElement) {
|
|
35
|
+
// Prevent defaults
|
|
36
|
+
containerElement.addEventListener('dragenter', this.preventDefaults, false);
|
|
37
|
+
containerElement.addEventListener('dragover', this.preventDefaults, false);
|
|
38
|
+
containerElement.addEventListener('dragleave', this.preventDefaults, false);
|
|
39
|
+
containerElement.addEventListener('drop', this.preventDefaults, false); // Highlight
|
|
33
40
|
|
|
34
|
-
|
|
41
|
+
containerElement.addEventListener('dragenter', this.highlight, false);
|
|
42
|
+
containerElement.addEventListener('dragover', this.highlight, false); // Unhighlight
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
containerElement.addEventListener('dragleave', this.unhighlight, false);
|
|
45
|
+
containerElement.addEventListener('drop', this.unhighlight, false); // Hande drop
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
containerElement.addEventListener('drop', this.handleDrop, false);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
39
50
|
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
setWrapperRef(node) {
|
|
52
|
+
this.containerElement = node;
|
|
53
|
+
}
|
|
42
54
|
|
|
43
|
-
|
|
55
|
+
setFileInputElementRef(node) {
|
|
56
|
+
this.fileInputElement = node;
|
|
57
|
+
}
|
|
44
58
|
|
|
45
|
-
|
|
46
|
-
|
|
59
|
+
preventDefaults(e) {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
e.stopPropagation();
|
|
62
|
+
}
|
|
47
63
|
|
|
48
|
-
|
|
64
|
+
highlight(e) {
|
|
65
|
+
this.setState({
|
|
66
|
+
highlight: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
49
69
|
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
unhighlight(e) {
|
|
71
|
+
this.setState({
|
|
52
72
|
highlight: false
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return _this;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
handleDrop(e) {
|
|
77
|
+
const files = e.dataTransfer.files;
|
|
78
|
+
this.handleFiles(files);
|
|
60
79
|
}
|
|
61
80
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var containerElement = this.containerElement;
|
|
81
|
+
handleFiles(files) {
|
|
82
|
+
this.props.onDragAndDropChange(files);
|
|
83
|
+
}
|
|
66
84
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
containerElement.addEventListener('dragover', this.preventDefaults, false);
|
|
71
|
-
containerElement.addEventListener('dragleave', this.preventDefaults, false);
|
|
72
|
-
containerElement.addEventListener('drop', this.preventDefaults, false); // Highlight
|
|
85
|
+
renderValueAsText(value, defaultContent) {
|
|
86
|
+
return value ? value : defaultContent;
|
|
87
|
+
}
|
|
73
88
|
|
|
74
|
-
|
|
75
|
-
|
|
89
|
+
handleAddButtonOnClick() {
|
|
90
|
+
this.fileInputElement.click();
|
|
91
|
+
}
|
|
76
92
|
|
|
77
|
-
|
|
78
|
-
|
|
93
|
+
handeFileInputElementOnChange(files) {
|
|
94
|
+
this.props.onSelectChange(files);
|
|
95
|
+
}
|
|
79
96
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
value: function highlight(e) {
|
|
102
|
-
this.setState({
|
|
103
|
-
highlight: true
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}, {
|
|
107
|
-
key: "unhighlight",
|
|
108
|
-
value: function unhighlight(e) {
|
|
109
|
-
this.setState({
|
|
110
|
-
highlight: false
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: "handleDrop",
|
|
115
|
-
value: function handleDrop(e) {
|
|
116
|
-
var files = e.dataTransfer.files;
|
|
117
|
-
this.handleFiles(files);
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "handleFiles",
|
|
121
|
-
value: function handleFiles(files) {
|
|
122
|
-
this.props.onDragAndDropChange(files);
|
|
123
|
-
}
|
|
124
|
-
}, {
|
|
125
|
-
key: "renderValueAsText",
|
|
126
|
-
value: function renderValueAsText(value, defaultContent) {
|
|
127
|
-
return value ? value : defaultContent;
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
key: "handleAddButtonOnClick",
|
|
131
|
-
value: function handleAddButtonOnClick() {
|
|
132
|
-
this.fileInputElement.click();
|
|
133
|
-
}
|
|
134
|
-
}, {
|
|
135
|
-
key: "handeFileInputElementOnChange",
|
|
136
|
-
value: function handeFileInputElementOnChange(files) {
|
|
137
|
-
this.props.onSelectChange(files);
|
|
138
|
-
}
|
|
139
|
-
}, {
|
|
140
|
-
key: "render",
|
|
141
|
-
value: function render() {
|
|
142
|
-
var _this2 = this;
|
|
143
|
-
|
|
144
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
145
|
-
className: _DragAndDropFileInputModule.default.dragAndDropFileInput
|
|
146
|
-
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
147
|
-
htmlFor: this.props.id
|
|
148
|
-
}, this.props.label, !this.props.contentOnly ? /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
-
ref: this.setWrapperRef,
|
|
150
|
-
className: "".concat(_DragAndDropFileInputModule.default.dragAndDropContainer, " ").concat(this.state.highlight ? _DragAndDropFileInputModule.default.highlighted : '')
|
|
151
|
-
}, this.props.selectedFileName ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, "Valgt fil:"), " ", this.props.selectedFileName)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "Slipp fil her"), /*#__PURE__*/_react.default.createElement("input", {
|
|
152
|
-
ref: this.setFileInputElementRef,
|
|
153
|
-
type: "file",
|
|
154
|
-
onChange: this.props.onSelectChange
|
|
155
|
-
}), this.props.buttonContent ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "eller klikk p\xE5 knappen for \xE5 velge fil"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
156
|
-
size: "small",
|
|
157
|
-
color: this.props.buttonColor,
|
|
158
|
-
onClick: function onClick() {
|
|
159
|
-
return _this2.handleAddButtonOnClick();
|
|
160
|
-
},
|
|
161
|
-
content: this.props.buttonContent
|
|
162
|
-
})) : '')) : ''), this.props.contentOnly ? /*#__PURE__*/_react.default.createElement("span", null, this.renderValueAsText(this.props.selectedFileName, this.props.defaultContent)) : '', /*#__PURE__*/_react.default.createElement("span", {
|
|
163
|
-
className: _DragAndDropFileInputModule.default.errorMessage
|
|
164
|
-
}, this.props.errorMessage ? this.props.errorMessage : ''));
|
|
165
|
-
}
|
|
166
|
-
}]);
|
|
97
|
+
render() {
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
99
|
+
className: _DragAndDropFileInputModule.default.dragAndDropFileInput
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
101
|
+
htmlFor: this.props.id
|
|
102
|
+
}, this.props.label, !this.props.contentOnly ? /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
+
ref: this.setWrapperRef,
|
|
104
|
+
className: "".concat(_DragAndDropFileInputModule.default.dragAndDropContainer, " ").concat(this.state.highlight ? _DragAndDropFileInputModule.default.highlighted : '')
|
|
105
|
+
}, this.props.selectedFileName ? /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, "Valgt fil:"), " ", this.props.selectedFileName)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "Slipp fil her"), /*#__PURE__*/_react.default.createElement("input", {
|
|
106
|
+
ref: this.setFileInputElementRef,
|
|
107
|
+
type: "file",
|
|
108
|
+
onChange: this.props.onSelectChange
|
|
109
|
+
}), this.props.buttonContent ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, "eller klikk p\xE5 knappen for \xE5 velge fil"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
110
|
+
size: "small",
|
|
111
|
+
color: this.props.buttonColor,
|
|
112
|
+
onClick: () => this.handleAddButtonOnClick(),
|
|
113
|
+
content: this.props.buttonContent
|
|
114
|
+
})) : '')) : ''), this.props.contentOnly ? /*#__PURE__*/_react.default.createElement("span", null, this.renderValueAsText(this.props.selectedFileName, this.props.defaultContent)) : '', /*#__PURE__*/_react.default.createElement("span", {
|
|
115
|
+
className: _DragAndDropFileInputModule.default.errorMessage
|
|
116
|
+
}, this.props.errorMessage ? this.props.errorMessage : ''));
|
|
117
|
+
}
|
|
167
118
|
|
|
168
|
-
|
|
169
|
-
}(_react.default.Component);
|
|
119
|
+
}
|
|
170
120
|
|
|
171
121
|
DragAndDropFileInput.propTypes = {
|
|
172
122
|
/** Text content inside list item */
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -13,50 +11,16 @@ var _FooterModule = _interopRequireDefault(require("./Footer.module.scss"));
|
|
|
13
11
|
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
-
|
|
26
|
-
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); }; }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
-
|
|
32
|
-
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; } }
|
|
33
|
-
|
|
34
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
-
|
|
36
|
-
var Footer = /*#__PURE__*/function (_React$Component) {
|
|
37
|
-
_inherits(Footer, _React$Component);
|
|
38
|
-
|
|
39
|
-
var _super = _createSuper(Footer);
|
|
40
|
-
|
|
41
|
-
function Footer() {
|
|
42
|
-
_classCallCheck(this, Footer);
|
|
43
|
-
|
|
44
|
-
return _super.apply(this, arguments);
|
|
14
|
+
class Footer extends _react.default.Component {
|
|
15
|
+
render() {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement("footer", {
|
|
17
|
+
className: _FooterModule.default.footer
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
className: _FooterModule.default.footerContainer
|
|
20
|
+
}, this.props.children));
|
|
45
21
|
}
|
|
46
22
|
|
|
47
|
-
|
|
48
|
-
key: "render",
|
|
49
|
-
value: function render() {
|
|
50
|
-
return /*#__PURE__*/_react.default.createElement("footer", {
|
|
51
|
-
className: _FooterModule.default.footer
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
53
|
-
className: _FooterModule.default.footerContainer
|
|
54
|
-
}, this.props.children));
|
|
55
|
-
}
|
|
56
|
-
}]);
|
|
57
|
-
|
|
58
|
-
return Footer;
|
|
59
|
-
}(_react.default.Component);
|
|
23
|
+
}
|
|
60
24
|
|
|
61
25
|
var _default = Footer;
|
|
62
26
|
exports.default = _default;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -15,55 +13,21 @@ var _HeaderModule = _interopRequireDefault(require("./Header.module.scss"));
|
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
23
|
-
|
|
24
|
-
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
|
-
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
|
-
|
|
28
|
-
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); }; }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
class Header extends _react.default.Component {
|
|
17
|
+
render() {
|
|
18
|
+
const bigClass = this.props.big ? _HeaderModule.default.bigHeader : '';
|
|
19
|
+
const themeClass = this.props.theme ? _HeaderModule.default.hasTheme : '';
|
|
33
20
|
|
|
34
|
-
|
|
21
|
+
let headerElement = /*#__PURE__*/_react.default.createElement('h' + this.props.size, {
|
|
22
|
+
className: "".concat(_HeaderModule.default.header, " ").concat(bigClass, " ").concat(themeClass)
|
|
23
|
+
}, this.props.content);
|
|
35
24
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
_inherits(Header, _React$Component);
|
|
40
|
-
|
|
41
|
-
var _super = _createSuper(Header);
|
|
42
|
-
|
|
43
|
-
function Header() {
|
|
44
|
-
_classCallCheck(this, Header);
|
|
45
|
-
|
|
46
|
-
return _super.apply(this, arguments);
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
+
className: _HeaderModule.default.headerContainer
|
|
27
|
+
}, " ", headerElement, " ");
|
|
47
28
|
}
|
|
48
29
|
|
|
49
|
-
|
|
50
|
-
key: "render",
|
|
51
|
-
value: function render() {
|
|
52
|
-
var bigClass = this.props.big ? _HeaderModule.default.bigHeader : '';
|
|
53
|
-
var themeClass = this.props.theme ? _HeaderModule.default.hasTheme : '';
|
|
54
|
-
|
|
55
|
-
var headerElement = /*#__PURE__*/_react.default.createElement('h' + this.props.size, {
|
|
56
|
-
className: "".concat(_HeaderModule.default.header, " ").concat(bigClass, " ").concat(themeClass)
|
|
57
|
-
}, this.props.content);
|
|
58
|
-
|
|
59
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
-
className: _HeaderModule.default.headerContainer
|
|
61
|
-
}, " ", headerElement, " ");
|
|
62
|
-
}
|
|
63
|
-
}]);
|
|
64
|
-
|
|
65
|
-
return Header;
|
|
66
|
-
}(_react.default.Component);
|
|
30
|
+
}
|
|
67
31
|
|
|
68
32
|
Header.propTypes = {
|
|
69
33
|
/** Text content inside button */
|