@harnessio/ui 0.5.3 → 0.5.5
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 -0
- package/dist/components.js +2 -2
- package/dist/context.d.ts +5 -0
- package/dist/context.js +2 -2
- package/dist/{index-C5GPIKLa.js → index-D6BuUbRP.js} +2 -2
- package/dist/{index-C5GPIKLa.js.map → index-D6BuUbRP.js.map} +1 -1
- package/dist/{index-Dx1dURcv.js → index-DhFGPGOA.js} +759 -754
- package/dist/index-DhFGPGOA.js.map +1 -0
- package/dist/{index-BYKijgj9.js → index-XHrNArJB.js} +39 -37
- package/dist/{index-BYKijgj9.js.map → index-XHrNArJB.js.map} +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -2
- package/package.json +7 -5
- package/dist/index-Dx1dURcv.js.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -1312,8 +1312,10 @@ export declare interface DeleteAlertDialogProps {
|
|
|
1312
1312
|
} | null;
|
|
1313
1313
|
withForm?: boolean;
|
|
1314
1314
|
message?: React.ReactChild;
|
|
1315
|
+
title?: string;
|
|
1315
1316
|
deletionItemName?: string;
|
|
1316
1317
|
deletionKeyword?: string;
|
|
1318
|
+
deleteConfirmText?: string;
|
|
1317
1319
|
violation?: boolean;
|
|
1318
1320
|
bypassable?: boolean;
|
|
1319
1321
|
}
|
|
@@ -2174,6 +2176,7 @@ export declare const IconNameMapV2: {
|
|
|
2174
2176
|
'bell-off': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2175
2177
|
bell: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2176
2178
|
blocks: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2179
|
+
'blue-green': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2177
2180
|
'bold-squere': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2178
2181
|
bold: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2179
2182
|
'bookmark-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -2197,6 +2200,7 @@ export declare const IconNameMapV2: {
|
|
|
2197
2200
|
'calendar-rotate': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2198
2201
|
'calendar-xmark': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2199
2202
|
calendar: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2203
|
+
canary: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2200
2204
|
cell2x2: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2201
2205
|
'chaos-tests-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2202
2206
|
'chaos-tests': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -2374,6 +2378,7 @@ export declare const IconNameMapV2: {
|
|
|
2374
2378
|
'info-circle': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2375
2379
|
'infrastructure-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2376
2380
|
infrastructure: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2381
|
+
'input-set': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2377
2382
|
instances: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2378
2383
|
internet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2379
2384
|
'italic-square': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -2448,6 +2453,7 @@ export declare const IconNameMapV2: {
|
|
|
2448
2453
|
'page-plus': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2449
2454
|
'page-right': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2450
2455
|
'page-up': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2456
|
+
palette: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2451
2457
|
'paste-clipboard': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2452
2458
|
'path-arrow': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2453
2459
|
pause: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -2495,6 +2501,7 @@ export declare const IconNameMapV2: {
|
|
|
2495
2501
|
repository: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2496
2502
|
restart: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2497
2503
|
roles: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2504
|
+
rolling: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2498
2505
|
ruler: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2499
2506
|
'run-test': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
2500
2507
|
run: FunctionComponent<SVGProps<SVGSVGElement>>;
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-
|
|
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-DhFGPGOA.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-XHrNArJB.js";
|
|
3
3
|
export {
|
|
4
4
|
L as AccentColor,
|
|
5
5
|
M as Accordion,
|
package/dist/context.d.ts
CHANGED
|
@@ -238,6 +238,7 @@ declare const IconNameMapV2: {
|
|
|
238
238
|
'bell-off': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
239
239
|
bell: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
240
240
|
blocks: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
241
|
+
'blue-green': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
241
242
|
'bold-squere': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
242
243
|
bold: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
243
244
|
'bookmark-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -261,6 +262,7 @@ declare const IconNameMapV2: {
|
|
|
261
262
|
'calendar-rotate': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
262
263
|
'calendar-xmark': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
263
264
|
calendar: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
265
|
+
canary: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
264
266
|
cell2x2: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
265
267
|
'chaos-tests-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
266
268
|
'chaos-tests': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -438,6 +440,7 @@ declare const IconNameMapV2: {
|
|
|
438
440
|
'info-circle': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
439
441
|
'infrastructure-solid': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
440
442
|
infrastructure: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
443
|
+
'input-set': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
441
444
|
instances: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
442
445
|
internet: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
443
446
|
'italic-square': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -512,6 +515,7 @@ declare const IconNameMapV2: {
|
|
|
512
515
|
'page-plus': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
513
516
|
'page-right': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
514
517
|
'page-up': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
518
|
+
palette: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
515
519
|
'paste-clipboard': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
516
520
|
'path-arrow': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
517
521
|
pause: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
@@ -559,6 +563,7 @@ declare const IconNameMapV2: {
|
|
|
559
563
|
repository: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
560
564
|
restart: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
561
565
|
roles: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
566
|
+
rolling: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
562
567
|
ruler: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
563
568
|
'run-test': FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
564
569
|
run: FunctionComponent<SVGProps<SVGSVGElement>>;
|
package/dist/context.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as o, ah as s, ai as r, aj as t, ak as i, h as n, al as m, a3 as u, u as C, f as g, d as T, k as l } from "./index-
|
|
1
|
+
import { g as o, ah as s, ai as r, aj as t, ak as i, h as n, al as m, a3 as u, u as C, f as g, d as T, k as l } from "./index-DhFGPGOA.js";
|
|
2
2
|
import { b as x, C as p, M as P, R as f, o as v, m as h, u as D } from "./use-resize-observer-B-bXbUjU.js";
|
|
3
|
-
import { C as R, E as y, a as b, u as k, b as M } from "./index-
|
|
3
|
+
import { C as R, E as y, a as b, u as k, b as M } from "./index-D6BuUbRP.js";
|
|
4
4
|
export {
|
|
5
5
|
x as ColorType,
|
|
6
6
|
R as ComponentProvider,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as f, g as v, ah as g, ai as P, aj as h, ak as T, h as E, al as b, a3 as w, u as j, f as y, d as D, k as S } from "./index-
|
|
1
|
+
import { a7 as f, g as v, ah as g, ai as P, aj as h, ak as T, h as E, al as b, a3 as w, u as j, f as y, d as D, k as S } from "./index-DhFGPGOA.js";
|
|
2
2
|
import { b as _, C as M, M as O, R, o as k, m as z, u as B } from "./use-resize-observer-B-bXbUjU.js";
|
|
3
3
|
import { jsx as i, jsxs as N } from "react/jsx-runtime";
|
|
4
4
|
import { createContext as u, useContext as C, useState as a, useCallback as q, useMemo as A } from "react";
|
|
@@ -71,4 +71,4 @@ export {
|
|
|
71
71
|
U as i,
|
|
72
72
|
G as u
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=index-
|
|
74
|
+
//# sourceMappingURL=index-D6BuUbRP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D6BuUbRP.js","sources":["../src/context/component-context.tsx","../src/context/exit-confirm-context.tsx"],"sourcesContent":["// 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":["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":";;;;AAcA,MAAMA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|