@kingsimba/nc-ui 0.1.23 → 0.1.24

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.js CHANGED
@@ -205,14 +205,15 @@ function Pn({
205
205
  disabled: r,
206
206
  size: o = "default"
207
207
  }) {
208
- return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i, a) => {
209
- const c = r || !!i.disabled;
208
+ return /* @__PURE__ */ s("div", { className: `nc-button-group ${o === "small" ? "nc-small" : ""}`, children: n.map((i) => {
209
+ const a = r || !!i.disabled;
210
210
  return /* @__PURE__ */ s(
211
211
  "button",
212
212
  {
213
- className: `nc-button-group-item ${e === i.key ? "nc-active" : ""} ${a < n.length - 1 ? "nc-has-border" : ""}`,
214
- onClick: () => !c && t(i.key),
215
- disabled: c,
213
+ type: "button",
214
+ className: `nc-button-group-item ${e === i.key ? "nc-active" : ""}`,
215
+ onClick: () => !a && t(i.key),
216
+ disabled: a,
216
217
  children: i.label
217
218
  },
218
219
  i.key