@harnessio/ui 0.5.17 → 0.5.19
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 +7 -3
- package/dist/components.js +1 -1
- package/dist/{form-shared-styles-W3czzLsz.js → form-shared-styles-Be4PYgYO.js} +2 -2
- package/dist/{form-shared-styles-W3czzLsz.js.map → form-shared-styles-Be4PYgYO.js.map} +1 -1
- package/dist/{index-DOJqgX28.js → index-BbIpB8kX.js} +28 -14
- package/dist/{index-DOJqgX28.js.map → index-BbIpB8kX.js.map} +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +124 -32
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -1688,7 +1688,7 @@ export declare interface ExitConfirmOptions {
|
|
|
1688
1688
|
isLoading?: boolean;
|
|
1689
1689
|
}
|
|
1690
1690
|
|
|
1691
|
-
declare function ExpandButton({ stepCount, isExpanded, onToggle, label, icon, loading }: StudioCardExpandButtonProps): JSX_3.Element | null;
|
|
1691
|
+
declare function ExpandButton({ stepCount, isExpanded, onToggle, label, icon, loading, stackDirection, variant }: StudioCardExpandButtonProps): JSX_3.Element | null;
|
|
1692
1692
|
|
|
1693
1693
|
export declare const Favorite: FC<FavoriteIconProps>;
|
|
1694
1694
|
|
|
@@ -1895,7 +1895,7 @@ declare interface FolderItemProps extends Partial<Omit<BaseItemProps, 'actionBut
|
|
|
1895
1895
|
* Footer Component
|
|
1896
1896
|
* ====================
|
|
1897
1897
|
*/
|
|
1898
|
-
declare function Footer({ children }: PropsWithChildren<StudioCardFooterProps>): JSX_3.Element;
|
|
1898
|
+
declare function Footer({ children, size, invisible }: PropsWithChildren<StudioCardFooterProps>): JSX_3.Element;
|
|
1899
1899
|
|
|
1900
1900
|
export declare const ForkTag: React.FC<ForkTagProps>;
|
|
1901
1901
|
|
|
@@ -4992,9 +4992,13 @@ export declare interface StudioCardExpandButtonProps {
|
|
|
4992
4992
|
label: string;
|
|
4993
4993
|
icon?: React.ReactElement;
|
|
4994
4994
|
loading?: boolean;
|
|
4995
|
+
stackDirection?: 'right' | 'bottom';
|
|
4996
|
+
variant?: 'default' | 'minimal';
|
|
4995
4997
|
}
|
|
4996
4998
|
|
|
4997
4999
|
export declare interface StudioCardFooterProps {
|
|
5000
|
+
size?: 'compact' | 'default';
|
|
5001
|
+
invisible?: boolean;
|
|
4998
5002
|
}
|
|
4999
5003
|
|
|
5000
5004
|
export declare interface StudioCardHeaderProps {
|
|
@@ -5014,7 +5018,7 @@ export declare interface StudioCardRootProps {
|
|
|
5014
5018
|
selected?: boolean;
|
|
5015
5019
|
variant?: 'default' | 'stage';
|
|
5016
5020
|
execution?: boolean;
|
|
5017
|
-
size?: 'sm' | 'md';
|
|
5021
|
+
size?: 'xs' | 'sm' | 'md';
|
|
5018
5022
|
}
|
|
5019
5023
|
|
|
5020
5024
|
export declare interface StudioCardStatusProps {
|
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-DDOiMHF8.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-BbIpB8kX.js";
|
|
3
3
|
export {
|
|
4
4
|
L as AccentColor,
|
|
5
5
|
M as Accordion,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const l = "gap-cn-
|
|
1
|
+
const l = "gap-cn-xs", o = "gap-cn-xl", e = {
|
|
2
2
|
".cn-form": {
|
|
3
3
|
[`@apply flex flex-col ${o}`]: ""
|
|
4
4
|
},
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
o as F,
|
|
29
29
|
e as f
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=form-shared-styles-
|
|
31
|
+
//# sourceMappingURL=form-shared-styles-Be4PYgYO.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-shared-styles-
|
|
1
|
+
{"version":3,"file":"form-shared-styles-Be4PYgYO.js","sources":["../tailwind-utils-config/components/form-shared-styles.ts"],"sourcesContent":["/** Label-to-control gap class; lives here for Tailwind builds. */\nexport const CONTROL_GROUP_STACK_GAP = 'gap-cn-xs' as const\n\n/** Vertical gap between sibling form fields (`.cn-form`, accordions aligned with forms). */\nexport const FORM_FIELD_STACK_GAP = 'gap-cn-xl' as const\n\nexport default {\n '.cn-form': {\n [`@apply flex flex-col ${FORM_FIELD_STACK_GAP}`]: ''\n },\n\n ':where(.cn-control-group)': {\n [`@apply relative flex flex-col ${CONTROL_GROUP_STACK_GAP}`]: '',\n maxWidth: '100%',\n\n '&.cn-control-group-horizontal': {\n '@apply flex-row': '',\n\n '.cn-control-group-label': {\n width: 'var(--cn-input-horizontal-label-max-width)'\n },\n\n '.cn-control-group-input': {\n '@apply flex-1': ''\n }\n }\n },\n\n ':where(.cn-control-group-label)': {\n gap: 'var(--cn-layout-3xs)',\n '@apply relative flex flex-col': ''\n },\n\n ':where(.cn-control-group-input)': {\n [`@apply relative flex flex-col ${CONTROL_GROUP_STACK_GAP}`]: ''\n }\n}\n"],"names":["CONTROL_GROUP_STACK_GAP","FORM_FIELD_STACK_GAP","formSharedStyles"],"mappings":"AACO,MAAMA,IAA0B,aAG1BC,IAAuB,aAErBC,IAAA;AAAA,EACb,YAAY;AAAA,IACV,CAAC,wBAAwBD,CAAoB,EAAE,GAAG;AAAA,EACpD;AAAA,EAEA,6BAA6B;AAAA,IAC3B,CAAC,iCAAiCD,CAAuB,EAAE,GAAG;AAAA,IAC9D,UAAU;AAAA,IAEV,iCAAiC;AAAA,MAC/B,mBAAmB;AAAA,MAEnB,2BAA2B;AAAA,QACzB,OAAO;AAAA,MACT;AAAA,MAEA,2BAA2B;AAAA,QACzB,iBAAiB;AAAA,MAAA;AAAA,IACnB;AAAA,EAEJ;AAAA,EAEA,mCAAmC;AAAA,IACjC,KAAK;AAAA,IACL,iCAAiC;AAAA,EACnC;AAAA,EAEA,mCAAmC;AAAA,IACjC,CAAC,iCAAiCA,CAAuB,EAAE,GAAG;AAAA,EAAA;AAElE;"}
|
|
@@ -8,7 +8,7 @@ import se, { forwardRef as ge, useMemo as xe, useLayoutEffect as dc, useEffect a
|
|
|
8
8
|
import { c as $, g as kd, f as fs, a as sW, d as nl, I as lW, Z as H2, b as cW, e as Y2 } from "./utils-DRBOvPmN.js";
|
|
9
9
|
import { t as Mt, c as sn, g as Us, a as Xl, m as uW, b as Yv, e as zv, d as dW, f as pW, h as mW, u as Bs, i as _W, w as CT, j as gW, k as fW, l as xm, n as RT, o as EW, p as ug, q as Zu, r as SW, s as hW, L as z2, v as rE, x as bW, y as TW } from "./textarea-utils-uuMesRro.js";
|
|
10
10
|
import { d as Vv, u as fr, n as Ju, a as q4, M as Oa, C as $4, b as Nl } from "./use-resize-observer-B-bXbUjU.js";
|
|
11
|
-
import { C as vW } from "./form-shared-styles-
|
|
11
|
+
import { C as vW } from "./form-shared-styles-Be4PYgYO.js";
|
|
12
12
|
import { u as qv, a as CW } from "./use-debounce-search-DCssIumm.js";
|
|
13
13
|
import RW, { unstable_batchedUpdates as Up, createPortal as NW } from "react-dom";
|
|
14
14
|
import { g as Po } from "./tailwind-design-system-B-Jd9lCG.js";
|
|
@@ -176733,6 +176733,7 @@ const ha = {
|
|
|
176733
176733
|
}, XPe = Dt("", {
|
|
176734
176734
|
variants: {
|
|
176735
176735
|
size: {
|
|
176736
|
+
xs: "cn-studio-card-xs",
|
|
176736
176737
|
sm: "cn-studio-card-sm",
|
|
176737
176738
|
md: ""
|
|
176738
176739
|
}
|
|
@@ -176818,9 +176819,11 @@ function n4e({
|
|
|
176818
176819
|
onToggle: n,
|
|
176819
176820
|
label: r,
|
|
176820
176821
|
icon: a,
|
|
176821
|
-
loading: i = !1
|
|
176822
|
+
loading: i = !1,
|
|
176823
|
+
stackDirection: o = "right",
|
|
176824
|
+
variant: s = "default"
|
|
176822
176825
|
}) {
|
|
176823
|
-
const
|
|
176826
|
+
const l = xe(() => t || e <= 1 ? 0 : e === 2 ? 1 : 2, [e, t]);
|
|
176824
176827
|
return e === 0 || t ? null : /* @__PURE__ */ B(
|
|
176825
176828
|
ep.div,
|
|
176826
176829
|
{
|
|
@@ -176830,25 +176833,36 @@ function n4e({
|
|
|
176830
176833
|
exit: "exit",
|
|
176831
176834
|
className: "cn-studio-card-expand-button",
|
|
176832
176835
|
"data-expanded": t,
|
|
176836
|
+
"data-stack-direction": o,
|
|
176837
|
+
"data-variant": s,
|
|
176833
176838
|
children: [
|
|
176834
|
-
|
|
176835
|
-
|
|
176836
|
-
|
|
176839
|
+
l > 0 && /* @__PURE__ */ B(lt, { children: [
|
|
176840
|
+
l >= 2 && /* @__PURE__ */ g("div", { className: "cn-studio-card-expand-button-stack cn-studio-card-expand-button-stack-2" }),
|
|
176841
|
+
l >= 1 && /* @__PURE__ */ g("div", { className: "cn-studio-card-expand-button-stack cn-studio-card-expand-button-stack-1" })
|
|
176837
176842
|
] }),
|
|
176838
176843
|
/* @__PURE__ */ B(
|
|
176839
176844
|
"button",
|
|
176840
176845
|
{
|
|
176841
|
-
onClick: (
|
|
176842
|
-
|
|
176846
|
+
onClick: (c) => {
|
|
176847
|
+
c.stopPropagation(), n == null || n();
|
|
176843
176848
|
},
|
|
176844
176849
|
className: "cn-studio-card-expand-button-main",
|
|
176845
176850
|
disabled: i,
|
|
176846
176851
|
children: [
|
|
176847
176852
|
/* @__PURE__ */ B("div", { className: "cn-studio-card-expand-button-top", children: [
|
|
176848
|
-
a ?? /* @__PURE__ */ g(me, { name: "harness-plugins", size: "lg" }),
|
|
176849
|
-
/* @__PURE__ */ g(
|
|
176853
|
+
s === "default" && (a ?? /* @__PURE__ */ g(me, { name: "harness-plugins", size: "lg" })),
|
|
176854
|
+
/* @__PURE__ */ g(
|
|
176855
|
+
Te,
|
|
176856
|
+
{
|
|
176857
|
+
color: "foreground-1",
|
|
176858
|
+
variant: s === "minimal" ? "caption-single-line-code" : "body-strong",
|
|
176859
|
+
className: "truncate",
|
|
176860
|
+
children: r
|
|
176861
|
+
}
|
|
176862
|
+
),
|
|
176863
|
+
s === "minimal" && /* @__PURE__ */ g(me, { name: "expand", size: "xs" })
|
|
176850
176864
|
] }),
|
|
176851
|
-
/* @__PURE__ */ B("div", { className: "cn-studio-card-expand-button-bottom", children: [
|
|
176865
|
+
s === "default" && /* @__PURE__ */ B("div", { className: "cn-studio-card-expand-button-bottom", children: [
|
|
176852
176866
|
/* @__PURE__ */ B(Te, { color: "foreground-1", variant: "body-single-line-code", children: [
|
|
176853
176867
|
"+",
|
|
176854
176868
|
e,
|
|
@@ -176880,8 +176894,8 @@ function a4e({ tagText: e, icon: t }) {
|
|
|
176880
176894
|
/* @__PURE__ */ g(Te, { title: e, className: "text-cn-gray-outline", variant: "caption-single-line-normal", children: n })
|
|
176881
176895
|
] });
|
|
176882
176896
|
}
|
|
176883
|
-
function i4e({ children: e }) {
|
|
176884
|
-
return /* @__PURE__ */ g("div", { className: "cn-studio-card-footer", children: typeof e == "string" ? /* @__PURE__ */ g(Te, { color: "foreground-3", variant: "caption-normal", children: e }) : e });
|
|
176897
|
+
function i4e({ children: e, size: t = "default", invisible: n }) {
|
|
176898
|
+
return /* @__PURE__ */ g("div", { className: $("cn-studio-card-footer", { invisible: n }), "data-size": t, children: typeof e == "string" ? /* @__PURE__ */ g(Te, { color: "foreground-3", variant: "caption-normal", children: e }) : e });
|
|
176885
176899
|
}
|
|
176886
176900
|
function o4e({ children: e }) {
|
|
176887
176901
|
return /* @__PURE__ */ g(lt, { children: e });
|
|
@@ -179842,4 +179856,4 @@ export {
|
|
|
179842
179856
|
Ase as y,
|
|
179843
179857
|
xi as z
|
|
179844
179858
|
};
|
|
179845
|
-
//# sourceMappingURL=index-
|
|
179859
|
+
//# sourceMappingURL=index-BbIpB8kX.js.map
|