@spscommerce/ds-react 8.50.1 → 8.51.0
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/lib/index.js +165 -161
- package/lib/index.umd.cjs +3 -3
- package/lib/utils/selectChildren.d.ts +2 -0
- package/package.json +12 -14
- package/vite.config.mjs +3 -1
package/lib/index.js
CHANGED
|
@@ -7,8 +7,7 @@ import { SpinnerSize as Eu, Position as ue, ZStratum as Tu, SpsOptionListOption
|
|
|
7
7
|
import { useWoodlandLanguage as he } from "@spscommerce/i18n";
|
|
8
8
|
import Ou, { createPortal as Pu, unstable_batchedUpdates as Bu, flushSync as jl } from "react-dom";
|
|
9
9
|
import { colors as la } from "@spscommerce/ds-colors";
|
|
10
|
-
import {
|
|
11
|
-
import { BUILDING_SMALL as Au, BUILDING_LARGE as $u } from "@sps-woodland/illustrations";
|
|
10
|
+
import { BUILDING_SMALL as Fu, BUILDING_LARGE as Au } from "@sps-woodland/illustrations";
|
|
12
11
|
function Yl(e) {
|
|
13
12
|
var t, n, r = "";
|
|
14
13
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -22,11 +21,11 @@ function B() {
|
|
|
22
21
|
for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = Yl(e)) && (r && (r += " "), r += t);
|
|
23
22
|
return r;
|
|
24
23
|
}
|
|
25
|
-
const
|
|
24
|
+
const $u = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
26
25
|
let Qe = (e = 21) => {
|
|
27
26
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
28
27
|
for (; e--; )
|
|
29
|
-
t +=
|
|
28
|
+
t += $u[n[e] & 63];
|
|
30
29
|
return t;
|
|
31
30
|
};
|
|
32
31
|
function pn(e) {
|
|
@@ -45,7 +44,7 @@ function La(e) {
|
|
|
45
44
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
46
45
|
}
|
|
47
46
|
var No, Vs;
|
|
48
|
-
function
|
|
47
|
+
function Vu() {
|
|
49
48
|
if (Vs) return No;
|
|
50
49
|
Vs = 1;
|
|
51
50
|
var e = "[object Object]";
|
|
@@ -78,15 +77,15 @@ function Ku() {
|
|
|
78
77
|
}
|
|
79
78
|
return No = m, No;
|
|
80
79
|
}
|
|
81
|
-
var
|
|
82
|
-
const ql = /* @__PURE__ */ La(
|
|
83
|
-
function
|
|
80
|
+
var Ku = Vu();
|
|
81
|
+
const ql = /* @__PURE__ */ La(Ku), bt = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set(), Kt = /* @__PURE__ */ new Set(), Ra = /* @__PURE__ */ new Set();
|
|
82
|
+
function Hu(e) {
|
|
84
83
|
bt.has(e) || Kt.has(e) || Ra.has(e) || lr.add(e);
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function Wu(e) {
|
|
87
86
|
bt.has(e) || Kt.has(e) || lr.has(e) || Ra.add(e);
|
|
88
87
|
}
|
|
89
|
-
const Ue = Cn.default || Cn, Dn = "MM/DD/YYYY",
|
|
88
|
+
const Ue = Cn.default || Cn, Dn = "MM/DD/YYYY", Gu = "MM/DD/YYYY hh:mm A", Uu = "MM/DD/YYYY HH:mm", zu = "hh:mm A", ju = "HH:mm", Yu = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/, Xn = /* @__PURE__ */ Symbol("Date Parse Error");
|
|
90
89
|
function Sn(e) {
|
|
91
90
|
return Ue.isMoment(e) ? e.year() * 1e4 + (e.month() + 1) * 100 + e.date() : e.year * 1e4 + e.month * 100 + e.date;
|
|
92
91
|
}
|
|
@@ -105,7 +104,7 @@ const U = Object.freeze({
|
|
|
105
104
|
date: n.date()
|
|
106
105
|
});
|
|
107
106
|
} else {
|
|
108
|
-
const n =
|
|
107
|
+
const n = Yu.exec(e);
|
|
109
108
|
if (n) {
|
|
110
109
|
const [, r, a, s] = n;
|
|
111
110
|
return Object.freeze({
|
|
@@ -175,7 +174,7 @@ const U = Object.freeze({
|
|
|
175
174
|
return e.slice(0, 2).map((r) => U.toString(r, t)).join(n);
|
|
176
175
|
},
|
|
177
176
|
toDateTimeString(e, t = !1, n) {
|
|
178
|
-
return e && Ue.isMoment(e) && e.isValid() ? n ? t ? e.format(`${n} ${
|
|
177
|
+
return e && Ue.isMoment(e) && e.isValid() ? n ? t ? e.format(`${n} ${ju}`) : e.format(`${n} ${zu}`) : t ? e.format(Uu) : e.format(Gu) : "";
|
|
179
178
|
},
|
|
180
179
|
toDateTimeStringRange(e, t = !1, n) {
|
|
181
180
|
if (!e)
|
|
@@ -308,7 +307,7 @@ const U = Object.freeze({
|
|
|
308
307
|
"23:00"
|
|
309
308
|
];
|
|
310
309
|
let Vr = Dn;
|
|
311
|
-
function
|
|
310
|
+
function qu(e) {
|
|
312
311
|
Vr = e;
|
|
313
312
|
}
|
|
314
313
|
const Kr = function(t) {
|
|
@@ -326,7 +325,7 @@ const Kr = function(t) {
|
|
|
326
325
|
};
|
|
327
326
|
bt.add("dateFormat");
|
|
328
327
|
bt.add("dateValidity");
|
|
329
|
-
const
|
|
328
|
+
const Ju = function(t) {
|
|
330
329
|
if (Array.isArray(t)) {
|
|
331
330
|
const n = Kr(t);
|
|
332
331
|
if (n)
|
|
@@ -337,7 +336,7 @@ const Xu = function(t) {
|
|
|
337
336
|
return null;
|
|
338
337
|
};
|
|
339
338
|
bt.add("dateRangeOrder");
|
|
340
|
-
const
|
|
339
|
+
const Xu = function({
|
|
341
340
|
minDate: t,
|
|
342
341
|
maxDate: n
|
|
343
342
|
}) {
|
|
@@ -359,12 +358,12 @@ const Zu = function({
|
|
|
359
358
|
};
|
|
360
359
|
};
|
|
361
360
|
bt.add("dateConstraint");
|
|
362
|
-
const
|
|
361
|
+
const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
363
362
|
__proto__: null,
|
|
364
363
|
date: Kr,
|
|
365
|
-
dateConstraint:
|
|
366
|
-
dateRange:
|
|
367
|
-
setDateFormat:
|
|
364
|
+
dateConstraint: Xu,
|
|
365
|
+
dateRange: Ju,
|
|
366
|
+
setDateFormat: qu
|
|
368
367
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
369
368
|
function Ht(e, t) {
|
|
370
369
|
for (const n of [].concat(e)) {
|
|
@@ -374,53 +373,53 @@ function Ht(e, t) {
|
|
|
374
373
|
}
|
|
375
374
|
return null;
|
|
376
375
|
}
|
|
377
|
-
const
|
|
376
|
+
const Qu = function(t) {
|
|
378
377
|
function n(r) {
|
|
379
378
|
return Number(r) >= t ? null : { min: t };
|
|
380
379
|
}
|
|
381
380
|
return (r) => Ht(r, n);
|
|
382
381
|
};
|
|
383
382
|
bt.add("min");
|
|
384
|
-
const
|
|
383
|
+
const em = function(t) {
|
|
385
384
|
function n(r) {
|
|
386
385
|
return Number(r) <= t ? null : { max: t };
|
|
387
386
|
}
|
|
388
387
|
return (r) => Ht(r, n);
|
|
389
388
|
};
|
|
390
389
|
lr.add("max");
|
|
391
|
-
const
|
|
390
|
+
const tm = function(t) {
|
|
392
391
|
return typeof t > "u" || t === null || t === "" || Number.isNaN(t) || t?.length === 0 ? { required: !0 } : null;
|
|
393
392
|
};
|
|
394
393
|
lr.add("required");
|
|
395
|
-
const
|
|
394
|
+
const nm = function(t) {
|
|
396
395
|
function n(r) {
|
|
397
396
|
return r === void 0 || r.toString().length < t ? { minLength: t } : null;
|
|
398
397
|
}
|
|
399
398
|
return (r) => Ht(r, n);
|
|
400
399
|
};
|
|
401
400
|
bt.add("minLength");
|
|
402
|
-
const
|
|
401
|
+
const rm = function(t) {
|
|
403
402
|
function n(r) {
|
|
404
403
|
return r == null || Array.isArray(r) && r.length < t ? { minLengthArray: t } : null;
|
|
405
404
|
}
|
|
406
405
|
return (r) => n(r);
|
|
407
406
|
};
|
|
408
407
|
bt.add("minLengthArray");
|
|
409
|
-
const
|
|
408
|
+
const om = function(t) {
|
|
410
409
|
function n(r) {
|
|
411
410
|
return r === void 0 || r.toString().length <= t ? null : { maxLength: t };
|
|
412
411
|
}
|
|
413
412
|
return (r) => Ht(r, n);
|
|
414
413
|
};
|
|
415
414
|
Kt.add("maxLength");
|
|
416
|
-
const
|
|
415
|
+
const am = function(t) {
|
|
417
416
|
function n(r) {
|
|
418
417
|
return r == null || Array.isArray(r) && r.length <= t ? null : { maxLengthArray: t };
|
|
419
418
|
}
|
|
420
419
|
return (r) => n(r);
|
|
421
420
|
};
|
|
422
421
|
bt.add("maxLengthArray");
|
|
423
|
-
const
|
|
422
|
+
const sm = function(t) {
|
|
424
423
|
const n = t instanceof RegExp ? t : new RegExp(t);
|
|
425
424
|
function r(a) {
|
|
426
425
|
return n.test(a) ? null : { pattern: t };
|
|
@@ -428,28 +427,28 @@ const im = function(t) {
|
|
|
428
427
|
return (a) => Ht(a, r);
|
|
429
428
|
};
|
|
430
429
|
bt.add("pattern");
|
|
431
|
-
const
|
|
430
|
+
const im = function(e) {
|
|
432
431
|
function t(n) {
|
|
433
432
|
return new RegExp("^\\p{L}*$", "u").test(n) ? null : { alpha: !0 };
|
|
434
433
|
}
|
|
435
434
|
return Ht(e, t);
|
|
436
435
|
};
|
|
437
436
|
Kt.add("alpha");
|
|
438
|
-
const
|
|
437
|
+
const lm = function(e) {
|
|
439
438
|
function t(n) {
|
|
440
439
|
return /^[0-9,. ]*$/.test(n) ? null : { numeric: !0 };
|
|
441
440
|
}
|
|
442
441
|
return Ht(e, t);
|
|
443
442
|
};
|
|
444
443
|
Kt.add("numeric");
|
|
445
|
-
const
|
|
444
|
+
const cm = function(e) {
|
|
446
445
|
function t(n) {
|
|
447
446
|
return /^-?[0-9,. ]*$/.test(n) ? null : { positiveOrNegativeNumber: !0 };
|
|
448
447
|
}
|
|
449
448
|
return Ht(e, t);
|
|
450
449
|
};
|
|
451
450
|
Kt.add("positiveOrNegativeNumber");
|
|
452
|
-
const
|
|
451
|
+
const dm = function(e) {
|
|
453
452
|
function t(n) {
|
|
454
453
|
return /^[^0-9]*$/.test(n) ? null : { nonNumeric: !0 };
|
|
455
454
|
}
|
|
@@ -457,19 +456,19 @@ const pm = function(e) {
|
|
|
457
456
|
};
|
|
458
457
|
Kt.add("nonNumeric");
|
|
459
458
|
const _a = Object.freeze({
|
|
460
|
-
...
|
|
461
|
-
min:
|
|
462
|
-
max:
|
|
463
|
-
required:
|
|
464
|
-
minLength:
|
|
465
|
-
minLengthArray:
|
|
466
|
-
maxLength:
|
|
467
|
-
maxLengthArray:
|
|
468
|
-
pattern:
|
|
469
|
-
alpha:
|
|
470
|
-
numeric:
|
|
471
|
-
nonNumeric:
|
|
472
|
-
positiveOrNegativeNumber:
|
|
459
|
+
...Zu,
|
|
460
|
+
min: Qu,
|
|
461
|
+
max: em,
|
|
462
|
+
required: tm,
|
|
463
|
+
minLength: nm,
|
|
464
|
+
minLengthArray: rm,
|
|
465
|
+
maxLength: om,
|
|
466
|
+
maxLengthArray: am,
|
|
467
|
+
pattern: sm,
|
|
468
|
+
alpha: im,
|
|
469
|
+
numeric: lm,
|
|
470
|
+
nonNumeric: dm,
|
|
471
|
+
positiveOrNegativeNumber: cm,
|
|
473
472
|
OnBlurErrorKeys: bt
|
|
474
473
|
});
|
|
475
474
|
function Oa(e, t = []) {
|
|
@@ -480,9 +479,9 @@ function Oa(e, t = []) {
|
|
|
480
479
|
return Object.keys(n).length ? n : null;
|
|
481
480
|
}
|
|
482
481
|
var Ft = /* @__PURE__ */ ((e) => (e[e.ON_CHANGE = 0] = "ON_CHANGE", e[e.ON_BLUR = 1] = "ON_BLUR", e[e.ON_SUBMIT = 2] = "ON_SUBMIT", e))(Ft || {});
|
|
483
|
-
function
|
|
482
|
+
function wN(e, t = {}, n = []) {
|
|
484
483
|
for (const [r, a] of Object.entries(t))
|
|
485
|
-
a === 0 ?
|
|
484
|
+
a === 0 ? Hu(r) : a === 2 && Wu(r);
|
|
486
485
|
return o.useCallback(e, n);
|
|
487
486
|
}
|
|
488
487
|
class vn {
|
|
@@ -626,20 +625,20 @@ class yn extends Hr {
|
|
|
626
625
|
);
|
|
627
626
|
}
|
|
628
627
|
}
|
|
629
|
-
class
|
|
628
|
+
class pm extends yn {
|
|
630
629
|
inferMembers(t) {
|
|
631
630
|
this.fields = {};
|
|
632
631
|
for (const n of Object.keys(t))
|
|
633
632
|
this.fields[n] = this.inferSpsControl(t[n], n);
|
|
634
633
|
}
|
|
635
634
|
}
|
|
636
|
-
class
|
|
635
|
+
class um extends yn {
|
|
637
636
|
inferMembers(t) {
|
|
638
637
|
this.fields = t.map((n, r) => this.inferSpsControl(n, String(r)));
|
|
639
638
|
}
|
|
640
639
|
}
|
|
641
640
|
function Br(e, t, n) {
|
|
642
|
-
return e instanceof vn ? (e.path = t, e.update = n, e) : Array.isArray(e) ? new
|
|
641
|
+
return e instanceof vn ? (e.path = t, e.update = n, e) : Array.isArray(e) ? new um(e, t, n) : ql(e) ? new pm(e, t, n) : new Hr(t, n);
|
|
643
642
|
}
|
|
644
643
|
function Un(e, t) {
|
|
645
644
|
return t.length === 0 || !e ? e : Un(e.fields[t[0]], t.slice(1, t.length));
|
|
@@ -678,12 +677,12 @@ function ma(e, t) {
|
|
|
678
677
|
{}
|
|
679
678
|
) : e;
|
|
680
679
|
}
|
|
681
|
-
function
|
|
680
|
+
function mm(e) {
|
|
682
681
|
if (typeof e != "object" || e === null || Array.isArray(e))
|
|
683
682
|
throw new TypeError("The initial value of useSpsForm() hook must be an object.");
|
|
684
683
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
684
|
+
function fm(e, t = {}) {
|
|
685
|
+
mm(e);
|
|
687
686
|
const [, n] = xe({}), r = ae(!1);
|
|
688
687
|
r.current = !1;
|
|
689
688
|
const a = ae(t), s = Re((p) => {
|
|
@@ -905,7 +904,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
905
904
|
})(e);
|
|
906
905
|
}
|
|
907
906
|
return !1;
|
|
908
|
-
}, Cr = (e, t, n, r, a, s, i, l) => s < e && i > t || s > e && i < t ? 0 : s <= e && l <= n || i >= t && l >= n ? s - e - r : i > t && l < n || s < e && l > n ? i - t + a : 0,
|
|
907
|
+
}, Cr = (e, t, n, r, a, s, i, l) => s < e && i > t || s > e && i < t ? 0 : s <= e && l <= n || i >= t && l >= n ? s - e - r : i > t && l < n || s < e && l > n ? i - t + a : 0, Sm = (e) => {
|
|
909
908
|
const t = e.parentElement;
|
|
910
909
|
return t ?? (e.getRootNode().host || null);
|
|
911
910
|
}, Ws = (e, t) => {
|
|
@@ -916,7 +915,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
916
915
|
const p = document.scrollingElement || document.documentElement, f = [];
|
|
917
916
|
let g = e;
|
|
918
917
|
for (; Ks(g) && m(g); ) {
|
|
919
|
-
if (g =
|
|
918
|
+
if (g = Sm(g), g === p) {
|
|
920
919
|
f.push(g);
|
|
921
920
|
break;
|
|
922
921
|
}
|
|
@@ -943,7 +942,7 @@ const Ks = (e) => typeof e == "object" && e != null && e.nodeType === 1, Hs = (e
|
|
|
943
942
|
F.push({ el: I, top: V, left: Z });
|
|
944
943
|
}
|
|
945
944
|
return F;
|
|
946
|
-
},
|
|
945
|
+
}, gm = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
947
946
|
function oo(e, t) {
|
|
948
947
|
if (!e.isConnected || !((a) => {
|
|
949
948
|
let s = a;
|
|
@@ -959,7 +958,7 @@ function oo(e, t) {
|
|
|
959
958
|
})(e);
|
|
960
959
|
if (((a) => typeof a == "object" && typeof a.behavior == "function")(t)) return t.behavior(Ws(e, t));
|
|
961
960
|
const r = typeof t == "boolean" || t == null ? void 0 : t.behavior;
|
|
962
|
-
for (const { el: a, top: s, left: i } of Ws(e,
|
|
961
|
+
for (const { el: a, top: s, left: i } of Ws(e, gm(t))) {
|
|
963
962
|
const l = s - n.top + n.bottom, c = i - n.left + n.right;
|
|
964
963
|
a.scroll({ top: l, left: c, behavior: r });
|
|
965
964
|
}
|
|
@@ -967,7 +966,7 @@ function oo(e, t) {
|
|
|
967
966
|
const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
968
967
|
__proto__: null,
|
|
969
968
|
default: oo
|
|
970
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
969
|
+
}, Symbol.toStringTag, { value: "Module" })), hm = {
|
|
971
970
|
alt: "string",
|
|
972
971
|
size: "SpinnerSize",
|
|
973
972
|
title: "string"
|
|
@@ -989,10 +988,10 @@ function Jl(e) {
|
|
|
989
988
|
return /* @__PURE__ */ o.createElement("i", { className: u, "data-testid": a, title: d, ...l });
|
|
990
989
|
}
|
|
991
990
|
Object.assign(Jl, {
|
|
992
|
-
props:
|
|
991
|
+
props: hm,
|
|
993
992
|
displayName: "SpsSpinner"
|
|
994
993
|
});
|
|
995
|
-
const
|
|
994
|
+
const bm = 60;
|
|
996
995
|
function Nr(e) {
|
|
997
996
|
return typeof e > "u" ? "inherit" : `${e}px`;
|
|
998
997
|
}
|
|
@@ -1024,7 +1023,7 @@ function Xl(e) {
|
|
|
1024
1023
|
return ue.RIGHT_TOP;
|
|
1025
1024
|
}
|
|
1026
1025
|
}
|
|
1027
|
-
function
|
|
1026
|
+
function vm(e, t, n, r, a, s, i, l) {
|
|
1028
1027
|
const c = i && i.current, d = c ? c.scrollTop : window.pageYOffset, u = l ? 0 : d, m = c ? c.scrollLeft : window.pageXOffset, p = l ? 0 : m, [f, g] = e.split(" ");
|
|
1029
1028
|
let y, v, b, h;
|
|
1030
1029
|
switch (f) {
|
|
@@ -1098,7 +1097,7 @@ function Zn(e, t, n, {
|
|
|
1098
1097
|
});
|
|
1099
1098
|
const [v, b] = n.split(" ");
|
|
1100
1099
|
let h = n;
|
|
1101
|
-
if (r && (v === "top" && m.top - u.height <
|
|
1100
|
+
if (r && (v === "top" && m.top - u.height < bm || v === "right" && m.right + u.width > f || v === "bottom" && m.bottom + u.height > p || v === "left" && m.left - u.width < 0) && (h = r), b === "left" && m.left + u.width + (c?.[1] ?? 0) > /*
|
|
1102
1101
|
* use the right because this captures the users's actual viewable content and the farthest
|
|
1103
1102
|
* most right viewable portion of it.
|
|
1104
1103
|
*/
|
|
@@ -1111,7 +1110,7 @@ function Zn(e, t, n, {
|
|
|
1111
1110
|
h = ue.TOP_RIGHT;
|
|
1112
1111
|
break;
|
|
1113
1112
|
}
|
|
1114
|
-
const N = a ? Math.max(m.width, u.width) : u.width, T = s ? m.width : N, [E, k, P, R] =
|
|
1113
|
+
const N = a ? Math.max(m.width, u.width) : u.width, T = s ? m.width : N, [E, k, P, R] = vm(
|
|
1115
1114
|
h,
|
|
1116
1115
|
y,
|
|
1117
1116
|
m,
|
|
@@ -1249,7 +1248,7 @@ async function Gs(e, t, n, r, a, s) {
|
|
|
1249
1248
|
e.disabledOptions.includes(m.value) && (m.disabled = !0);
|
|
1250
1249
|
r(Object.freeze(u)), e.onOptionListChanged && e.onOptionListChanged(u.length), a(u.some((m) => m.value && !!m.value.icon)), n({ pending: !1 });
|
|
1251
1250
|
}
|
|
1252
|
-
function
|
|
1251
|
+
function ym(e, t, n) {
|
|
1253
1252
|
const [r, a] = o.useState(
|
|
1254
1253
|
Object.freeze([])
|
|
1255
1254
|
), [s, i] = o.useState(!1), l = o.useRef(null), c = o.useRef(e.options);
|
|
@@ -1321,16 +1320,16 @@ class Qt {
|
|
|
1321
1320
|
}
|
|
1322
1321
|
/* eslint-enable class-methods-use-this */
|
|
1323
1322
|
}
|
|
1324
|
-
function
|
|
1323
|
+
function Em(e, t) {
|
|
1325
1324
|
return { ...e, ...t };
|
|
1326
1325
|
}
|
|
1327
1326
|
function Wt(e) {
|
|
1328
1327
|
return no(
|
|
1329
|
-
|
|
1328
|
+
Em,
|
|
1330
1329
|
e
|
|
1331
1330
|
);
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1332
|
+
function Tm({
|
|
1334
1333
|
hideInlineSearch: e,
|
|
1335
1334
|
showInlineSearch: t,
|
|
1336
1335
|
options: n,
|
|
@@ -1383,7 +1382,7 @@ function wm({
|
|
|
1383
1382
|
u
|
|
1384
1383
|
];
|
|
1385
1384
|
}
|
|
1386
|
-
const
|
|
1385
|
+
const wm = oo || Pa, Cm = [
|
|
1387
1386
|
"Tab",
|
|
1388
1387
|
"Escape",
|
|
1389
1388
|
"Enter",
|
|
@@ -1392,7 +1391,7 @@ const Cm = oo || Pa, Nm = [
|
|
|
1392
1391
|
"Down",
|
|
1393
1392
|
"ArrowDown"
|
|
1394
1393
|
];
|
|
1395
|
-
function
|
|
1394
|
+
function Nm(e, t, n) {
|
|
1396
1395
|
return n ? (e && e[n]) === (t && t[n]) : e === t;
|
|
1397
1396
|
}
|
|
1398
1397
|
function Us(e, t, n) {
|
|
@@ -1454,9 +1453,9 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1454
1453
|
pt,
|
|
1455
1454
|
Be,
|
|
1456
1455
|
te
|
|
1457
|
-
] =
|
|
1456
|
+
] = Tm(
|
|
1458
1457
|
{ ...e, searchInputRef: We }
|
|
1459
|
-
), [pe, qe] =
|
|
1458
|
+
), [pe, qe] = ym(
|
|
1460
1459
|
e,
|
|
1461
1460
|
Be,
|
|
1462
1461
|
te
|
|
@@ -1567,7 +1566,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1567
1566
|
});
|
|
1568
1567
|
le > -1 && Z(le);
|
|
1569
1568
|
}, [pe]), Je = o.useCallback((se) => {
|
|
1570
|
-
se && (
|
|
1569
|
+
se && (Cm.includes(se.key) ? Te(se) : Zl.includes(se.key) && !u && Ge(se));
|
|
1571
1570
|
}, [
|
|
1572
1571
|
Ut,
|
|
1573
1572
|
kt,
|
|
@@ -1587,7 +1586,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1587
1586
|
};
|
|
1588
1587
|
}
|
|
1589
1588
|
}, []), o.useEffect(() => {
|
|
1590
|
-
G && de.current &&
|
|
1589
|
+
G && de.current && wm(de.current, {
|
|
1591
1590
|
scrollMode: "if-needed",
|
|
1592
1591
|
block: "nearest",
|
|
1593
1592
|
inline: "nearest"
|
|
@@ -1629,7 +1628,7 @@ const dr = o.forwardRef((e, t) => {
|
|
|
1629
1628
|
!D && !Be.pending && d && pe.length === 0 && /* @__PURE__ */ o.createElement("div", { className: "sps-option-list__zero-state" }, d),
|
|
1630
1629
|
(D || Be.pending) && /* @__PURE__ */ o.createElement("div", { className: "sps-option-list__loading" }, /* @__PURE__ */ o.createElement(Jl, null)),
|
|
1631
1630
|
!D && !Be.pending && pe.map((se, le) => {
|
|
1632
|
-
const Oe = `${T}-option-${le}`, Et =
|
|
1631
|
+
const Oe = `${T}-option-${le}`, Et = Nm(se.value, O, r), _s = Us(
|
|
1633
1632
|
re.current,
|
|
1634
1633
|
r || "",
|
|
1635
1634
|
se
|
|
@@ -1714,7 +1713,7 @@ function xn(e) {
|
|
|
1714
1713
|
// No-op since we called it at the source
|
|
1715
1714
|
};
|
|
1716
1715
|
}
|
|
1717
|
-
function
|
|
1716
|
+
function CN(e, t, n = []) {
|
|
1718
1717
|
return o.useMemo(() => {
|
|
1719
1718
|
function r(a) {
|
|
1720
1719
|
return /* @__PURE__ */ o.createElement(e, { ...a, ...t }, a.children);
|
|
@@ -1733,26 +1732,30 @@ const Ql = function({
|
|
|
1733
1732
|
return /* @__PURE__ */ o.createElement(o.Fragment, null, e);
|
|
1734
1733
|
const [n, r] = Array.isArray(t[0]) ? t[0] : [t[0]];
|
|
1735
1734
|
return /* @__PURE__ */ o.createElement(n, { ...r ?? {} }, /* @__PURE__ */ o.createElement(Ql, { elements: t.slice(1) }, e));
|
|
1736
|
-
},
|
|
1735
|
+
}, Dm = function({
|
|
1737
1736
|
children: e,
|
|
1738
1737
|
providers: t = [],
|
|
1739
1738
|
...n
|
|
1740
1739
|
}) {
|
|
1741
1740
|
return /* @__PURE__ */ o.createElement("div", { ...n }, /* @__PURE__ */ o.createElement(Ql, { elements: t }, e));
|
|
1742
|
-
},
|
|
1741
|
+
}, NN = function({
|
|
1743
1742
|
children: e,
|
|
1744
1743
|
className: t,
|
|
1745
1744
|
...n
|
|
1746
1745
|
}) {
|
|
1747
|
-
return /* @__PURE__ */ o.createElement(
|
|
1746
|
+
return /* @__PURE__ */ o.createElement(Dm, { className: `sps-app ${t}`, ...n }, e);
|
|
1748
1747
|
};
|
|
1748
|
+
function xm(e, t) {
|
|
1749
|
+
const { type: n, props: r = {}, custom: a } = t;
|
|
1750
|
+
return a ? a(e.type) : e.type !== n ? !1 : Object.keys(r).every((s) => r[s] === e.props[s]);
|
|
1751
|
+
}
|
|
1749
1752
|
function It(e = [], t = []) {
|
|
1750
1753
|
const n = Array.isArray(e) ? Su(e) : [e], r = t.map((s) => Array.isArray(s) ? s : [s]), a = new Array(r.length + 1).fill(null).map(() => []);
|
|
1751
1754
|
for (const s of n) {
|
|
1752
1755
|
let i = !1;
|
|
1753
1756
|
for (let l = 0; l < r.length; l += 1)
|
|
1754
|
-
for (const
|
|
1755
|
-
if (s
|
|
1757
|
+
for (const c of r[l])
|
|
1758
|
+
if (xm(s, c)) {
|
|
1756
1759
|
i = !0, a[l].push(s);
|
|
1757
1760
|
break;
|
|
1758
1761
|
}
|
|
@@ -8542,7 +8545,7 @@ function _b() {
|
|
|
8542
8545
|
return "" + ld++;
|
|
8543
8546
|
}, []);
|
|
8544
8547
|
}
|
|
8545
|
-
function
|
|
8548
|
+
function DN() {
|
|
8546
8549
|
Rb(), Bh();
|
|
8547
8550
|
}
|
|
8548
8551
|
function Ob(e) {
|
|
@@ -9757,7 +9760,7 @@ function yd(e, t) {
|
|
|
9757
9760
|
const [n, ...r] = gu(t);
|
|
9758
9761
|
return r.length ? e.members[n].get(r) : e.members[n];
|
|
9759
9762
|
}
|
|
9760
|
-
function
|
|
9763
|
+
function xN(e = [], t = {}) {
|
|
9761
9764
|
return {
|
|
9762
9765
|
validators: [],
|
|
9763
9766
|
...t,
|
|
@@ -9852,7 +9855,7 @@ function IN(e = [], t = {}) {
|
|
|
9852
9855
|
}
|
|
9853
9856
|
};
|
|
9854
9857
|
}
|
|
9855
|
-
function
|
|
9858
|
+
function IN(e, t = {}) {
|
|
9856
9859
|
return {
|
|
9857
9860
|
validators: [],
|
|
9858
9861
|
id: Qe(),
|
|
@@ -9908,7 +9911,7 @@ function kN(e, t = {}) {
|
|
|
9908
9911
|
}
|
|
9909
9912
|
};
|
|
9910
9913
|
}
|
|
9911
|
-
function
|
|
9914
|
+
function kN(e = {}, t = {}) {
|
|
9912
9915
|
return {
|
|
9913
9916
|
validators: [],
|
|
9914
9917
|
...t,
|
|
@@ -9990,7 +9993,7 @@ function MN(e = {}, t = {}) {
|
|
|
9990
9993
|
}
|
|
9991
9994
|
};
|
|
9992
9995
|
}
|
|
9993
|
-
function
|
|
9996
|
+
function MN(e, t) {
|
|
9994
9997
|
t && e.setInitValue(t);
|
|
9995
9998
|
const [n, r] = xe(), [a, s] = xe([]), [i, l] = no((c) => {
|
|
9996
9999
|
for (const d of a)
|
|
@@ -10004,7 +10007,7 @@ function LN(e, t) {
|
|
|
10004
10007
|
});
|
|
10005
10008
|
}), i;
|
|
10006
10009
|
}
|
|
10007
|
-
function
|
|
10010
|
+
function LN(e, t = null) {
|
|
10008
10011
|
const [n, r] = xe(t), a = ae(() => null);
|
|
10009
10012
|
return be(() => {
|
|
10010
10013
|
const s = () => n;
|
|
@@ -10039,7 +10042,7 @@ Object.assign(mo, {
|
|
|
10039
10042
|
});
|
|
10040
10043
|
const Bv = {
|
|
10041
10044
|
// examples are held in the docs/src/views/forms/Forms.tsx file
|
|
10042
|
-
},
|
|
10045
|
+
}, RN = {
|
|
10043
10046
|
ideal: {
|
|
10044
10047
|
label: "Ideal",
|
|
10045
10048
|
examples: {
|
|
@@ -10311,7 +10314,7 @@ function Td(e) {
|
|
|
10311
10314
|
})
|
|
10312
10315
|
)
|
|
10313
10316
|
]
|
|
10314
|
-
}), { t: p } = he(), f = { searchSelectedColumn: "" }, g = B(u.isVisible && "sps-button--open", l), { formMeta: y, formValue: v, updateForm: b } =
|
|
10317
|
+
}), { t: p } = he(), f = { searchSelectedColumn: "" }, g = B(u.isVisible && "sps-button--open", l), { formMeta: y, formValue: v, updateForm: b } = fm(f);
|
|
10315
10318
|
function h(R) {
|
|
10316
10319
|
if (R.target.value) {
|
|
10317
10320
|
const L = [...u.pendingSelectedColumns], _ = [];
|
|
@@ -11984,7 +11987,7 @@ function Nd(e) {
|
|
|
11984
11987
|
const Dd = o.createContext(
|
|
11985
11988
|
void 0
|
|
11986
11989
|
);
|
|
11987
|
-
function
|
|
11990
|
+
function _N({
|
|
11988
11991
|
currentUser: e,
|
|
11989
11992
|
locale: t,
|
|
11990
11993
|
children: n
|
|
@@ -17785,7 +17788,7 @@ Object.assign(tE, {
|
|
|
17785
17788
|
props: eE,
|
|
17786
17789
|
displayName: "SpsButtonGroup"
|
|
17787
17790
|
});
|
|
17788
|
-
const
|
|
17791
|
+
const ON = {
|
|
17789
17792
|
basic: {
|
|
17790
17793
|
label: "Basic Buttons",
|
|
17791
17794
|
description: ({ NavigateTo: e }) => /* @__PURE__ */ o.createElement("span", { className: "sps-body-14 mt-4" }, "The most common type of button that can be used in most cases. Example: Basic Buttons in a", " ", /* @__PURE__ */ o.createElement(e, { to: "Modal" }, "Modal"), "."),
|
|
@@ -19953,7 +19956,7 @@ const aE = {
|
|
|
19953
19956
|
}
|
|
19954
19957
|
}
|
|
19955
19958
|
}
|
|
19956
|
-
},
|
|
19959
|
+
}, PN = {
|
|
19957
19960
|
basic: {
|
|
19958
19961
|
label: "Basic Tag",
|
|
19959
19962
|
examples: {
|
|
@@ -26301,7 +26304,7 @@ Object.assign(fp, {
|
|
|
26301
26304
|
props: jE,
|
|
26302
26305
|
displayName: "SpsFeedbackBlock"
|
|
26303
26306
|
});
|
|
26304
|
-
const
|
|
26307
|
+
const BN = {
|
|
26305
26308
|
standard: {
|
|
26306
26309
|
label: "Standard Size",
|
|
26307
26310
|
description: "Use Standard Size Feedback Blocks for the majority of cases. If a smaller or more subtle solution is needed, use the Micro Size Feedback Block.",
|
|
@@ -27915,7 +27918,7 @@ const sT = {
|
|
|
27915
27918
|
}
|
|
27916
27919
|
}
|
|
27917
27920
|
}
|
|
27918
|
-
},
|
|
27921
|
+
}, FN = {
|
|
27919
27922
|
Autocomplete: {
|
|
27920
27923
|
components: [At],
|
|
27921
27924
|
examples: Mm
|
|
@@ -31039,7 +31042,8 @@ function iC({
|
|
|
31039
31042
|
] = It(e, [
|
|
31040
31043
|
{ type: Qp },
|
|
31041
31044
|
{ type: Xp },
|
|
31042
|
-
|
|
31045
|
+
// Match by displayName to avoid circular dependency with @sps-woodland/core
|
|
31046
|
+
{ custom: (d) => d?.displayName === "Tabs" },
|
|
31043
31047
|
{ type: Zp }
|
|
31044
31048
|
]), c = a.length > 0 ? a : s;
|
|
31045
31049
|
return /* @__PURE__ */ o.createElement("div", { className: B("sps-card", t), ...n }, r, c.length > 0 ? c : /* @__PURE__ */ o.createElement("div", { className: "sps-card__body" }, l), i);
|
|
@@ -31126,7 +31130,7 @@ Object.assign(pC, {
|
|
|
31126
31130
|
props: dC,
|
|
31127
31131
|
displayName: "SpsAdvancedSearch"
|
|
31128
31132
|
});
|
|
31129
|
-
const
|
|
31133
|
+
const AN = {
|
|
31130
31134
|
general: {
|
|
31131
31135
|
label: "General Usage",
|
|
31132
31136
|
description: ({ NavigateTo: e, Link: t }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, 'Advanced Search is comprised of a panel of input fields, and a text button that exposes and hides the panel. By default, the Advanced Search panel is hidden (with the exception of "Advanced Search Only" scenarios).'), /* @__PURE__ */ o.createElement("p", null, "Advanced Search works in conjunction with the", " ", /* @__PURE__ */ o.createElement(e, { to: "list-toolbar" }, "List Bar"), " and", " ", /* @__PURE__ */ o.createElement(e, { to: "search-results-bar" }, "Search Results"), " components. Refer to those pages for additional details."), /* @__PURE__ */ o.createElement("p", null, "Use the following guidelines when including Advanced Search on your page:", /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "The Advanced Search Panel can contain any number of input fields."), /* @__PURE__ */ o.createElement("li", null, "The Advanced Search Panel can place input fields in any unique layout to best serve the needs of the search criteria, but must adhere to the rules of the", " ", /* @__PURE__ */ o.createElement(t, { to: "/style-and-layout/grid/" }, "SPS Grid"), " and guidelines for", " ", /* @__PURE__ */ o.createElement(e, { to: "form" }, "Form Layouts"), "."))))
|
|
@@ -31398,7 +31402,7 @@ const $N = {
|
|
|
31398
31402
|
}
|
|
31399
31403
|
}
|
|
31400
31404
|
}
|
|
31401
|
-
},
|
|
31405
|
+
}, $N = function({
|
|
31402
31406
|
viewing: e,
|
|
31403
31407
|
in: t,
|
|
31404
31408
|
onChange: n
|
|
@@ -31496,7 +31500,7 @@ Object.assign(SC, {
|
|
|
31496
31500
|
props: uC,
|
|
31497
31501
|
displayName: "SpsCurrencyInput"
|
|
31498
31502
|
});
|
|
31499
|
-
const
|
|
31503
|
+
const VN = {
|
|
31500
31504
|
basic: {
|
|
31501
31505
|
label: "Basic",
|
|
31502
31506
|
examples: {
|
|
@@ -31633,7 +31637,7 @@ Object.assign(tu, {
|
|
|
31633
31637
|
props: hC,
|
|
31634
31638
|
displayName: "SpsFocusedTask"
|
|
31635
31639
|
});
|
|
31636
|
-
const
|
|
31640
|
+
const KN = {
|
|
31637
31641
|
basic: {
|
|
31638
31642
|
examples: {
|
|
31639
31643
|
basic: {
|
|
@@ -31811,7 +31815,7 @@ Object.assign(nu, {
|
|
|
31811
31815
|
props: bC,
|
|
31812
31816
|
displayName: "SpsGrowler"
|
|
31813
31817
|
});
|
|
31814
|
-
function
|
|
31818
|
+
function HN() {
|
|
31815
31819
|
const [e, t] = o.useState([]), n = o.useCallback(() => e.map((a) => /* @__PURE__ */ o.createElement(
|
|
31816
31820
|
nu,
|
|
31817
31821
|
{
|
|
@@ -31838,7 +31842,7 @@ function WN() {
|
|
|
31838
31842
|
}, []);
|
|
31839
31843
|
return [n, r];
|
|
31840
31844
|
}
|
|
31841
|
-
const
|
|
31845
|
+
const WN = {
|
|
31842
31846
|
writingGuidelines: {
|
|
31843
31847
|
label: "Writing Guidelines",
|
|
31844
31848
|
customSection: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "Use the following guidelines to write an effective Growler message."), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "Write all messages in sentence case.", /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "Capitalize the first word of the message."), /* @__PURE__ */ o.createElement("li", null, "Add punctuation, such as a period, at the end of the message."))), /* @__PURE__ */ o.createElement("li", null, "Keep messages as succinct as possible while also providing sufficient information to the customer."), /* @__PURE__ */ o.createElement("li", null, "If you can clearly convey your message in a single statement, use only the Primary Message."), /* @__PURE__ */ o.createElement("li", null, "If the message requires additional details, such as further information or instructions, use both the Primary and Secondary Messages.")), /* @__PURE__ */ o.createElement("p", null, "For more examples of effective feedback message writing, refer to", " ", /* @__PURE__ */ o.createElement(
|
|
@@ -32214,7 +32218,7 @@ const GN = {
|
|
|
32214
32218
|
}
|
|
32215
32219
|
}
|
|
32216
32220
|
};
|
|
32217
|
-
function
|
|
32221
|
+
function GN(e) {
|
|
32218
32222
|
const { children: t } = e;
|
|
32219
32223
|
return /* @__PURE__ */ o.createElement("div", { className: "insight-tile-wrapper" }, t);
|
|
32220
32224
|
}
|
|
@@ -32349,7 +32353,7 @@ Object.assign(DC, {
|
|
|
32349
32353
|
props: NC,
|
|
32350
32354
|
displayName: "SpsKeyValueTag"
|
|
32351
32355
|
});
|
|
32352
|
-
const
|
|
32356
|
+
const UN = {
|
|
32353
32357
|
basic: {
|
|
32354
32358
|
label: "Basic",
|
|
32355
32359
|
examples: {
|
|
@@ -32508,7 +32512,7 @@ Object.assign(ou, {
|
|
|
32508
32512
|
props: kC,
|
|
32509
32513
|
displayName: "SpsSearchResultsBarV2"
|
|
32510
32514
|
});
|
|
32511
|
-
const
|
|
32515
|
+
const zN = {
|
|
32512
32516
|
basic: {
|
|
32513
32517
|
label: "Basic",
|
|
32514
32518
|
description: ({ NavigateTo: e }) => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "SpsSearchResultsBarV2 should be used with List Toolbar and Advanced Search."), /* @__PURE__ */ o.createElement("p", null, "For more examples go to the Advanced Search section on the", " ", /* @__PURE__ */ o.createElement(e, { to: "list-toolbar" }, "List Toolbar"), " page.")),
|
|
@@ -32967,7 +32971,7 @@ function BC() {
|
|
|
32967
32971
|
}
|
|
32968
32972
|
), /* @__PURE__ */ o.createElement(Fn, null, /* @__PURE__ */ o.createElement(mn, null, /* @__PURE__ */ o.createElement(je, { style: { width: "80px" } }, "Order"), /* @__PURE__ */ o.createElement(je, null, "Section"), /* @__PURE__ */ o.createElement(je, null, "Notes")), /* @__PURE__ */ o.createElement(fn, null, /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "1")), /* @__PURE__ */ o.createElement(ne, null, "Checkbox"), /* @__PURE__ */ o.createElement(ne, null, "For Content Rows and Content Tiles only.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "2")), /* @__PURE__ */ o.createElement(ne, null, "Search/Filter Box"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "3")), /* @__PURE__ */ o.createElement(ne, null, "Saved Search"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "4")), /* @__PURE__ */ o.createElement(ne, null, "Advanced Search"), /* @__PURE__ */ o.createElement(ne, null, "For more information, visit the Advanced Search page.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "5")), /* @__PURE__ */ o.createElement(ne, null, "Column Editor"), /* @__PURE__ */ o.createElement(ne, { wrap: 500 }, "Use for Tables only. For more information, visit the Column Editor page.")), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "6")), /* @__PURE__ */ o.createElement(ne, null, "List View Selector"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "7")), /* @__PURE__ */ o.createElement(ne, null, "Sorting"), /* @__PURE__ */ o.createElement(ne, null)), /* @__PURE__ */ o.createElement(De, null, /* @__PURE__ */ o.createElement(ne, null, /* @__PURE__ */ o.createElement("span", { className: "sps-tag sps-tag--info" }, "8")), /* @__PURE__ */ o.createElement(ne, null, "Buttons"), /* @__PURE__ */ o.createElement(ne, { wrap: 500 }, "Buttons always appear in the rightmost section of the List Toolbar. For the ordering of Buttons, refer to the Button Groups section on the Buttons page."))))));
|
|
32969
32973
|
}
|
|
32970
|
-
const
|
|
32974
|
+
const jN = {
|
|
32971
32975
|
general: {
|
|
32972
32976
|
label: "General Usage",
|
|
32973
32977
|
description: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h5", null, "Use a List Toolbar:"), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "When list content needs to be searched, filtered, sorted, or otherwise interacted with.")), /* @__PURE__ */ o.createElement("h5", null, "Avoid a List Toolbar:"), /* @__PURE__ */ o.createElement("ul", null, /* @__PURE__ */ o.createElement("li", null, "When no list is present."), /* @__PURE__ */ o.createElement("li", null, "When there will always be a small number of elements in the list, or the list does not require searching, filtering, or other actions.")))
|
|
@@ -33925,7 +33929,7 @@ const YN = {
|
|
|
33925
33929
|
}
|
|
33926
33930
|
};
|
|
33927
33931
|
var FC = /* @__PURE__ */ ((e) => (e.Ok = "Ok", e.Cancel = "Cancel", e))(FC || {});
|
|
33928
|
-
const
|
|
33932
|
+
const YN = () => {
|
|
33929
33933
|
const [e, t] = xe([]), n = (d) => {
|
|
33930
33934
|
const u = [...e], m = { ...d };
|
|
33931
33935
|
return m.key = Qe(), new Promise((f) => {
|
|
@@ -33950,7 +33954,7 @@ const qN = () => {
|
|
|
33950
33954
|
c
|
|
33951
33955
|
];
|
|
33952
33956
|
};
|
|
33953
|
-
function
|
|
33957
|
+
function qN(e, t) {
|
|
33954
33958
|
const n = {
|
|
33955
33959
|
...Gl,
|
|
33956
33960
|
...e
|
|
@@ -34004,7 +34008,7 @@ Object.assign(KC, {
|
|
|
34004
34008
|
props: VC,
|
|
34005
34009
|
displayName: "SpsPageSubtitle"
|
|
34006
34010
|
});
|
|
34007
|
-
const
|
|
34011
|
+
const JN = {
|
|
34008
34012
|
basic: {
|
|
34009
34013
|
label: "Basic",
|
|
34010
34014
|
examples: {
|
|
@@ -34169,7 +34173,7 @@ Object.assign(GC, {
|
|
|
34169
34173
|
props: WC,
|
|
34170
34174
|
displayName: "SpsProductBar"
|
|
34171
34175
|
});
|
|
34172
|
-
const
|
|
34176
|
+
const XN = {
|
|
34173
34177
|
basic: {
|
|
34174
34178
|
label: "Basic",
|
|
34175
34179
|
description: S`
|
|
@@ -34355,7 +34359,7 @@ Object.assign(zC, {
|
|
|
34355
34359
|
props: UC,
|
|
34356
34360
|
displayName: "SpsProgressBar"
|
|
34357
34361
|
});
|
|
34358
|
-
const
|
|
34362
|
+
const ZN = {
|
|
34359
34363
|
general: {
|
|
34360
34364
|
label: "General Usage",
|
|
34361
34365
|
customSection: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h4", null, "General Usage"), /* @__PURE__ */ o.createElement("p", null, "Progress Bars can be used in a variety of situations, but the most common use case is to show the live progress of a process such as a file upload or the processing of a digital payload."), /* @__PURE__ */ o.createElement("p", null, "For processes that typically complete within minutes or less, opt for the Standard Progress Bar."), /* @__PURE__ */ o.createElement("p", null, "For processes that are divided into specific steps that are accomplished over a longer period of time, opt for the Stepped Progress Bar."))
|
|
@@ -34481,7 +34485,7 @@ Object.assign(JC, {
|
|
|
34481
34485
|
props: qC,
|
|
34482
34486
|
displayName: "SpsSlackLink"
|
|
34483
34487
|
});
|
|
34484
|
-
const
|
|
34488
|
+
const QN = {
|
|
34485
34489
|
basic: {
|
|
34486
34490
|
examples: {
|
|
34487
34491
|
basic: {
|
|
@@ -34585,7 +34589,7 @@ Object.assign(QC, {
|
|
|
34585
34589
|
props: ZC,
|
|
34586
34590
|
displayName: "SpsSortingHeader"
|
|
34587
34591
|
});
|
|
34588
|
-
const
|
|
34592
|
+
const eD = {
|
|
34589
34593
|
basic: {
|
|
34590
34594
|
label: "Basic Sorting Header",
|
|
34591
34595
|
examples: {
|
|
@@ -34686,7 +34690,7 @@ Object.assign(tN, {
|
|
|
34686
34690
|
props: eN,
|
|
34687
34691
|
displayName: "SpsSteppedProgressBar"
|
|
34688
34692
|
});
|
|
34689
|
-
const
|
|
34693
|
+
const tD = {
|
|
34690
34694
|
standard: {
|
|
34691
34695
|
label: "Stepped Progress Bar",
|
|
34692
34696
|
description: () => /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "Stepped Progress Bars are comprised of the following Required and Optional elements."), /* @__PURE__ */ o.createElement(
|
|
@@ -34885,7 +34889,7 @@ Object.assign(aN, {
|
|
|
34885
34889
|
props: oN,
|
|
34886
34890
|
displayName: "SpsTileList"
|
|
34887
34891
|
});
|
|
34888
|
-
const
|
|
34892
|
+
const nD = {
|
|
34889
34893
|
basic: {
|
|
34890
34894
|
label: "Basic",
|
|
34891
34895
|
examples: {
|
|
@@ -35166,7 +35170,7 @@ Object.assign(cN, {
|
|
|
35166
35170
|
props: lN,
|
|
35167
35171
|
displayName: "SpsFilterTileList"
|
|
35168
35172
|
});
|
|
35169
|
-
const
|
|
35173
|
+
const rD = {
|
|
35170
35174
|
basic: {
|
|
35171
35175
|
label: "Basic",
|
|
35172
35176
|
examples: {
|
|
@@ -35264,7 +35268,7 @@ function uN(e) {
|
|
|
35264
35268
|
className: t,
|
|
35265
35269
|
heading: n,
|
|
35266
35270
|
icon: r,
|
|
35267
|
-
illustration: a =
|
|
35271
|
+
illustration: a = Fu,
|
|
35268
35272
|
subHeading: s,
|
|
35269
35273
|
"data-testid": i,
|
|
35270
35274
|
unsafelyReplaceClassName: l,
|
|
@@ -35297,7 +35301,7 @@ function fN(e) {
|
|
|
35297
35301
|
"data-testid": l,
|
|
35298
35302
|
unsafelyReplaceClassName: c,
|
|
35299
35303
|
...d
|
|
35300
|
-
} = e, u = s || t ||
|
|
35304
|
+
} = e, u = s || t || Au, m = B(
|
|
35301
35305
|
c || "sps-zero-state",
|
|
35302
35306
|
r
|
|
35303
35307
|
);
|
|
@@ -35315,7 +35319,7 @@ Object.assign(fN, {
|
|
|
35315
35319
|
props: mN,
|
|
35316
35320
|
displayName: "SpsZeroState"
|
|
35317
35321
|
});
|
|
35318
|
-
const
|
|
35322
|
+
const oD = {
|
|
35319
35323
|
sizes: {
|
|
35320
35324
|
label: "Sizes",
|
|
35321
35325
|
customSection: () => /* @__PURE__ */ o.createElement("section", { id: "zero-states-sizes" }, /* @__PURE__ */ o.createElement("div", { className: "flex-color-header" }, /* @__PURE__ */ o.createElement("h4", null, "Sizes"), /* @__PURE__ */ o.createElement(
|
|
@@ -35501,22 +35505,22 @@ export {
|
|
|
35501
35505
|
Cv as Draggable,
|
|
35502
35506
|
gd as Droppable,
|
|
35503
35507
|
Qt as FauxChangeEvent,
|
|
35504
|
-
|
|
35508
|
+
FN as MANIFEST,
|
|
35505
35509
|
FC as ModalAction,
|
|
35506
35510
|
bt as OnBlurErrorKeys,
|
|
35507
35511
|
Ra as OnSubmitErrorKeys,
|
|
35508
35512
|
xt as PortalContext,
|
|
35509
35513
|
Kt as PreventativeErrorKeys,
|
|
35510
|
-
|
|
35514
|
+
Dm as Provide,
|
|
35511
35515
|
U as SimpleDateUtils,
|
|
35512
|
-
|
|
35516
|
+
RN as SpsAddRemoveFormRowExamples,
|
|
35513
35517
|
pC as SpsAdvancedSearch,
|
|
35514
|
-
|
|
35515
|
-
|
|
35518
|
+
AN as SpsAdvancedSearchExamples,
|
|
35519
|
+
NN as SpsApp,
|
|
35516
35520
|
At as SpsAutocomplete,
|
|
35517
35521
|
Mm as SpsAutocompleteExamples,
|
|
35518
35522
|
ke as SpsButton,
|
|
35519
|
-
|
|
35523
|
+
ON as SpsButtonExamples,
|
|
35520
35524
|
tE as SpsButtonGroup,
|
|
35521
35525
|
vd as SpsCard,
|
|
35522
35526
|
bd as SpsCardTabbedPane,
|
|
@@ -35538,9 +35542,9 @@ export {
|
|
|
35538
35542
|
En as SpsContentRowCol,
|
|
35539
35543
|
Gv as SpsContentRowExamples,
|
|
35540
35544
|
us as SpsContentRowExpansion,
|
|
35541
|
-
|
|
35545
|
+
$N as SpsContextBar,
|
|
35542
35546
|
SC as SpsCurrencyInput,
|
|
35543
|
-
|
|
35547
|
+
VN as SpsCurrencyInputExamples,
|
|
35544
35548
|
Id as SpsDateRangePicker,
|
|
35545
35549
|
uy as SpsDateRangePickerExamples,
|
|
35546
35550
|
Md as SpsDateTime,
|
|
@@ -35559,7 +35563,7 @@ export {
|
|
|
35559
35563
|
_y as SpsDropdownExamples,
|
|
35560
35564
|
ky as SpsDt,
|
|
35561
35565
|
fp as SpsFeedbackBlock,
|
|
35562
|
-
|
|
35566
|
+
BN as SpsFeedbackBlockExamples,
|
|
35563
35567
|
Pd as SpsFieldset,
|
|
35564
35568
|
By as SpsFieldsetExamples,
|
|
35565
35569
|
Sp as SpsFilterPanel,
|
|
@@ -35569,41 +35573,41 @@ export {
|
|
|
35569
35573
|
gp as SpsFilterPanelSection,
|
|
35570
35574
|
iN as SpsFilterTile,
|
|
35571
35575
|
cN as SpsFilterTileList,
|
|
35572
|
-
|
|
35576
|
+
rD as SpsFilterTileListExamples,
|
|
35573
35577
|
tu as SpsFocusedTask,
|
|
35574
35578
|
eu as SpsFocusedTaskActions,
|
|
35575
|
-
|
|
35579
|
+
KN as SpsFocusedTaskExamples,
|
|
35576
35580
|
mo as SpsForm,
|
|
35577
|
-
|
|
35581
|
+
um as SpsFormArrayMeta,
|
|
35578
35582
|
Ve as SpsFormComponentWrapper,
|
|
35579
35583
|
Bv as SpsFormExamples,
|
|
35580
35584
|
Hr as SpsFormFieldMeta,
|
|
35581
|
-
|
|
35585
|
+
pm as SpsFormGroupMeta,
|
|
35582
35586
|
vn as SpsFormMetaBase,
|
|
35583
35587
|
yn as SpsFormSetMeta,
|
|
35584
35588
|
nu as SpsGrowler,
|
|
35585
|
-
|
|
35589
|
+
WN as SpsGrowlerExamples,
|
|
35586
35590
|
Pt as SpsI,
|
|
35587
35591
|
oE as SpsIconButtonPanel,
|
|
35588
35592
|
Bd as SpsIncrementor,
|
|
35589
35593
|
Ay as SpsIncrementorExamples,
|
|
35590
35594
|
ir as SpsInputGroup,
|
|
35591
35595
|
yC as SpsInsightTile,
|
|
35592
|
-
|
|
35596
|
+
GN as SpsInsights,
|
|
35593
35597
|
TC as SpsKeyValueList,
|
|
35594
35598
|
CC as SpsKeyValueListItem,
|
|
35595
35599
|
DC as SpsKeyValueTag,
|
|
35596
|
-
|
|
35600
|
+
UN as SpsKeyValueTagExamples,
|
|
35597
35601
|
Fd as SpsLabel,
|
|
35598
35602
|
Vy as SpsLabelExamples,
|
|
35599
35603
|
Ad as SpsListActionBar,
|
|
35600
35604
|
sE as SpsListActionBarExamples,
|
|
35601
35605
|
_C as SpsListToolbar,
|
|
35602
|
-
|
|
35606
|
+
jN as SpsListToolbarExamples,
|
|
35603
35607
|
au as SpsListToolbarSearch,
|
|
35604
35608
|
su as SpsListToolbarSearchInfo,
|
|
35605
35609
|
PC as SpsListToolbarSortBy,
|
|
35606
|
-
|
|
35610
|
+
_N as SpsLocaleProvider,
|
|
35607
35611
|
zd as SpsMicroBlock,
|
|
35608
35612
|
lE as SpsMicroBlockExamples,
|
|
35609
35613
|
uN as SpsMicroZeroState,
|
|
@@ -35617,37 +35621,37 @@ export {
|
|
|
35617
35621
|
hs as SpsPageSelector,
|
|
35618
35622
|
KC as SpsPageSubtitle,
|
|
35619
35623
|
$C as SpsPageTitle,
|
|
35620
|
-
|
|
35624
|
+
JN as SpsPageTitleExamples,
|
|
35621
35625
|
Jd as SpsPagination,
|
|
35622
35626
|
hE as SpsPaginationExamples,
|
|
35623
35627
|
GC as SpsProductBar,
|
|
35624
|
-
|
|
35628
|
+
XN as SpsProductBarExamples,
|
|
35625
35629
|
iu as SpsProductBarTab,
|
|
35626
35630
|
zC as SpsProgressBar,
|
|
35627
|
-
|
|
35631
|
+
ZN as SpsProgressBarExamples,
|
|
35628
35632
|
lp as SpsProgressRing,
|
|
35629
35633
|
Xd as SpsRadioButton,
|
|
35630
35634
|
vE as SpsRadioButtonExamples,
|
|
35631
35635
|
YC as SpsScrollableContainer,
|
|
35632
35636
|
IC as SpsSearchResultsBar,
|
|
35633
|
-
|
|
35637
|
+
zN as SpsSearchResultsBarExamples,
|
|
35634
35638
|
ou as SpsSearchResultsBarV2,
|
|
35635
35639
|
Ln as SpsSelect,
|
|
35636
35640
|
Sy as SpsSelectExamples,
|
|
35637
35641
|
yE as SpsSideNav,
|
|
35638
35642
|
EE as SpsSideNavExamples,
|
|
35639
35643
|
JC as SpsSlackLink,
|
|
35640
|
-
|
|
35644
|
+
QN as SpsSlackLinkExamples,
|
|
35641
35645
|
Yd as SpsSlideInPanel,
|
|
35642
35646
|
pE as SpsSlideInPanelExamples,
|
|
35643
35647
|
QC as SpsSortingHeader,
|
|
35644
35648
|
lu as SpsSortingHeaderCell,
|
|
35645
|
-
|
|
35649
|
+
eD as SpsSortingHeaderExamples,
|
|
35646
35650
|
Jl as SpsSpinner,
|
|
35647
35651
|
Qd as SpsSplitButton,
|
|
35648
35652
|
wE as SpsSplitButtonExamples,
|
|
35649
35653
|
tN as SpsSteppedProgressBar,
|
|
35650
|
-
|
|
35654
|
+
tD as SpsSteppedProgressBarExamples,
|
|
35651
35655
|
tp as SpsSummaryListColumn,
|
|
35652
35656
|
xE as SpsSummaryListExamples,
|
|
35653
35657
|
Jr as SpsSummaryListExpansion,
|
|
@@ -35663,7 +35667,7 @@ export {
|
|
|
35663
35667
|
De as SpsTableRow,
|
|
35664
35668
|
Xp as SpsTabsV2,
|
|
35665
35669
|
_t as SpsTag,
|
|
35666
|
-
|
|
35670
|
+
PN as SpsTagExamples,
|
|
35667
35671
|
np as SpsTaskQueue,
|
|
35668
35672
|
kE as SpsTaskQueueExamples,
|
|
35669
35673
|
Zy as SpsTbody,
|
|
@@ -35676,7 +35680,7 @@ export {
|
|
|
35676
35680
|
Jy as SpsThead,
|
|
35677
35681
|
rN as SpsTile,
|
|
35678
35682
|
aN as SpsTileList,
|
|
35679
|
-
|
|
35683
|
+
nD as SpsTileListExamples,
|
|
35680
35684
|
Ep as SpsTimeInput,
|
|
35681
35685
|
sT as SpsTimeInputExamples,
|
|
35682
35686
|
ap as SpsToggle,
|
|
@@ -35701,46 +35705,46 @@ export {
|
|
|
35701
35705
|
zE as SpsWorkflowExamples,
|
|
35702
35706
|
ws as SpsWorkflowStep,
|
|
35703
35707
|
fN as SpsZeroState,
|
|
35704
|
-
|
|
35708
|
+
oD as SpsZeroStateExamples,
|
|
35705
35709
|
ge as TooltipVisibility,
|
|
35706
35710
|
Ft as ValidationMode,
|
|
35707
|
-
|
|
35708
|
-
|
|
35709
|
-
|
|
35711
|
+
Hu as addOnChangeErrorKey,
|
|
35712
|
+
Wu as addOnSubmitErrorKey,
|
|
35713
|
+
CN as bindProps,
|
|
35710
35714
|
st as contentOf,
|
|
35711
35715
|
Kr as date,
|
|
35712
|
-
|
|
35713
|
-
|
|
35716
|
+
Xu as dateConstraint,
|
|
35717
|
+
Ju as dateRange,
|
|
35714
35718
|
bs as findParentBranches,
|
|
35715
35719
|
Xl as flipPosition,
|
|
35716
|
-
|
|
35717
|
-
|
|
35718
|
-
|
|
35720
|
+
xN as formArray,
|
|
35721
|
+
IN as formControl,
|
|
35722
|
+
kN as formGroup,
|
|
35719
35723
|
yd as getMember,
|
|
35720
35724
|
Zn as getPosition,
|
|
35721
35725
|
Zl as letterAndNumberKeys,
|
|
35722
|
-
|
|
35726
|
+
DN as resetServerContext,
|
|
35723
35727
|
It as selectChildren,
|
|
35724
|
-
|
|
35728
|
+
qu as setDateFormat,
|
|
35725
35729
|
Jo as toggleTooltipState,
|
|
35726
35730
|
Im as useCheckDeprecatedProps,
|
|
35727
35731
|
Yy as useColumnCellResizer,
|
|
35728
35732
|
jy as useColumnHeaderResizer,
|
|
35729
|
-
|
|
35733
|
+
wN as useCustomValidator,
|
|
35730
35734
|
ec as useDidUpdateEffect,
|
|
35731
35735
|
zs as useDocumentEventListener,
|
|
35732
35736
|
pn as useElementId,
|
|
35733
|
-
|
|
35734
|
-
|
|
35737
|
+
MN as useForm,
|
|
35738
|
+
HN as useGrowlers,
|
|
35735
35739
|
pr as useInputPopup,
|
|
35736
35740
|
cb as useKeyboardSensor,
|
|
35737
|
-
|
|
35741
|
+
YN as useModals,
|
|
35738
35742
|
ab as useMouseSensor,
|
|
35739
35743
|
Wt as usePatchReducer,
|
|
35740
35744
|
cr as usePortal,
|
|
35741
|
-
|
|
35742
|
-
|
|
35743
|
-
|
|
35745
|
+
LN as useServerSideValidation,
|
|
35746
|
+
qN as useSpsAction,
|
|
35747
|
+
fm as useSpsForm,
|
|
35744
35748
|
go as useSpsLocale,
|
|
35745
35749
|
fb as useTouchSensor,
|
|
35746
35750
|
Oa as validate
|