@harnessio/ui 1.6.1 → 1.6.2
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 +4 -0
- package/dist/components.js +2 -2
- package/dist/context.js +2 -2
- package/dist/{index-BVzvKaxA.js → index-Dl6TSNy0.js} +2 -2
- package/dist/{index-BVzvKaxA.js.map → index-Dl6TSNy0.js.map} +1 -1
- package/dist/index-KIJkoTSh.js +1728 -0
- package/dist/index-KIJkoTSh.js.map +1 -0
- package/dist/{index-BqIaYDgl.js → index-jcNmIIkH.js} +6001 -5999
- package/dist/{index-BqIaYDgl.js.map → index-jcNmIIkH.js.map} +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/dist/index-Ct3vPRjA.js +0 -1726
- package/dist/index-Ct3vPRjA.js.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -3992,6 +3992,7 @@ export declare const LogoNameMapV2: {
|
|
|
3992
3992
|
'aws-rds': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3993
3993
|
'aws-redshift': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3994
3994
|
aws: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3995
|
+
'azure-vm-scale-set': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3995
3996
|
'azure-vm': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3996
3997
|
azure: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
3997
3998
|
background: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -4109,6 +4110,7 @@ export declare const LogoNameMapV2: {
|
|
|
4109
4110
|
qwiet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4110
4111
|
rancher: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4111
4112
|
redhat: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4113
|
+
'registry-apm': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4112
4114
|
'registry-generic': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4113
4115
|
'registry-raw': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
4114
4116
|
ruby: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -6427,6 +6429,7 @@ export declare const SymbolNameMap: {
|
|
|
6427
6429
|
'aws-rds': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6428
6430
|
'aws-redshift': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6429
6431
|
aws: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6432
|
+
'azure-vm-scale-set': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6430
6433
|
'azure-vm': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6431
6434
|
azure: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6432
6435
|
background: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -6544,6 +6547,7 @@ export declare const SymbolNameMap: {
|
|
|
6544
6547
|
qwiet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6545
6548
|
rancher: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6546
6549
|
redhat: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6550
|
+
'registry-apm': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6547
6551
|
'registry-generic': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6548
6552
|
'registry-raw': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
6549
6553
|
ruby: FunctionComponent<SVGProps<SVGSVGElement>>;
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, B as t, k as o, E as r, L as i, r as n, c as l, S as p, s as b, t as c, d as g } from "./index-
|
|
2
|
-
import { bU as d, O as m, o as S, A as T, x as C, y as D, r as F, t as V, br as I, Q as P, bD as h, ah as L, ck as y, a0 as A, Z as B, bx as f, ar as w, aZ as v, a_ as x, b0 as M, a$ as R, ce as E, ae as G, af as k, bg as N, G as W, v as H, K as _, aq as O, ap as U, C as z, a1 as K, al as j, bo as q, h as J, cd as X, aH as Z, aI as Q, bA as Y, cu as $, cv as aa, ax as sa, X as ea, W as ta, bu as oa, bB as ra, bC as ia, aT as na, D as la, k as pa, cE as ba, bv as ca, c2 as ga, a2 as ua, bf as da, aj as ma, f as Sa, am as Ta, cz as Ca, ai as Da, aL as Fa, aK as Va, aM as Ia, aJ as Pa, F as ha, be as La, bq as ya, ab as Aa, c1 as Ba, a6 as fa, a8 as wa, a7 as va, aG as xa, ao as Ma, bV as Ra, H as Ea, J as Ga, bm as ka, au as Na, ad as Wa, cA as Ha, $ as _a, a3 as Oa, bY as Ua, bZ as za, bX as Ka, a4 as ja, l as qa, L as Ja, M as Xa, at as Za, cB as Qa, w as Ya, a5 as $a, b1 as as, aa as ss, aC as es, aB as ts, aP as os, bw as rs, N as is, aY as ns, n as ls, b$ as ps, cj as bs, P as cs, cD as gs, Y as us, c9 as ds, p as ms, aX as Ss, aw as Ts, ba as Cs, b8 as Ds, b2 as Fs, b9 as Vs, b7 as Is, b3 as Ps, b4 as hs, b5 as Ls, b6 as ys, ag as As, bb as Bs, bp as fs, bh as ws, c8 as vs, aV as xs, aU as Ms, ch as Rs, c5 as Es, I as Gs, c0 as ks, z as Ns, ci as Ws, ac as Hs, aW as _s, aA as Os, c as Us, bP as zs, bI as Ks, cf as js, aR as qs, cg as Js, E as Xs, bt as Zs, S as Qs, a as Ys, R as $s, V as ae, az as se, bs as ee, d as te, aQ as oe, bL as re, bG as ie, e as ne, cC as le, bM as pe, bN as be, ay as ce, b as ge, bz as ue, T as de, bn as me, b_ as Se, a9 as Te, bS as Ce, bk as De, bj as Fe, bl as Ve, cy as Ie, cc as Pe, av as he, bd as Le, bQ as ye, U as Ae, bF as Be, bE as fe, bR as we, bH as ve, q as xe, _ as Me, cp as Re, j as Ee, cs as Ge, an as ke, ct as Ne, aE as We, cq as He, c6 as _e, cr as Oe, aD as Ue, aF as ze, as as Ke, bT as je, c4 as qe, c7 as Je, cw as Xe, cH as Ze, cJ as Qe, cG as Ye, cI as $e, bW as at, cx as st, ca as et, aO as tt, aN as ot, cl as rt, cm as it, cn as nt, co as lt, c3 as pt, bO as bt, bK as ct, bJ as gt, g as ut, s as dt, by as mt, cb as St, ak as Tt, u as Ct, cF as Dt, bi as Ft, bc as Vt, B as It, m as Pt, aS as ht } from "./index-
|
|
1
|
+
import { A as e, B as t, k as o, E as r, L as i, r as n, c as l, S as p, s as b, t as c, d as g } from "./index-KIJkoTSh.js";
|
|
2
|
+
import { bU as d, O as m, o as S, A as T, x as C, y as D, r as F, t as V, br as I, Q as P, bD as h, ah as L, ck as y, a0 as A, Z as B, bx as f, ar as w, aZ as v, a_ as x, b0 as M, a$ as R, ce as E, ae as G, af as k, bg as N, G as W, v as H, K as _, aq as O, ap as U, C as z, a1 as K, al as j, bo as q, h as J, cd as X, aH as Z, aI as Q, bA as Y, cu as $, cv as aa, ax as sa, X as ea, W as ta, bu as oa, bB as ra, bC as ia, aT as na, D as la, k as pa, cE as ba, bv as ca, c2 as ga, a2 as ua, bf as da, aj as ma, f as Sa, am as Ta, cz as Ca, ai as Da, aL as Fa, aK as Va, aM as Ia, aJ as Pa, F as ha, be as La, bq as ya, ab as Aa, c1 as Ba, a6 as fa, a8 as wa, a7 as va, aG as xa, ao as Ma, bV as Ra, H as Ea, J as Ga, bm as ka, au as Na, ad as Wa, cA as Ha, $ as _a, a3 as Oa, bY as Ua, bZ as za, bX as Ka, a4 as ja, l as qa, L as Ja, M as Xa, at as Za, cB as Qa, w as Ya, a5 as $a, b1 as as, aa as ss, aC as es, aB as ts, aP as os, bw as rs, N as is, aY as ns, n as ls, b$ as ps, cj as bs, P as cs, cD as gs, Y as us, c9 as ds, p as ms, aX as Ss, aw as Ts, ba as Cs, b8 as Ds, b2 as Fs, b9 as Vs, b7 as Is, b3 as Ps, b4 as hs, b5 as Ls, b6 as ys, ag as As, bb as Bs, bp as fs, bh as ws, c8 as vs, aV as xs, aU as Ms, ch as Rs, c5 as Es, I as Gs, c0 as ks, z as Ns, ci as Ws, ac as Hs, aW as _s, aA as Os, c as Us, bP as zs, bI as Ks, cf as js, aR as qs, cg as Js, E as Xs, bt as Zs, S as Qs, a as Ys, R as $s, V as ae, az as se, bs as ee, d as te, aQ as oe, bL as re, bG as ie, e as ne, cC as le, bM as pe, bN as be, ay as ce, b as ge, bz as ue, T as de, bn as me, b_ as Se, a9 as Te, bS as Ce, bk as De, bj as Fe, bl as Ve, cy as Ie, cc as Pe, av as he, bd as Le, bQ as ye, U as Ae, bF as Be, bE as fe, bR as we, bH as ve, q as xe, _ as Me, cp as Re, j as Ee, cs as Ge, an as ke, ct as Ne, aE as We, cq as He, c6 as _e, cr as Oe, aD as Ue, aF as ze, as as Ke, bT as je, c4 as qe, c7 as Je, cw as Xe, cH as Ze, cJ as Qe, cG as Ye, cI as $e, bW as at, cx as st, ca as et, aO as tt, aN as ot, cl as rt, cm as it, cn as nt, co as lt, c3 as pt, bO as bt, bK as ct, bJ as gt, g as ut, s as dt, by as mt, cb as St, ak as Tt, u as Ct, cF as Dt, bi as Ft, bc as Vt, B as It, m as Pt, aS as ht } from "./index-jcNmIIkH.js";
|
|
3
3
|
import { B as yt, x as At, I as Bt, y as ft, r as wt, z as vt, T as xt, t as Mt, h as Rt, E as Et, F as Gt, w as kt } from "./button-DA72aRZc.js";
|
|
4
4
|
import { L as Wt, T as Ht, d as _t, b as Ot, e as Ut, f as zt, t as Kt } from "./toggle-group-CslhbzTH.js";
|
|
5
5
|
export {
|
package/dist/context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { G as a, H as r, u as s, a as t } from "./button-DA72aRZc.js";
|
|
2
2
|
import { R as m, u as n } from "./use-resize-observer-DNQ1lBLF.js";
|
|
3
|
-
import { f as C, v as g, w as x, g as T, x as l, q as p, e as f, u as d } from "./index-
|
|
4
|
-
import { C as v, E as h, a as D, m as E, u as R, b as y } from "./index-
|
|
3
|
+
import { f as C, v as g, w as x, g as T, x as l, q as p, e as f, u as d } from "./index-KIJkoTSh.js";
|
|
4
|
+
import { C as v, E as h, a as D, m as E, u as R, b as y } from "./index-Dl6TSNy0.js";
|
|
5
5
|
import { a as M, C as S, M as b, l as k, k as q } from "./types-DuzuERyI.js";
|
|
6
6
|
export {
|
|
7
7
|
M as ColorType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as c, H as v, u as g, a as P } from "./button-DA72aRZc.js";
|
|
2
2
|
import { R as T, u as w } from "./use-resize-observer-DNQ1lBLF.js";
|
|
3
|
-
import { E, f as b, v as h, w as y, g as D, x as S, q as _, e as j, u as M } from "./index-
|
|
3
|
+
import { E, f as b, v as h, w as y, g as D, x as S, q as _, e as j, u as M } from "./index-KIJkoTSh.js";
|
|
4
4
|
import { jsx as i, jsxs as O } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as u, useContext as C, useState as a, useCallback as R, useMemo as k } from "react";
|
|
6
6
|
import { a as q, C as z, M as B, l as G, k as H } from "./types-DuzuERyI.js";
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
L as m,
|
|
79
79
|
W as u
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=index-
|
|
81
|
+
//# sourceMappingURL=index-Dl6TSNy0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Dl6TSNy0.js","sources":["../src/context/theme/migrate-persisted-theme.ts","../src/context/component-context.tsx","../src/context/exit-confirm-context.tsx"],"sourcesContent":["import { FullTheme } from './types'\n\n/** Rewrite deprecated dimmer/low contrast themes to standard contrast. */\nexport function migrateLowContrastTheme(theme?: FullTheme): FullTheme | undefined {\n if (theme?.endsWith('-low')) {\n return theme.replace(/-low$/, '-std') as FullTheme\n }\n\n return theme\n}\n","// ComponentContext.tsx\n\nimport React, { createContext, ReactNode, RefAttributes, useContext } from 'react'\n\nimport { RbacButtonProps, RbacMoreActionsTooltipProps, RbacSplitButtonProps } from '@components/rbac'\n\ninterface ComponentContextValue {\n RbacButton: React.ComponentType<RbacButtonProps & RefAttributes<HTMLButtonElement>>\n RbacSplitButton: <T extends string>(props: RbacSplitButtonProps<T>) => JSX.Element\n RbacMoreActionsTooltip: React.ForwardRefExoticComponent<\n RbacMoreActionsTooltipProps & RefAttributes<HTMLButtonElement>\n >\n}\n\nconst ComponentContext = createContext<ComponentContextValue | undefined>(undefined)\n\nexport const ComponentProvider = ({\n components,\n children\n}: {\n components: ComponentContextValue\n children: ReactNode\n}) => {\n return <ComponentContext.Provider value={components}>{children}</ComponentContext.Provider>\n}\n\nexport const useComponents = () => {\n const ctx = useContext(ComponentContext)\n if (!ctx) throw new Error('useComponents must be used within ComponentProvider')\n return ctx\n}\n","import { createContext, useCallback, useContext, useMemo, useState } from 'react'\n\nimport { ExitConfirmDialog, ExitConfirmOptions } from '../components/dialogs/exit-confirm-dialog'\n\nexport interface ExitConfirmContextType {\n show: (options: ExitConfirmOptions) => void\n}\n\nexport const ExitConfirmContext = createContext<ExitConfirmContextType>({\n show: (_options: ExitConfirmOptions) => undefined\n})\n\nexport function ExitConfirmProvider({ children }: { children: React.ReactNode }) {\n const [confirm, setConfirm] = useState<ExitConfirmOptions>()\n const [open, setOpen] = useState(false)\n\n const show = useCallback(\n (confirmOptions?: ExitConfirmOptions) => {\n setConfirm(confirmOptions)\n setOpen(true)\n },\n [setOpen]\n )\n\n const onConfirm = () => {\n confirm?.onConfirm?.()\n setOpen(false)\n }\n\n const onCancel = () => {\n confirm?.onCancel?.()\n setOpen(false)\n }\n\n const value = useMemo(() => ({ show }), [show])\n\n return (\n <ExitConfirmContext.Provider value={value}>\n {children}\n <ExitConfirmDialog {...confirm} onCancel={onCancel} onConfirm={onConfirm} open={open} />\n </ExitConfirmContext.Provider>\n )\n}\n\nexport const useExitConfirm = () => {\n const context = useContext(ExitConfirmContext)\n if (!context) {\n throw new Error('useExitConfirm must be used within a ExitConfirmProvider')\n }\n return context\n}\n"],"names":["migrateLowContrastTheme","theme","ComponentContext","createContext","ComponentProvider","components","children","useComponents","ctx","useContext","ExitConfirmContext","_options","ExitConfirmProvider","confirm","setConfirm","useState","open","setOpen","show","useCallback","confirmOptions","onConfirm","_a","onCancel","value","useMemo","jsxs","ExitConfirmDialog","useExitConfirm","context"],"mappings":";;;;;;AAGO,SAASA,EAAwBC,GAA0C;AAC5E,SAAAA,KAAA,QAAAA,EAAO,SAAS,UACXA,EAAM,QAAQ,SAAS,MAAM,IAG/BA;AACT;ACKA,MAAMC,IAAmBC,EAAiD,MAAS,GAEtEC,IAAoB,CAAC;AAAA,EAChC,YAAAC;AAAA,EACA,UAAAC;AACF,wBAIUJ,EAAiB,UAAjB,EAA0B,OAAOG,GAAa,UAAAC,GAAS,GAGpDC,IAAgB,MAAM;AAC3B,QAAAC,IAAMC,EAAWP,CAAgB;AACvC,MAAI,CAACM,EAAW,OAAA,IAAI,MAAM,qDAAqD;AACxE,SAAAA;AACT,GCtBaE,IAAqBP,EAAsC;AAAA,EACtE,MAAM,CAACQ,MAAiC;AAAA;AAC1C,CAAC;AAEe,SAAAC,EAAoB,EAAE,UAAAN,KAA2C;AAC/E,QAAM,CAACO,GAASC,CAAU,IAAIC,EAA6B,GACrD,CAACC,GAAMC,CAAO,IAAIF,EAAS,EAAK,GAEhCG,IAAOC;AAAA,IACX,CAACC,MAAwC;AACvC,MAAAN,EAAWM,CAAc,GACzBH,EAAQ,EAAI;AAAA,IACd;AAAA,IACA,CAACA,CAAO;AAAA,EACV,GAEMI,IAAY,MAAM;;AACtB,KAAAC,IAAAT,KAAA,gBAAAA,EAAS,cAAT,QAAAS,EAAA,KAAAT,IACAI,EAAQ,EAAK;AAAA,EACf,GAEMM,IAAW,MAAM;;AACrB,KAAAD,IAAAT,KAAA,gBAAAA,EAAS,aAAT,QAAAS,EAAA,KAAAT,IACAI,EAAQ,EAAK;AAAA,EACf,GAEMO,IAAQC,EAAQ,OAAO,EAAE,MAAAP,MAAS,CAACA,CAAI,CAAC;AAE9C,SACG,gBAAAQ,EAAAhB,EAAmB,UAAnB,EAA4B,OAAAc,GAC1B,UAAA;AAAA,IAAAlB;AAAA,sBACAqB,GAAmB,EAAA,GAAGd,GAAS,UAAAU,GAAoB,WAAAF,GAAsB,MAAAL,EAAY,CAAA;AAAA,EAAA,GACxF;AAEJ;AAEO,MAAMY,IAAiB,MAAM;AAC5B,QAAAC,IAAUpB,EAAWC,CAAkB;AAC7C,MAAI,CAACmB;AACG,UAAA,IAAI,MAAM,0DAA0D;AAErE,SAAAA;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|