Skip to content

Commit e57cc6b

Browse files
authored
Create a new dist version 3.2.8 (#483)
Collecting: - [CI/CD] NPM publish & release (#476) - [FEAT] Changes to the real time pipeline screen (#482)
1 parent 544a31d commit e57cc6b

36 files changed

+292
-119
lines changed

commit_message

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11

22

3-
Create a new dist version 3.2.7
3+
Create a new dist version 3.2.8
44

55
Collecting:
6-
- [Dependabot] Bump storybook from 8.6.14 to 8.6.15 in the npm_and_yarn group across 1 directory #468
7-
- [FIX] bump @storybook/react to resolve dependabot alert #471
8-
- [Dependabot] Bump react-router from 6.22.3 to 6.30.3 in the npm_and_yarn group across 1 directory #474
9-
- [CHORE ]Handle permission denied error message in the table #473
10-
- [Dependabot] Bump lodash from 4.17.21 to 4.17.23 in the npm_and_yarn group across 1 directory
6+
- [CI/CD] NPM publish & release (#476)
7+
- [FEAT] Changes to the real time pipeline screen (#482)

dist/components/FormToggle/FormToggle.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
export default FormToggle;
2-
declare function FormToggle({ density, label, name, onChange, ...inputProps }: {
2+
declare function FormToggle({ className, density, label, labelTip, name, readOnly, onChange, ...inputProps }: {
33
[x: string]: any;
4+
className?: string;
45
density?: string;
56
label?: string;
7+
labelTip?: string;
68
name: any;
9+
readOnly?: boolean;
710
onChange?: () => void;
811
}): JSX.Element;
912
declare namespace FormToggle {
1013
namespace propTypes {
14+
export let className: any;
1115
export { DENSITY as density };
1216
export let label: any;
17+
export let labelTip: any;
1318
export let name: any;
19+
export let readOnly: any;
1420
export let onChange: any;
1521
}
1622
}

dist/components/FormToggle/FormToggle.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 57 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,72 @@
1-
import { jsx as r, jsxs as d } from "react/jsx-runtime";
1+
import { jsx as l, jsxs as f } from "react/jsx-runtime";
22
import "react";
3-
import g from "classnames";
4-
import o from "prop-types";
5-
import { Field as p } from "react-final-form";
6-
import { DENSITY as c } from "../../types.mjs";
3+
import _ from "classnames";
4+
import r from "prop-types";
5+
import { Field as h } from "react-final-form";
6+
import N from "../Tip/Tip.mjs";
7+
import { DENSITY as x } from "../../types.mjs";
78
/* empty css */
8-
const n = ({ density: l = "", label: t = "", name: e, onChange: i = () => {
9-
}, ...s }) => {
10-
const f = g(
9+
const b = ({
10+
className: a = "",
11+
density: m = "",
12+
label: t = "",
13+
labelTip: o = "",
14+
name: e,
15+
readOnly: c = !1,
16+
onChange: s = () => {
17+
},
18+
...d
19+
}) => {
20+
const p = _(
21+
"test",
22+
"form-field-toggle",
1123
"form-field__wrapper",
12-
l && `form-field__wrapper-${l}`
24+
m && `form-field__wrapper-${m}`,
25+
(t || o) && "form-field-toggle_has-label",
26+
a
1327
);
14-
return /* @__PURE__ */ r(p, { name: e, value: s.value, type: "checkbox", children: ({ input: a }) => /* @__PURE__ */ d(
15-
"label",
28+
return /* @__PURE__ */ l(h, { name: e, value: d.value, type: "checkbox", children: ({ input: i }) => /* @__PURE__ */ f(
29+
"div",
1630
{
17-
className: "form-field-toggle",
31+
className: p,
1832
"data-testid": e ? `${e}-form-field-toggle` : "form-field-toggle",
1933
children: [
20-
t && /* @__PURE__ */ r("div", { className: "form-field__label", children: t }),
21-
/* @__PURE__ */ r(
22-
"input",
23-
{
24-
"data-testid": e ? `${e}-form-toggle` : "form-toggle",
25-
id: e,
26-
...a,
27-
...s,
28-
onChange: (m) => {
29-
i && i(m), a.onChange(m);
30-
},
31-
type: "checkbox"
32-
}
33-
),
34-
/* @__PURE__ */ r("div", { className: f, children: /* @__PURE__ */ r("span", { className: "form-field-toggle__switch" }) })
34+
(t || o) && /* @__PURE__ */ f("label", { htmlFor: e, className: "form-field-toggle__label", children: [
35+
t,
36+
o && /* @__PURE__ */ l(N, { text: o })
37+
] }),
38+
/* @__PURE__ */ f("label", { htmlFor: e, className: "form-field-toggle__toggle-wrapper", children: [
39+
/* @__PURE__ */ l(
40+
"input",
41+
{
42+
type: "checkbox",
43+
"data-testid": e ? `${e}-form-toggle` : "form-toggle",
44+
id: e,
45+
...i,
46+
...d,
47+
value: String(i.checked),
48+
disabled: c,
49+
onChange: (g) => {
50+
s == null || s(g), i.onChange(g);
51+
}
52+
}
53+
),
54+
/* @__PURE__ */ l("span", { className: "form-field-toggle__switch" })
55+
] })
3556
]
3657
}
3758
) });
3859
};
39-
n.propTypes = {
40-
density: c,
41-
label: o.string,
42-
name: o.string.isRequired,
43-
onChange: o.func
60+
b.propTypes = {
61+
className: r.string,
62+
density: x,
63+
label: r.string,
64+
labelTip: r.string,
65+
name: r.string.isRequired,
66+
readOnly: r.bool,
67+
onChange: r.func
4468
};
4569
export {
46-
n as default
70+
b as default
4771
};
4872
//# sourceMappingURL=FormToggle.mjs.map

dist/components/FormToggle/FormToggle.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/TableCell/TableCell.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)