@ambuj.bhaskar/react-component-library 0.24.10-alpha → 0.24.12-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
  }[];
@@ -672,6 +675,7 @@ export declare type ButtonGroupProps = {
672
675
  color?: Color;
673
676
  gap?: CSSstring;
674
677
  width?: CSSstring;
678
+ size?: ButtonProps["size"];
675
679
  };
676
680
 
677
681
  export declare type ButtonProps = HTMLButtonProps & {
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: {
@@ -24932,19 +24937,26 @@ const CPe = ({
24932
24937
  },
24933
24938
  color: r,
24934
24939
  width: o,
24935
- gap: i
24936
- }) => /* @__PURE__ */ z.jsx("div", { className: "button_group", style: { gap: i }, children: e == null ? void 0 : e.map((a, s) => /* @__PURE__ */ z.jsx(
24940
+ size: i = "s",
24941
+ gap: a
24942
+ }) => /* @__PURE__ */ z.jsx("div", { className: "button_group", style: { gap: a }, children: e == null ? void 0 : e.map((s, c) => /* @__PURE__ */ z.jsx(
24937
24943
  _2,
24938
24944
  {
24939
24945
  variant: "primary",
24940
- content: a.label,
24941
- onClick: () => n(a.value),
24946
+ content: s == null ? void 0 : s.label,
24947
+ icon: s == null ? void 0 : s.icon,
24948
+ iconPosition: (s == null ? void 0 : s.iconPosition) ?? "before",
24949
+ textColor: s == null ? void 0 : s.contentColor,
24950
+ iconColor: s == null ? void 0 : s.contentColor,
24951
+ onClick: () => n(s.value),
24942
24952
  width: o,
24943
- className: `button_group_button ${s == 0 ? "first" : ""} ${s == e.length - 1 ? "last" : ""} ${a.value == t ? "active" : ""}`,
24953
+ className: `button_group_button ${c == 0 ? "first" : ""} ${c == e.length - 1 ? "last" : ""} ${s.value == t ? "active" : ""}`,
24944
24954
  backgroundColor: r,
24945
- borderColor: r
24955
+ borderColor: r,
24956
+ disabled: s.disabled,
24957
+ size: i
24946
24958
  },
24947
- a.value
24959
+ s.value
24948
24960
  )) });
24949
24961
  /*!
24950
24962
  * @kurkle/color v0.3.4
@@ -33222,7 +33234,7 @@ const vPe = ({
33222
33234
  }
33223
33235
  }
33224
33236
  ),
33225
- /* @__PURE__ */ z.jsx(mr, { name: z4[e] }),
33237
+ /* @__PURE__ */ z.jsx(mr, { name: z4[e], color: t == null ? void 0 : t.color }),
33226
33238
  /* @__PURE__ */ z.jsx("p", { className: "font_secondary", title: r, children: r })
33227
33239
  ] });
33228
33240
  case "date": {
@@ -33252,14 +33264,13 @@ const vPe = ({
33252
33264
  imageFit: c = "cover",
33253
33265
  imageWidth: u = "50%",
33254
33266
  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"
33267
+ focusedBorderColor: h,
33268
+ focusedBorderThickness: C,
33269
+ surfaceColor: m,
33270
+ surfaceBorderColor: A,
33271
+ surfaceSecondaryColor: v,
33272
+ textPrimaryColor: p,
33273
+ fontSize: _
33263
33274
  }) => {
33264
33275
  switch (a == null && (s = "0%"), e) {
33265
33276
  case "new":
@@ -33277,8 +33288,7 @@ const vPe = ({
33277
33288
  "--c_surface_secondary": v,
33278
33289
  "--c_data_color": t == null ? void 0 : t.color,
33279
33290
  "--c_text_primary": p,
33280
- "--c_text_secondary": _,
33281
- "--font_s": w
33291
+ "--font_s": _
33282
33292
  },
33283
33293
  children: [
33284
33294
  a != null ? Bw(a, t, {
@@ -33315,7 +33325,9 @@ const vPe = ({
33315
33325
  maxHeight: `calc(100% - ${s})`
33316
33326
  },
33317
33327
  children: i.map(
33318
- (x) => Bw(x, t)
33328
+ (w) => Bw(w, t, {
33329
+ height: `calc(100%/${i == null ? void 0 : i.length})`
33330
+ })
33319
33331
  )
33320
33332
  }
33321
33333
  )
@@ -33337,8 +33349,7 @@ const vPe = ({
33337
33349
  "--c_surface_secondary": v,
33338
33350
  "--c_data_color": t == null ? void 0 : t.color,
33339
33351
  "--c_text_primary": p,
33340
- "--c_text_secondary": _,
33341
- "--font_s": w
33352
+ "--font_s": _
33342
33353
  },
33343
33354
  children: [
33344
33355
  /* @__PURE__ */ z.jsx("img", { src: t == null ? void 0 : t.frameUrl, alt: "Alert" }),