@devtron-labs/devtron-fe-common-lib 1.6.4 → 1.6.6
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/{@code-editor-C-p1Rw8B.js → @code-editor-D7zJWZ5n.js} +6304 -6269
- package/dist/{@common-rjsf-CUhYli8_.js → @common-rjsf-CJxoldUv.js} +60 -61
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +11 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +4 -0
- package/dist/Shared/Components/Button/utils.d.ts +3 -1
- package/dist/Shared/validations.d.ts +2 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.js +413 -412
- package/package.json +3 -3
@@ -1,11 +1,10 @@
|
|
1
|
-
import { j as t, O as
|
2
|
-
import
|
1
|
+
import { j as t, O as E } from "./@vendor-CWh7bjwl.js";
|
2
|
+
import P, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as D } from "@rjsf/core";
|
4
|
-
import H from "
|
5
|
-
import
|
6
|
-
import M, { components as B } from "react-select";
|
4
|
+
import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-D7zJWZ5n.js";
|
5
|
+
import J, { components as C } from "react-select";
|
7
6
|
import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
8
|
-
import { getUiOptions as
|
7
|
+
import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
9
8
|
import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
|
10
9
|
import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
|
11
10
|
import { ReactComponent as ee } from "./assets/ic-warning.a842ba2a.svg";
|
@@ -13,7 +12,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
13
12
|
SELECT: "Please select an option",
|
14
13
|
INPUT: "Please enter an input",
|
15
14
|
OBJECT_KEY: "Please enter a value for the key"
|
16
|
-
}, te = "Key not available",
|
15
|
+
}, te = "Key not available", Ee = {
|
17
16
|
"ui:submitButtonOptions": {
|
18
17
|
norender: !0
|
19
18
|
}
|
@@ -31,13 +30,13 @@ import './assets/@common-rjsf.css';const N = {
|
|
31
30
|
className: n ? `display-grid dc__gap-12 rjsf-form-template__field ${i ? "flex-align-center" : ""}` : "",
|
32
31
|
children: [
|
33
32
|
n && /* @__PURE__ */ t.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
|
34
|
-
/* @__PURE__ */ t.jsx(
|
33
|
+
/* @__PURE__ */ t.jsx(v, { alwaysShowTippyOnHover: !!o, content: o, children: /* @__PURE__ */ t.jsx("span", { className: `dc__ellipsis-right ${o ? "text-underline-dashed-300" : ""}`, children: e || te }) }),
|
35
34
|
s && /* @__PURE__ */ t.jsx("span", { className: "cr-5", children: " *" })
|
36
35
|
] }),
|
37
36
|
a
|
38
37
|
]
|
39
38
|
}
|
40
|
-
),
|
39
|
+
), O = ({ label: n, canAdd: e, onAddClick: s, disabled: a, readonly: r, uiSchema: o, registry: i }) => {
|
41
40
|
const {
|
42
41
|
ButtonTemplates: { AddButton: c }
|
43
42
|
} = i.templates;
|
@@ -64,19 +63,19 @@ import './assets/@common-rjsf.css';const N = {
|
|
64
63
|
required: d,
|
65
64
|
title: x
|
66
65
|
}) => {
|
67
|
-
const p =
|
66
|
+
const p = A(r), h = I("ArrayFieldItemTemplate", l, p), u = p.title || x;
|
68
67
|
return /* @__PURE__ */ t.jsx("fieldset", { className: e, id: a.$id, children: o.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
69
|
-
o.map(({ key:
|
68
|
+
o.map(({ key: j, ..._ }, f) => {
|
70
69
|
const m = {
|
71
|
-
...
|
70
|
+
..._.children,
|
72
71
|
props: {
|
73
|
-
...
|
72
|
+
..._.children.props
|
74
73
|
}
|
75
74
|
};
|
76
|
-
return /* @__PURE__ */ t.jsx(h, { ...
|
75
|
+
return /* @__PURE__ */ t.jsx(h, { ..._, children: m }, j);
|
77
76
|
}),
|
78
77
|
/* @__PURE__ */ t.jsx(
|
79
|
-
|
78
|
+
O,
|
80
79
|
{
|
81
80
|
label: u,
|
82
81
|
canAdd: n,
|
@@ -88,7 +87,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
88
87
|
}
|
89
88
|
)
|
90
89
|
] }) : /* @__PURE__ */ t.jsx(b, { label: u, required: d, showLabel: !0, id: a.$id, children: /* @__PURE__ */ t.jsx(
|
91
|
-
|
90
|
+
O,
|
92
91
|
{
|
93
92
|
label: u,
|
94
93
|
canAdd: n,
|
@@ -150,7 +149,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
150
149
|
title: "Add",
|
151
150
|
children: [
|
152
151
|
/* @__PURE__ */ t.jsx(X, { className: "icon-dim-16 fcb-5" }),
|
153
|
-
/* @__PURE__ */ t.jsx(
|
152
|
+
/* @__PURE__ */ t.jsx(v, { placement: "right", content: i, children: /* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: i }) })
|
154
153
|
]
|
155
154
|
}
|
156
155
|
) });
|
@@ -163,7 +162,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
163
162
|
required: s,
|
164
163
|
description: a
|
165
164
|
}) => /* @__PURE__ */ t.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: n, children: [
|
166
|
-
/* @__PURE__ */ t.jsx(
|
165
|
+
/* @__PURE__ */ t.jsx(v, { alwaysShowTippyOnHover: !!a, content: a, children: /* @__PURE__ */ t.jsx("span", { className: `${a ? "text-underline-dashed-300" : ""}`, children: e }) }),
|
167
166
|
s && /* @__PURE__ */ t.jsx("span", { className: "cr-5", children: " *" })
|
168
167
|
] }), le = (n) => {
|
169
168
|
const {
|
@@ -179,11 +178,11 @@ import './assets/@common-rjsf.css';const N = {
|
|
179
178
|
classNames: x,
|
180
179
|
schema: p,
|
181
180
|
rawDescription: h
|
182
|
-
} = n, u =
|
181
|
+
} = n, u = A(d), j = I(
|
183
182
|
"WrapIfAdditionalTemplate",
|
184
183
|
l,
|
185
184
|
u
|
186
|
-
),
|
185
|
+
), _ = B in p, f = (c || p.type === "boolean") && !_, m = p.type === "array";
|
187
186
|
return o ? /* @__PURE__ */ t.jsx("div", { className: "hidden", children: a }) : (
|
188
187
|
// NOTE: need to override the margins of default rjsf css
|
189
188
|
/* @__PURE__ */ t.jsxs("div", { className: `${x} mb-0`, children: [
|
@@ -207,7 +206,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
207
206
|
id: e,
|
208
207
|
required: i,
|
209
208
|
rawDescription: h,
|
210
|
-
children: /* @__PURE__ */ t.jsx(
|
209
|
+
children: /* @__PURE__ */ t.jsx(j, { ...n, children: a })
|
211
210
|
}
|
212
211
|
),
|
213
212
|
r
|
@@ -215,7 +214,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
215
214
|
);
|
216
215
|
}, ce = ({ errors: n = [], idSchema: e }) => {
|
217
216
|
const s = q(e);
|
218
|
-
return n.length > 0 && /* @__PURE__ */ t.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: n.filter((a) => !!a).map((a, r) => /* @__PURE__ */ t.jsxs(
|
217
|
+
return n.length > 0 && /* @__PURE__ */ t.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: s, children: n.filter((a) => !!a).map((a, r) => /* @__PURE__ */ t.jsxs(P.Fragment, { children: [
|
219
218
|
/* @__PURE__ */ t.jsx("span", {}),
|
220
219
|
/* @__PURE__ */ t.jsxs("span", { className: "form__error", children: [
|
221
220
|
/* @__PURE__ */ t.jsx(ee, { className: "form__icon form__icon--error" }),
|
@@ -229,7 +228,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
229
228
|
default:
|
230
229
|
return K(n, e);
|
231
230
|
}
|
232
|
-
},
|
231
|
+
}, Pe = (n) => {
|
233
232
|
try {
|
234
233
|
const e = new URL(n).origin === window.location.origin;
|
235
234
|
return {
|
@@ -245,7 +244,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
245
244
|
url: `${n} (Invalid URL)`
|
246
245
|
};
|
247
246
|
}
|
248
|
-
},
|
247
|
+
}, $e = (n) => {
|
249
248
|
const e = typeof n;
|
250
249
|
switch (e) {
|
251
250
|
case "boolean":
|
@@ -257,12 +256,12 @@ import './assets/@common-rjsf.css';const N = {
|
|
257
256
|
default:
|
258
257
|
return "null";
|
259
258
|
}
|
260
|
-
},
|
259
|
+
}, y = (n) => {
|
261
260
|
if (!n)
|
262
261
|
return "";
|
263
262
|
const e = n.trim();
|
264
263
|
return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
|
265
|
-
},
|
264
|
+
}, F = {
|
266
265
|
value: !1,
|
267
266
|
path: ""
|
268
267
|
}, pe = (n) => {
|
@@ -271,14 +270,14 @@ import './assets/@common-rjsf.css';const N = {
|
|
271
270
|
const e = structuredClone(n);
|
272
271
|
return typeof e == "string" ? {
|
273
272
|
value: !0,
|
274
|
-
path:
|
275
|
-
} : typeof e != "object" ? structuredClone(
|
273
|
+
path: y(e)
|
274
|
+
} : typeof e != "object" ? structuredClone(F) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
|
276
275
|
value: e.condition,
|
277
|
-
path:
|
276
|
+
path: y(e.value)
|
278
277
|
} : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
|
279
278
|
value: e.value,
|
280
|
-
path:
|
281
|
-
} : structuredClone(
|
279
|
+
path: y(e.path)
|
280
|
+
} : structuredClone(F);
|
282
281
|
}, me = ({
|
283
282
|
disabled: n,
|
284
283
|
formData: e,
|
@@ -303,8 +302,8 @@ import './assets/@common-rjsf.css';const N = {
|
|
303
302
|
uiSchema: x,
|
304
303
|
registry: i
|
305
304
|
}
|
306
|
-
),
|
307
|
-
const f = l.properties?.[
|
305
|
+
), j = r.filter((_) => {
|
306
|
+
const f = l.properties?.[_.name]?.hidden;
|
308
307
|
if (!f)
|
309
308
|
return !0;
|
310
309
|
try {
|
@@ -313,15 +312,15 @@ import './assets/@common-rjsf.css';const N = {
|
|
313
312
|
throw new Error("Empty path property of hidden descriptor field");
|
314
313
|
if (!m.path.match(/^\/\w+(\/\w+)*$/g))
|
315
314
|
throw new Error("Provided path is not a valid JSON pointer");
|
316
|
-
const g =
|
317
|
-
path:
|
315
|
+
const g = E({
|
316
|
+
path: H(m.path),
|
318
317
|
json: p
|
319
318
|
})?.[0];
|
320
319
|
return !(g === void 0 || Q(m.value, g));
|
321
320
|
} catch {
|
322
321
|
return !0;
|
323
322
|
}
|
324
|
-
}).sort((
|
323
|
+
}).sort((_) => l.properties?.[_.name]?.type === "boolean" ? -1 : 1).map((_) => _.content);
|
325
324
|
return h ? r.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
326
325
|
/* @__PURE__ */ t.jsx(
|
327
326
|
b,
|
@@ -331,12 +330,12 @@ import './assets/@common-rjsf.css';const N = {
|
|
331
330
|
showLabel: !0,
|
332
331
|
id: s.$id,
|
333
332
|
shouldAlignCenter: !1,
|
334
|
-
children: /* @__PURE__ */ t.jsx("div", { children:
|
333
|
+
children: /* @__PURE__ */ t.jsx("div", { children: j })
|
335
334
|
}
|
336
335
|
),
|
337
336
|
u
|
338
337
|
] }) : /* @__PURE__ */ t.jsx(b, { label: d, required: c, showLabel: !0, id: s.$id, children: u }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
339
|
-
|
338
|
+
j,
|
340
339
|
u
|
341
340
|
] });
|
342
341
|
}, ue = (n) => {
|
@@ -374,7 +373,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
374
373
|
uiSchema: l,
|
375
374
|
registry: d
|
376
375
|
}) => {
|
377
|
-
const { templates: x } = d, { RemoveButton: p } = x.ButtonTemplates, h =
|
376
|
+
const { templates: x } = d, { RemoveButton: p } = x.ButtonTemplates, h = B in i;
|
378
377
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: h ? /* @__PURE__ */ t.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
|
379
378
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
380
379
|
"input",
|
@@ -410,12 +409,12 @@ import './assets/@common-rjsf.css';const N = {
|
|
410
409
|
onFocus: l
|
411
410
|
}) => {
|
412
411
|
const d = (p, h) => {
|
413
|
-
const { id: u, checked:
|
414
|
-
h === "blur" ? c(u,
|
415
|
-
}, x =
|
412
|
+
const { id: u, checked: j } = p.target;
|
413
|
+
h === "blur" ? c(u, j) : h === "focus" && l(u, j);
|
414
|
+
}, x = k(s) ? !1 : s;
|
416
415
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
417
416
|
/* @__PURE__ */ t.jsx(
|
418
|
-
|
417
|
+
U,
|
419
418
|
{
|
420
419
|
selected: x,
|
421
420
|
onSelect: e,
|
@@ -431,7 +430,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
431
430
|
),
|
432
431
|
/* @__PURE__ */ t.jsx("span", { className: "dc__capitalize ml-8", children: x.toString() })
|
433
432
|
] });
|
434
|
-
}, xe = ({ children: n, ...e }) => /* @__PURE__ */ t.jsx(
|
433
|
+
}, xe = ({ children: n, ...e }) => /* @__PURE__ */ t.jsx(C.MenuList, { ...e, children: Array.isArray(n) ? n.slice(0, 20) : n }), _e = (n) => /* @__PURE__ */ t.jsx(C.DropdownIndicator, { ...n, children: /* @__PURE__ */ t.jsx(V, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), je = (n) => {
|
435
434
|
const {
|
436
435
|
id: e,
|
437
436
|
multiple: s = !1,
|
@@ -444,37 +443,37 @@ import './assets/@common-rjsf.css';const N = {
|
|
444
443
|
onBlur: d,
|
445
444
|
onFocus: x,
|
446
445
|
placeholder: p
|
447
|
-
} = n, { enumOptions: h = [] } = a, u = s ? [] : "",
|
446
|
+
} = n, { enumOptions: h = [] } = a, u = s ? [] : "", j = (f) => {
|
448
447
|
l(s ? f.map((m) => m.value) : f.value);
|
449
|
-
},
|
448
|
+
}, _ = (f) => s ? h.filter((m) => f.some((g) => S(g, m.value))) : h.find((m) => S(f, m.value));
|
450
449
|
return /* @__PURE__ */ t.jsx(
|
451
|
-
|
450
|
+
J,
|
452
451
|
{
|
453
452
|
id: e,
|
454
453
|
name: e,
|
455
454
|
isMulti: s,
|
456
|
-
value: typeof r > "u" ? u :
|
455
|
+
value: typeof r > "u" ? u : _(r),
|
457
456
|
autoFocus: c,
|
458
|
-
onChange:
|
457
|
+
onChange: j,
|
459
458
|
options: h,
|
460
459
|
onBlur: () => d(e, r),
|
461
460
|
onFocus: () => x(e, r),
|
462
461
|
placeholder: p || N.SELECT,
|
463
462
|
isDisabled: o || i,
|
464
463
|
styles: {
|
465
|
-
...
|
464
|
+
...T,
|
466
465
|
control: (f, m) => ({
|
467
|
-
...
|
466
|
+
...T.control(f, m),
|
468
467
|
minHeight: "36px"
|
469
468
|
}),
|
470
469
|
multiValue: (f, m) => ({
|
471
|
-
...
|
470
|
+
...T.multiValue(f, m),
|
472
471
|
margin: "2px 8px 2px 2px"
|
473
472
|
})
|
474
473
|
},
|
475
474
|
components: {
|
476
475
|
IndicatorSeparator: null,
|
477
|
-
DropdownIndicator:
|
476
|
+
DropdownIndicator: _e,
|
478
477
|
MenuList: xe
|
479
478
|
},
|
480
479
|
menuPlacement: "auto"
|
@@ -482,7 +481,7 @@ import './assets/@common-rjsf.css';const N = {
|
|
482
481
|
);
|
483
482
|
}, ge = {
|
484
483
|
CheckboxWidget: fe,
|
485
|
-
SelectWidget:
|
484
|
+
SelectWidget: je
|
486
485
|
}, be = {
|
487
486
|
ArrayFieldItemTemplate: se,
|
488
487
|
ArrayFieldTemplate: ne,
|
@@ -493,15 +492,15 @@ import './assets/@common-rjsf.css';const N = {
|
|
493
492
|
ObjectFieldTemplate: ue,
|
494
493
|
TitleFieldTemplate: w,
|
495
494
|
WrapIfAdditionalTemplate: he
|
496
|
-
},
|
497
|
-
|
495
|
+
}, Te = L, ye = M, Le = $((n, e) => /* @__PURE__ */ t.jsx(
|
496
|
+
Te,
|
498
497
|
{
|
499
498
|
noHtml5Validate: !0,
|
500
499
|
showErrorList: !1,
|
501
500
|
autoComplete: "off",
|
502
501
|
...n,
|
503
502
|
className: `rjsf-form-template__container ${n.className || ""}`,
|
504
|
-
validator:
|
503
|
+
validator: ye,
|
505
504
|
templates: {
|
506
505
|
...be,
|
507
506
|
...n.templates
|
@@ -513,8 +512,8 @@ import './assets/@common-rjsf.css';const N = {
|
|
513
512
|
}
|
514
513
|
));
|
515
514
|
export {
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
515
|
+
Ee as H,
|
516
|
+
Le as R,
|
517
|
+
Pe as a,
|
518
|
+
$e as g
|
520
519
|
};
|
@@ -8,8 +8,18 @@ export interface UseUrlFiltersProps<T, K> {
|
|
8
8
|
* Callback function for parsing the search params
|
9
9
|
*/
|
10
10
|
parseSearchParams?: (searchParams: URLSearchParams) => K;
|
11
|
+
/**
|
12
|
+
* Local storage key to store the filters
|
13
|
+
*/
|
11
14
|
localStorageKey?: `${string}__${string}`;
|
15
|
+
/**
|
16
|
+
* Method to be used for redirection in case of filter update
|
17
|
+
*
|
18
|
+
* @default 'replace'
|
19
|
+
*/
|
20
|
+
redirectionMethod?: 'replace' | 'push';
|
12
21
|
}
|
22
|
+
export type UpdateSearchParamsOptionsType<T, K = unknown> = Partial<Pick<UseUrlFiltersProps<T, K>, 'redirectionMethod'>>;
|
13
23
|
export type UseUrlFiltersReturnType<T, K = unknown> = K & {
|
14
24
|
/**
|
15
25
|
* Currently applied page size
|
@@ -56,5 +66,5 @@ export type UseUrlFiltersReturnType<T, K = unknown> = K & {
|
|
56
66
|
/**
|
57
67
|
* Update the search params with the passed object
|
58
68
|
*/
|
59
|
-
updateSearchParams: (paramsToSerialize: Partial<K>) => void;
|
69
|
+
updateSearchParams: (paramsToSerialize: Partial<K>, options?: UpdateSearchParamsOptionsType<T, K>) => void;
|
60
70
|
};
|
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
|
|
16
16
|
* ```
|
17
17
|
*
|
18
18
|
*/
|
19
|
-
declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, localStorageKey, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
19
|
+
declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, localStorageKey, redirectionMethod, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
|
20
20
|
export default useUrlFilters;
|
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
64
64
|
* ```
|
65
65
|
*/
|
66
|
-
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, ...props }: ButtonProps) => JSX.Element;
|
66
|
+
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, isOpacityHoverChild, triggerAutoClickTimestamp, ...props }: ButtonProps) => JSX.Element;
|
67
67
|
export default Button;
|
@@ -86,6 +86,10 @@ export type ButtonProps = ({
|
|
86
86
|
* @default false
|
87
87
|
*/
|
88
88
|
isOpacityHoverChild?: boolean;
|
89
|
+
/**
|
90
|
+
* If provided, the button is clicked automatically after the pre-defined time
|
91
|
+
*/
|
92
|
+
triggerAutoClickTimestamp?: number | null;
|
89
93
|
} & ({
|
90
94
|
/**
|
91
95
|
* If true, the tooltip is shown for the button
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { ButtonProps } from './types';
|
2
2
|
export declare const getButtonIconClassName: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => string;
|
3
3
|
export declare const getButtonLoaderSize: ({ size, icon }: Pick<ButtonProps, "size" | "icon">) => number;
|
4
|
-
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, }: Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon">
|
4
|
+
export declare const getButtonDerivedClass: ({ size, variant, style, isLoading, icon, isAutoTriggerActive, }: Required<Pick<ButtonProps, "variant" | "size" | "style" | "isLoading" | "icon"> & {
|
5
|
+
isAutoTriggerActive: boolean;
|
6
|
+
}>) => string;
|
@@ -48,7 +48,8 @@ export declare const validateSemanticVersioning: (version: string) => Validation
|
|
48
48
|
* A valid display name should be between 3 and 50 characters
|
49
49
|
*/
|
50
50
|
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
51
|
-
export declare const
|
51
|
+
export declare const SCHEMA_07_VALIDATOR_STRICT: import('@rjsf/validator-ajv8/lib/validator').default<any, import('@rjsf/utils').RJSFSchema, any>;
|
52
|
+
export declare const doesJSONConformToSchema07: (json: string, strict?: boolean) => ValidationResponseType;
|
52
53
|
export declare const validateDateAndTime: (date: Date) => ValidationResponseType;
|
53
54
|
export declare const validateIframe: (input: string) => ValidationResponseType;
|
54
55
|
export declare const validateCMVolumeMountPath: (value: string) => {
|