@harnessio/ui 1.3.11 → 1.3.13
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 +2 -0
- package/dist/components.js +1 -1
- package/dist/{index-hUsIdJU3.js → index-BlCRFQan.js} +45 -29
- package/dist/{index-hUsIdJU3.js.map → index-BlCRFQan.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +23 -29
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -6404,6 +6404,8 @@ export declare function Toaster({ duration, className }: ToasterProps): JSX_2.El
|
|
|
6404
6404
|
declare type ToasterProps = Partial<Pick<ToasterProps_2, 'duration' | 'className'>>;
|
|
6405
6405
|
|
|
6406
6406
|
declare type ToastOptions = Pick<ExternalToast, 'action' | 'duration' | 'dismissible'> & {
|
|
6407
|
+
onClose?: () => void;
|
|
6408
|
+
onAutoClose?: () => void;
|
|
6407
6409
|
action?: Action;
|
|
6408
6410
|
};
|
|
6409
6411
|
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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-CIm4fDrB.js";
|
|
2
|
-
import { bS as m, K as d, m as S, A as T, w as C, x as F, q as I, r as h, bp as D, O as y, bB as L, ag as V, ci as P, $ as A, Y as B, bv as M, aq as f, aY as w, aZ as x, a$ as v, a_ as E, cc as k, ad as G, ae as N, be as R, E as W, t as H, J as _, ap as U, ao as O, C as z, a0 as K, ak as j, bm as q, g as X, cb as J, aG as Q, aH as Y, by as Z, aw as $, W as aa, V as sa, bs as ea, bz as ta, bA as oa, aS as ra, D as ia, j as na, co as la, bt as pa, c0 as ba, a1 as ca, bd as ga, ai as ua, f as ma, al as da, cj as Sa, ah as Ta, aK as Ca, aJ as Fa, aL as Ia, aI as ha, F as Da, bc as ya, bo as La, aa as Va, b$ as Pa, a5 as Aa, a7 as Ba, a6 as Ma, aF as fa, an as wa, bT as xa, H as va, I as Ea, bk as ka, at as Ga, ac as Na, ck as Ra, _ as Wa, a2 as Ha, bW as _a, bX as Ua, bV as Oa, a3 as za, l as Ka, L as ja, M as qa, as as Xa, cl as Ja, v as Qa, a4 as Ya, b0 as Za, a9 as $a, aB as as, aA as ss, aO as es, bu as ts, N as os, aX as rs, n as is, bZ as ns, ch as ls, P as ps, cn as bs, X as cs, c7 as gs, o as us, aW as ms, av as ds, b8 as Ss, b7 as Ts, b1 as Cs, b6 as Fs, b2 as Is, b3 as hs, b4 as Ds, b5 as ys, af as Ls, b9 as Vs, bn as Ps, bf as As, c6 as Bs, aU as Ms, aT as fs, cf as ws, c3 as xs, G as vs, b_ as Es, y as ks, cg as Gs, ab as Ns, aV as Rs, az as Ws, b as Hs, bN as _s, bG as Us, cd as Os, aQ as zs, ce as Ks, B as js, br as qs, S as Xs, Q as Js, R as Qs, ay as Ys, bq as Zs, c as $s, aP as ae, bJ as se, bE as ee, d as te, cm as oe, bK as re, bL as ie, ax as ne, a as le, bx as pe, T as be, bl as ce, bY as ge, a8 as ue, bQ as me, bi as de, bh as Se, bj as Te, ca as Ce, au as Fe, bb as Ie, bO as he, U as De, bD as ye, bC as Le, bP as Ve, bF as Pe, p as Ae, Z as Be, h as Me, am as fe, aD as we, c4 as xe, aC as ve, aE as Ee, ar as ke, bR as Ge, c2 as Ne, c5 as Re, cr as We, ct as He, cq as _e, cs as Ue, bU as Oe, c8 as ze, aN as Ke, aM as je, c1 as qe, bM as Xe, bI as Je, bH as Qe, e as Ye, s as Ze, bw as $e, c9 as at, aj as st, u as et, cp as tt, bg as ot, ba as rt, z as it, k as nt, aR as lt } from "./index-
|
|
2
|
+
import { bS as m, K as d, m as S, A as T, w as C, x as F, q as I, r as h, bp as D, O as y, bB as L, ag as V, ci as P, $ as A, Y as B, bv as M, aq as f, aY as w, aZ as x, a$ as v, a_ as E, cc as k, ad as G, ae as N, be as R, E as W, t as H, J as _, ap as U, ao as O, C as z, a0 as K, ak as j, bm as q, g as X, cb as J, aG as Q, aH as Y, by as Z, aw as $, W as aa, V as sa, bs as ea, bz as ta, bA as oa, aS as ra, D as ia, j as na, co as la, bt as pa, c0 as ba, a1 as ca, bd as ga, ai as ua, f as ma, al as da, cj as Sa, ah as Ta, aK as Ca, aJ as Fa, aL as Ia, aI as ha, F as Da, bc as ya, bo as La, aa as Va, b$ as Pa, a5 as Aa, a7 as Ba, a6 as Ma, aF as fa, an as wa, bT as xa, H as va, I as Ea, bk as ka, at as Ga, ac as Na, ck as Ra, _ as Wa, a2 as Ha, bW as _a, bX as Ua, bV as Oa, a3 as za, l as Ka, L as ja, M as qa, as as Xa, cl as Ja, v as Qa, a4 as Ya, b0 as Za, a9 as $a, aB as as, aA as ss, aO as es, bu as ts, N as os, aX as rs, n as is, bZ as ns, ch as ls, P as ps, cn as bs, X as cs, c7 as gs, o as us, aW as ms, av as ds, b8 as Ss, b7 as Ts, b1 as Cs, b6 as Fs, b2 as Is, b3 as hs, b4 as Ds, b5 as ys, af as Ls, b9 as Vs, bn as Ps, bf as As, c6 as Bs, aU as Ms, aT as fs, cf as ws, c3 as xs, G as vs, b_ as Es, y as ks, cg as Gs, ab as Ns, aV as Rs, az as Ws, b as Hs, bN as _s, bG as Us, cd as Os, aQ as zs, ce as Ks, B as js, br as qs, S as Xs, Q as Js, R as Qs, ay as Ys, bq as Zs, c as $s, aP as ae, bJ as se, bE as ee, d as te, cm as oe, bK as re, bL as ie, ax as ne, a as le, bx as pe, T as be, bl as ce, bY as ge, a8 as ue, bQ as me, bi as de, bh as Se, bj as Te, ca as Ce, au as Fe, bb as Ie, bO as he, U as De, bD as ye, bC as Le, bP as Ve, bF as Pe, p as Ae, Z as Be, h as Me, am as fe, aD as we, c4 as xe, aC as ve, aE as Ee, ar as ke, bR as Ge, c2 as Ne, c5 as Re, cr as We, ct as He, cq as _e, cs as Ue, bU as Oe, c8 as ze, aN as Ke, aM as je, c1 as qe, bM as Xe, bI as Je, bH as Qe, e as Ye, s as Ze, bw as $e, c9 as at, aj as st, u as et, cp as tt, bg as ot, ba as rt, z as it, k as nt, aR as lt } from "./index-BlCRFQan.js";
|
|
3
3
|
import { B as bt, x as ct, I as gt, y as ut, r as mt, z as dt, T as St, v as Tt, h as Ct, E as Ft, F as It, w as ht } from "./button-BDR6WuzV.js";
|
|
4
4
|
import { L as yt, T as Lt, b as Vt, d as Pt, e as At, f as Bt, t as Mt } from "./toggle-group-CyA56X0R.js";
|
|
5
5
|
export {
|
|
@@ -179261,34 +179261,39 @@ function el({
|
|
|
179261
179261
|
);
|
|
179262
179262
|
}
|
|
179263
179263
|
const X0 = 1e4, z8e = ({ title: e, description: t, options: n = {} }) => {
|
|
179264
|
-
const { dismissible: r, duration: a, action: i } = n;
|
|
179264
|
+
const { dismissible: r, duration: a, action: i, onClose: o, onAutoClose: s } = n;
|
|
179265
179265
|
return Yr.custom(
|
|
179266
|
-
(
|
|
179266
|
+
(l) => /* @__PURE__ */ g(
|
|
179267
179267
|
el,
|
|
179268
179268
|
{
|
|
179269
|
-
toastId:
|
|
179269
|
+
toastId: l,
|
|
179270
179270
|
title: e,
|
|
179271
179271
|
description: t,
|
|
179272
|
-
onClose: () =>
|
|
179272
|
+
onClose: () => {
|
|
179273
|
+
Yr.dismiss(l), o == null || o();
|
|
179274
|
+
},
|
|
179273
179275
|
closeButton: r,
|
|
179274
179276
|
action: i
|
|
179275
179277
|
}
|
|
179276
179278
|
),
|
|
179277
179279
|
{
|
|
179278
179280
|
duration: a || X0,
|
|
179279
|
-
dismissible: r !== !1
|
|
179281
|
+
dismissible: r !== !1,
|
|
179282
|
+
onAutoClose: s
|
|
179280
179283
|
}
|
|
179281
179284
|
);
|
|
179282
179285
|
}, Y8e = ({ title: e, description: t, options: n = {} }) => {
|
|
179283
|
-
const { dismissible: r, duration: a, action: i, secondaryAction: o, ctaPosition: s, severity: l } = n;
|
|
179286
|
+
const { dismissible: r, duration: a, action: i, secondaryAction: o, ctaPosition: s, severity: l, onClose: c, onAutoClose: u } = n;
|
|
179284
179287
|
return Yr.custom(
|
|
179285
|
-
(
|
|
179288
|
+
(d) => /* @__PURE__ */ g(
|
|
179286
179289
|
el,
|
|
179287
179290
|
{
|
|
179288
|
-
toastId:
|
|
179291
|
+
toastId: d,
|
|
179289
179292
|
title: e,
|
|
179290
179293
|
description: t,
|
|
179291
|
-
onClose: () =>
|
|
179294
|
+
onClose: () => {
|
|
179295
|
+
Yr.dismiss(d), c == null || c();
|
|
179296
|
+
},
|
|
179292
179297
|
closeButton: r,
|
|
179293
179298
|
variant: "info",
|
|
179294
179299
|
action: i,
|
|
@@ -179299,19 +179304,22 @@ const X0 = 1e4, z8e = ({ title: e, description: t, options: n = {} }) => {
|
|
|
179299
179304
|
),
|
|
179300
179305
|
{
|
|
179301
179306
|
duration: a || X0,
|
|
179302
|
-
dismissible: r !== !1
|
|
179307
|
+
dismissible: r !== !1,
|
|
179308
|
+
onAutoClose: u
|
|
179303
179309
|
}
|
|
179304
179310
|
);
|
|
179305
179311
|
}, q8e = ({ title: e, description: t, options: n = {} }) => {
|
|
179306
|
-
const { dismissible: r, duration: a, action: i } = n;
|
|
179312
|
+
const { dismissible: r, duration: a, action: i, onClose: o, onAutoClose: s } = n;
|
|
179307
179313
|
return Yr.custom(
|
|
179308
|
-
(
|
|
179314
|
+
(l) => /* @__PURE__ */ g(
|
|
179309
179315
|
el,
|
|
179310
179316
|
{
|
|
179311
|
-
toastId:
|
|
179317
|
+
toastId: l,
|
|
179312
179318
|
title: e,
|
|
179313
179319
|
description: t,
|
|
179314
|
-
onClose: () =>
|
|
179320
|
+
onClose: () => {
|
|
179321
|
+
Yr.dismiss(l), o == null || o();
|
|
179322
|
+
},
|
|
179315
179323
|
closeButton: r,
|
|
179316
179324
|
variant: "success",
|
|
179317
179325
|
action: i
|
|
@@ -179319,40 +179327,46 @@ const X0 = 1e4, z8e = ({ title: e, description: t, options: n = {} }) => {
|
|
|
179319
179327
|
),
|
|
179320
179328
|
{
|
|
179321
179329
|
duration: a || X0,
|
|
179322
|
-
dismissible: r !== !1
|
|
179330
|
+
dismissible: r !== !1,
|
|
179331
|
+
onAutoClose: s
|
|
179323
179332
|
}
|
|
179324
179333
|
);
|
|
179325
179334
|
}, V8e = ({ title: e, description: t, options: n = {} }) => {
|
|
179326
|
-
const { dismissible: r, duration: a, action: i } = n;
|
|
179335
|
+
const { dismissible: r, duration: a, action: i, onClose: o, onAutoClose: s } = n;
|
|
179327
179336
|
return Yr.custom(
|
|
179328
|
-
(
|
|
179337
|
+
(l) => /* @__PURE__ */ g(
|
|
179329
179338
|
el,
|
|
179330
179339
|
{
|
|
179331
|
-
toastId:
|
|
179340
|
+
toastId: l,
|
|
179332
179341
|
title: e,
|
|
179333
179342
|
variant: "danger",
|
|
179334
179343
|
description: t,
|
|
179335
|
-
onClose: () =>
|
|
179344
|
+
onClose: () => {
|
|
179345
|
+
Yr.dismiss(l), o == null || o();
|
|
179346
|
+
},
|
|
179336
179347
|
closeButton: r,
|
|
179337
179348
|
action: i
|
|
179338
179349
|
}
|
|
179339
179350
|
),
|
|
179340
179351
|
{
|
|
179341
179352
|
duration: a || X0,
|
|
179342
|
-
dismissible: r !== !1
|
|
179353
|
+
dismissible: r !== !1,
|
|
179354
|
+
onAutoClose: s
|
|
179343
179355
|
}
|
|
179344
179356
|
);
|
|
179345
179357
|
}, $8e = ({ title: e, options: t = {} }) => {
|
|
179346
|
-
const { action: n } = t;
|
|
179358
|
+
const { action: n, onClose: r } = t;
|
|
179347
179359
|
return Yr.custom(
|
|
179348
|
-
(
|
|
179360
|
+
(a) => /* @__PURE__ */ g(
|
|
179349
179361
|
el,
|
|
179350
179362
|
{
|
|
179351
|
-
toastId:
|
|
179363
|
+
toastId: a,
|
|
179352
179364
|
variant: "loading",
|
|
179353
179365
|
title: e,
|
|
179354
179366
|
closeButton: !1,
|
|
179355
|
-
onClose: () =>
|
|
179367
|
+
onClose: () => {
|
|
179368
|
+
Yr.dismiss(a), r == null || r();
|
|
179369
|
+
},
|
|
179356
179370
|
action: n
|
|
179357
179371
|
}
|
|
179358
179372
|
),
|
|
@@ -179362,15 +179376,17 @@ const X0 = 1e4, z8e = ({ title: e, description: t, options: n = {} }) => {
|
|
|
179362
179376
|
}
|
|
179363
179377
|
);
|
|
179364
179378
|
}, W8e = (e, { loadingMessage: t, successMessage: n, errorMessage: r, options: a = {} }) => {
|
|
179365
|
-
const { dismissible: i, action: o } = a;
|
|
179379
|
+
const { dismissible: i, action: o, onClose: s } = a;
|
|
179366
179380
|
return Yr.custom(
|
|
179367
|
-
(
|
|
179381
|
+
(l) => /* @__PURE__ */ g(
|
|
179368
179382
|
el,
|
|
179369
179383
|
{
|
|
179370
|
-
toastId:
|
|
179384
|
+
toastId: l,
|
|
179371
179385
|
variant: "loading",
|
|
179372
179386
|
title: t,
|
|
179373
|
-
onClose: () =>
|
|
179387
|
+
onClose: () => {
|
|
179388
|
+
Yr.dismiss(l), s == null || s();
|
|
179389
|
+
},
|
|
179374
179390
|
closeButton: i,
|
|
179375
179391
|
promise: e,
|
|
179376
179392
|
action: o,
|
|
@@ -182664,4 +182680,4 @@ export {
|
|
|
182664
182680
|
Qce as y,
|
|
182665
182681
|
B2 as z
|
|
182666
182682
|
};
|
|
182667
|
-
//# sourceMappingURL=index-
|
|
182683
|
+
//# sourceMappingURL=index-BlCRFQan.js.map
|