nectiasw 0.0.61 → 0.0.62
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/Checkbox/index.d.ts +4 -1
- package/dist/index.es.js +21 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export type CheckboxIconProps = {
|
|
3
3
|
status?: boolean;
|
|
4
|
-
}
|
|
4
|
+
} & Pick<CheckboxProps, "left" | "top" | "right">;
|
|
5
5
|
export type CheckboxProps = {
|
|
6
6
|
id?: string;
|
|
7
|
+
top?: string;
|
|
8
|
+
left?: string;
|
|
9
|
+
right?: string;
|
|
7
10
|
name?: string;
|
|
8
11
|
label?: string;
|
|
9
12
|
value?: string;
|
package/dist/index.es.js
CHANGED
|
@@ -14023,8 +14023,9 @@ const B6 = ye.input.attrs({ type: "checkbox" })`
|
|
|
14023
14023
|
transition: background-color 0.2s linear, border-color 0.2s linear;
|
|
14024
14024
|
`, Q$ = ye(q$)`
|
|
14025
14025
|
position: absolute;
|
|
14026
|
-
|
|
14027
|
-
|
|
14026
|
+
left: ${(e) => e.left};
|
|
14027
|
+
top: ${(e) => e.top ?? "50%"};
|
|
14028
|
+
right: ${(e) => e.right ?? "0.125rem"};
|
|
14028
14029
|
transform: translateY(-50%);
|
|
14029
14030
|
color: ${(e) => e.status ? "#FFFFFF" : "transparent"};
|
|
14030
14031
|
margin: 0;
|
|
@@ -14038,30 +14039,33 @@ B6.defaultProps = {
|
|
|
14038
14039
|
};
|
|
14039
14040
|
const L6 = ({
|
|
14040
14041
|
id: e,
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14042
|
+
top: n,
|
|
14043
|
+
left: t,
|
|
14044
|
+
right: r,
|
|
14045
|
+
name: i,
|
|
14046
|
+
label: o,
|
|
14047
|
+
checked: a,
|
|
14048
|
+
disabled: s,
|
|
14049
|
+
onChange: l,
|
|
14050
|
+
className: c
|
|
14047
14051
|
}) => {
|
|
14048
|
-
const
|
|
14049
|
-
|
|
14052
|
+
const d = () => {
|
|
14053
|
+
l == null || l(!a);
|
|
14050
14054
|
};
|
|
14051
|
-
return /* @__PURE__ */ he("div", { className: Ce(yb.container.root,
|
|
14055
|
+
return /* @__PURE__ */ he("div", { className: Ce(yb.container.root, c && c), children: [
|
|
14052
14056
|
/* @__PURE__ */ B(
|
|
14053
14057
|
B6,
|
|
14054
14058
|
{
|
|
14055
14059
|
id: e,
|
|
14056
|
-
name:
|
|
14057
|
-
checked:
|
|
14058
|
-
disabled:
|
|
14059
|
-
onClick:
|
|
14060
|
+
name: i,
|
|
14061
|
+
checked: a,
|
|
14062
|
+
disabled: s,
|
|
14063
|
+
onClick: d,
|
|
14060
14064
|
className: yb.container.input
|
|
14061
14065
|
}
|
|
14062
14066
|
),
|
|
14063
|
-
/* @__PURE__ */ B(Q$, {
|
|
14064
|
-
|
|
14067
|
+
/* @__PURE__ */ B(Q$, { top: n, right: r, left: t, status: a, onClick: d }),
|
|
14068
|
+
o && /* @__PURE__ */ B("label", { htmlFor: e, className: yb.container.label, children: o })
|
|
14065
14069
|
] });
|
|
14066
14070
|
};
|
|
14067
14071
|
var J$ = Object.defineProperty, K$ = (e, n, t) => n in e ? J$(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, xb = (e, n, t) => (K$(e, typeof n != "symbol" ? n + "" : n, t), t);
|