@spscommerce/ds-react 5.26.0 → 5.28.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.cjs.js +77 -77
- package/lib/index.es.js +123 -81
- package/lib/utils/index.d.ts +2 -0
- package/package.json +11 -11
package/lib/index.es.js
CHANGED
|
@@ -2452,6 +2452,48 @@ Object.assign(SpsOptionList, {
|
|
|
2452
2452
|
propTypes: propTypes$1K,
|
|
2453
2453
|
displayName: "SpsOptionList"
|
|
2454
2454
|
});
|
|
2455
|
+
function bindProps(E, boundProps, deps = []) {
|
|
2456
|
+
return React.useMemo(() => {
|
|
2457
|
+
const EWithBoundProps = (props2) => /* @__PURE__ */ React.createElement(E, __spreadValues({}, __spreadValues(__spreadValues({}, props2), boundProps)), props2.children);
|
|
2458
|
+
return EWithBoundProps;
|
|
2459
|
+
}, deps);
|
|
2460
|
+
}
|
|
2461
|
+
const Nested = function({
|
|
2462
|
+
children,
|
|
2463
|
+
elements
|
|
2464
|
+
}) {
|
|
2465
|
+
if (elements.length === 0) {
|
|
2466
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
2467
|
+
}
|
|
2468
|
+
const [E, p2] = Array.isArray(elements[0]) ? elements[0] : [elements[0]];
|
|
2469
|
+
return /* @__PURE__ */ React.createElement(E, __spreadValues({}, p2 != null ? p2 : {}), /* @__PURE__ */ React.createElement(Nested, {
|
|
2470
|
+
elements: elements.slice(1)
|
|
2471
|
+
}, children));
|
|
2472
|
+
};
|
|
2473
|
+
const Provide = function(_a) {
|
|
2474
|
+
var _b = _a, {
|
|
2475
|
+
children,
|
|
2476
|
+
providers = []
|
|
2477
|
+
} = _b, rest = __objRest(_b, [
|
|
2478
|
+
"children",
|
|
2479
|
+
"providers"
|
|
2480
|
+
]);
|
|
2481
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({}, rest), /* @__PURE__ */ React.createElement(Nested, {
|
|
2482
|
+
elements: providers
|
|
2483
|
+
}, children));
|
|
2484
|
+
};
|
|
2485
|
+
const SpsApp = function(_c) {
|
|
2486
|
+
var _d = _c, {
|
|
2487
|
+
children,
|
|
2488
|
+
className
|
|
2489
|
+
} = _d, rest = __objRest(_d, [
|
|
2490
|
+
"children",
|
|
2491
|
+
"className"
|
|
2492
|
+
]);
|
|
2493
|
+
return /* @__PURE__ */ React.createElement(Provide, __spreadValues({
|
|
2494
|
+
className: `sps-app ${className}`
|
|
2495
|
+
}, rest), children);
|
|
2496
|
+
};
|
|
2455
2497
|
function selectChildren(children = [], groups = []) {
|
|
2456
2498
|
const childrenArray = Array.isArray(children) ? flatten(children) : [children];
|
|
2457
2499
|
const normGroups = groups.map((s) => Array.isArray(s) ? s : [s]);
|
|
@@ -2583,8 +2625,8 @@ const propTypes$1J = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
2583
2625
|
maxHeightOptionListPx: propTypes$1O.exports.number,
|
|
2584
2626
|
maxHeightOptionListRem: propTypes$1O.exports.number
|
|
2585
2627
|
});
|
|
2586
|
-
function SpsAutocomplete(
|
|
2587
|
-
var
|
|
2628
|
+
function SpsAutocomplete(_e) {
|
|
2629
|
+
var _f = _e, {
|
|
2588
2630
|
className,
|
|
2589
2631
|
debounce: debounce2 = 0,
|
|
2590
2632
|
disabled,
|
|
@@ -2603,7 +2645,7 @@ function SpsAutocomplete(_a) {
|
|
|
2603
2645
|
maxHeightOptionListPx,
|
|
2604
2646
|
maxHeightOptionListRem,
|
|
2605
2647
|
"data-testid": testId
|
|
2606
|
-
} =
|
|
2648
|
+
} = _f, rest = __objRest(_f, [
|
|
2607
2649
|
"className",
|
|
2608
2650
|
"debounce",
|
|
2609
2651
|
"disabled",
|
|
@@ -5812,10 +5854,10 @@ function SpsTab({
|
|
|
5812
5854
|
className: clsx("sps-nav__item", "sps-nav__link", isSelected && "active", isDisabled && "sps-nav__item--disabled")
|
|
5813
5855
|
}), item.rendered);
|
|
5814
5856
|
}
|
|
5815
|
-
function SpsTabPanel(
|
|
5816
|
-
var
|
|
5857
|
+
function SpsTabPanel(_g) {
|
|
5858
|
+
var _h = _g, {
|
|
5817
5859
|
state
|
|
5818
|
-
} =
|
|
5860
|
+
} = _h, props2 = __objRest(_h, [
|
|
5819
5861
|
"state"
|
|
5820
5862
|
]);
|
|
5821
5863
|
const ref2 = React.useRef();
|
|
@@ -5850,11 +5892,11 @@ Object.assign(SpsTabsV2, {
|
|
|
5850
5892
|
});
|
|
5851
5893
|
const propsDoc$1C = {};
|
|
5852
5894
|
const propTypes$1F = {};
|
|
5853
|
-
function SpsCardV2Footer(
|
|
5854
|
-
var
|
|
5895
|
+
function SpsCardV2Footer(_i) {
|
|
5896
|
+
var _j = _i, {
|
|
5855
5897
|
children,
|
|
5856
5898
|
className
|
|
5857
|
-
} =
|
|
5899
|
+
} = _j, rest = __objRest(_j, [
|
|
5858
5900
|
"children",
|
|
5859
5901
|
"className"
|
|
5860
5902
|
]);
|
|
@@ -5869,11 +5911,11 @@ Object.assign(SpsCardV2Footer, {
|
|
|
5869
5911
|
});
|
|
5870
5912
|
const propsDoc$1B = {};
|
|
5871
5913
|
const propTypes$1E = {};
|
|
5872
|
-
function SpsCardV2Header(
|
|
5873
|
-
var
|
|
5914
|
+
function SpsCardV2Header(_k) {
|
|
5915
|
+
var _l = _k, {
|
|
5874
5916
|
children,
|
|
5875
5917
|
className
|
|
5876
|
-
} =
|
|
5918
|
+
} = _l, rest = __objRest(_l, [
|
|
5877
5919
|
"children",
|
|
5878
5920
|
"className"
|
|
5879
5921
|
]);
|
|
@@ -5888,11 +5930,11 @@ Object.assign(SpsCardV2Header, {
|
|
|
5888
5930
|
});
|
|
5889
5931
|
const propsDoc$1A = {};
|
|
5890
5932
|
const propTypes$1D = {};
|
|
5891
|
-
function SpsCardV2(
|
|
5892
|
-
var
|
|
5933
|
+
function SpsCardV2(_m) {
|
|
5934
|
+
var _n = _m, {
|
|
5893
5935
|
children,
|
|
5894
5936
|
className
|
|
5895
|
-
} =
|
|
5937
|
+
} = _n, rest = __objRest(_n, [
|
|
5896
5938
|
"children",
|
|
5897
5939
|
"className"
|
|
5898
5940
|
]);
|
|
@@ -5919,11 +5961,11 @@ Object.assign(SpsCardV2, {
|
|
|
5919
5961
|
});
|
|
5920
5962
|
const propsDoc$1z = {};
|
|
5921
5963
|
const propTypes$1C = {};
|
|
5922
|
-
function SpsCardV2Title(
|
|
5923
|
-
var
|
|
5964
|
+
function SpsCardV2Title(_o) {
|
|
5965
|
+
var _p = _o, {
|
|
5924
5966
|
children,
|
|
5925
5967
|
className
|
|
5926
|
-
} =
|
|
5968
|
+
} = _p, rest = __objRest(_p, [
|
|
5927
5969
|
"children",
|
|
5928
5970
|
"className"
|
|
5929
5971
|
]);
|
|
@@ -6260,8 +6302,8 @@ const propTypes$1B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
6260
6302
|
label: propTypes$1O.exports.string,
|
|
6261
6303
|
onChange: fun()
|
|
6262
6304
|
});
|
|
6263
|
-
function SpsCheckbox(
|
|
6264
|
-
var
|
|
6305
|
+
function SpsCheckbox(_q) {
|
|
6306
|
+
var _r = _q, {
|
|
6265
6307
|
checked: checkedProp,
|
|
6266
6308
|
className,
|
|
6267
6309
|
disabled,
|
|
@@ -6274,7 +6316,7 @@ function SpsCheckbox(_m) {
|
|
|
6274
6316
|
onChange,
|
|
6275
6317
|
"data-testid": testId,
|
|
6276
6318
|
unsafelyReplaceClassName
|
|
6277
|
-
} =
|
|
6319
|
+
} = _r, rest = __objRest(_r, [
|
|
6278
6320
|
"checked",
|
|
6279
6321
|
"className",
|
|
6280
6322
|
"disabled",
|
|
@@ -25634,8 +25676,8 @@ const propTypes$18 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
25634
25676
|
helpIconColor: propTypes$1O.exports.string,
|
|
25635
25677
|
errors: nodeOrRenderFn
|
|
25636
25678
|
});
|
|
25637
|
-
function SpsLabel(
|
|
25638
|
-
var
|
|
25679
|
+
function SpsLabel(_s) {
|
|
25680
|
+
var _t = _s, {
|
|
25639
25681
|
children,
|
|
25640
25682
|
className,
|
|
25641
25683
|
description,
|
|
@@ -25647,7 +25689,7 @@ function SpsLabel(_o) {
|
|
|
25647
25689
|
errors,
|
|
25648
25690
|
unsafelyReplaceClassName,
|
|
25649
25691
|
"data-testid": testId
|
|
25650
|
-
} =
|
|
25692
|
+
} = _t, rest = __objRest(_t, [
|
|
25651
25693
|
"children",
|
|
25652
25694
|
"className",
|
|
25653
25695
|
"description",
|
|
@@ -26724,11 +26766,11 @@ Object.assign(SpsTd, {
|
|
|
26724
26766
|
const propsDoc$Z = {};
|
|
26725
26767
|
const propTypes$10 = __spreadValues({}, spsGlobalPropTypes);
|
|
26726
26768
|
const CSS_BLOCK$3 = "sps-icon-button-panel";
|
|
26727
|
-
function SpsIconButtonPanel(
|
|
26728
|
-
var
|
|
26769
|
+
function SpsIconButtonPanel(_u) {
|
|
26770
|
+
var _v = _u, {
|
|
26729
26771
|
children,
|
|
26730
26772
|
className
|
|
26731
|
-
} =
|
|
26773
|
+
} = _v, rest = __objRest(_v, [
|
|
26732
26774
|
"children",
|
|
26733
26775
|
"className"
|
|
26734
26776
|
]);
|
|
@@ -28286,8 +28328,8 @@ const propTypes$Y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
28286
28328
|
formMeta: impl(),
|
|
28287
28329
|
stacked: propTypes$1O.exports.bool
|
|
28288
28330
|
});
|
|
28289
|
-
function SpsInputGroup(
|
|
28290
|
-
var
|
|
28331
|
+
function SpsInputGroup(_w) {
|
|
28332
|
+
var _x = _w, {
|
|
28291
28333
|
children,
|
|
28292
28334
|
className,
|
|
28293
28335
|
formArray: formArray2,
|
|
@@ -28296,7 +28338,7 @@ function SpsInputGroup(_s) {
|
|
|
28296
28338
|
stacked,
|
|
28297
28339
|
"data-testid": testId,
|
|
28298
28340
|
unsafelyReplaceClassName
|
|
28299
|
-
} =
|
|
28341
|
+
} = _x, rest = __objRest(_x, [
|
|
28300
28342
|
"children",
|
|
28301
28343
|
"className",
|
|
28302
28344
|
"formArray",
|
|
@@ -29464,8 +29506,8 @@ Object.assign(SpsModalV2Footer, {
|
|
|
29464
29506
|
propTypes: {},
|
|
29465
29507
|
displayName: "SpsModalV2Footer"
|
|
29466
29508
|
});
|
|
29467
|
-
function SpsModalV2(
|
|
29468
|
-
var
|
|
29509
|
+
function SpsModalV2(_y) {
|
|
29510
|
+
var _z = _y, {
|
|
29469
29511
|
children,
|
|
29470
29512
|
className,
|
|
29471
29513
|
id: idProp,
|
|
@@ -29474,7 +29516,7 @@ function SpsModalV2(_u) {
|
|
|
29474
29516
|
onClose,
|
|
29475
29517
|
focusElementOnOpen,
|
|
29476
29518
|
title
|
|
29477
|
-
} =
|
|
29519
|
+
} = _z, rest = __objRest(_z, [
|
|
29478
29520
|
"children",
|
|
29479
29521
|
"className",
|
|
29480
29522
|
"id",
|
|
@@ -30097,8 +30139,8 @@ const propTypes$R = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
30097
30139
|
maxHeightOptionListPx: propTypes$1O.exports.number,
|
|
30098
30140
|
maxHeightOptionListRem: propTypes$1O.exports.number
|
|
30099
30141
|
});
|
|
30100
|
-
function SpsMultiSelect(
|
|
30101
|
-
var
|
|
30142
|
+
function SpsMultiSelect(_A) {
|
|
30143
|
+
var _B = _A, {
|
|
30102
30144
|
action,
|
|
30103
30145
|
captionKey,
|
|
30104
30146
|
className,
|
|
@@ -30125,7 +30167,7 @@ function SpsMultiSelect(_w) {
|
|
|
30125
30167
|
maxHeightOptionListPx,
|
|
30126
30168
|
maxHeightOptionListRem,
|
|
30127
30169
|
"data-testid": testId
|
|
30128
|
-
} =
|
|
30170
|
+
} = _B, rest = __objRest(_B, [
|
|
30129
30171
|
"action",
|
|
30130
30172
|
"captionKey",
|
|
30131
30173
|
"className",
|
|
@@ -32501,8 +32543,8 @@ const propTypes$H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
32501
32543
|
ref: ref(),
|
|
32502
32544
|
value: propTypes$1O.exports.any
|
|
32503
32545
|
});
|
|
32504
|
-
function SpsRadioButton(
|
|
32505
|
-
var
|
|
32546
|
+
function SpsRadioButton(_C) {
|
|
32547
|
+
var _D = _C, {
|
|
32506
32548
|
checked,
|
|
32507
32549
|
className,
|
|
32508
32550
|
"data-testid": testId,
|
|
@@ -32517,7 +32559,7 @@ function SpsRadioButton(_y) {
|
|
|
32517
32559
|
ref: ref2,
|
|
32518
32560
|
unsafelyReplaceClassName,
|
|
32519
32561
|
value
|
|
32520
|
-
} =
|
|
32562
|
+
} = _D, rest = __objRest(_D, [
|
|
32521
32563
|
"checked",
|
|
32522
32564
|
"className",
|
|
32523
32565
|
"data-testid",
|
|
@@ -33526,8 +33568,8 @@ const propTypes$F = __spreadValues({
|
|
|
33526
33568
|
widthPx: propTypes$1O.exports.number,
|
|
33527
33569
|
widthRem: propTypes$1O.exports.number
|
|
33528
33570
|
}, spsGlobalPropTypes);
|
|
33529
|
-
function SpsSortingHeaderCell(
|
|
33530
|
-
var
|
|
33571
|
+
function SpsSortingHeaderCell(_E) {
|
|
33572
|
+
var _F = _E, {
|
|
33531
33573
|
className,
|
|
33532
33574
|
"data-testid": testId,
|
|
33533
33575
|
unsafelyReplaceClassName,
|
|
@@ -33540,7 +33582,7 @@ function SpsSortingHeaderCell(_A) {
|
|
|
33540
33582
|
widthPx,
|
|
33541
33583
|
widthRem,
|
|
33542
33584
|
style: style2
|
|
33543
|
-
} =
|
|
33585
|
+
} = _F, rest = __objRest(_F, [
|
|
33544
33586
|
"className",
|
|
33545
33587
|
"data-testid",
|
|
33546
33588
|
"unsafelyReplaceClassName",
|
|
@@ -33597,15 +33639,15 @@ const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
33597
33639
|
sort: propTypes$1O.exports.arrayOf(impl()),
|
|
33598
33640
|
onSortChange: fun()
|
|
33599
33641
|
});
|
|
33600
|
-
function SpsSortingHeader(
|
|
33601
|
-
var
|
|
33642
|
+
function SpsSortingHeader(_G) {
|
|
33643
|
+
var _H = _G, {
|
|
33602
33644
|
className,
|
|
33603
33645
|
"data-testid": testId,
|
|
33604
33646
|
unsafelyReplaceClassName,
|
|
33605
33647
|
sort,
|
|
33606
33648
|
onSortChange,
|
|
33607
33649
|
children
|
|
33608
|
-
} =
|
|
33650
|
+
} = _H, rest = __objRest(_H, [
|
|
33609
33651
|
"className",
|
|
33610
33652
|
"data-testid",
|
|
33611
33653
|
"unsafelyReplaceClassName",
|
|
@@ -34352,8 +34394,8 @@ const propTypes$y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
34352
34394
|
onClearCompleted: fun(),
|
|
34353
34395
|
suppressTooltips: propTypes$1O.exports.bool
|
|
34354
34396
|
});
|
|
34355
|
-
function SpsTaskQueue(
|
|
34356
|
-
var
|
|
34397
|
+
function SpsTaskQueue(_I) {
|
|
34398
|
+
var _J = _I, {
|
|
34357
34399
|
tasks = [],
|
|
34358
34400
|
taskQueuePosition = Position.BOTTOM_RIGHT,
|
|
34359
34401
|
notificationText,
|
|
@@ -34365,7 +34407,7 @@ function SpsTaskQueue(_E) {
|
|
|
34365
34407
|
"data-testid": testId,
|
|
34366
34408
|
unsafelyReplaceClassName,
|
|
34367
34409
|
suppressTooltips = false
|
|
34368
|
-
} =
|
|
34410
|
+
} = _J, rest = __objRest(_J, [
|
|
34369
34411
|
"tasks",
|
|
34370
34412
|
"taskQueuePosition",
|
|
34371
34413
|
"notificationText",
|
|
@@ -34895,8 +34937,8 @@ const propTypes$x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
34895
34937
|
value: propTypes$1O.exports.string,
|
|
34896
34938
|
additionalText: propTypes$1O.exports.string
|
|
34897
34939
|
});
|
|
34898
|
-
const SpsTextInput = React.forwardRef((
|
|
34899
|
-
var
|
|
34940
|
+
const SpsTextInput = React.forwardRef((_K, ref2) => {
|
|
34941
|
+
var _L = _K, {
|
|
34900
34942
|
className,
|
|
34901
34943
|
disabled = false,
|
|
34902
34944
|
formControl: formControl2,
|
|
@@ -34911,7 +34953,7 @@ const SpsTextInput = React.forwardRef((_G, ref2) => {
|
|
|
34911
34953
|
unsafelyReplaceClassName,
|
|
34912
34954
|
value = "",
|
|
34913
34955
|
additionalText
|
|
34914
|
-
} =
|
|
34956
|
+
} = _L, rest = __objRest(_L, [
|
|
34915
34957
|
"className",
|
|
34916
34958
|
"disabled",
|
|
34917
34959
|
"formControl",
|
|
@@ -35126,8 +35168,8 @@ const propTypes$w = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
35126
35168
|
value: propTypes$1O.exports.string,
|
|
35127
35169
|
additionalText: propTypes$1O.exports.string
|
|
35128
35170
|
});
|
|
35129
|
-
function SpsTextarea(
|
|
35130
|
-
var
|
|
35171
|
+
function SpsTextarea(_M) {
|
|
35172
|
+
var _N = _M, {
|
|
35131
35173
|
className,
|
|
35132
35174
|
disabled = false,
|
|
35133
35175
|
formControl: formControl2,
|
|
@@ -35142,7 +35184,7 @@ function SpsTextarea(_I) {
|
|
|
35142
35184
|
unsafelyReplaceClassName,
|
|
35143
35185
|
value = "",
|
|
35144
35186
|
additionalText
|
|
35145
|
-
} =
|
|
35187
|
+
} = _N, rest = __objRest(_N, [
|
|
35146
35188
|
"className",
|
|
35147
35189
|
"disabled",
|
|
35148
35190
|
"formControl",
|
|
@@ -36748,8 +36790,8 @@ function Component() {
|
|
|
36748
36790
|
};
|
|
36749
36791
|
const propsDoc$f = {};
|
|
36750
36792
|
const propTypes$h = __spreadValues({}, spsGlobalPropTypes);
|
|
36751
|
-
function SpsFilterPanel(
|
|
36752
|
-
var
|
|
36793
|
+
function SpsFilterPanel(_O) {
|
|
36794
|
+
var _P = _O, { children, className } = _P, rest = __objRest(_P, ["children", "className"]);
|
|
36753
36795
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
36754
36796
|
className: clsx("sps-filter-panel", className)
|
|
36755
36797
|
}, rest), children);
|
|
@@ -36775,8 +36817,8 @@ const propTypes$g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
36775
36817
|
onExpand: fun(),
|
|
36776
36818
|
onCollapse: fun()
|
|
36777
36819
|
});
|
|
36778
|
-
function SpsFilterPanelSection(
|
|
36779
|
-
var
|
|
36820
|
+
function SpsFilterPanelSection(_Q) {
|
|
36821
|
+
var _R = _Q, {
|
|
36780
36822
|
children,
|
|
36781
36823
|
className,
|
|
36782
36824
|
title,
|
|
@@ -36785,7 +36827,7 @@ function SpsFilterPanelSection(_M) {
|
|
|
36785
36827
|
heightRem,
|
|
36786
36828
|
onExpand,
|
|
36787
36829
|
onCollapse
|
|
36788
|
-
} =
|
|
36830
|
+
} = _R, rest = __objRest(_R, [
|
|
36789
36831
|
"children",
|
|
36790
36832
|
"className",
|
|
36791
36833
|
"title",
|
|
@@ -36838,12 +36880,12 @@ const propsDoc$d = {
|
|
|
36838
36880
|
const propTypes$f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36839
36881
|
onClear: fun()
|
|
36840
36882
|
});
|
|
36841
|
-
function SpsFilterPanelCap(
|
|
36842
|
-
var
|
|
36883
|
+
function SpsFilterPanelCap(_S) {
|
|
36884
|
+
var _T = _S, {
|
|
36843
36885
|
children,
|
|
36844
36886
|
className,
|
|
36845
36887
|
onClear
|
|
36846
|
-
} =
|
|
36888
|
+
} = _T, rest = __objRest(_T, [
|
|
36847
36889
|
"children",
|
|
36848
36890
|
"className",
|
|
36849
36891
|
"onClear"
|
|
@@ -37202,14 +37244,14 @@ const propTypes$e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
37202
37244
|
formMeta: impl(),
|
|
37203
37245
|
onFilterChange: fun()
|
|
37204
37246
|
});
|
|
37205
|
-
function SpsFilterPanelFilterBox(
|
|
37206
|
-
var
|
|
37247
|
+
function SpsFilterPanelFilterBox(_U) {
|
|
37248
|
+
var _V = _U, {
|
|
37207
37249
|
className,
|
|
37208
37250
|
value,
|
|
37209
37251
|
placeholder,
|
|
37210
37252
|
formMeta,
|
|
37211
37253
|
onFilterChange
|
|
37212
|
-
} =
|
|
37254
|
+
} = _V, rest = __objRest(_V, [
|
|
37213
37255
|
"className",
|
|
37214
37256
|
"value",
|
|
37215
37257
|
"placeholder",
|
|
@@ -37238,12 +37280,12 @@ const propsDoc$b = {
|
|
|
37238
37280
|
const propTypes$d = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37239
37281
|
showCondition: propTypes$1O.exports.bool
|
|
37240
37282
|
});
|
|
37241
|
-
function SpsConditionalField(
|
|
37242
|
-
var
|
|
37283
|
+
function SpsConditionalField(_W) {
|
|
37284
|
+
var _X = _W, {
|
|
37243
37285
|
showCondition = true,
|
|
37244
37286
|
children,
|
|
37245
37287
|
className
|
|
37246
|
-
} =
|
|
37288
|
+
} = _X, rest = __objRest(_X, [
|
|
37247
37289
|
"showCondition",
|
|
37248
37290
|
"children",
|
|
37249
37291
|
"className"
|
|
@@ -37900,13 +37942,13 @@ const propTypes$b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
37900
37942
|
attachTo: ref().isRequired,
|
|
37901
37943
|
isOpen: propTypes$1O.exports.bool.isRequired
|
|
37902
37944
|
});
|
|
37903
|
-
const SpsDatepickerPopup = React.forwardRef((
|
|
37904
|
-
var
|
|
37945
|
+
const SpsDatepickerPopup = React.forwardRef((_Y, ref2) => {
|
|
37946
|
+
var _Z = _Y, {
|
|
37905
37947
|
attachTo,
|
|
37906
37948
|
children,
|
|
37907
37949
|
className,
|
|
37908
37950
|
isOpen
|
|
37909
|
-
} =
|
|
37951
|
+
} = _Z, rest = __objRest(_Z, [
|
|
37910
37952
|
"attachTo",
|
|
37911
37953
|
"children",
|
|
37912
37954
|
"className",
|
|
@@ -37944,8 +37986,8 @@ const propTypes$a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
37944
37986
|
value: impl()
|
|
37945
37987
|
});
|
|
37946
37988
|
const CSS_BLOCK$1 = "sps-datepicker";
|
|
37947
|
-
function SpsDatepickerV2(
|
|
37948
|
-
var
|
|
37989
|
+
function SpsDatepickerV2(__) {
|
|
37990
|
+
var _$ = __, {
|
|
37949
37991
|
children,
|
|
37950
37992
|
className,
|
|
37951
37993
|
disabled,
|
|
@@ -37956,7 +37998,7 @@ function SpsDatepickerV2(_W) {
|
|
|
37956
37998
|
onChange,
|
|
37957
37999
|
value,
|
|
37958
38000
|
"data-testid": testId
|
|
37959
|
-
} =
|
|
38001
|
+
} = _$, rest = __objRest(_$, [
|
|
37960
38002
|
"children",
|
|
37961
38003
|
"className",
|
|
37962
38004
|
"disabled",
|
|
@@ -38077,8 +38119,8 @@ const DEFAULT_PRESETS = [
|
|
|
38077
38119
|
{ definition: "P90D", label: "design-system:datepicker.preset.ninetyDays" },
|
|
38078
38120
|
{ definition: "P1Y", label: "design-system:datepicker.preset.oneYear" }
|
|
38079
38121
|
];
|
|
38080
|
-
function SpsDateRangePickerV2(
|
|
38081
|
-
var
|
|
38122
|
+
function SpsDateRangePickerV2(_aa) {
|
|
38123
|
+
var _ba = _aa, {
|
|
38082
38124
|
children,
|
|
38083
38125
|
className,
|
|
38084
38126
|
disabled,
|
|
@@ -38090,7 +38132,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
38090
38132
|
presets = DEFAULT_PRESETS,
|
|
38091
38133
|
value,
|
|
38092
38134
|
"data-testid": testId
|
|
38093
|
-
} =
|
|
38135
|
+
} = _ba, rest = __objRest(_ba, [
|
|
38094
38136
|
"children",
|
|
38095
38137
|
"className",
|
|
38096
38138
|
"disabled",
|
|
@@ -38305,8 +38347,8 @@ function strToDollars(str) {
|
|
|
38305
38347
|
function dollarsToStr(dollars) {
|
|
38306
38348
|
return typeof dollars === "number" ? dollars.toFixed(2) : "";
|
|
38307
38349
|
}
|
|
38308
|
-
function SpsCurrencyInput(
|
|
38309
|
-
var
|
|
38350
|
+
function SpsCurrencyInput(_ca) {
|
|
38351
|
+
var _da = _ca, {
|
|
38310
38352
|
className,
|
|
38311
38353
|
disabled = false,
|
|
38312
38354
|
formMeta,
|
|
@@ -38316,7 +38358,7 @@ function SpsCurrencyInput(__) {
|
|
|
38316
38358
|
ref: ref2,
|
|
38317
38359
|
title,
|
|
38318
38360
|
value
|
|
38319
|
-
} =
|
|
38361
|
+
} = _da, rest = __objRest(_da, [
|
|
38320
38362
|
"className",
|
|
38321
38363
|
"disabled",
|
|
38322
38364
|
"formMeta",
|
|
@@ -39042,4 +39084,4 @@ Object.assign(SpsVr, {
|
|
|
39042
39084
|
propTypes,
|
|
39043
39085
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
39044
39086
|
});
|
|
39045
|
-
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, OnSubmitErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsListToolbarSortBy, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSearchResultsBarV2, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, ValidationMode, addOnChangeErrorKey, addOnSubmitErrorKey, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
|
39087
|
+
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, OnSubmitErrorKeys, PortalContext, PreventativeErrorKeys, Provide, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsApp, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsListToolbarSortBy, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSearchResultsBarV2, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, ValidationMode, addOnChangeErrorKey, addOnSubmitErrorKey, bindProps, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
export * from "./bindProps";
|
|
1
2
|
export * from "./contentOf";
|
|
2
3
|
export * from "./FauxChangeEvent";
|
|
3
4
|
export * from "./getPosition";
|
|
5
|
+
export * from "./Provide";
|
|
4
6
|
export * from "./selectChildren";
|
|
5
7
|
export * from "./useCheckDeprecatedProps";
|
|
6
8
|
export * from "./useDidUpdateEffect";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.28.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-stately/collections": "^3.3.3",
|
|
31
|
-
"@spscommerce/ds-colors": "5.
|
|
32
|
-
"@spscommerce/ds-illustrations": "5.
|
|
33
|
-
"@spscommerce/ds-shared": "5.
|
|
34
|
-
"@spscommerce/positioning": "5.
|
|
35
|
-
"@spscommerce/utils": "5.
|
|
31
|
+
"@spscommerce/ds-colors": "5.28.0",
|
|
32
|
+
"@spscommerce/ds-illustrations": "5.28.0",
|
|
33
|
+
"@spscommerce/ds-shared": "5.28.0",
|
|
34
|
+
"@spscommerce/positioning": "5.28.0",
|
|
35
|
+
"@spscommerce/utils": "5.28.0",
|
|
36
36
|
"moment": "^2.25.3",
|
|
37
37
|
"moment-timezone": "^0.5.28",
|
|
38
38
|
"react": "^16.9.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@react-stately/collections": "^3.3.3",
|
|
43
|
-
"@spscommerce/ds-colors": "5.
|
|
44
|
-
"@spscommerce/ds-illustrations": "5.
|
|
45
|
-
"@spscommerce/ds-shared": "5.
|
|
46
|
-
"@spscommerce/positioning": "5.
|
|
47
|
-
"@spscommerce/utils": "5.
|
|
43
|
+
"@spscommerce/ds-colors": "5.28.0",
|
|
44
|
+
"@spscommerce/ds-illustrations": "5.28.0",
|
|
45
|
+
"@spscommerce/ds-shared": "5.28.0",
|
|
46
|
+
"@spscommerce/positioning": "5.28.0",
|
|
47
|
+
"@spscommerce/utils": "5.28.0",
|
|
48
48
|
"@testing-library/react": "^9.3.2",
|
|
49
49
|
"@types/prop-types": "^15.7.1",
|
|
50
50
|
"@types/react": "^16.9.0",
|