@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/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export declare type ButtonGroupProps = {
52
52
  onChange?: (value: string | number) => void;
53
53
  color?: Color;
54
54
  gap?: CSSstring;
55
+ width?: CSSstring;
55
56
  };
56
57
 
57
58
  export declare type ButtonProps = HTMLButtonProps & {
package/dist/index.js CHANGED
@@ -1474,18 +1474,20 @@ const T9e = ({
1474
1474
  onChange: n = () => {
1475
1475
  },
1476
1476
  color: r,
1477
- gap: o
1478
- }) => /* @__PURE__ */ Ie.jsx("div", { className: "button_group", style: { gap: o }, children: e == null ? void 0 : e.map((i, l) => /* @__PURE__ */ Ie.jsx(
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: i.label,
1483
- onClick: () => n(i.value),
1484
- className: `button_group_button ${l == 0 ? "first" : ""} ${l == e.length - 1 ? "last" : ""} ${i.value == t ? "active" : ""}`,
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
- i.value
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, {