@harnessio/ui 0.0.267 → 0.0.268

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.
@@ -3662,7 +3662,7 @@ declare namespace Root_2 {
3662
3662
 
3663
3663
  declare function Root_3({ children, onValueChange, value }: RootProps): JSX_2.Element;
3664
3664
 
3665
- declare function Root_4({ children, isGroupCard, onClick }: PropsWithChildren<StudioCardRootProps>): JSX_3.Element;
3665
+ declare function Root_4({ children, isGroupCard, onClick, theme, selected }: PropsWithChildren<StudioCardRootProps>): JSX_3.Element;
3666
3666
 
3667
3667
  declare interface RootProps {
3668
3668
  children: ReactNode;
@@ -4704,6 +4704,8 @@ export declare interface StudioCardMessageProps {
4704
4704
  export declare interface StudioCardRootProps {
4705
4705
  isGroupCard?: boolean;
4706
4706
  onClick?: React.MouseEventHandler<HTMLDivElement>;
4707
+ theme?: 'default' | 'success' | 'warning' | 'danger';
4708
+ selected?: boolean;
4707
4709
  }
4708
4710
 
4709
4711
  export declare interface StudioCardStatusProps {
@@ -1,5 +1,5 @@
1
1
  import { a8 as e, a9 as o, A as t, aa as r, a4 as i, ab as n, a6 as l, ac as b, ad as p, ae as u, B as g, af as m, b as d, ag as c, ah as T, V as C, ai as S, Q as h, aj as V, ak as y, al as F, am as I, q as P, an as D, ao as A, ap as B, aq as M, D as L, h as w, ar as f, a3 as v, k as x, as as N, at as k, au as R, av as G, aw as W, ax as E, F as K, ay as O, az as U, aA as z, aB as j, aC as q, aD as H, p as J, aE as Q, o as Z, aF as $, aG as X, a7 as Y, aH as _, I as aa, aI as sa, aJ as ea, z as oa, aK as ta, y as ra, aL as ia, aM as na, aN as la, aO as ba, aP as pa, L as ua, aQ as ga, r as ma, aR as da, aS as ca, aT as Ta, E as Ca, M as Sa, s as ha, aU as Va, aV as ya, aW as Fa, aX as Ia, aY as Pa, aZ as Da, a_ as Aa, a$ as Ba, b0 as Ma, b1 as La, b2 as wa, b3 as fa, a0 as va, b4 as xa, b5 as Na, R as ka, b6 as Ra, b7 as Ga, b8 as Wa, b9 as Ea, Z as Ka, ba as Oa, bb as Ua, bc as za, bd as ja, j as qa, be as Ha, bf as Ja, a2 as Qa, bg as Za, d as $a, bh as Xa, v as Ya, bi as _a, m as as, bj as ss, $ as es, bk as os, U as ts, n as rs, i as is, T as ns, bl as ls, G as bs, bm as ps, bn as us, bo as gs, bp as ms, bq as ds, br as cs, bs as Ts, bt as Cs, bu as Ss, bv as hs, bw as Vs, bx as ys, by as Fs, bz as Is, bA as Ps, bB as Ds, bC as As, bD as Bs, bE as Ms, bF as Ls, bG as ws, bH as fs, bI as vs, bJ as xs, bK as Ns, bL as ks, bM as Rs, bN as Gs, bO as Ws, bP as Es, bQ as Ks, J as Os, bR as Us, bS as zs, bT as js, bU as qs, bV as Hs, a5 as Js, bW as Qs } from "./toasts-Wn5hA6PS.js";
2
- import { e as $s, g as Xs, h as Ys, k as _s, j as ae, L as se, d as ee, C as oe, w as te, D as re, x as ie, y as ne, b as le, F as be, G as pe, I as ue, M as ge, a as me, l as de, P as ce, t as Te, s as Ce, m as Se, q as he, n as Ve, o as ye, p as Fe, u as Ie, f as Pe, R as De, E as Ae, N as Be, O as Me, S as Le, A as we, K as fe, T as ve, H as xe, U as Ne, z as ke, V as Re, J as Ge, W as We, c as Ee, r as Ke, B as Oe, v as Ue } from "./index-D924BTHX.js";
2
+ import { e as $s, g as Xs, h as Ys, k as _s, j as ae, L as se, d as ee, C as oe, w as te, D as re, x as ie, y as ne, b as le, F as be, G as pe, I as ue, M as ge, a as me, l as de, P as ce, t as Te, s as Ce, m as Se, q as he, n as Ve, o as ye, p as Fe, u as Ie, f as Pe, R as De, E as Ae, N as Be, O as Me, S as Le, A as we, K as fe, T as ve, H as xe, U as Ne, z as ke, V as Re, J as Ge, W as We, c as Ee, r as Ke, B as Oe, v as Ue } from "./index-DZy-ZB3D.js";
3
3
  export {
4
4
  e as AccentColor,
5
5
  o as Accordion,
@@ -5118,21 +5118,29 @@ const hi = ({
5118
5118
  Root: Ec,
5119
5119
  Item: Ac
5120
5120
  }, Jt = 5;
5121
- function Lc({ children: e, isGroupCard: n = !1, onClick: t }) {
5122
- const o = Te({ x: 0, y: 0 });
5121
+ function Lc({
5122
+ children: e,
5123
+ isGroupCard: n = !1,
5124
+ onClick: t,
5125
+ theme: o = "default",
5126
+ selected: i = !1
5127
+ }) {
5128
+ const r = Te({ x: 0, y: 0 });
5123
5129
  return /* @__PURE__ */ c(
5124
5130
  "div",
5125
5131
  {
5126
5132
  className: A("cn-studio-card cursor-default", { "cn-studio-card-group": n }),
5127
- onMouseDown: (i) => {
5128
- o.current = { x: i.clientX, y: i.clientY };
5133
+ onMouseDown: (s) => {
5134
+ r.current = { x: s.clientX, y: s.clientY };
5129
5135
  },
5130
- onClick: (i) => {
5131
- const r = Math.abs(i.clientX - o.current.x), s = Math.abs(i.clientY - o.current.y);
5132
- r > Jt || s > Jt || (i.stopPropagation(), t == null || t(i));
5136
+ onClick: (s) => {
5137
+ const l = Math.abs(s.clientX - r.current.x), a = Math.abs(s.clientY - r.current.y);
5138
+ l > Jt || a > Jt || (s.stopPropagation(), t == null || t(s));
5133
5139
  },
5134
5140
  role: "button",
5135
5141
  tabIndex: -1,
5142
+ "data-theme": o,
5143
+ "data-selected": i,
5136
5144
  children: e
5137
5145
  }
5138
5146
  );
@@ -6262,4 +6270,4 @@ export {
6262
6270
  _c as y,
6263
6271
  Tc as z
6264
6272
  };
6265
- //# sourceMappingURL=index-D924BTHX.js.map
6273
+ //# sourceMappingURL=index-DZy-ZB3D.js.map