@harnessio/ui 0.5.28 → 0.5.30
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/components.d.ts
CHANGED
|
@@ -1420,13 +1420,14 @@ declare interface DialogProps {
|
|
|
1420
1420
|
|
|
1421
1421
|
export { DiffModeEnum }
|
|
1422
1422
|
|
|
1423
|
-
export declare const DiffViewer: ({ newCode, oldCode, lang, diffViewWrap }: DiffViewerProps) => JSX_2.Element | null;
|
|
1423
|
+
export declare const DiffViewer: ({ newCode, oldCode, lang, diffViewWrap, diffViewMode }: DiffViewerProps) => JSX_2.Element | null;
|
|
1424
1424
|
|
|
1425
1425
|
declare interface DiffViewerProps {
|
|
1426
1426
|
oldCode: string;
|
|
1427
1427
|
newCode: string;
|
|
1428
1428
|
lang?: DiffHighlighterLang;
|
|
1429
1429
|
diffViewWrap?: boolean;
|
|
1430
|
+
diffViewMode?: DiffModeEnum;
|
|
1430
1431
|
}
|
|
1431
1432
|
|
|
1432
1433
|
export declare enum Direction {
|
|
@@ -4251,7 +4252,9 @@ export declare const Sidebar: {
|
|
|
4251
4252
|
classNameContent?: string;
|
|
4252
4253
|
preserveScrollPosition?: boolean;
|
|
4253
4254
|
storageKey?: string;
|
|
4254
|
-
} & ScrollAreaIntersectionProps_2 & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>>
|
|
4255
|
+
} & ScrollAreaIntersectionProps_2 & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>> & {
|
|
4256
|
+
contentClassName?: string;
|
|
4257
|
+
}) => JSX_2.Element;
|
|
4255
4258
|
Footer: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
4256
4259
|
Group: ForwardRefExoticComponent<SidebarGroupProps & RefAttributes<HTMLDivElement>>;
|
|
4257
4260
|
Header: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a4 as e, B as t, V as o, U as r, a7 as i, a8 as n, I as l, a9 as b, X as p, aa as g, W as u, ab as c, L as m, S as d, p as S, ac as T, l as C, ad as I, ae as V, af as F, ag as h, e as y, a5 as D } from "./index-ClcK7tOh.js";
|
|
2
|
-
import { bK as L, G as M, A, r as B, v as w, m as x, o as f, bi as v, I as N, bu as W, ac as k, c9 as R, Y as E, V as G, bo as O, aq as U, aS as _, aT as H, aV as K, aU as X, c3 as z, aa as j, b8 as q, B as J, p as Q, F as Y, ao as Z, an as $, Z as aa, aj as sa, bf as ea, C as ta, br as oa, aw as ra, Q as ia, O as na, bl as la, bs as ba, bt as pa, aM as ga, D as ua, h as ca, bm as ma, bU as da, _ as Sa, b7 as Ta, ah as Ca, f as Ia, ak as Va, ca as Fa, ag as ha, aE as ya, aD as Da, aF as Pa, aC as La, b6 as Ma, bh as Aa, a7 as Ba, bT as wa, a2 as xa, a4 as fa, a3 as va, am as Na, bL as Wa, H as ka, bd as Ra, at as Ea, a9 as Ga, cb as Oa, X as Ua, $ as _a, bO as Ha, bP as Ka, bN as Xa, ap as za, a0 as ja, l as qa, L as Ja, M as Qa, as as Ya, cc as Za, q as $a, a1 as as, aW as ss, a6 as es, aB as ts, aA as os, aI as rs, bn as is, N as ns, aR as ls, n as bs, bR as ps, c8 as gs, P as us, R as cs, b$ as ms, j as ds, aQ as Ss, av as Ts, b2 as Cs, b1 as Is, aX as Vs, b0 as Fs, aY as hs, aZ as ys, a_ as Ds, a$ as Ps, ab as Ls, b3 as Ms, bg as As, b9 as Bs, b_ as ws, aO as xs, aN as fs, c6 as vs, bX as Ns, E as Ws, bS as ks, w as Rs, c7 as Es, a8 as Gs, aP as Os, az as Us, a as _s, bF as Hs, bz as Ks, c4 as Xs, aK as zs, c5 as js, y as qs, bk as Js, J as Qs, K as Ys, ay as Zs, bj as $s, c as ae, aJ as se, bC as ee, bx as te, d as oe, bD as re, ax as ie, S as ne, bq as le, z as be, be as pe, T as ge, bQ as ue, a5 as ce, bI as me, bc as de, bb as Se, c2 as Te, ae as Ce, af as Ie, au as Ve, b5 as Fe, bG as he, U as ye, bw as De, bv as Pe, bH as Le, by as Me, k as Ae, W as Be, g as we, al as xe, bY as fe, ar as ve, bJ as Ne, bW as We, bZ as ke, bM as Re, c0 as Ee, aH as Ge, aG as Oe, bV as Ue, bE as _e, bB as He, bA as Ke, e as Xe, s as ze, bp as je, b as qe, c1 as Je, ad as Qe, t as Ye, ai as Ze, ba as $e, b4 as at, x as st, u as et, aL as tt } from "./index-
|
|
2
|
+
import { bK as L, G as M, A, r as B, v as w, m as x, o as f, bi as v, I as N, bu as W, ac as k, c9 as R, Y as E, V as G, bo as O, aq as U, aS as _, aT as H, aV as K, aU as X, c3 as z, aa as j, b8 as q, B as J, p as Q, F as Y, ao as Z, an as $, Z as aa, aj as sa, bf as ea, C as ta, br as oa, aw as ra, Q as ia, O as na, bl as la, bs as ba, bt as pa, aM as ga, D as ua, h as ca, bm as ma, bU as da, _ as Sa, b7 as Ta, ah as Ca, f as Ia, ak as Va, ca as Fa, ag as ha, aE as ya, aD as Da, aF as Pa, aC as La, b6 as Ma, bh as Aa, a7 as Ba, bT as wa, a2 as xa, a4 as fa, a3 as va, am as Na, bL as Wa, H as ka, bd as Ra, at as Ea, a9 as Ga, cb as Oa, X as Ua, $ as _a, bO as Ha, bP as Ka, bN as Xa, ap as za, a0 as ja, l as qa, L as Ja, M as Qa, as as Ya, cc as Za, q as $a, a1 as as, aW as ss, a6 as es, aB as ts, aA as os, aI as rs, bn as is, N as ns, aR as ls, n as bs, bR as ps, c8 as gs, P as us, R as cs, b$ as ms, j as ds, aQ as Ss, av as Ts, b2 as Cs, b1 as Is, aX as Vs, b0 as Fs, aY as hs, aZ as ys, a_ as Ds, a$ as Ps, ab as Ls, b3 as Ms, bg as As, b9 as Bs, b_ as ws, aO as xs, aN as fs, c6 as vs, bX as Ns, E as Ws, bS as ks, w as Rs, c7 as Es, a8 as Gs, aP as Os, az as Us, a as _s, bF as Hs, bz as Ks, c4 as Xs, aK as zs, c5 as js, y as qs, bk as Js, J as Qs, K as Ys, ay as Zs, bj as $s, c as ae, aJ as se, bC as ee, bx as te, d as oe, bD as re, ax as ie, S as ne, bq as le, z as be, be as pe, T as ge, bQ as ue, a5 as ce, bI as me, bc as de, bb as Se, c2 as Te, ae as Ce, af as Ie, au as Ve, b5 as Fe, bG as he, U as ye, bw as De, bv as Pe, bH as Le, by as Me, k as Ae, W as Be, g as we, al as xe, bY as fe, ar as ve, bJ as Ne, bW as We, bZ as ke, bM as Re, c0 as Ee, aH as Ge, aG as Oe, bV as Ue, bE as _e, bB as He, bA as Ke, e as Xe, s as ze, bp as je, b as qe, c1 as Je, ad as Qe, t as Ye, ai as Ze, ba as $e, b4 as at, x as st, u as et, aL as tt } from "./index-Siy3uNs-.js";
|
|
3
3
|
export {
|
|
4
4
|
L as AccentColor,
|
|
5
5
|
M as Accordion,
|
|
@@ -15544,7 +15544,7 @@ const n9 = ge(
|
|
|
15544
15544
|
);
|
|
15545
15545
|
n9.displayName = "SidebarSeparator";
|
|
15546
15546
|
const Ose = (e) => {
|
|
15547
|
-
const { isTop: t, isBottom: n, onScrollTop: r, onScrollBottom: a } = Uv(e), { className: i } = e;
|
|
15547
|
+
const { isTop: t, isBottom: n, onScrollTop: r, onScrollBottom: a } = Uv(e), { className: i, contentClassName: o, ...s } = e;
|
|
15548
15548
|
return /* @__PURE__ */ g(
|
|
15549
15549
|
"div",
|
|
15550
15550
|
{
|
|
@@ -15556,10 +15556,10 @@ const Ose = (e) => {
|
|
|
15556
15556
|
children: /* @__PURE__ */ g(
|
|
15557
15557
|
Xi,
|
|
15558
15558
|
{
|
|
15559
|
-
...
|
|
15559
|
+
...s,
|
|
15560
15560
|
onScrollTop: r,
|
|
15561
15561
|
onScrollBottom: a,
|
|
15562
|
-
className: "cn-sidebar-content",
|
|
15562
|
+
className: $("cn-sidebar-content", o),
|
|
15563
15563
|
role: "menu"
|
|
15564
15564
|
}
|
|
15565
15565
|
)
|
|
@@ -78759,21 +78759,27 @@ const j1 = Ei, G0e = new Promise((e) => {
|
|
|
78759
78759
|
}
|
|
78760
78760
|
})();
|
|
78761
78761
|
}, [e]), t;
|
|
78762
|
-
}, Y0e = ({
|
|
78763
|
-
|
|
78764
|
-
|
|
78765
|
-
|
|
78766
|
-
|
|
78762
|
+
}, Y0e = ({
|
|
78763
|
+
newCode: e,
|
|
78764
|
+
oldCode: t,
|
|
78765
|
+
lang: n = "yaml",
|
|
78766
|
+
diffViewWrap: r = !1,
|
|
78767
|
+
diffViewMode: a = ia.Split
|
|
78768
|
+
}) => {
|
|
78769
|
+
const { isLightTheme: i } = M4(), o = H0e({ setLoading: () => {
|
|
78770
|
+
} }), s = xe(() => {
|
|
78771
|
+
const l = e_e("oldFile", t, "newFile", e, n, n);
|
|
78772
|
+
return l.initRaw(), l;
|
|
78767
78773
|
}, [t, e, n]);
|
|
78768
|
-
return
|
|
78774
|
+
return s ? /* @__PURE__ */ g(
|
|
78769
78775
|
VB,
|
|
78770
78776
|
{
|
|
78771
|
-
diffFile:
|
|
78777
|
+
diffFile: s,
|
|
78772
78778
|
diffViewHighlight: !0,
|
|
78773
78779
|
diffViewWrap: r,
|
|
78774
|
-
registerHighlighter:
|
|
78775
|
-
diffViewMode:
|
|
78776
|
-
diffViewTheme:
|
|
78780
|
+
registerHighlighter: o,
|
|
78781
|
+
diffViewMode: a,
|
|
78782
|
+
diffViewTheme: i ? "light" : "dark"
|
|
78777
78783
|
}
|
|
78778
78784
|
) : null;
|
|
78779
78785
|
}, z0e = ({
|
|
@@ -179900,4 +179906,4 @@ export {
|
|
|
179900
179906
|
Mse as y,
|
|
179901
179907
|
xi as z
|
|
179902
179908
|
};
|
|
179903
|
-
//# sourceMappingURL=index-
|
|
179909
|
+
//# sourceMappingURL=index-Siy3uNs-.js.map
|