foris 6.0.1-beta.17e5a959 → 6.0.2-beta.2e2f326a
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/bootstrap/CheckBox.js
CHANGED
|
@@ -17,17 +17,19 @@ CheckBox.propTypes = {
|
|
|
17
17
|
helpText: PropTypes.string,
|
|
18
18
|
/** Control if checkbox is clickable */
|
|
19
19
|
disabled: PropTypes.bool,
|
|
20
|
+
/** Additional class name */
|
|
21
|
+
className: PropTypes.string,
|
|
20
22
|
};
|
|
21
23
|
|
|
22
24
|
CheckBox.defaultProps = {
|
|
23
25
|
disabled: false,
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
function CheckBox({ label, helpText, disabled, ...props }) {
|
|
28
|
+
function CheckBox({ label, helpText, disabled, className, ...props }) {
|
|
27
29
|
const uid = useUID();
|
|
28
30
|
|
|
29
31
|
return (
|
|
30
|
-
<div className="mb-3 form-check
|
|
32
|
+
<div className={`${className || "mb-3"} form-check`.trim()}>
|
|
31
33
|
<input
|
|
32
34
|
className="form-check-input"
|
|
33
35
|
type="checkbox"
|
package/bootstrap/RadioSet.js
CHANGED
|
@@ -83,12 +83,13 @@ Radio.propTypes = {
|
|
|
83
83
|
id: PropTypes.string.isRequired,
|
|
84
84
|
inline: PropTypes.bool,
|
|
85
85
|
helpText: PropTypes.string,
|
|
86
|
+
className: PropTypes.string,
|
|
86
87
|
};
|
|
87
88
|
|
|
88
|
-
export function Radio({ label, id, helpText, inline, ...props }) {
|
|
89
|
+
export function Radio({ label, id, helpText, inline, className, ...props }) {
|
|
89
90
|
return (
|
|
90
91
|
<div
|
|
91
|
-
className={
|
|
92
|
+
className={`${className || "mb-3"} ${inline ? "form-check form-check-inline" : ""}`.trim()}
|
|
92
93
|
>
|
|
93
94
|
<input
|
|
94
95
|
id={id}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 CZ.NIC z.s.p.o. (
|
|
2
|
+
* Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
|
3
3
|
*
|
|
4
4
|
* This is free software, licensed under the GNU General Public License v3.
|
|
5
5
|
* See /LICENSE for more information.
|
|
@@ -18,15 +18,12 @@ import {
|
|
|
18
18
|
ModalFooter,
|
|
19
19
|
ModalHeader,
|
|
20
20
|
} from "../../bootstrap/Modal";
|
|
21
|
-
import { ForisURLs } from "../../utils/forisUrls";
|
|
22
21
|
|
|
23
22
|
WiFiQRCode.propTypes = {
|
|
24
23
|
SSID: PropTypes.string.isRequired,
|
|
25
24
|
password: PropTypes.string.isRequired,
|
|
26
25
|
};
|
|
27
26
|
|
|
28
|
-
const QR_ICON_PATH = `${ForisURLs.static}/imgs/QR_icon.svg`;
|
|
29
|
-
|
|
30
27
|
export default function WiFiQRCode({ SSID, password }) {
|
|
31
28
|
const [modal, setModal] = useState(false);
|
|
32
29
|
|
|
@@ -40,11 +37,10 @@ export default function WiFiQRCode({ SSID, password }) {
|
|
|
40
37
|
setModal(true);
|
|
41
38
|
}}
|
|
42
39
|
>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
style={{ opacity: 0.67 }}
|
|
40
|
+
<i
|
|
41
|
+
className="fa-solid fa-qrcode"
|
|
42
|
+
title={_("Show QR code")}
|
|
43
|
+
aria-label={_("Show QR code")}
|
|
48
44
|
/>
|
|
49
45
|
</button>
|
|
50
46
|
{modal ? (
|
package/foris-6.0.2.tgz
ADDED
|
Binary file
|
package/package.json
CHANGED
package/foris-6.0.1.tgz
DELETED
|
Binary file
|