trepur_components 0.3.17 → 0.3.20
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/index.js +0 -2
- package/dist/components/AlertBar/index.js +0 -2
- package/dist/components/Breadcrumbs/index.js +0 -2
- package/dist/components/BreadcrumbsBordered/index.js +0 -2
- package/dist/components/BreadcrumbsItem/index.js +0 -2
- package/dist/components/Button/index.js +13 -75
- package/dist/components/Card/index.js +4 -4
- package/dist/components/CardWithTopImage/index.js +0 -2
- package/dist/components/Carousel/index.js +0 -2
- package/dist/components/ChevronCard/index.js +0 -2
- package/dist/components/Collapsible/index.js +0 -2
- package/dist/components/Column/index.js +0 -2
- package/dist/components/Container/index.js +0 -2
- package/dist/components/FooterBar/index.js +0 -2
- package/dist/components/Form/index.js +0 -2
- package/dist/components/FyreCard/index.js +1 -3
- package/dist/components/Icon/index.js +0 -2
- package/dist/components/Image/index.js +0 -2
- package/dist/components/ImageLink/index.js +0 -2
- package/dist/components/ImageLinkList/index.js +0 -2
- package/dist/components/InformationIcon/index.js +0 -2
- package/dist/components/Input/index.js +2 -4
- package/dist/components/Jumbotron/index.js +0 -2
- package/dist/components/Nav/index.js +0 -2
- package/dist/components/NavItem/index.js +0 -2
- package/dist/components/NewsCard/index.js +1 -3
- package/dist/components/Profile/index.js +0 -2
- package/dist/components/Row/index.js +0 -2
- package/dist/components/Search/index.js +0 -2
- package/dist/components/SocialBlock/index.js +7 -88
- package/dist/components/StarRating/index.js +0 -2
- package/dist/components/Testimonial/index.js +0 -2
- package/dist/components/TextAndTitle/index.js +85 -62
- package/dist/components/TextArea/index.js +9 -8
- package/dist/components/Timeline/index.js +0 -2
- package/dist/components/Tubestops/index.js +0 -2
- package/dist/components/UserIcon/index.js +0 -2
- package/dist/components/Video/index.js +0 -2
- package/dist/styles/base.css +73 -0
- package/package.json +1 -1
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _Collapsible = _interopRequireDefault(require("../Collapsible"));
|
|
13
13
|
|
|
14
|
-
require("../index.css");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
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); }
|
|
23
21
|
|
|
24
22
|
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; }
|
|
@@ -11,8 +11,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
|
|
14
|
-
require("../index.css");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
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; }
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _BreadcrumbsItem = _interopRequireDefault(require("../BreadcrumbsItem"));
|
|
13
13
|
|
|
14
|
-
require("../index.css");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -15,8 +15,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
require("./index.css");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/
|
|
3
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.buttonProps = void 0;
|
|
9
9
|
|
|
10
|
-
require("core-js/modules/
|
|
10
|
+
require("core-js/modules/es.object.assign.js");
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
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); }
|
|
@@ -36,7 +34,6 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
36
34
|
const buttonProps = {
|
|
37
35
|
id: _propTypes.default.string,
|
|
38
36
|
classes: _propTypes.default.string,
|
|
39
|
-
text: _propTypes.default.string,
|
|
40
37
|
onClick: _propTypes.default.func,
|
|
41
38
|
bgColor: _propTypes.default.string,
|
|
42
39
|
textColor: _propTypes.default.string,
|
|
@@ -52,6 +49,7 @@ const buttonProps = {
|
|
|
52
49
|
rounded: _propTypes.default.bool,
|
|
53
50
|
disabled: _propTypes.default.bool,
|
|
54
51
|
isLoading: _propTypes.default.bool,
|
|
52
|
+
target: _propTypes.default.string,
|
|
55
53
|
leftIcon: _propTypes.default.shape(_Icon.iconProps),
|
|
56
54
|
rightIcon: _propTypes.default.shape(_Icon.iconProps),
|
|
57
55
|
centerIcon: _propTypes.default.shape(_Icon.iconProps)
|
|
@@ -60,9 +58,9 @@ exports.buttonProps = buttonProps;
|
|
|
60
58
|
|
|
61
59
|
const Button = _ref => {
|
|
62
60
|
let {
|
|
63
|
-
buttonProps
|
|
61
|
+
buttonProps,
|
|
62
|
+
children
|
|
64
63
|
} = _ref;
|
|
65
|
-
const [hovering, setHovering] = (0, _react.useState)(false);
|
|
66
64
|
if (buttonProps == undefined) return;
|
|
67
65
|
const design = (0, _classnames.default)({
|
|
68
66
|
[buttonProps.design]: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.design,
|
|
@@ -104,28 +102,6 @@ const Button = _ref => {
|
|
|
104
102
|
'invisible': buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading
|
|
105
103
|
}, 'flex');
|
|
106
104
|
|
|
107
|
-
const iconLeft = (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon) && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
108
|
-
iconProps: {
|
|
109
|
-
classes: (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon.brand) && 'fa-brands',
|
|
110
|
-
size: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon.size,
|
|
111
|
-
type: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon.type,
|
|
112
|
-
hollow: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon.hollow
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
const iconRight = (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rightIcon) && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
117
|
-
iconProps: {
|
|
118
|
-
classes: buttonProps !== null && buttonProps !== void 0 && buttonProps.rightIcon.brand ? 'fa-brands' : '',
|
|
119
|
-
size: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rightIcon.size,
|
|
120
|
-
type: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rightIcon.type,
|
|
121
|
-
hollow: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rightIcon.hollow
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
const iconCenter = (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.centerIcon) && /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
126
|
-
iconProps: buttonProps.centerIcon
|
|
127
|
-
});
|
|
128
|
-
|
|
129
105
|
const loadingIcon = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
130
106
|
iconProps: {
|
|
131
107
|
size: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.size,
|
|
@@ -134,61 +110,23 @@ const Button = _ref => {
|
|
|
134
110
|
}
|
|
135
111
|
});
|
|
136
112
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}), /*#__PURE__*/_react.default.createElement("button", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) && {
|
|
143
|
-
id: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id
|
|
144
|
-
}, {
|
|
145
|
-
className: classList,
|
|
146
|
-
type: "button",
|
|
147
|
-
"aria-busy": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading,
|
|
148
|
-
onMouseOver: () => setHovering(true),
|
|
149
|
-
onMouseOut: () => setHovering(false)
|
|
150
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick) && {
|
|
151
|
-
onClick: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick
|
|
152
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled) && {
|
|
153
|
-
disabled: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled
|
|
154
|
-
}), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
155
|
-
className: buttonContentClasses
|
|
156
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.leftIcon) && iconLeft, /*#__PURE__*/_react.default.createElement("p", null, hovering ? buttonProps !== null && buttonProps !== void 0 && buttonProps.hoverText ? buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.hoverText : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.text : buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.text), (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.rightIcon) && iconRight), /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
-
className: loadingClasses
|
|
158
|
-
}, loadingIcon))));
|
|
159
|
-
} else if (['social', 'icon'].includes(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.type)) {
|
|
160
|
-
return /*#__PURE__*/_react.default.createElement("button", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) && {
|
|
161
|
-
id: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id
|
|
162
|
-
}, {
|
|
163
|
-
className: classList,
|
|
164
|
-
type: "button",
|
|
165
|
-
"aria-busy": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading,
|
|
166
|
-
onMouseOver: () => setHovering(true),
|
|
167
|
-
onMouseOut: () => setHovering(false)
|
|
168
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick) && {
|
|
169
|
-
onClick: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick
|
|
170
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled) && {
|
|
171
|
-
disabled: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled
|
|
172
|
-
}), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
173
|
-
className: buttonProps !== null && buttonProps !== void 0 && buttonProps.isLoading ? 'invisible' : ''
|
|
174
|
-
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.centerIcon) && iconCenter), /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
-
className: loadingClasses
|
|
176
|
-
}, loadingIcon)));
|
|
177
|
-
} else return /*#__PURE__*/_react.default.createElement("button", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) && {
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement("a", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.target) && {
|
|
114
|
+
target: '_blank'
|
|
115
|
+
}, {
|
|
116
|
+
href: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.url
|
|
117
|
+
}), /*#__PURE__*/_react.default.createElement("button", _extends({}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id) && {
|
|
178
118
|
id: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.id
|
|
179
119
|
}, {
|
|
180
120
|
className: classList,
|
|
181
121
|
type: "button",
|
|
182
|
-
"aria-busy": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading
|
|
183
|
-
onMouseOver: () => setHovering(true),
|
|
184
|
-
onMouseOut: () => setHovering(false)
|
|
122
|
+
"aria-busy": buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.isLoading
|
|
185
123
|
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick) && {
|
|
186
124
|
onClick: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.onClick
|
|
187
125
|
}, (buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled) && {
|
|
188
126
|
disabled: buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.disabled
|
|
189
|
-
}), /*#__PURE__*/_react.default.createElement("div",
|
|
127
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
190
128
|
className: buttonProps !== null && buttonProps !== void 0 && buttonProps.isLoading ? 'invisible' : ''
|
|
191
|
-
},
|
|
129
|
+
}, children), buttonProps.isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
192
130
|
className: loadingClasses
|
|
193
131
|
}, loadingIcon)));
|
|
194
132
|
};
|
|
@@ -19,7 +19,7 @@ var _Video = _interopRequireDefault(require("../Video"));
|
|
|
19
19
|
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
|
|
22
|
-
require("../
|
|
22
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -140,13 +140,13 @@ const Card = _ref => {
|
|
|
140
140
|
className: "flex p-2 order-last h-24"
|
|
141
141
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
142
142
|
buttonProps: iconButtonProps
|
|
143
|
-
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
143
|
+
}, iconButtonProps.children), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
144
144
|
buttonProps: button2Props
|
|
145
|
-
}))),
|
|
145
|
+
}, button2Props.children))), cardButtonProps && /*#__PURE__*/_react.default.createElement("div", {
|
|
146
146
|
className: btnClass
|
|
147
147
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
148
148
|
buttonProps: cardButtonProps
|
|
149
|
-
})));
|
|
149
|
+
}, cardButtonProps.children)));
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
var _default = Card;
|
|
@@ -13,8 +13,6 @@ var _index = _interopRequireDefault(require("../Image/index"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
require("./index.css");
|
|
19
17
|
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -19,8 +19,6 @@ require("slick-carousel/slick/slick.css");
|
|
|
19
19
|
|
|
20
20
|
require("slick-carousel/slick/slick-theme.css");
|
|
21
21
|
|
|
22
|
-
require("../index.css");
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
23
|
|
|
26
24
|
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); }
|
|
@@ -9,8 +9,6 @@ require("core-js/modules/es.object.assign.js");
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
require("../index.css");
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
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,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -15,8 +15,6 @@ var _Column = _interopRequireDefault(require("../Column"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
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,8 +13,6 @@ var _Button = _interopRequireDefault(require("../Button"));
|
|
|
13
13
|
|
|
14
14
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
13
13
|
|
|
14
|
-
require("../index.css");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -49,7 +47,7 @@ const FyreCard = _ref => {
|
|
|
49
47
|
className: "flex justify-end"
|
|
50
48
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
51
49
|
buttonProps: buttonProps
|
|
52
|
-
}))));
|
|
50
|
+
}, buttonProps.children))));
|
|
53
51
|
};
|
|
54
52
|
|
|
55
53
|
var _default = FyreCard;
|
|
@@ -13,8 +13,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -13,8 +13,6 @@ var _Button = _interopRequireDefault(require("../Button"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -13,8 +13,6 @@ var _index = _interopRequireDefault(require("../ImageLink/index"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
21
|
|
|
24
22
|
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,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -64,10 +62,10 @@ const Input = _ref => {
|
|
|
64
62
|
const labelClassList = (0, _classnames.default)({
|
|
65
63
|
'font-bold': inputProps === null || inputProps === void 0 ? void 0 : inputProps.bold,
|
|
66
64
|
[inputProps.labelClasses]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.labelClasses
|
|
67
|
-
}, "w-auto");
|
|
65
|
+
}, "w-auto pb-2");
|
|
68
66
|
const inputClassList = (0, _classnames.default)({
|
|
69
67
|
[inputProps.inputClasses]: inputProps === null || inputProps === void 0 ? void 0 : inputProps.inputClasses
|
|
70
|
-
}, "border px-2 rounded-md");
|
|
68
|
+
}, "border px-2 py-2 rounded-md");
|
|
71
69
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) && {
|
|
72
70
|
id: inputProps.id
|
|
73
71
|
}, {
|
|
@@ -11,8 +11,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
require("../index.css");
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -15,8 +15,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
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); }
|
|
@@ -15,8 +15,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
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); }
|
|
@@ -15,8 +15,6 @@ var _Button = _interopRequireDefault(require("../Button"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -57,7 +55,7 @@ const NewsCard = _ref => {
|
|
|
57
55
|
className: "px-8"
|
|
58
56
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
59
57
|
buttonProps: buttonProps
|
|
60
|
-
}))));
|
|
58
|
+
}, buttonProps.children))));
|
|
61
59
|
};
|
|
62
60
|
|
|
63
61
|
var _default = NewsCard;
|
|
@@ -15,8 +15,6 @@ var _Image = _interopRequireDefault(require("../Image"));
|
|
|
15
15
|
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
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,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -13,8 +13,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -19,10 +19,10 @@ var _Input = _interopRequireDefault(require("../Input"));
|
|
|
19
19
|
|
|
20
20
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
21
21
|
|
|
22
|
-
require("../index.css");
|
|
23
|
-
|
|
24
22
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
23
|
|
|
24
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
25
|
+
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
28
|
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); }
|
|
@@ -51,7 +51,8 @@ const SocialBlock = _ref => {
|
|
|
51
51
|
editTextClasses,
|
|
52
52
|
editInputClasses,
|
|
53
53
|
buttonWrapperClasses,
|
|
54
|
-
textWrapperClasses
|
|
54
|
+
textWrapperClasses,
|
|
55
|
+
socialButtons
|
|
55
56
|
} = _ref;
|
|
56
57
|
const defaultComponentData = {
|
|
57
58
|
title: {
|
|
@@ -75,70 +76,6 @@ const SocialBlock = _ref => {
|
|
|
75
76
|
[hoverClasses]: withLiveUpdates && !isInEditingMode && isHovering,
|
|
76
77
|
[textWrapperClasses]: textWrapperClasses
|
|
77
78
|
});
|
|
78
|
-
const socialButtons = [{
|
|
79
|
-
classes: 'mx-2 w-16 py-4 border border-1',
|
|
80
|
-
bgColor: "bg-social-facebook",
|
|
81
|
-
textColor: "text-white",
|
|
82
|
-
borderColor: "border-social-facebook",
|
|
83
|
-
type: "social",
|
|
84
|
-
hoverBgColor: "hover:bg-white",
|
|
85
|
-
hoverBorderColor: "hover:border-social-facebook",
|
|
86
|
-
hoverTextColor: "hover:text-social-facebook",
|
|
87
|
-
url: "https://www.facebook.com/rupert.bennett",
|
|
88
|
-
iconProps: {
|
|
89
|
-
type: "facebook-f",
|
|
90
|
-
brand: true,
|
|
91
|
-
size: 2,
|
|
92
|
-
classes: 'mx-auto'
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
classes: 'mx-2 w-16 py-4 border border-1',
|
|
96
|
-
bgColor: "bg-social-linkedin",
|
|
97
|
-
textColor: "text-white",
|
|
98
|
-
borderColor: "border-social-linkedin",
|
|
99
|
-
type: "social",
|
|
100
|
-
hoverBgColor: "hover:bg-white",
|
|
101
|
-
hoverBorderColor: "hover:border-social-linkedin",
|
|
102
|
-
hoverTextColor: "hover:text-social-linkedin",
|
|
103
|
-
url: "https://www.linkedin.com/in/rupert-bennett",
|
|
104
|
-
iconProps: {
|
|
105
|
-
brand: true,
|
|
106
|
-
type: "linkedin-in",
|
|
107
|
-
size: 2,
|
|
108
|
-
classes: 'mx-auto'
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
classes: 'mx-2 w-16 py-4 border border-1',
|
|
112
|
-
bgColor: "bg-black",
|
|
113
|
-
textColor: "text-white",
|
|
114
|
-
borderColor: "border-black",
|
|
115
|
-
type: "social",
|
|
116
|
-
hoverBgColor: "hover:bg-white",
|
|
117
|
-
hoverBorderColor: "hover:border-black",
|
|
118
|
-
hoverTextColor: "hover:text-black",
|
|
119
|
-
url: "https://github.com/irupertbennett",
|
|
120
|
-
iconProps: {
|
|
121
|
-
brand: true,
|
|
122
|
-
type: "github",
|
|
123
|
-
size: 2,
|
|
124
|
-
classes: 'mx-auto'
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
classes: 'mx-2 w-16 py-4 border border-1',
|
|
128
|
-
bgColor: "bg-brand-error",
|
|
129
|
-
textColor: "text-white",
|
|
130
|
-
borderColor: "border-brand-error",
|
|
131
|
-
type: "social",
|
|
132
|
-
hoverBgColor: "hover:bg-white",
|
|
133
|
-
hoverBorderColor: "hover:border-brand-error",
|
|
134
|
-
hoverTextColor: "hover:text-brand-error",
|
|
135
|
-
url: "mailto:irupertbennett@gmail.com?subject=rupertbennett.com-&body=Referred from rupertbennett.com",
|
|
136
|
-
iconProps: {
|
|
137
|
-
type: "envelope",
|
|
138
|
-
size: 2,
|
|
139
|
-
classes: 'mx-auto'
|
|
140
|
-
}
|
|
141
|
-
}];
|
|
142
79
|
|
|
143
80
|
const toggleEditState = () => {
|
|
144
81
|
withLiveUpdates && setIsInEditingMode(!isInEditingMode);
|
|
@@ -205,7 +142,6 @@ const SocialBlock = _ref => {
|
|
|
205
142
|
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
206
143
|
buttonProps: {
|
|
207
144
|
classes: 'mt-4',
|
|
208
|
-
text: 'Save',
|
|
209
145
|
onClick: handleButtonSave,
|
|
210
146
|
bgColor: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.bgColor,
|
|
211
147
|
borderColor: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.borderColor,
|
|
@@ -214,10 +150,9 @@ const SocialBlock = _ref => {
|
|
|
214
150
|
hoverBorderColor: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.hoverBorderColor,
|
|
215
151
|
hoverBgColor: saveButtonProps === null || saveButtonProps === void 0 ? void 0 : saveButtonProps.hoverBgColor
|
|
216
152
|
}
|
|
217
|
-
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
153
|
+
}, "Save"), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
218
154
|
buttonProps: {
|
|
219
155
|
classes: 'mt-4 ml-4',
|
|
220
|
-
text: 'Cancel',
|
|
221
156
|
onClick: handleButtonCancel,
|
|
222
157
|
bgColor: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.bgColor,
|
|
223
158
|
borderColor: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.borderColor,
|
|
@@ -226,7 +161,7 @@ const SocialBlock = _ref => {
|
|
|
226
161
|
hoverBorderColor: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.hoverBorderColor,
|
|
227
162
|
hoverBgColor: cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.hoverBgColor
|
|
228
163
|
}
|
|
229
|
-
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
164
|
+
}, "Cancel")) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
230
165
|
onMouseOver: () => toggleHoverState(),
|
|
231
166
|
onMouseOut: () => toggleHoverState(),
|
|
232
167
|
onClick: toggleEditState,
|
|
@@ -238,23 +173,7 @@ const SocialBlock = _ref => {
|
|
|
238
173
|
}, componentData.text.text)), /*#__PURE__*/_react.default.createElement("div", {
|
|
239
174
|
className: buttnoWrapperClasslist
|
|
240
175
|
}, socialButtons && socialButtons.map((button, i) => {
|
|
241
|
-
return
|
|
242
|
-
key: "".concat(i, "_button"),
|
|
243
|
-
buttonProps: {
|
|
244
|
-
classes: button.classes,
|
|
245
|
-
bgColor: button.bgColor,
|
|
246
|
-
textColor: button.textColor,
|
|
247
|
-
borderColor: button.borderColor,
|
|
248
|
-
type: button.type,
|
|
249
|
-
hoverBgColor: button.hoverBgColor,
|
|
250
|
-
hoverBorderColor: button.hoverBorderColor,
|
|
251
|
-
hoverTextColor: button.hoverTextColor,
|
|
252
|
-
onClick: button.onClick,
|
|
253
|
-
url: button.url,
|
|
254
|
-
border: true,
|
|
255
|
-
centerIcon: button.iconProps
|
|
256
|
-
}
|
|
257
|
-
});
|
|
176
|
+
return button;
|
|
258
177
|
}))));
|
|
259
178
|
};
|
|
260
179
|
|
|
@@ -19,8 +19,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
19
19
|
|
|
20
20
|
require("./index.css");
|
|
21
21
|
|
|
22
|
-
require("../index.css");
|
|
23
|
-
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
23
|
|
|
26
24
|
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; }
|
|
@@ -13,8 +13,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _Image = _interopRequireDefault(require("../Image"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.textAndTitleProps = exports.default = void 0;
|
|
9
9
|
|
|
10
|
+
require("core-js/modules/es.parse-float.js");
|
|
11
|
+
|
|
10
12
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
13
|
|
|
12
14
|
require("core-js/modules/es.regexp.exec.js");
|
|
@@ -23,7 +25,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
23
25
|
|
|
24
26
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
25
27
|
|
|
26
|
-
require("../
|
|
28
|
+
var _TextArea = _interopRequireDefault(require("../TextArea"));
|
|
27
29
|
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
31
|
|
|
@@ -70,8 +72,29 @@ const TextAndTitle = _ref => {
|
|
|
70
72
|
var _textAndTitleProps$sa, _textAndTitleProps$sa2, _textAndTitleProps$sa3, _textAndTitleProps$sa4, _textAndTitleProps$sa5, _textAndTitleProps$sa6, _textAndTitleProps$sa7, _textAndTitleProps$sa8, _textAndTitleProps$ca, _textAndTitleProps$ca2, _textAndTitleProps$ca3, _textAndTitleProps$ca4, _textAndTitleProps$ca5, _textAndTitleProps$ca6, _textAndTitleProps$ca7, _textAndTitleProps$ca8;
|
|
71
73
|
|
|
72
74
|
let {
|
|
73
|
-
textAndTitleProps
|
|
75
|
+
textAndTitleProps,
|
|
76
|
+
children
|
|
74
77
|
} = _ref;
|
|
78
|
+
|
|
79
|
+
const getLineHeight = id => {
|
|
80
|
+
var _document$getElementB;
|
|
81
|
+
|
|
82
|
+
const divHeight = (_document$getElementB = document.getElementById(id)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.offsetHeight;
|
|
83
|
+
const lineHeight = parseFloat(getComputedStyle(document.getElementById(id)).fontSize);
|
|
84
|
+
const pt = parseFloat(getComputedStyle(document.getElementById(id)).paddingTop);
|
|
85
|
+
const pb = parseFloat(getComputedStyle(document.getElementById(id)).paddingBottom);
|
|
86
|
+
const mt = parseFloat(getComputedStyle(document.getElementById(id)).marginTop);
|
|
87
|
+
const mb = parseFloat(getComputedStyle(document.getElementById(id)).marginBottom);
|
|
88
|
+
const bw = parseFloat(getComputedStyle(document.getElementById(id)).borderWidth);
|
|
89
|
+
const height = divHeight - mt - mb - pt - pb - bw * 2;
|
|
90
|
+
|
|
91
|
+
if (textAndTitleProps.isHorizontal) {
|
|
92
|
+
return Math.floor(height / lineHeight) - 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return Math.floor(height / lineHeight);
|
|
96
|
+
};
|
|
97
|
+
|
|
75
98
|
const defaultComponentData = {
|
|
76
99
|
title: {
|
|
77
100
|
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.title
|
|
@@ -87,12 +110,10 @@ const TextAndTitle = _ref => {
|
|
|
87
110
|
}
|
|
88
111
|
};
|
|
89
112
|
const [isInEditingMode, setIsInEditingMode] = (0, _react.useState)(false);
|
|
90
|
-
const [isHovering, setIsHovering] = (0, _react.useState)(false);
|
|
91
113
|
const [componentData, setComponentData] = (0, _react.useState)(defaultComponentData);
|
|
92
114
|
if (textAndTitleProps == undefined) return;
|
|
93
|
-
const
|
|
115
|
+
const borderClasses = 'border border-transparent';
|
|
94
116
|
const classList = (0, _classnames.default)({
|
|
95
|
-
[hoverClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode && isHovering,
|
|
96
117
|
[textAndTitleProps.classes]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.classes
|
|
97
118
|
});
|
|
98
119
|
const titleClassList = (0, _classnames.default)({
|
|
@@ -102,7 +123,8 @@ const TextAndTitle = _ref => {
|
|
|
102
123
|
[textAndTitleProps.titleBgColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleBgColor,
|
|
103
124
|
'bg-white': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleBgColor),
|
|
104
125
|
[textAndTitleProps.titleColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleColor,
|
|
105
|
-
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleColor)
|
|
126
|
+
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleColor),
|
|
127
|
+
[borderClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
106
128
|
}, 'text-md sm:text-lg');
|
|
107
129
|
const textClassList = (0, _classnames.default)({
|
|
108
130
|
'text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textCenter,
|
|
@@ -110,8 +132,9 @@ const TextAndTitle = _ref => {
|
|
|
110
132
|
[textAndTitleProps.textBgColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textBgColor,
|
|
111
133
|
'bg-white': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.textBgColor),
|
|
112
134
|
[textAndTitleProps.textColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textColor,
|
|
113
|
-
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.textColor)
|
|
114
|
-
|
|
135
|
+
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.textColor),
|
|
136
|
+
[borderClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
137
|
+
}, 'pt-2 mt-2');
|
|
115
138
|
|
|
116
139
|
const toggleEditState = () => {
|
|
117
140
|
(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && setIsInEditingMode(!isInEditingMode);
|
|
@@ -137,12 +160,10 @@ const TextAndTitle = _ref => {
|
|
|
137
160
|
});
|
|
138
161
|
toggleEditState();
|
|
139
162
|
textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.onSave(arr, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.id);
|
|
140
|
-
setIsHovering(false);
|
|
141
163
|
};
|
|
142
164
|
|
|
143
165
|
const handleButtonCancel = () => {
|
|
144
166
|
toggleEditState();
|
|
145
|
-
setIsHovering(false);
|
|
146
167
|
};
|
|
147
168
|
|
|
148
169
|
const handleChange = e => {
|
|
@@ -155,100 +176,102 @@ const TextAndTitle = _ref => {
|
|
|
155
176
|
}));
|
|
156
177
|
};
|
|
157
178
|
|
|
158
|
-
const toggleHoverState = () => {
|
|
159
|
-
(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && setIsHovering(!isHovering);
|
|
160
|
-
};
|
|
161
|
-
|
|
162
179
|
const wrapperClassList = (0, _classnames.default)({
|
|
163
|
-
'flex flex-wrap md:items-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
164
|
-
|
|
180
|
+
'flex flex-wrap justify-center md:items-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal,
|
|
181
|
+
'hover:border-black hover:border-dashed': (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
182
|
+
}, 'border-2 border-transparent');
|
|
165
183
|
const titleWrapperClassList = (0, _classnames.default)({
|
|
166
|
-
'md:w-1/2 md:text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
184
|
+
'md:w-1/2 md:text-center px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
167
185
|
});
|
|
168
186
|
const textWrapperClassList = (0, _classnames.default)({
|
|
169
|
-
'md:w-1/2 md:text-center md:py-8
|
|
187
|
+
'md:w-1/2 md:text-center md:py-8 px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
170
188
|
});
|
|
171
189
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.id) && {
|
|
172
190
|
id: textAndTitleProps.id
|
|
173
191
|
}, {
|
|
174
|
-
className: classList
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
192
|
+
className: classList
|
|
193
|
+
}), textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.withLiveUpdates && isInEditingMode ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
194
|
+
className: wrapperClassList
|
|
195
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
196
|
+
className: titleWrapperClassList
|
|
197
|
+
}, componentData.title.text ? /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
178
198
|
inputProps: {
|
|
179
199
|
id: 'title',
|
|
180
200
|
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTitleClasses,
|
|
181
|
-
inputClasses: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses,
|
|
201
|
+
inputClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList),
|
|
182
202
|
autoFocus: true,
|
|
183
203
|
value: componentData.title.text,
|
|
184
204
|
onChange: e => handleChange(e),
|
|
185
205
|
type: "text"
|
|
186
206
|
}
|
|
187
|
-
})
|
|
188
|
-
|
|
207
|
+
}) : /*#__PURE__*/_react.default.createElement("div", null, children)), /*#__PURE__*/_react.default.createElement("div", {
|
|
208
|
+
className: textWrapperClassList
|
|
209
|
+
}, /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
210
|
+
textAreaProps: {
|
|
189
211
|
id: 'textLineOne',
|
|
190
212
|
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
onChange: e => handleChange(e)
|
|
194
|
-
type: "text"
|
|
213
|
+
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(titleClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
214
|
+
rows: getLineHeight('textLineOne'),
|
|
215
|
+
onChange: e => handleChange(e)
|
|
195
216
|
}
|
|
196
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
197
|
-
|
|
217
|
+
}, componentData.textLineOne.text), /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
218
|
+
textAreaProps: {
|
|
198
219
|
id: 'textLineTwo',
|
|
199
|
-
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
onChange: e => handleChange(e)
|
|
203
|
-
type: "text"
|
|
220
|
+
classes: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses),
|
|
221
|
+
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
222
|
+
rows: getLineHeight('textLineTwo'),
|
|
223
|
+
onChange: e => handleChange(e)
|
|
204
224
|
}
|
|
205
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
206
|
-
|
|
225
|
+
}, componentData.textLineTwo.text), /*#__PURE__*/_react.default.createElement(_TextArea.default, {
|
|
226
|
+
textAreaProps: {
|
|
207
227
|
id: 'textLineThree',
|
|
208
228
|
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editTextClasses,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
onChange: e => handleChange(e)
|
|
212
|
-
type: "text"
|
|
229
|
+
textAreaClasses: "".concat(textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.editInputClasses, " ").concat(textClassList, " ").concat(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.isHorizontal ? 'text-center' : ''),
|
|
230
|
+
rows: getLineHeight('textLineThree'),
|
|
231
|
+
onChange: e => handleChange(e)
|
|
213
232
|
}
|
|
214
|
-
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
233
|
+
}, componentData.textLineThree.text))), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
215
234
|
buttonProps: {
|
|
216
235
|
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa === void 0 ? void 0 : _textAndTitleProps$sa.classes,
|
|
217
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa2 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa2 === void 0 ? void 0 : _textAndTitleProps$sa2.text,
|
|
218
236
|
onClick: handleButtonSave,
|
|
219
|
-
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
220
|
-
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
221
|
-
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
222
|
-
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
223
|
-
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
224
|
-
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
237
|
+
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa2 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa2 === void 0 ? void 0 : _textAndTitleProps$sa2.bgColor,
|
|
238
|
+
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa3 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa3 === void 0 ? void 0 : _textAndTitleProps$sa3.borderColor,
|
|
239
|
+
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa4 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa4 === void 0 ? void 0 : _textAndTitleProps$sa4.textColor,
|
|
240
|
+
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa5 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa5 === void 0 ? void 0 : _textAndTitleProps$sa5.hoverTextColor,
|
|
241
|
+
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa6 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa6 === void 0 ? void 0 : _textAndTitleProps$sa6.hoverBorderColor,
|
|
242
|
+
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa7 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa7 === void 0 ? void 0 : _textAndTitleProps$sa7.hoverBgColor
|
|
225
243
|
}
|
|
226
|
-
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
244
|
+
}, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$sa8 = textAndTitleProps.saveButtonProps) === null || _textAndTitleProps$sa8 === void 0 ? void 0 : _textAndTitleProps$sa8.text), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
227
245
|
buttonProps: {
|
|
228
246
|
classes: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca === void 0 ? void 0 : _textAndTitleProps$ca.classes,
|
|
229
|
-
text: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca2 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca2 === void 0 ? void 0 : _textAndTitleProps$ca2.text,
|
|
230
247
|
onClick: handleButtonCancel,
|
|
231
|
-
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
232
|
-
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
233
|
-
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
234
|
-
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
235
|
-
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
236
|
-
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$
|
|
248
|
+
bgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca2 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca2 === void 0 ? void 0 : _textAndTitleProps$ca2.bgColor,
|
|
249
|
+
borderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca3 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca3 === void 0 ? void 0 : _textAndTitleProps$ca3.borderColor,
|
|
250
|
+
textColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca4 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca4 === void 0 ? void 0 : _textAndTitleProps$ca4.textColor,
|
|
251
|
+
hoverTextColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca5 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca5 === void 0 ? void 0 : _textAndTitleProps$ca5.hoverTextColor,
|
|
252
|
+
hoverBorderColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca6 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca6 === void 0 ? void 0 : _textAndTitleProps$ca6.hoverBorderColor,
|
|
253
|
+
hoverBgColor: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca7 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca7 === void 0 ? void 0 : _textAndTitleProps$ca7.hoverBgColor
|
|
237
254
|
}
|
|
238
|
-
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
255
|
+
}, textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : (_textAndTitleProps$ca8 = textAndTitleProps.cancelButtonProps) === null || _textAndTitleProps$ca8 === void 0 ? void 0 : _textAndTitleProps$ca8.text)) : /*#__PURE__*/_react.default.createElement("div", {
|
|
239
256
|
className: wrapperClassList,
|
|
240
257
|
onClick: toggleEditState
|
|
241
258
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
242
259
|
className: titleWrapperClassList
|
|
243
|
-
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
260
|
+
}, componentData.title.text ? /*#__PURE__*/_react.default.createElement("h1", {
|
|
244
261
|
className: titleClassList
|
|
245
|
-
}, componentData.title.text)), /*#__PURE__*/_react.default.createElement("div", {
|
|
262
|
+
}, componentData.title.text) : /*#__PURE__*/_react.default.createElement("div", null, children)), /*#__PURE__*/_react.default.createElement("div", {
|
|
246
263
|
className: textWrapperClassList
|
|
247
|
-
}, /*#__PURE__*/_react.default.createElement("
|
|
264
|
+
}, !componentData.title.text ? /*#__PURE__*/_react.default.createElement("h1", {
|
|
265
|
+
id: "textLineOne",
|
|
266
|
+
className: titleClassList
|
|
267
|
+
}, componentData.textLineOne.text) : /*#__PURE__*/_react.default.createElement("p", {
|
|
268
|
+
id: "textLineOne",
|
|
248
269
|
className: textClassList
|
|
249
270
|
}, componentData.textLineOne.text), /*#__PURE__*/_react.default.createElement("p", {
|
|
271
|
+
id: "textLineTwo",
|
|
250
272
|
className: textClassList
|
|
251
273
|
}, componentData.textLineTwo.text), /*#__PURE__*/_react.default.createElement("p", {
|
|
274
|
+
id: "textLineThree",
|
|
252
275
|
className: textClassList
|
|
253
276
|
}, componentData.textLineThree.text))));
|
|
254
277
|
};
|
|
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
|
|
16
|
-
require("../index.css");
|
|
17
|
-
|
|
18
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
17
|
|
|
20
18
|
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; }
|
|
@@ -44,13 +42,15 @@ const textAreaProps = {
|
|
|
44
42
|
required: _propTypes.default.bool,
|
|
45
43
|
onBlur: _propTypes.default.func,
|
|
46
44
|
onFocus: _propTypes.default.func,
|
|
47
|
-
onChange: _propTypes.default.func
|
|
45
|
+
onChange: _propTypes.default.func,
|
|
46
|
+
withPadding: _propTypes.default.bool
|
|
48
47
|
};
|
|
49
48
|
exports.textAreaProps = textAreaProps;
|
|
50
49
|
|
|
51
50
|
const TextArea = _ref => {
|
|
52
51
|
let {
|
|
53
|
-
textAreaProps
|
|
52
|
+
textAreaProps,
|
|
53
|
+
children
|
|
54
54
|
} = _ref;
|
|
55
55
|
const classList = (0, _classnames.default)({
|
|
56
56
|
[textAreaProps.classes]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.classes
|
|
@@ -58,10 +58,11 @@ const TextArea = _ref => {
|
|
|
58
58
|
const labelClassList = (0, _classnames.default)({
|
|
59
59
|
'font-bold': textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.bold,
|
|
60
60
|
[textAreaProps.labelClasses]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.labelClasses
|
|
61
|
-
}, 'w-auto');
|
|
61
|
+
}, 'w-auto pb-2');
|
|
62
62
|
const textAreaClassList = (0, _classnames.default)({
|
|
63
|
-
[textAreaProps.textAreaClasses]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.textAreaClasses
|
|
64
|
-
|
|
63
|
+
[textAreaProps.textAreaClasses]: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.textAreaClasses,
|
|
64
|
+
'p-2': textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.withPadding
|
|
65
|
+
}, 'border rounded-md');
|
|
65
66
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id) && {
|
|
66
67
|
id: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.id
|
|
67
68
|
}, {
|
|
@@ -86,7 +87,7 @@ const TextArea = _ref => {
|
|
|
86
87
|
onChange: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onChange,
|
|
87
88
|
onFocus: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onFocus,
|
|
88
89
|
onBlur: textAreaProps === null || textAreaProps === void 0 ? void 0 : textAreaProps.onBlur
|
|
89
|
-
}));
|
|
90
|
+
}, children));
|
|
90
91
|
};
|
|
91
92
|
|
|
92
93
|
TextArea.propTypes = {
|
|
@@ -17,8 +17,6 @@ var _Column = _interopRequireDefault(require("../Column"));
|
|
|
17
17
|
|
|
18
18
|
var _Row = _interopRequireDefault(require("../Row"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -17,8 +17,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
|
|
18
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
19
|
|
|
20
|
-
require("../index.css");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
22
|
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); }
|
|
@@ -15,8 +15,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _Image = _interopRequireDefault(require("../Image"));
|
|
17
17
|
|
|
18
|
-
require("../index.css");
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
function _extends() { _extends = Object.assign || 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); }
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
require("../index.css");
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
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; }
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css");
|
|
5
|
+
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: "Sora";
|
|
8
|
+
src: url("../fonts/Sora/static/Sora-Thin.ttf") format("truetype");
|
|
9
|
+
font-weight: 100;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: "Sora";
|
|
15
|
+
src: url("../fonts/Sora/static/Sora-ExtraLight.ttf") format("truetype");
|
|
16
|
+
font-weight: 200;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "Sora";
|
|
22
|
+
src: url("../fonts/Sora/static/Sora-Light.ttf") format("truetype");
|
|
23
|
+
font-weight: 300;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: "Sora";
|
|
29
|
+
src: url("../fonts/Sora/static/Sora-Regular.ttf") format("truetype");
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: "Sora";
|
|
36
|
+
src: url("../fonts/Sora/static/Sora-Medium.ttf") format("truetype");
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: "Sora";
|
|
43
|
+
src: url("../fonts/Sora/static/Sora-SemiBold.ttf") format("truetype");
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@font-face {
|
|
49
|
+
font-family: "Sora";
|
|
50
|
+
src: url("../fonts/Sora/static/Sora-Bold.ttf") format("truetype");
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@font-face {
|
|
56
|
+
font-family: "Sora";
|
|
57
|
+
src: url("../fonts/Sora/static/Sora-ExtraBold.ttf") format("truetype");
|
|
58
|
+
font-weight: 800;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.slick-track {
|
|
63
|
+
display: flex !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.slick-slide {
|
|
67
|
+
height: inherit !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.slick-slide > div {
|
|
71
|
+
height: 100%;
|
|
72
|
+
display: flex;
|
|
73
|
+
}
|