@ambuj.bhaskar/react-component-library 0.16.0-alpha → 0.17.0-alpha
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/README.md +21 -21
- package/bin/cli.js +87 -87
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -6
- package/dist/index.umd.js +2 -2
- package/package.json +87 -84
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1474,18 +1474,20 @@ const T9e = ({
|
|
|
1474
1474
|
onChange: n = () => {
|
|
1475
1475
|
},
|
|
1476
1476
|
color: r,
|
|
1477
|
-
|
|
1478
|
-
|
|
1477
|
+
width: o,
|
|
1478
|
+
gap: i
|
|
1479
|
+
}) => /* @__PURE__ */ Ie.jsx("div", { className: "button_group", style: { gap: i }, children: e == null ? void 0 : e.map((l, c) => /* @__PURE__ */ Ie.jsx(
|
|
1479
1480
|
Zn,
|
|
1480
1481
|
{
|
|
1481
1482
|
variant: "primary",
|
|
1482
|
-
content:
|
|
1483
|
-
onClick: () => n(
|
|
1484
|
-
|
|
1483
|
+
content: l.label,
|
|
1484
|
+
onClick: () => n(l.value),
|
|
1485
|
+
width: o,
|
|
1486
|
+
className: `button_group_button ${c == 0 ? "first" : ""} ${c == e.length - 1 ? "last" : ""} ${l.value == t ? "active" : ""}`,
|
|
1485
1487
|
backgroundColor: r,
|
|
1486
1488
|
borderColor: r
|
|
1487
1489
|
},
|
|
1488
|
-
|
|
1490
|
+
l.value
|
|
1489
1491
|
)) }), qa = (e, t) => {
|
|
1490
1492
|
const n = e;
|
|
1491
1493
|
return isNaN(n.getTime()) ? "" : t === "date" ? n.toLocaleDateString(void 0, {
|