@ambuj.bhaskar/react-component-library 0.24.10-alpha → 0.24.11-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
@@ -662,8 +662,11 @@ export declare const ButtonGroup: React.FC<ButtonGroupProps>;
662
662
 
663
663
  export declare type ButtonGroupProps = {
664
664
  items: {
665
- label: string;
665
+ label?: string;
666
666
  value: string | number;
667
+ icon?: IconName;
668
+ iconPosition?: ButtonProps["iconPosition"];
669
+ contentColor?: Color;
667
670
  disabled?: boolean;
668
671
  loading?: boolean;
669
672
  }[];
package/dist/index.js CHANGED
@@ -161,6 +161,11 @@ const AS = {
161
161
  error: "#FF254015",
162
162
  info: "#0076B215"
163
163
  }
164
+ },
165
+ compactEventCard: {
166
+ focusedBorderColor: "#ffcc00",
167
+ focusedBorderThickness: "2px",
168
+ borderColor: "#EAEBEE"
164
169
  }
165
170
  }, Sj = {
166
171
  text: {
@@ -24937,7 +24942,11 @@ const CPe = ({
24937
24942
  _2,
24938
24943
  {
24939
24944
  variant: "primary",
24940
- content: a.label,
24945
+ content: a == null ? void 0 : a.label,
24946
+ icon: a == null ? void 0 : a.icon,
24947
+ iconPosition: (a == null ? void 0 : a.iconPosition) ?? "before",
24948
+ textColor: a == null ? void 0 : a.contentColor,
24949
+ iconColor: a == null ? void 0 : a.contentColor,
24941
24950
  onClick: () => n(a.value),
24942
24951
  width: o,
24943
24952
  className: `button_group_button ${s == 0 ? "first" : ""} ${s == e.length - 1 ? "last" : ""} ${a.value == t ? "active" : ""}`,
@@ -33222,7 +33231,7 @@ const vPe = ({
33222
33231
  }
33223
33232
  }
33224
33233
  ),
33225
- /* @__PURE__ */ z.jsx(mr, { name: z4[e] }),
33234
+ /* @__PURE__ */ z.jsx(mr, { name: z4[e], color: t == null ? void 0 : t.color }),
33226
33235
  /* @__PURE__ */ z.jsx("p", { className: "font_secondary", title: r, children: r })
33227
33236
  ] });
33228
33237
  case "date": {
@@ -33252,14 +33261,13 @@ const vPe = ({
33252
33261
  imageFit: c = "cover",
33253
33262
  imageWidth: u = "50%",
33254
33263
  isFocused: d = !1,
33255
- focusedBorderColor: h = "#ffcc00",
33256
- focusedBorderThickness: C = "2px",
33257
- surfaceColor: m = "#fff",
33258
- surfaceBorderColor: A = "#eaebee",
33259
- surfaceSecondaryColor: v = "#f3f5f7",
33260
- textPrimaryColor: p = "#292929",
33261
- textSecondaryColor: _ = "#474747",
33262
- fontSize: w = "14px"
33264
+ focusedBorderColor: h,
33265
+ focusedBorderThickness: C,
33266
+ surfaceColor: m,
33267
+ surfaceBorderColor: A,
33268
+ surfaceSecondaryColor: v,
33269
+ textPrimaryColor: p,
33270
+ fontSize: _
33263
33271
  }) => {
33264
33272
  switch (a == null && (s = "0%"), e) {
33265
33273
  case "new":
@@ -33277,8 +33285,7 @@ const vPe = ({
33277
33285
  "--c_surface_secondary": v,
33278
33286
  "--c_data_color": t == null ? void 0 : t.color,
33279
33287
  "--c_text_primary": p,
33280
- "--c_text_secondary": _,
33281
- "--font_s": w
33288
+ "--font_s": _
33282
33289
  },
33283
33290
  children: [
33284
33291
  a != null ? Bw(a, t, {
@@ -33315,7 +33322,9 @@ const vPe = ({
33315
33322
  maxHeight: `calc(100% - ${s})`
33316
33323
  },
33317
33324
  children: i.map(
33318
- (x) => Bw(x, t)
33325
+ (w) => Bw(w, t, {
33326
+ height: `calc(100%/${i == null ? void 0 : i.length})`
33327
+ })
33319
33328
  )
33320
33329
  }
33321
33330
  )
@@ -33337,8 +33346,7 @@ const vPe = ({
33337
33346
  "--c_surface_secondary": v,
33338
33347
  "--c_data_color": t == null ? void 0 : t.color,
33339
33348
  "--c_text_primary": p,
33340
- "--c_text_secondary": _,
33341
- "--font_s": w
33349
+ "--font_s": _
33342
33350
  },
33343
33351
  children: [
33344
33352
  /* @__PURE__ */ z.jsx("img", { src: t == null ? void 0 : t.frameUrl, alt: "Alert" }),