@pinuts/bsr-uikit-relaunch 0.2.85 → 0.2.87
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/index.js +1 -1
- package/dist/items/eventWizardItems/EventDatePicker/CalendarToolbar.js +1 -1
- package/dist/items/eventWizardItems/EventDatePicker/Header.js +3 -2
- package/dist/items/eventWizardItems/EventPicker/Components/CheckboxField.js +4 -4
- package/dist/items/eventWizardItems/Intro/Intro.js +1 -1
- package/dist/items/eventWizardItems/shared/PickerFieldsetLegend.js +2 -1
- package/dist/locales.d.ts +5 -0
- package/dist/locales.js +4 -0
- package/dist/shared/InfoModal/InfoModal.d.ts +3 -1
- package/dist/shared/InfoModal/InfoModal.d.ts.map +1 -1
- package/dist/shared/InfoModal/InfoModal.js +12 -59
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ const CalendarToolbar = _ref => {
|
|
|
32
32
|
height: 16,
|
|
33
33
|
stroke: "currentColor"
|
|
34
34
|
}), /*#__PURE__*/_react.default.createElement("span", null, "zur\xFCck")), /*#__PURE__*/_react.default.createElement("h4", {
|
|
35
|
-
className: "rbc-toolbar-label text-
|
|
35
|
+
className: "rbc-toolbar-label text-dark"
|
|
36
36
|
}, label), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
|
|
37
37
|
variant: "secondary",
|
|
38
38
|
onClick: navigateNext,
|
|
@@ -21,11 +21,12 @@ const Header = props => {
|
|
|
21
21
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
22
22
|
className: "w-75"
|
|
23
23
|
}, /*#__PURE__*/_react.default.createElement("h4", {
|
|
24
|
-
className: "text-
|
|
24
|
+
className: "text-dark"
|
|
25
25
|
}, headline)), infoText && /*#__PURE__*/_react.default.createElement(_InfoModal.default, {
|
|
26
26
|
headline: headline,
|
|
27
27
|
infoText: infoText,
|
|
28
|
-
infoButton: infoButton
|
|
28
|
+
infoButton: infoButton,
|
|
29
|
+
className: "ml-auto"
|
|
29
30
|
}));
|
|
30
31
|
};
|
|
31
32
|
Header.propTypes = {
|
|
@@ -67,7 +67,7 @@ const CheckboxField = props => {
|
|
|
67
67
|
const hasDescription = !!infobadge || !!subtitle;
|
|
68
68
|
const descriptionId = hasDescription ? `desc-${inputProps.id}` : null;
|
|
69
69
|
return /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
70
|
-
className: "pi-checkbox custom-control custom-checkbox border mb-1 w-100
|
|
70
|
+
className: "pi-checkbox custom-control custom-checkbox border mb-1 w-100 justify-content-start align-items-center d-block d-md-flex "
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
72
72
|
className: ""
|
|
73
73
|
}, field, inputProps, {
|
|
@@ -80,12 +80,12 @@ const CheckboxField = props => {
|
|
|
80
80
|
className: "custom-control-label d-sm-flex align-items-center p-3 pl-4",
|
|
81
81
|
htmlFor: inputProps.id
|
|
82
82
|
}, /*#__PURE__*/_react.default.createElement(_HTMLParserSanitized.HTMLParserSanitized, null, header)), hasDescription && /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
className: "h5 mr-4 ml-auto d-flex",
|
|
83
|
+
className: "h5 mr-4 ml-auto d-flex pl-5 pl-md-0 pb-3 pb-md-0",
|
|
84
84
|
id: descriptionId
|
|
85
85
|
}, subtitle && /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
className: "small mt-1 mr-4"
|
|
86
|
+
className: "small mt-1 mr-4 pl-4 pl-md-0"
|
|
87
87
|
}, subtitle), infobadge && /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
-
className: "badge badge-secondary rounded-pill ml-auto mt-1 mt-sm-
|
|
88
|
+
className: "badge badge-secondary rounded-pill ml-auto mt-1 mt-sm-0 h-100"
|
|
89
89
|
}, infobadge), required && /*#__PURE__*/_react.default.createElement("span", {
|
|
90
90
|
className: "pi-required text-primary mr-1"
|
|
91
91
|
}, "*"))));
|
|
@@ -22,7 +22,7 @@ const Intro = props => {
|
|
|
22
22
|
}, /*#__PURE__*/_react.default.createElement("h4", {
|
|
23
23
|
className: "d-flex align-items-center justify-content-between"
|
|
24
24
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
25
|
-
className: "mr-2 mr-sm-0 text-
|
|
25
|
+
className: "mr-2 mr-sm-0 text-dark"
|
|
26
26
|
}, headline), infobadge && /*#__PURE__*/_react.default.createElement("span", {
|
|
27
27
|
className: "badge badge-secondary rounded-pill ml-sm-3 mt-2 mt-sm-0"
|
|
28
28
|
}, infobadge)), /*#__PURE__*/_react.default.createElement("p", null, description));
|
|
@@ -26,7 +26,8 @@ const PickerFieldsetLegend = props => {
|
|
|
26
26
|
}), infoText && /*#__PURE__*/_react.default.createElement(_InfoModal.default, {
|
|
27
27
|
headline: headline,
|
|
28
28
|
infoText: infoText,
|
|
29
|
-
infoButton: infoButton
|
|
29
|
+
infoButton: infoButton,
|
|
30
|
+
className: locationSelectLink ? 'ml-1' : 'ml-auto'
|
|
30
31
|
}));
|
|
31
32
|
};
|
|
32
33
|
PickerFieldsetLegend.propTypes = {
|
package/dist/locales.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export namespace resources {
|
|
|
6
6
|
let saveButton: string;
|
|
7
7
|
let okButton: string;
|
|
8
8
|
}
|
|
9
|
+
namespace infoModal {
|
|
10
|
+
export let btnLabel: string;
|
|
11
|
+
let okButton_1: string;
|
|
12
|
+
export { okButton_1 as okButton };
|
|
13
|
+
}
|
|
9
14
|
namespace general {
|
|
10
15
|
let client: string;
|
|
11
16
|
let altLogo: string;
|
package/dist/locales.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export default InfoModal;
|
|
2
|
-
declare function InfoModal({ headline, infoText }: {
|
|
2
|
+
declare function InfoModal({ headline, infoText, className }: {
|
|
3
3
|
headline: any;
|
|
4
4
|
infoText: any;
|
|
5
|
+
className: any;
|
|
5
6
|
}): React.JSX.Element;
|
|
6
7
|
declare namespace InfoModal {
|
|
7
8
|
namespace propTypes {
|
|
8
9
|
let headline: PropTypes.Validator<string>;
|
|
9
10
|
let infoText: PropTypes.Validator<string>;
|
|
11
|
+
let className: PropTypes.Requireable<string>;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
import React from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoModal.d.ts","sourceRoot":"","sources":["../../../src/shared/InfoModal/InfoModal.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"InfoModal.d.ts","sourceRoot":"","sources":["../../../src/shared/InfoModal/InfoModal.jsx"],"names":[],"mappings":";AAMA;;;;sBAwCC;;;;;;;;kBA7C+B,OAAO;sBADjB,YAAY"}
|
|
@@ -7,33 +7,32 @@ exports.default = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactBootstrap = require("react-bootstrap");
|
|
10
|
+
var _reactI18next = require("react-i18next");
|
|
10
11
|
var _HTMLParserSanitized = require("../../items/HTMLParserSanitized/HTMLParserSanitized.jsx");
|
|
11
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
// import Close from "../../icons/Close.jsx";
|
|
15
|
-
// import Info from '../../icons/Info.jsx';
|
|
16
|
-
// import { SmallModal } from '../Modal/SmallModal.jsx';
|
|
17
|
-
// import Modal from "../Modal/Modal.jsx";
|
|
18
|
-
// import styles from "../Modal/Modal.module.scss";
|
|
19
|
-
|
|
20
15
|
const InfoModal = _ref => {
|
|
21
16
|
let {
|
|
22
17
|
headline,
|
|
23
|
-
infoText
|
|
18
|
+
infoText,
|
|
19
|
+
className
|
|
24
20
|
} = _ref;
|
|
21
|
+
const {
|
|
22
|
+
t
|
|
23
|
+
} = (0, _reactI18next.useTranslation)();
|
|
25
24
|
const [show, setShow] = (0, _react.useState)(false);
|
|
26
25
|
const handleClose = () => setShow(false);
|
|
27
26
|
const handleShow = () => setShow(true);
|
|
28
27
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
-
className:
|
|
28
|
+
className: `pi-info ${className}`
|
|
30
29
|
}, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
|
|
31
30
|
onClick: handleShow,
|
|
32
31
|
variant: ""
|
|
33
32
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
34
33
|
"aria-hidden": true,
|
|
35
34
|
className: 'sr-only d-none'
|
|
36
|
-
},
|
|
35
|
+
}, t('infoModal.btnLabel')), /*#__PURE__*/_react.default.createElement("i", {
|
|
37
36
|
className: "pi-icon pi-info ml-2"
|
|
38
37
|
})), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Modal, {
|
|
39
38
|
show: show,
|
|
@@ -50,57 +49,11 @@ const InfoModal = _ref => {
|
|
|
50
49
|
}, headline))), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Modal.Body, null, /*#__PURE__*/_react.default.createElement(_HTMLParserSanitized.HTMLParserSanitized, null, infoText)), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Modal.Footer, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
|
|
51
50
|
variant: "primary",
|
|
52
51
|
onClick: handleClose
|
|
53
|
-
},
|
|
52
|
+
}, t('infoModal.okButton')))));
|
|
54
53
|
};
|
|
55
54
|
InfoModal.propTypes = {
|
|
56
55
|
headline: _propTypes.default.string.isRequired,
|
|
57
|
-
infoText: _propTypes.default.string.isRequired
|
|
56
|
+
infoText: _propTypes.default.string.isRequired,
|
|
57
|
+
className: _propTypes.default.string
|
|
58
58
|
};
|
|
59
|
-
var _default = exports.default = InfoModal;
|
|
60
|
-
// const [show, setShow] = useState(false);
|
|
61
|
-
// const [isModalOpen, setIsModalOpen] = useState(false);
|
|
62
|
-
// const handleClose = () => setShow(false);
|
|
63
|
-
// const handleShow = () => setIsModalOpen(true);
|
|
64
|
-
//
|
|
65
|
-
// const { t } = useTranslation();
|
|
66
|
-
// console.log('InfoModal', infoText, isModalOpen);
|
|
67
|
-
//
|
|
68
|
-
// return (
|
|
69
|
-
// <div className="pi-info ml-auto ">
|
|
70
|
-
// <button
|
|
71
|
-
// onClick={handleShow}
|
|
72
|
-
// type={'button'}
|
|
73
|
-
// aria-label={t('modal.aria.open')}
|
|
74
|
-
// >
|
|
75
|
-
// {infoButton && <span>{infoButton}</span>}
|
|
76
|
-
// <Info stroke="black" fill="black" width={24} height={24} />
|
|
77
|
-
// </button>
|
|
78
|
-
// <SmallModal
|
|
79
|
-
// show={isModalOpen}
|
|
80
|
-
// onClose={() => setIsModalOpen(false)}
|
|
81
|
-
// id={''}
|
|
82
|
-
// aria-labelledby="toc-button"
|
|
83
|
-
// aria-describedby="toc-description"
|
|
84
|
-
// >
|
|
85
|
-
// {/*<Headline id={'modalHeadlineId'} priority="h3" alignment='start' colorVariant='light'*/}
|
|
86
|
-
// {/* className={styles.headlineModal}>*/}
|
|
87
|
-
// {/* {t('components.tableOfContents.title')}*/}
|
|
88
|
-
// {/*</Headline>*/}
|
|
89
|
-
// <h3>
|
|
90
|
-
// {headline}
|
|
91
|
-
// </h3>
|
|
92
|
-
// <ol className={'styles.orderedList'} id="">
|
|
93
|
-
// <HTMLParserSanitized>{infoText}</HTMLParserSanitized>
|
|
94
|
-
// </ol>
|
|
95
|
-
// </SmallModal>
|
|
96
|
-
// </div>
|
|
97
|
-
// );
|
|
98
|
-
//
|
|
99
|
-
// };
|
|
100
|
-
// InfoModal.propTypes = {
|
|
101
|
-
// headline: PropTypes.string.isRequired,
|
|
102
|
-
// infoText: PropTypes.string.isRequired,
|
|
103
|
-
// infoButton: PropTypes.string,
|
|
104
|
-
// };
|
|
105
|
-
//
|
|
106
|
-
// export default InfoModal;
|
|
59
|
+
var _default = exports.default = InfoModal;
|