@spscommerce/ds-react 6.13.1 → 6.15.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 +365 -365
- package/lib/index.d.ts +1 -0
- package/lib/index.es.js +1077 -799
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +22 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.examples.d.ts +2 -0
- package/lib/multi-value-text-input/index.d.ts +2 -0
- package/lib/multi-value-text-input/splitStringByDelimiter.d.ts +2 -0
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -80,7 +80,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
80
80
|
function commonjsRequire(path) {
|
|
81
81
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
82
82
|
}
|
|
83
|
-
var propTypes$
|
|
83
|
+
var propTypes$1H = { exports: {} };
|
|
84
84
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
85
85
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
86
86
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
@@ -128,29 +128,29 @@ var factoryWithThrowingShims = function() {
|
|
|
128
128
|
return ReactPropTypes;
|
|
129
129
|
};
|
|
130
130
|
{
|
|
131
|
-
propTypes$
|
|
131
|
+
propTypes$1H.exports = factoryWithThrowingShims();
|
|
132
132
|
}
|
|
133
133
|
function enumValue(e2) {
|
|
134
|
-
return propTypes$
|
|
134
|
+
return propTypes$1H.exports.oneOf(values$3(e2));
|
|
135
135
|
}
|
|
136
136
|
function fun() {
|
|
137
|
-
return propTypes$
|
|
137
|
+
return propTypes$1H.exports.func;
|
|
138
138
|
}
|
|
139
139
|
function impl() {
|
|
140
|
-
return propTypes$
|
|
140
|
+
return propTypes$1H.exports.object;
|
|
141
141
|
}
|
|
142
142
|
function ref() {
|
|
143
|
-
return propTypes$
|
|
143
|
+
return propTypes$1H.exports.object;
|
|
144
144
|
}
|
|
145
|
-
const nodeOrRenderFn = propTypes$
|
|
145
|
+
const nodeOrRenderFn = propTypes$1H.exports.oneOfType([propTypes$1H.exports.node, propTypes$1H.exports.func]);
|
|
146
146
|
const spsGlobalPropTypes = {
|
|
147
|
-
children: propTypes$
|
|
148
|
-
className: propTypes$
|
|
149
|
-
"data-testid": propTypes$
|
|
150
|
-
unsafelyReplaceClassName: propTypes$
|
|
147
|
+
children: propTypes$1H.exports.oneOfType([propTypes$1H.exports.arrayOf(propTypes$1H.exports.node), propTypes$1H.exports.node]),
|
|
148
|
+
className: propTypes$1H.exports.string,
|
|
149
|
+
"data-testid": propTypes$1H.exports.string,
|
|
150
|
+
unsafelyReplaceClassName: propTypes$1H.exports.string
|
|
151
151
|
};
|
|
152
152
|
const I18nContext = React.createContext(noI18nI18n);
|
|
153
|
-
const propsDoc$
|
|
153
|
+
const propsDoc$1C = {
|
|
154
154
|
disabled: "boolean",
|
|
155
155
|
href: "string",
|
|
156
156
|
icon: "SpsIcon",
|
|
@@ -159,13 +159,13 @@ const propsDoc$1B = {
|
|
|
159
159
|
spinningTitle: "string",
|
|
160
160
|
type: "ButtonType"
|
|
161
161
|
};
|
|
162
|
-
const propTypes$
|
|
163
|
-
disabled: propTypes$
|
|
164
|
-
href: propTypes$
|
|
162
|
+
const propTypes$1G = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
163
|
+
disabled: propTypes$1H.exports.bool,
|
|
164
|
+
href: propTypes$1H.exports.string,
|
|
165
165
|
icon: enumValue(SpsIcon),
|
|
166
166
|
kind: enumValue(ButtonKind),
|
|
167
|
-
spinning: propTypes$
|
|
168
|
-
spinningTitle: propTypes$
|
|
167
|
+
spinning: propTypes$1H.exports.bool,
|
|
168
|
+
spinningTitle: propTypes$1H.exports.string,
|
|
169
169
|
type: enumValue(ButtonType)
|
|
170
170
|
});
|
|
171
171
|
function SpsButton(props2) {
|
|
@@ -215,8 +215,8 @@ function SpsButton(props2) {
|
|
|
215
215
|
}), iconElement, children, spinner));
|
|
216
216
|
}
|
|
217
217
|
Object.assign(SpsButton, {
|
|
218
|
-
props: propsDoc$
|
|
219
|
-
propTypes: propTypes$
|
|
218
|
+
props: propsDoc$1C,
|
|
219
|
+
propTypes: propTypes$1G,
|
|
220
220
|
displayName: "SpsButton"
|
|
221
221
|
});
|
|
222
222
|
const spsFormProps = {
|
|
@@ -269,7 +269,7 @@ Object.assign(SpsForm, {
|
|
|
269
269
|
function contentOf(nodeOrRenderFn2) {
|
|
270
270
|
return typeof nodeOrRenderFn2 === "function" ? nodeOrRenderFn2() : nodeOrRenderFn2;
|
|
271
271
|
}
|
|
272
|
-
const propsDoc$
|
|
272
|
+
const propsDoc$1B = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
273
273
|
controlsDisabled: "boolean",
|
|
274
274
|
footerLinks: "ReactNodeOrRenderFn",
|
|
275
275
|
formMeta: "SpsFormSetMeta<any>",
|
|
@@ -277,13 +277,13 @@ const propsDoc$1A = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
|
277
277
|
onClear: "() => void",
|
|
278
278
|
onSubmit: "React.FormEventHandler"
|
|
279
279
|
});
|
|
280
|
-
const propTypes$
|
|
281
|
-
controlsDisabled: propTypes$
|
|
280
|
+
const propTypes$1F = __spreadProps(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsFormPropTypes), {
|
|
281
|
+
controlsDisabled: propTypes$1H.exports.bool,
|
|
282
282
|
footerLinks: nodeOrRenderFn,
|
|
283
283
|
formArray: impl(),
|
|
284
284
|
formGroup: impl(),
|
|
285
285
|
formMeta: impl(),
|
|
286
|
-
isOpen: propTypes$
|
|
286
|
+
isOpen: propTypes$1H.exports.bool,
|
|
287
287
|
onClear: fun(),
|
|
288
288
|
onSubmit: fun()
|
|
289
289
|
});
|
|
@@ -348,8 +348,8 @@ function SpsAdvancedSearch(props2) {
|
|
|
348
348
|
}, t2("design-system:advancedSearch.search"))))));
|
|
349
349
|
}
|
|
350
350
|
Object.assign(SpsAdvancedSearch, {
|
|
351
|
-
props: propsDoc$
|
|
352
|
-
propTypes: propTypes$
|
|
351
|
+
props: propsDoc$1B,
|
|
352
|
+
propTypes: propTypes$1F,
|
|
353
353
|
displayName: "SpsAdvancedSearch"
|
|
354
354
|
});
|
|
355
355
|
const SpsAdvancedSearchExamples = {
|
|
@@ -883,14 +883,27 @@ var dateValidators = /* @__PURE__ */ Object.freeze({
|
|
|
883
883
|
dateRange,
|
|
884
884
|
dateConstraint
|
|
885
885
|
});
|
|
886
|
+
function validateCollectionOfValues(values3, validator) {
|
|
887
|
+
for (const val of [].concat(values3)) {
|
|
888
|
+
const validation = validator(val);
|
|
889
|
+
if (validation) {
|
|
890
|
+
return validation;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
return null;
|
|
894
|
+
}
|
|
886
895
|
const min$2 = function minValidatorFactory(minimumValue) {
|
|
887
|
-
|
|
896
|
+
function minValidator(value) {
|
|
888
897
|
return Number(value) >= minimumValue ? null : { min: minimumValue };
|
|
889
|
-
}
|
|
898
|
+
}
|
|
899
|
+
return (values3) => validateCollectionOfValues(values3, minValidator);
|
|
890
900
|
};
|
|
891
901
|
OnBlurErrorKeys.add("min");
|
|
892
902
|
const max$1 = function maxValidatorFactory(maximumValue) {
|
|
893
|
-
|
|
903
|
+
function maxValidator(value) {
|
|
904
|
+
return Number(value) <= maximumValue ? null : { max: maximumValue };
|
|
905
|
+
}
|
|
906
|
+
return (values3) => validateCollectionOfValues(values3, maxValidator);
|
|
894
907
|
};
|
|
895
908
|
AsTypingErrorKeys.add("max");
|
|
896
909
|
const required = function requiredValidator(value) {
|
|
@@ -898,34 +911,46 @@ const required = function requiredValidator(value) {
|
|
|
898
911
|
};
|
|
899
912
|
AsTypingErrorKeys.add("required");
|
|
900
913
|
const minLength = function minLengthValidatorFactory(minimumLength) {
|
|
901
|
-
|
|
914
|
+
function minLengthValidator(value) {
|
|
902
915
|
return value.length >= minimumLength ? null : { minLength: minimumLength };
|
|
903
|
-
}
|
|
916
|
+
}
|
|
917
|
+
return (values3) => validateCollectionOfValues(values3, minLengthValidator);
|
|
904
918
|
};
|
|
905
919
|
OnBlurErrorKeys.add("minLength");
|
|
906
920
|
const maxLength = function maxLengthValidatorFactory(maximumLength) {
|
|
907
|
-
|
|
921
|
+
function maxLengthValidator(value) {
|
|
908
922
|
return value.length <= maximumLength ? null : { maxLength: maximumLength };
|
|
909
|
-
}
|
|
923
|
+
}
|
|
924
|
+
return (values3) => validateCollectionOfValues(values3, maxLengthValidator);
|
|
910
925
|
};
|
|
911
926
|
PreventativeErrorKeys.add("maxLength");
|
|
912
927
|
const pattern = function patternValidatorFactory(validationPattern) {
|
|
913
928
|
const regex = validationPattern instanceof RegExp ? validationPattern : new RegExp(validationPattern);
|
|
914
|
-
|
|
929
|
+
function patternValidator(value) {
|
|
915
930
|
return regex.test(value) ? null : { pattern: validationPattern };
|
|
916
|
-
}
|
|
931
|
+
}
|
|
932
|
+
return (values3) => validateCollectionOfValues(values3, patternValidator);
|
|
917
933
|
};
|
|
918
934
|
OnBlurErrorKeys.add("pattern");
|
|
919
|
-
const alpha = function
|
|
920
|
-
|
|
935
|
+
const alpha = function(values3) {
|
|
936
|
+
function alphaValidator(value) {
|
|
937
|
+
return /^\p{L}*$/u.test(value) ? null : { alpha: true };
|
|
938
|
+
}
|
|
939
|
+
return validateCollectionOfValues(values3, alphaValidator);
|
|
921
940
|
};
|
|
922
941
|
PreventativeErrorKeys.add("alpha");
|
|
923
|
-
const numeric = function
|
|
924
|
-
|
|
942
|
+
const numeric = function(values3) {
|
|
943
|
+
function numericValidator(value) {
|
|
944
|
+
return /^[0-9,. ]*$/.test(value) ? null : { numeric: true };
|
|
945
|
+
}
|
|
946
|
+
return validateCollectionOfValues(values3, numericValidator);
|
|
925
947
|
};
|
|
926
948
|
PreventativeErrorKeys.add("numeric");
|
|
927
|
-
const nonNumeric = function
|
|
928
|
-
|
|
949
|
+
const nonNumeric = function(values3) {
|
|
950
|
+
function nonNumericValidator(value) {
|
|
951
|
+
return /^[^0-9]*$/.test(value) ? null : { nonNumeric: true };
|
|
952
|
+
}
|
|
953
|
+
return validateCollectionOfValues(values3, nonNumericValidator);
|
|
929
954
|
};
|
|
930
955
|
PreventativeErrorKeys.add("nonNumeric");
|
|
931
956
|
const SpsValidators = Object.freeze(__spreadProps(__spreadValues({}, dateValidators), {
|
|
@@ -1365,7 +1390,7 @@ function useSpsForm(value, validatorMap) {
|
|
|
1365
1390
|
return state;
|
|
1366
1391
|
}
|
|
1367
1392
|
const spsFormComponentWrapperPropTypes = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
1368
|
-
focusInputOnClick: propTypes$
|
|
1393
|
+
focusInputOnClick: propTypes$1H.exports.bool,
|
|
1369
1394
|
formMeta: impl(),
|
|
1370
1395
|
formControl: impl(),
|
|
1371
1396
|
inputRef: ref()
|
|
@@ -1552,15 +1577,15 @@ var scrollIntoViewImport = /* @__PURE__ */ Object.freeze({
|
|
|
1552
1577
|
[Symbol.toStringTag]: "Module",
|
|
1553
1578
|
"default": scrollIntoView$1
|
|
1554
1579
|
});
|
|
1555
|
-
const propsDoc$
|
|
1580
|
+
const propsDoc$1A = {
|
|
1556
1581
|
alt: "string",
|
|
1557
1582
|
size: "SpinnerSize",
|
|
1558
1583
|
title: "string"
|
|
1559
1584
|
};
|
|
1560
|
-
const propTypes$
|
|
1561
|
-
alt: propTypes$
|
|
1585
|
+
const propTypes$1E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
1586
|
+
alt: propTypes$1H.exports.string,
|
|
1562
1587
|
size: enumValue(SpinnerSize),
|
|
1563
|
-
title: propTypes$
|
|
1588
|
+
title: propTypes$1H.exports.string
|
|
1564
1589
|
});
|
|
1565
1590
|
function SpsSpinner(props2) {
|
|
1566
1591
|
const _a = props2, {
|
|
@@ -1588,8 +1613,8 @@ function SpsSpinner(props2) {
|
|
|
1588
1613
|
}, rest));
|
|
1589
1614
|
}
|
|
1590
1615
|
Object.assign(SpsSpinner, {
|
|
1591
|
-
props: propsDoc$
|
|
1592
|
-
propTypes: propTypes$
|
|
1616
|
+
props: propsDoc$1A,
|
|
1617
|
+
propTypes: propTypes$1E,
|
|
1593
1618
|
displayName: "SpsSpinner"
|
|
1594
1619
|
});
|
|
1595
1620
|
const NAVBAR_HEIGHT = 60;
|
|
@@ -1780,52 +1805,52 @@ const spsOptionListPassthroughProps = {
|
|
|
1780
1805
|
onSpecialActionSelect: "() => void"
|
|
1781
1806
|
},
|
|
1782
1807
|
propTypes: {
|
|
1783
|
-
captionKey: propTypes$
|
|
1784
|
-
comparisonKey: propTypes$
|
|
1785
|
-
disabledOptions: propTypes$
|
|
1786
|
-
options: propTypes$
|
|
1787
|
-
propTypes$
|
|
1788
|
-
propTypes$
|
|
1808
|
+
captionKey: propTypes$1H.exports.string,
|
|
1809
|
+
comparisonKey: propTypes$1H.exports.string,
|
|
1810
|
+
disabledOptions: propTypes$1H.exports.arrayOf(propTypes$1H.exports.any),
|
|
1811
|
+
options: propTypes$1H.exports.oneOfType([
|
|
1812
|
+
propTypes$1H.exports.array,
|
|
1813
|
+
propTypes$1H.exports.instanceOf(Promise),
|
|
1789
1814
|
fun()
|
|
1790
1815
|
]).isRequired,
|
|
1791
|
-
tall: propTypes$
|
|
1792
|
-
textKey: propTypes$
|
|
1793
|
-
valueKey: propTypes$
|
|
1794
|
-
zeroState: propTypes$
|
|
1795
|
-
maxHeightPx: propTypes$
|
|
1796
|
-
maxHeightRem: propTypes$
|
|
1816
|
+
tall: propTypes$1H.exports.bool,
|
|
1817
|
+
textKey: propTypes$1H.exports.string,
|
|
1818
|
+
valueKey: propTypes$1H.exports.string,
|
|
1819
|
+
zeroState: propTypes$1H.exports.string,
|
|
1820
|
+
maxHeightPx: propTypes$1H.exports.number,
|
|
1821
|
+
maxHeightRem: propTypes$1H.exports.number
|
|
1797
1822
|
}
|
|
1798
1823
|
};
|
|
1799
1824
|
const searchableOptionListProps = {
|
|
1800
|
-
hideInlineSearch: propTypes$
|
|
1825
|
+
hideInlineSearch: propTypes$1H.exports.bool,
|
|
1801
1826
|
onSearchChange: fun(),
|
|
1802
|
-
search: propTypes$
|
|
1803
|
-
searchDebounce: propTypes$
|
|
1804
|
-
searchPlaceholder: propTypes$
|
|
1827
|
+
search: propTypes$1H.exports.string,
|
|
1828
|
+
searchDebounce: propTypes$1H.exports.number,
|
|
1829
|
+
searchPlaceholder: propTypes$1H.exports.string,
|
|
1805
1830
|
searchInputRef: ref(),
|
|
1806
1831
|
onSpecialActionSelect: fun()
|
|
1807
1832
|
};
|
|
1808
|
-
const propTypes$
|
|
1833
|
+
const propTypes$1D = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsOptionListPassthroughProps.propTypes), searchableOptionListProps), {
|
|
1809
1834
|
attachTo: ref().isRequired,
|
|
1810
|
-
conformWidth: propTypes$
|
|
1811
|
-
id: propTypes$
|
|
1812
|
-
isOpen: propTypes$
|
|
1813
|
-
keepOpen: propTypes$
|
|
1835
|
+
conformWidth: propTypes$1H.exports.bool,
|
|
1836
|
+
id: propTypes$1H.exports.string.isRequired,
|
|
1837
|
+
isOpen: propTypes$1H.exports.bool,
|
|
1838
|
+
keepOpen: propTypes$1H.exports.bool,
|
|
1814
1839
|
keyDown: impl(),
|
|
1815
|
-
nullOption: propTypes$
|
|
1816
|
-
offsets: propTypes$
|
|
1840
|
+
nullOption: propTypes$1H.exports.string,
|
|
1841
|
+
offsets: propTypes$1H.exports.arrayOf(propTypes$1H.exports.number),
|
|
1817
1842
|
onOptionListChanged: fun(),
|
|
1818
1843
|
onOptionSelected: fun(),
|
|
1819
1844
|
onPositionFlip: fun(),
|
|
1820
1845
|
onSelfToggle: fun(),
|
|
1821
|
-
optionRole: propTypes$
|
|
1822
|
-
positionOverride: propTypes$
|
|
1823
|
-
selectedOption: propTypes$
|
|
1846
|
+
optionRole: propTypes$1H.exports.string,
|
|
1847
|
+
positionOverride: propTypes$1H.exports.arrayOf(enumValue(Position)),
|
|
1848
|
+
selectedOption: propTypes$1H.exports.any,
|
|
1824
1849
|
specialAction: fun(),
|
|
1825
|
-
ignoreWidthStyles: propTypes$
|
|
1826
|
-
loading: propTypes$
|
|
1827
|
-
filterByTextAndCaptionKey: propTypes$
|
|
1828
|
-
disableOptionsMemoization: propTypes$
|
|
1850
|
+
ignoreWidthStyles: propTypes$1H.exports.bool,
|
|
1851
|
+
loading: propTypes$1H.exports.bool,
|
|
1852
|
+
filterByTextAndCaptionKey: propTypes$1H.exports.bool,
|
|
1853
|
+
disableOptionsMemoization: propTypes$1H.exports.bool
|
|
1829
1854
|
});
|
|
1830
1855
|
async function updateOptions(props2, searchState, searchStatePatch, setOptionList, setAnyOptionHasIcon, promiseRef) {
|
|
1831
1856
|
const options = typeof props2.options === "function" ? props2.options(searchState.value) : props2.options || [];
|
|
@@ -2471,7 +2496,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
2471
2496
|
}), /* @__PURE__ */ React.createElement("span", null, specialAction.label))));
|
|
2472
2497
|
});
|
|
2473
2498
|
Object.assign(SpsOptionList, {
|
|
2474
|
-
propTypes: propTypes$
|
|
2499
|
+
propTypes: propTypes$1D,
|
|
2475
2500
|
displayName: "SpsOptionList"
|
|
2476
2501
|
});
|
|
2477
2502
|
function bindProps(E, boundProps, deps = []) {
|
|
@@ -2606,7 +2631,7 @@ function useInputPopup(rootRef, popupRef, onHide) {
|
|
|
2606
2631
|
doHidePopup
|
|
2607
2632
|
};
|
|
2608
2633
|
}
|
|
2609
|
-
const propsDoc$
|
|
2634
|
+
const propsDoc$1z = {
|
|
2610
2635
|
debounce: "number",
|
|
2611
2636
|
disabled: "boolean",
|
|
2612
2637
|
formMeta: "SpsFormFieldMeta<string>",
|
|
@@ -2628,26 +2653,26 @@ const propsDoc$1y = {
|
|
|
2628
2653
|
maxHeightOptionListRem: "number",
|
|
2629
2654
|
disableOptionsMemoization: "boolean"
|
|
2630
2655
|
};
|
|
2631
|
-
const propTypes$
|
|
2632
|
-
debounce: propTypes$
|
|
2633
|
-
disabled: propTypes$
|
|
2656
|
+
const propTypes$1C = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2657
|
+
debounce: propTypes$1H.exports.number,
|
|
2658
|
+
disabled: propTypes$1H.exports.bool,
|
|
2634
2659
|
formControl: impl(),
|
|
2635
2660
|
formMeta: impl(),
|
|
2636
2661
|
icon: enumValue(SpsIcon),
|
|
2637
2662
|
onChange: fun(),
|
|
2638
|
-
placeholder: propTypes$
|
|
2639
|
-
suggestions: propTypes$
|
|
2640
|
-
propTypes$
|
|
2641
|
-
propTypes$
|
|
2663
|
+
placeholder: propTypes$1H.exports.string,
|
|
2664
|
+
suggestions: propTypes$1H.exports.oneOfType([
|
|
2665
|
+
propTypes$1H.exports.arrayOf(propTypes$1H.exports.string),
|
|
2666
|
+
propTypes$1H.exports.instanceOf(Promise),
|
|
2642
2667
|
fun()
|
|
2643
2668
|
]).isRequired,
|
|
2644
|
-
tallOptionList: propTypes$
|
|
2645
|
-
value: propTypes$
|
|
2646
|
-
zeroState: propTypes$
|
|
2647
|
-
loading: propTypes$
|
|
2648
|
-
maxHeightOptionListPx: propTypes$
|
|
2649
|
-
maxHeightOptionListRem: propTypes$
|
|
2650
|
-
disableOptionsMemoization: propTypes$
|
|
2669
|
+
tallOptionList: propTypes$1H.exports.bool,
|
|
2670
|
+
value: propTypes$1H.exports.string,
|
|
2671
|
+
zeroState: propTypes$1H.exports.string,
|
|
2672
|
+
loading: propTypes$1H.exports.bool,
|
|
2673
|
+
maxHeightOptionListPx: propTypes$1H.exports.number,
|
|
2674
|
+
maxHeightOptionListRem: propTypes$1H.exports.number,
|
|
2675
|
+
disableOptionsMemoization: propTypes$1H.exports.bool
|
|
2651
2676
|
});
|
|
2652
2677
|
function SpsAutocomplete(_e) {
|
|
2653
2678
|
var _f = _e, {
|
|
@@ -2808,8 +2833,8 @@ function SpsAutocomplete(_e) {
|
|
|
2808
2833
|
}));
|
|
2809
2834
|
}
|
|
2810
2835
|
Object.assign(SpsAutocomplete, {
|
|
2811
|
-
props: propsDoc$
|
|
2812
|
-
propTypes: propTypes$
|
|
2836
|
+
props: propsDoc$1z,
|
|
2837
|
+
propTypes: propTypes$1C,
|
|
2813
2838
|
displayName: "SpsAutocomplete"
|
|
2814
2839
|
});
|
|
2815
2840
|
const SpsAutocompleteExamples = {
|
|
@@ -2932,7 +2957,7 @@ const SpsAutocompleteExamples = {
|
|
|
2932
2957
|
}
|
|
2933
2958
|
}
|
|
2934
2959
|
};
|
|
2935
|
-
const propsDoc$
|
|
2960
|
+
const propsDoc$1y = {
|
|
2936
2961
|
alignLeft: "boolean",
|
|
2937
2962
|
disabled: "boolean",
|
|
2938
2963
|
icon: "SpsIcon",
|
|
@@ -2949,22 +2974,22 @@ const propsDoc$1x = {
|
|
|
2949
2974
|
maxHeightOptionListRem: "number",
|
|
2950
2975
|
disableOptionsMemoization: "boolean"
|
|
2951
2976
|
};
|
|
2952
|
-
const propTypes$
|
|
2953
|
-
alignLeft: propTypes$
|
|
2954
|
-
disabled: propTypes$
|
|
2977
|
+
const propTypes$1B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2978
|
+
alignLeft: propTypes$1H.exports.bool,
|
|
2979
|
+
disabled: propTypes$1H.exports.bool,
|
|
2955
2980
|
icon: enumValue(SpsIcon),
|
|
2956
2981
|
kind: enumValue(DropdownKind),
|
|
2957
|
-
label: propTypes$
|
|
2958
|
-
options: propTypes$
|
|
2959
|
-
spinning: propTypes$
|
|
2960
|
-
spinningTitle: propTypes$
|
|
2961
|
-
tallOptionList: propTypes$
|
|
2982
|
+
label: propTypes$1H.exports.string,
|
|
2983
|
+
options: propTypes$1H.exports.arrayOf(propTypes$1H.exports.oneOfType([propTypes$1H.exports.func, propTypes$1H.exports.any])).isRequired,
|
|
2984
|
+
spinning: propTypes$1H.exports.bool,
|
|
2985
|
+
spinningTitle: propTypes$1H.exports.string,
|
|
2986
|
+
tallOptionList: propTypes$1H.exports.bool,
|
|
2962
2987
|
onOpen: fun(),
|
|
2963
2988
|
onClose: fun(),
|
|
2964
|
-
loading: propTypes$
|
|
2965
|
-
maxHeightOptionListPx: propTypes$
|
|
2966
|
-
maxHeightOptionListRem: propTypes$
|
|
2967
|
-
disableOptionsMemoization: propTypes$
|
|
2989
|
+
loading: propTypes$1H.exports.bool,
|
|
2990
|
+
maxHeightOptionListPx: propTypes$1H.exports.number,
|
|
2991
|
+
maxHeightOptionListRem: propTypes$1H.exports.number,
|
|
2992
|
+
disableOptionsMemoization: propTypes$1H.exports.bool
|
|
2968
2993
|
});
|
|
2969
2994
|
function SpsDropdown(props2) {
|
|
2970
2995
|
const _a = props2, {
|
|
@@ -3130,12 +3155,12 @@ function SpsDropdown(props2) {
|
|
|
3130
3155
|
}, spinningTitle || t2("design-system:button.spinningTitle")))));
|
|
3131
3156
|
}
|
|
3132
3157
|
Object.assign(SpsDropdown, {
|
|
3133
|
-
props: propsDoc$
|
|
3134
|
-
propTypes: propTypes$
|
|
3158
|
+
props: propsDoc$1y,
|
|
3159
|
+
propTypes: propTypes$1B,
|
|
3135
3160
|
displayName: "SpsDropdown"
|
|
3136
3161
|
});
|
|
3137
|
-
const propsDoc$
|
|
3138
|
-
const propTypes$
|
|
3162
|
+
const propsDoc$1x = {};
|
|
3163
|
+
const propTypes$1A = __spreadValues({}, spsGlobalPropTypes);
|
|
3139
3164
|
function SpsButtonGroup(props2) {
|
|
3140
3165
|
const _a = props2, {
|
|
3141
3166
|
children,
|
|
@@ -3166,8 +3191,8 @@ function SpsButtonGroup(props2) {
|
|
|
3166
3191
|
}), others.length > 0 && others);
|
|
3167
3192
|
}
|
|
3168
3193
|
Object.assign(SpsButtonGroup, {
|
|
3169
|
-
props: propsDoc$
|
|
3170
|
-
propTypes: propTypes$
|
|
3194
|
+
props: propsDoc$1x,
|
|
3195
|
+
propTypes: propTypes$1A,
|
|
3171
3196
|
displayName: "SpsButtonGroup"
|
|
3172
3197
|
});
|
|
3173
3198
|
const SpsButtonExamples = {
|
|
@@ -5899,8 +5924,8 @@ function SpsTabPanel(_g) {
|
|
|
5899
5924
|
className: "sps-card__body"
|
|
5900
5925
|
}), state.selectedItem ? state.selectedItem.props.children : null);
|
|
5901
5926
|
}
|
|
5902
|
-
const propsDoc$
|
|
5903
|
-
const propTypes$
|
|
5927
|
+
const propsDoc$1w = {};
|
|
5928
|
+
const propTypes$1z = {};
|
|
5904
5929
|
function SpsTabsV2(props2) {
|
|
5905
5930
|
const state = useTabListState(props2);
|
|
5906
5931
|
const ref2 = React.useRef();
|
|
@@ -5918,12 +5943,12 @@ function SpsTabsV2(props2) {
|
|
|
5918
5943
|
}));
|
|
5919
5944
|
}
|
|
5920
5945
|
Object.assign(SpsTabsV2, {
|
|
5921
|
-
props: propsDoc$
|
|
5922
|
-
propTypes: propTypes$
|
|
5946
|
+
props: propsDoc$1w,
|
|
5947
|
+
propTypes: propTypes$1z,
|
|
5923
5948
|
displayName: "SpsTabsV2"
|
|
5924
5949
|
});
|
|
5925
|
-
const propsDoc$
|
|
5926
|
-
const propTypes$
|
|
5950
|
+
const propsDoc$1v = {};
|
|
5951
|
+
const propTypes$1y = {};
|
|
5927
5952
|
function SpsCardV2Footer(_i) {
|
|
5928
5953
|
var _j = _i, {
|
|
5929
5954
|
children,
|
|
@@ -5937,12 +5962,12 @@ function SpsCardV2Footer(_i) {
|
|
|
5937
5962
|
}, rest), children);
|
|
5938
5963
|
}
|
|
5939
5964
|
Object.assign(SpsCardV2Footer, {
|
|
5940
|
-
props: propsDoc$
|
|
5941
|
-
propTypes: propTypes$
|
|
5965
|
+
props: propsDoc$1v,
|
|
5966
|
+
propTypes: propTypes$1y,
|
|
5942
5967
|
displayName: "SpsCardV2Footer"
|
|
5943
5968
|
});
|
|
5944
|
-
const propsDoc$
|
|
5945
|
-
const propTypes$
|
|
5969
|
+
const propsDoc$1u = {};
|
|
5970
|
+
const propTypes$1x = {};
|
|
5946
5971
|
function SpsCardV2Header(_k) {
|
|
5947
5972
|
var _l = _k, {
|
|
5948
5973
|
children,
|
|
@@ -5956,12 +5981,12 @@ function SpsCardV2Header(_k) {
|
|
|
5956
5981
|
}, rest), children);
|
|
5957
5982
|
}
|
|
5958
5983
|
Object.assign(SpsCardV2Header, {
|
|
5959
|
-
props: propsDoc$
|
|
5960
|
-
propTypes: propTypes$
|
|
5984
|
+
props: propsDoc$1u,
|
|
5985
|
+
propTypes: propTypes$1x,
|
|
5961
5986
|
displayName: "SpsCardV2Header"
|
|
5962
5987
|
});
|
|
5963
|
-
const propsDoc$
|
|
5964
|
-
const propTypes$
|
|
5988
|
+
const propsDoc$1t = {};
|
|
5989
|
+
const propTypes$1w = {};
|
|
5965
5990
|
function SpsCardV2(_m) {
|
|
5966
5991
|
var _n = _m, {
|
|
5967
5992
|
children,
|
|
@@ -5987,12 +6012,12 @@ function SpsCardV2(_m) {
|
|
|
5987
6012
|
}, bodyContent), footer);
|
|
5988
6013
|
}
|
|
5989
6014
|
Object.assign(SpsCardV2, {
|
|
5990
|
-
props: propsDoc$
|
|
5991
|
-
propTypes: propTypes$
|
|
6015
|
+
props: propsDoc$1t,
|
|
6016
|
+
propTypes: propTypes$1w,
|
|
5992
6017
|
displayName: "SpsCardV2"
|
|
5993
6018
|
});
|
|
5994
|
-
const propsDoc$
|
|
5995
|
-
const propTypes$
|
|
6019
|
+
const propsDoc$1s = {};
|
|
6020
|
+
const propTypes$1v = {};
|
|
5996
6021
|
function SpsCardV2Title(_o) {
|
|
5997
6022
|
var _p = _o, {
|
|
5998
6023
|
children,
|
|
@@ -6006,8 +6031,8 @@ function SpsCardV2Title(_o) {
|
|
|
6006
6031
|
}, rest), children);
|
|
6007
6032
|
}
|
|
6008
6033
|
Object.assign(SpsCardV2Title, {
|
|
6009
|
-
props: propsDoc$
|
|
6010
|
-
propTypes: propTypes$
|
|
6034
|
+
props: propsDoc$1s,
|
|
6035
|
+
propTypes: propTypes$1v,
|
|
6011
6036
|
displayName: "SpsCardV2Title"
|
|
6012
6037
|
});
|
|
6013
6038
|
const SpsCardExamples = {
|
|
@@ -6315,7 +6340,7 @@ const SpsCardExamples = {
|
|
|
6315
6340
|
}
|
|
6316
6341
|
}
|
|
6317
6342
|
};
|
|
6318
|
-
const propsDoc$
|
|
6343
|
+
const propsDoc$1r = {
|
|
6319
6344
|
checked: "boolean",
|
|
6320
6345
|
disabled: "boolean",
|
|
6321
6346
|
formMeta: "SpsFormFieldMeta<boolean>",
|
|
@@ -6324,14 +6349,14 @@ const propsDoc$1q = {
|
|
|
6324
6349
|
label: "string",
|
|
6325
6350
|
onChange: "ChangeEventHandler"
|
|
6326
6351
|
};
|
|
6327
|
-
const propTypes$
|
|
6328
|
-
checked: propTypes$
|
|
6329
|
-
disabled: propTypes$
|
|
6352
|
+
const propTypes$1u = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
6353
|
+
checked: propTypes$1H.exports.bool,
|
|
6354
|
+
disabled: propTypes$1H.exports.bool,
|
|
6330
6355
|
formControl: impl(),
|
|
6331
6356
|
formMeta: impl(),
|
|
6332
|
-
indeterminate: propTypes$
|
|
6333
|
-
inline: propTypes$
|
|
6334
|
-
label: propTypes$
|
|
6357
|
+
indeterminate: propTypes$1H.exports.bool,
|
|
6358
|
+
inline: propTypes$1H.exports.bool,
|
|
6359
|
+
label: propTypes$1H.exports.string,
|
|
6335
6360
|
onChange: fun()
|
|
6336
6361
|
});
|
|
6337
6362
|
function SpsCheckbox(_q) {
|
|
@@ -6407,8 +6432,8 @@ function SpsCheckbox(_q) {
|
|
|
6407
6432
|
}, label || ""));
|
|
6408
6433
|
}
|
|
6409
6434
|
Object.assign(SpsCheckbox, {
|
|
6410
|
-
props: propsDoc$
|
|
6411
|
-
propTypes: propTypes$
|
|
6435
|
+
props: propsDoc$1r,
|
|
6436
|
+
propTypes: propTypes$1u,
|
|
6412
6437
|
displayName: "SpsCheckbox"
|
|
6413
6438
|
});
|
|
6414
6439
|
const SpsCheckboxExamples = {
|
|
@@ -6536,16 +6561,16 @@ const SpsCheckboxExamples = {
|
|
|
6536
6561
|
}
|
|
6537
6562
|
}
|
|
6538
6563
|
};
|
|
6539
|
-
const propsDoc$
|
|
6564
|
+
const propsDoc$1q = {
|
|
6540
6565
|
disabled: "boolean",
|
|
6541
6566
|
href: "string",
|
|
6542
6567
|
kind: "ClickableTagKind",
|
|
6543
6568
|
onAdd: "() => void",
|
|
6544
6569
|
onRemove: "() => void"
|
|
6545
6570
|
};
|
|
6546
|
-
const propTypes$
|
|
6547
|
-
disabled: propTypes$
|
|
6548
|
-
href: propTypes$
|
|
6571
|
+
const propTypes$1t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
6572
|
+
disabled: propTypes$1H.exports.bool,
|
|
6573
|
+
href: propTypes$1H.exports.string,
|
|
6549
6574
|
kind: enumValue(ClickableTagKind),
|
|
6550
6575
|
onAdd: fun(),
|
|
6551
6576
|
onRemove: fun()
|
|
@@ -6608,6 +6633,7 @@ function SpsClickableTag(props2) {
|
|
|
6608
6633
|
}, children), !href && children), (onAdd || onRemove) && !disabled && /* @__PURE__ */ React.createElement("div", {
|
|
6609
6634
|
className: "sps-clickable-tag__icon",
|
|
6610
6635
|
onClick: disabled ? null : emitEvent,
|
|
6636
|
+
tabIndex: -1,
|
|
6611
6637
|
"aria-label": onAdd ? "Add" : "Remove"
|
|
6612
6638
|
}, /* @__PURE__ */ React.createElement("i", {
|
|
6613
6639
|
"aria-hidden": "true",
|
|
@@ -6616,8 +6642,8 @@ function SpsClickableTag(props2) {
|
|
|
6616
6642
|
})));
|
|
6617
6643
|
}
|
|
6618
6644
|
Object.assign(SpsClickableTag, {
|
|
6619
|
-
props: propsDoc$
|
|
6620
|
-
propTypes: propTypes$
|
|
6645
|
+
props: propsDoc$1q,
|
|
6646
|
+
propTypes: propTypes$1t,
|
|
6621
6647
|
displayName: "SpsClickableTag"
|
|
6622
6648
|
});
|
|
6623
6649
|
const SpsClickableTagExamples = {
|
|
@@ -14845,15 +14871,15 @@ var ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, nu
|
|
|
14845
14871
|
areStatePropsEqual: isStrictEqual
|
|
14846
14872
|
})(Draggable);
|
|
14847
14873
|
ConnectedDraggable.defaultProps = defaultProps$1;
|
|
14848
|
-
const propsDoc$
|
|
14874
|
+
const propsDoc$1p = {
|
|
14849
14875
|
content: "ReactNodeLike",
|
|
14850
14876
|
icon: "SpsIcon",
|
|
14851
14877
|
title: "string"
|
|
14852
14878
|
};
|
|
14853
|
-
const propTypes$
|
|
14854
|
-
content: propTypes$
|
|
14879
|
+
const propTypes$1s = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14880
|
+
content: propTypes$1H.exports.node,
|
|
14855
14881
|
icon: enumValue(SpsIcon),
|
|
14856
|
-
title: propTypes$
|
|
14882
|
+
title: propTypes$1H.exports.string
|
|
14857
14883
|
});
|
|
14858
14884
|
function SpsCardHeader(props2) {
|
|
14859
14885
|
const _a = props2, {
|
|
@@ -14885,15 +14911,15 @@ function SpsCardHeader(props2) {
|
|
|
14885
14911
|
}, content));
|
|
14886
14912
|
}
|
|
14887
14913
|
Object.assign(SpsCardHeader, {
|
|
14888
|
-
props: propsDoc$
|
|
14889
|
-
propTypes: propTypes$
|
|
14914
|
+
props: propsDoc$1p,
|
|
14915
|
+
propTypes: propTypes$1s,
|
|
14890
14916
|
displayName: "SpsCardHeader"
|
|
14891
14917
|
});
|
|
14892
|
-
const propsDoc$
|
|
14918
|
+
const propsDoc$1o = {
|
|
14893
14919
|
icon: "SpsIcon",
|
|
14894
14920
|
kind: "TagKind"
|
|
14895
14921
|
};
|
|
14896
|
-
const propTypes$
|
|
14922
|
+
const propTypes$1r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14897
14923
|
icon: enumValue(SpsIcon),
|
|
14898
14924
|
kind: enumValue(TagKind)
|
|
14899
14925
|
});
|
|
@@ -14926,11 +14952,11 @@ function SpsTag(props2) {
|
|
|
14926
14952
|
}), children);
|
|
14927
14953
|
}
|
|
14928
14954
|
Object.assign(SpsTag, {
|
|
14929
|
-
props: propsDoc$
|
|
14930
|
-
propTypes: propTypes$
|
|
14955
|
+
props: propsDoc$1o,
|
|
14956
|
+
propTypes: propTypes$1r,
|
|
14931
14957
|
displayName: "SpsTag"
|
|
14932
14958
|
});
|
|
14933
|
-
const propsDoc$
|
|
14959
|
+
const propsDoc$1n = {
|
|
14934
14960
|
activateTab: "Function",
|
|
14935
14961
|
active: "boolean",
|
|
14936
14962
|
icon: "SpsIcon",
|
|
@@ -14940,13 +14966,13 @@ const propsDoc$1m = {
|
|
|
14940
14966
|
tagKind: "TagKind",
|
|
14941
14967
|
tagIcon: "SpsIcon"
|
|
14942
14968
|
};
|
|
14943
|
-
const propTypes$
|
|
14944
|
-
activateTab: propTypes$
|
|
14945
|
-
active: propTypes$
|
|
14969
|
+
const propTypes$1q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14970
|
+
activateTab: propTypes$1H.exports.func,
|
|
14971
|
+
active: propTypes$1H.exports.bool,
|
|
14946
14972
|
icon: enumValue(SpsIcon),
|
|
14947
|
-
label: propTypes$
|
|
14948
|
-
index: propTypes$
|
|
14949
|
-
tag: propTypes$
|
|
14973
|
+
label: propTypes$1H.exports.string,
|
|
14974
|
+
index: propTypes$1H.exports.number,
|
|
14975
|
+
tag: propTypes$1H.exports.string,
|
|
14950
14976
|
tagKind: enumValue(TagKind),
|
|
14951
14977
|
tagIcon: enumValue(SpsIcon)
|
|
14952
14978
|
});
|
|
@@ -15009,8 +15035,8 @@ function SpsCardTabbedPane(props2) {
|
|
|
15009
15035
|
}, tag));
|
|
15010
15036
|
}
|
|
15011
15037
|
Object.assign(SpsCardTabbedPane, {
|
|
15012
|
-
props: propsDoc$
|
|
15013
|
-
propTypes: propTypes$
|
|
15038
|
+
props: propsDoc$1n,
|
|
15039
|
+
propTypes: propTypes$1q,
|
|
15014
15040
|
displayName: "SpsCardTabbedPane"
|
|
15015
15041
|
});
|
|
15016
15042
|
function useTab(children, activeTab, isTabbedCard) {
|
|
@@ -15052,19 +15078,19 @@ function useTab(children, activeTab, isTabbedCard) {
|
|
|
15052
15078
|
}, [activeTab, children]);
|
|
15053
15079
|
return [currentlyActiveTab, activateTab];
|
|
15054
15080
|
}
|
|
15055
|
-
const propsDoc$
|
|
15081
|
+
const propsDoc$1m = {
|
|
15056
15082
|
activeTab: "string",
|
|
15057
15083
|
footer: "ReactNodeOrRenderFn",
|
|
15058
15084
|
headerContent: "ReactNodeOrRenderFn",
|
|
15059
15085
|
headerIcon: "SpsIcon",
|
|
15060
15086
|
headerTitle: "string"
|
|
15061
15087
|
};
|
|
15062
|
-
const propTypes$
|
|
15063
|
-
activeTab: propTypes$
|
|
15088
|
+
const propTypes$1p = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15089
|
+
activeTab: propTypes$1H.exports.string,
|
|
15064
15090
|
footer: nodeOrRenderFn,
|
|
15065
15091
|
headerContent: nodeOrRenderFn,
|
|
15066
15092
|
headerIcon: enumValue(SpsIcon),
|
|
15067
|
-
headerTitle: propTypes$
|
|
15093
|
+
headerTitle: propTypes$1H.exports.string
|
|
15068
15094
|
});
|
|
15069
15095
|
function SpsCard(props2) {
|
|
15070
15096
|
React.useEffect(() => {
|
|
@@ -15131,11 +15157,11 @@ function SpsCard(props2) {
|
|
|
15131
15157
|
}, contentOf(footer)));
|
|
15132
15158
|
}
|
|
15133
15159
|
Object.assign(SpsCard, {
|
|
15134
|
-
props: propsDoc$
|
|
15135
|
-
propTypes: propTypes$
|
|
15160
|
+
props: propsDoc$1m,
|
|
15161
|
+
propTypes: propTypes$1p,
|
|
15136
15162
|
displayName: "SpsCard"
|
|
15137
15163
|
});
|
|
15138
|
-
const propsDoc$
|
|
15164
|
+
const propsDoc$1l = {
|
|
15139
15165
|
index: "number",
|
|
15140
15166
|
key: "string",
|
|
15141
15167
|
columnId: "string",
|
|
@@ -15144,14 +15170,14 @@ const propsDoc$1k = {
|
|
|
15144
15170
|
onDelete: "(columnValue: string) => void",
|
|
15145
15171
|
mandatory: "boolean"
|
|
15146
15172
|
};
|
|
15147
|
-
const propTypes$
|
|
15148
|
-
index: propTypes$
|
|
15149
|
-
key: propTypes$
|
|
15150
|
-
columnId: propTypes$
|
|
15151
|
-
name: propTypes$
|
|
15152
|
-
value: propTypes$
|
|
15173
|
+
const propTypes$1o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15174
|
+
index: propTypes$1H.exports.number,
|
|
15175
|
+
key: propTypes$1H.exports.string,
|
|
15176
|
+
columnId: propTypes$1H.exports.string,
|
|
15177
|
+
name: propTypes$1H.exports.string,
|
|
15178
|
+
value: propTypes$1H.exports.string,
|
|
15153
15179
|
onDelete: fun(),
|
|
15154
|
-
mandatory: propTypes$
|
|
15180
|
+
mandatory: propTypes$1H.exports.bool
|
|
15155
15181
|
});
|
|
15156
15182
|
function SpsColumnChooserColumn(props2) {
|
|
15157
15183
|
const _a = props2, {
|
|
@@ -15207,20 +15233,20 @@ function SpsColumnChooserColumn(props2) {
|
|
|
15207
15233
|
})))));
|
|
15208
15234
|
}
|
|
15209
15235
|
Object.assign(SpsColumnChooserColumn, {
|
|
15210
|
-
props: propsDoc$
|
|
15211
|
-
propTypes: propTypes$
|
|
15236
|
+
props: propsDoc$1l,
|
|
15237
|
+
propTypes: propTypes$1o,
|
|
15212
15238
|
displayName: "SpsColumnChooserColumn"
|
|
15213
15239
|
});
|
|
15214
|
-
const propsDoc$
|
|
15240
|
+
const propsDoc$1k = {
|
|
15215
15241
|
maxSelectedColumns: "number",
|
|
15216
15242
|
unselectedColumns: "ColumnProps[]",
|
|
15217
15243
|
selectedColumns: "ColumnProps[]",
|
|
15218
15244
|
onApplyChanges: "(selectedColumns: ColumnProps[]) => void"
|
|
15219
15245
|
};
|
|
15220
|
-
const propTypes$
|
|
15221
|
-
maxSelectedColumns: propTypes$
|
|
15222
|
-
unselectedColumns: propTypes$
|
|
15223
|
-
selectedColumns: propTypes$
|
|
15246
|
+
const propTypes$1n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15247
|
+
maxSelectedColumns: propTypes$1H.exports.number,
|
|
15248
|
+
unselectedColumns: propTypes$1H.exports.array,
|
|
15249
|
+
selectedColumns: propTypes$1H.exports.array,
|
|
15224
15250
|
onApplyChanges: fun()
|
|
15225
15251
|
});
|
|
15226
15252
|
function SpsColumnChooser(props2) {
|
|
@@ -15360,8 +15386,8 @@ function SpsColumnChooser(props2) {
|
|
|
15360
15386
|
})), provided.placeholder)))));
|
|
15361
15387
|
}
|
|
15362
15388
|
Object.assign(SpsColumnChooser, {
|
|
15363
|
-
props: propsDoc$
|
|
15364
|
-
propTypes: propTypes$
|
|
15389
|
+
props: propsDoc$1k,
|
|
15390
|
+
propTypes: propTypes$1n,
|
|
15365
15391
|
displayName: "SpsColumnChooser"
|
|
15366
15392
|
});
|
|
15367
15393
|
const SpsColumnChooserExamples = {
|
|
@@ -15393,11 +15419,11 @@ const SpsColumnChooserExamples = {
|
|
|
15393
15419
|
}
|
|
15394
15420
|
}
|
|
15395
15421
|
};
|
|
15396
|
-
const propsDoc$
|
|
15422
|
+
const propsDoc$1j = {
|
|
15397
15423
|
icon: { type: "SpsIcon", required: true },
|
|
15398
15424
|
size: "SpsIconSize"
|
|
15399
15425
|
};
|
|
15400
|
-
const propTypes$
|
|
15426
|
+
const propTypes$1m = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15401
15427
|
icon: enumValue(SpsIcon).isRequired,
|
|
15402
15428
|
size: enumValue(SpsIconSize)
|
|
15403
15429
|
});
|
|
@@ -15423,28 +15449,28 @@ function SpsI(props2) {
|
|
|
15423
15449
|
}, rest));
|
|
15424
15450
|
}
|
|
15425
15451
|
Object.assign(SpsI, {
|
|
15426
|
-
props: propsDoc$
|
|
15427
|
-
propTypes: propTypes$
|
|
15452
|
+
props: propsDoc$1j,
|
|
15453
|
+
propTypes: propTypes$1m,
|
|
15428
15454
|
displayName: "SpsI"
|
|
15429
15455
|
});
|
|
15430
15456
|
Object.assign(SpsI, {
|
|
15431
|
-
props: propsDoc$
|
|
15432
|
-
propTypes: propTypes$
|
|
15457
|
+
props: propsDoc$1j,
|
|
15458
|
+
propTypes: propTypes$1m,
|
|
15433
15459
|
displayName: "SpsI"
|
|
15434
15460
|
});
|
|
15435
|
-
const propsDoc$
|
|
15461
|
+
const propsDoc$1i = {
|
|
15436
15462
|
borderless: "boolean",
|
|
15437
15463
|
lean: "boolean",
|
|
15438
15464
|
leaner: { type: "boolean", deprecated: true },
|
|
15439
15465
|
widthPx: "number",
|
|
15440
15466
|
widthRem: "number"
|
|
15441
15467
|
};
|
|
15442
|
-
const propTypes$
|
|
15443
|
-
borderless: propTypes$
|
|
15444
|
-
lean: propTypes$
|
|
15445
|
-
leaner: propTypes$
|
|
15446
|
-
widthPx: propTypes$
|
|
15447
|
-
widthRem: propTypes$
|
|
15468
|
+
const propTypes$1l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15469
|
+
borderless: propTypes$1H.exports.bool,
|
|
15470
|
+
lean: propTypes$1H.exports.bool,
|
|
15471
|
+
leaner: propTypes$1H.exports.bool,
|
|
15472
|
+
widthPx: propTypes$1H.exports.number,
|
|
15473
|
+
widthRem: propTypes$1H.exports.number
|
|
15448
15474
|
});
|
|
15449
15475
|
function SpsContentRowCol(props2) {
|
|
15450
15476
|
const _a = props2, {
|
|
@@ -15489,12 +15515,12 @@ function SpsContentRowCol(props2) {
|
|
|
15489
15515
|
}), children);
|
|
15490
15516
|
}
|
|
15491
15517
|
Object.assign(SpsContentRowCol, {
|
|
15492
|
-
props: propsDoc$
|
|
15493
|
-
propTypes: propTypes$
|
|
15518
|
+
props: propsDoc$1i,
|
|
15519
|
+
propTypes: propTypes$1l,
|
|
15494
15520
|
displayName: "SpsContentRowCol"
|
|
15495
15521
|
});
|
|
15496
|
-
const propsDoc$
|
|
15497
|
-
const propTypes$
|
|
15522
|
+
const propsDoc$1h = {};
|
|
15523
|
+
const propTypes$1k = __spreadValues({}, spsGlobalPropTypes);
|
|
15498
15524
|
function SpsContentRowExpansion(props2) {
|
|
15499
15525
|
const _a = props2, {
|
|
15500
15526
|
children,
|
|
@@ -15515,11 +15541,11 @@ function SpsContentRowExpansion(props2) {
|
|
|
15515
15541
|
}), children);
|
|
15516
15542
|
}
|
|
15517
15543
|
Object.assign(SpsContentRowExpansion, {
|
|
15518
|
-
props: propsDoc$
|
|
15519
|
-
propTypes: propTypes$
|
|
15544
|
+
props: propsDoc$1h,
|
|
15545
|
+
propTypes: propTypes$1k,
|
|
15520
15546
|
displayName: "SpsContentRowExpansion"
|
|
15521
15547
|
});
|
|
15522
|
-
const propsDoc$
|
|
15548
|
+
const propsDoc$1g = {
|
|
15523
15549
|
alternateLayout: "boolean",
|
|
15524
15550
|
initiallyExpanded: "boolean",
|
|
15525
15551
|
cardSpacing: "boolean",
|
|
@@ -15532,18 +15558,18 @@ const propsDoc$1f = {
|
|
|
15532
15558
|
selectable: "boolean",
|
|
15533
15559
|
selected: "boolean"
|
|
15534
15560
|
};
|
|
15535
|
-
const propTypes$
|
|
15536
|
-
alternateLayout: propTypes$
|
|
15537
|
-
cardSpacing: propTypes$
|
|
15538
|
-
expanded: propTypes$
|
|
15539
|
-
initiallyExpanded: propTypes$
|
|
15561
|
+
const propTypes$1j = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15562
|
+
alternateLayout: propTypes$1H.exports.bool,
|
|
15563
|
+
cardSpacing: propTypes$1H.exports.bool,
|
|
15564
|
+
expanded: propTypes$1H.exports.bool,
|
|
15565
|
+
initiallyExpanded: propTypes$1H.exports.bool,
|
|
15540
15566
|
onBeforeCollapsed: fun(),
|
|
15541
15567
|
onBeforeExpanded: fun(),
|
|
15542
15568
|
onSelectionChange: fun(),
|
|
15543
15569
|
onCollapsed: fun(),
|
|
15544
15570
|
onExpanded: fun(),
|
|
15545
|
-
selectable: propTypes$
|
|
15546
|
-
selected: propTypes$
|
|
15571
|
+
selectable: propTypes$1H.exports.bool,
|
|
15572
|
+
selected: propTypes$1H.exports.bool
|
|
15547
15573
|
});
|
|
15548
15574
|
function SpsContentRow(props2) {
|
|
15549
15575
|
const _a = props2, {
|
|
@@ -15624,8 +15650,8 @@ function SpsContentRow(props2) {
|
|
|
15624
15650
|
}, /* @__PURE__ */ React.createElement("section", null, ContentRowCheckBox()), /* @__PURE__ */ React.createElement("section", null, ExpandoThingy())), columns), expansion);
|
|
15625
15651
|
}
|
|
15626
15652
|
Object.assign(SpsContentRow, {
|
|
15627
|
-
props: propsDoc$
|
|
15628
|
-
propTypes: propTypes$
|
|
15653
|
+
props: propsDoc$1g,
|
|
15654
|
+
propTypes: propTypes$1j,
|
|
15629
15655
|
displayName: "SpsContentRow"
|
|
15630
15656
|
});
|
|
15631
15657
|
const SpsContentRowExamples = {
|
|
@@ -16108,12 +16134,12 @@ function useMoment(date2) {
|
|
|
16108
16134
|
return momentValue;
|
|
16109
16135
|
}
|
|
16110
16136
|
const moment$1 = moment$4.default || moment$4;
|
|
16111
|
-
const propTypes$
|
|
16137
|
+
const propTypes$1i = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
16112
16138
|
maxDate: impl(),
|
|
16113
16139
|
minDate: impl(),
|
|
16114
16140
|
onNewSelection: fun().isRequired,
|
|
16115
16141
|
selectedDate: impl(),
|
|
16116
|
-
selectedRange: propTypes$
|
|
16142
|
+
selectedRange: propTypes$1H.exports.arrayOf(impl())
|
|
16117
16143
|
});
|
|
16118
16144
|
const CSS_ELEMENT$1 = "sps-datepicker__calendar";
|
|
16119
16145
|
function determineViewMonth({
|
|
@@ -16233,13 +16259,13 @@ function SpsDatepickerCalendar(props2) {
|
|
|
16233
16259
|
}, date2 ? date2.date : "")))))) : /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
16234
16260
|
}
|
|
16235
16261
|
Object.assign(SpsDatepickerCalendar, {
|
|
16236
|
-
propTypes: propTypes$
|
|
16262
|
+
propTypes: propTypes$1i,
|
|
16237
16263
|
displayName: "SpsDatepickerCalendar"
|
|
16238
16264
|
});
|
|
16239
16265
|
const CSS_ELEMENT = "sps-datepicker__popup";
|
|
16240
|
-
const propTypes$
|
|
16266
|
+
const propTypes$1h = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
16241
16267
|
attachTo: ref().isRequired,
|
|
16242
|
-
isOpen: propTypes$
|
|
16268
|
+
isOpen: propTypes$1H.exports.bool.isRequired
|
|
16243
16269
|
});
|
|
16244
16270
|
const SpsDatepickerPopup = React.forwardRef((_s, ref2) => {
|
|
16245
16271
|
var _t = _s, {
|
|
@@ -16265,10 +16291,10 @@ const SpsDatepickerPopup = React.forwardRef((_s, ref2) => {
|
|
|
16265
16291
|
}), children));
|
|
16266
16292
|
});
|
|
16267
16293
|
Object.assign(SpsDatepickerPopup, {
|
|
16268
|
-
propTypes: propTypes$
|
|
16294
|
+
propTypes: propTypes$1h,
|
|
16269
16295
|
displayName: "SpsDatepickerPopup"
|
|
16270
16296
|
});
|
|
16271
|
-
const propsDoc$
|
|
16297
|
+
const propsDoc$1f = {
|
|
16272
16298
|
disabled: "boolean",
|
|
16273
16299
|
formMeta: "SpsFormFieldMeta<SimpleDate>",
|
|
16274
16300
|
maxDate: "SimpleDate",
|
|
@@ -16276,8 +16302,8 @@ const propsDoc$1e = {
|
|
|
16276
16302
|
onChange: "(newDate: SimpleDate) => void",
|
|
16277
16303
|
value: "SimpleDate"
|
|
16278
16304
|
};
|
|
16279
|
-
const propTypes$
|
|
16280
|
-
disabled: propTypes$
|
|
16305
|
+
const propTypes$1g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
16306
|
+
disabled: propTypes$1H.exports.bool,
|
|
16281
16307
|
formMeta: impl(),
|
|
16282
16308
|
maxDate: impl(),
|
|
16283
16309
|
minDate: impl(),
|
|
@@ -16388,8 +16414,8 @@ function SpsDatepicker(_u) {
|
|
|
16388
16414
|
})));
|
|
16389
16415
|
}
|
|
16390
16416
|
Object.assign(SpsDatepicker, {
|
|
16391
|
-
props: propsDoc$
|
|
16392
|
-
propTypes: propTypes$
|
|
16417
|
+
props: propsDoc$1f,
|
|
16418
|
+
propTypes: propTypes$1g,
|
|
16393
16419
|
displayName: "SpsDatepicker"
|
|
16394
16420
|
});
|
|
16395
16421
|
const SpsDatepickerExamples = {
|
|
@@ -16484,7 +16510,7 @@ const SpsDatepickerExamples = {
|
|
|
16484
16510
|
}
|
|
16485
16511
|
}
|
|
16486
16512
|
};
|
|
16487
|
-
const propsDoc$
|
|
16513
|
+
const propsDoc$1e = {
|
|
16488
16514
|
disabled: "boolean",
|
|
16489
16515
|
formMeta: "SpsFormFieldMeta<SimpleDateRange | DatePreset>",
|
|
16490
16516
|
maxDate: "SimpleDate",
|
|
@@ -16493,13 +16519,13 @@ const propsDoc$1d = {
|
|
|
16493
16519
|
presets: "Array<DatePreset>",
|
|
16494
16520
|
value: "SimpleDateRange | DatePreset"
|
|
16495
16521
|
};
|
|
16496
|
-
const propTypes$
|
|
16497
|
-
disabled: propTypes$
|
|
16522
|
+
const propTypes$1f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
16523
|
+
disabled: propTypes$1H.exports.bool,
|
|
16498
16524
|
formMeta: impl(),
|
|
16499
16525
|
maxDate: impl(),
|
|
16500
16526
|
minDate: impl(),
|
|
16501
16527
|
onChange: fun(),
|
|
16502
|
-
presets: propTypes$
|
|
16528
|
+
presets: propTypes$1H.exports.arrayOf(impl())
|
|
16503
16529
|
});
|
|
16504
16530
|
const CSS_BLOCK$2 = "sps-datepicker";
|
|
16505
16531
|
const DEFAULT_PRESETS = [
|
|
@@ -16713,8 +16739,8 @@ function SpsDateRangePicker(_w) {
|
|
|
16713
16739
|
})));
|
|
16714
16740
|
}
|
|
16715
16741
|
Object.assign(SpsDateRangePicker, {
|
|
16716
|
-
props: propsDoc$
|
|
16717
|
-
propTypes: propTypes$
|
|
16742
|
+
props: propsDoc$1e,
|
|
16743
|
+
propTypes: propTypes$1f,
|
|
16718
16744
|
displayName: "SpsDateRangePicker"
|
|
16719
16745
|
});
|
|
16720
16746
|
const SpsDateRangePickerExamples = {
|
|
@@ -21317,7 +21343,7 @@ const formatMaps = {
|
|
|
21317
21343
|
LONG_FULLDATETIME: "LLLL",
|
|
21318
21344
|
LONG_FULLDATETIME_ZONE: "LLLL z"
|
|
21319
21345
|
};
|
|
21320
|
-
const propsDoc$
|
|
21346
|
+
const propsDoc$1d = {
|
|
21321
21347
|
currentUser: "any",
|
|
21322
21348
|
dateToFormat: "string | Date",
|
|
21323
21349
|
format: "string",
|
|
@@ -21326,17 +21352,17 @@ const propsDoc$1c = {
|
|
|
21326
21352
|
relativeHrs: "number",
|
|
21327
21353
|
tz: "string"
|
|
21328
21354
|
};
|
|
21329
|
-
const propTypes$
|
|
21330
|
-
currentUser: propTypes$
|
|
21331
|
-
dateToFormat: propTypes$
|
|
21332
|
-
propTypes$
|
|
21333
|
-
propTypes$
|
|
21355
|
+
const propTypes$1e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21356
|
+
currentUser: propTypes$1H.exports.any,
|
|
21357
|
+
dateToFormat: propTypes$1H.exports.oneOfType([
|
|
21358
|
+
propTypes$1H.exports.string,
|
|
21359
|
+
propTypes$1H.exports.instanceOf(Date)
|
|
21334
21360
|
]),
|
|
21335
|
-
format: propTypes$
|
|
21336
|
-
locale: propTypes$
|
|
21337
|
-
relative: propTypes$
|
|
21338
|
-
relativeHrs: propTypes$
|
|
21339
|
-
tz: propTypes$
|
|
21361
|
+
format: propTypes$1H.exports.string,
|
|
21362
|
+
locale: propTypes$1H.exports.string,
|
|
21363
|
+
relative: propTypes$1H.exports.bool,
|
|
21364
|
+
relativeHrs: propTypes$1H.exports.number,
|
|
21365
|
+
tz: propTypes$1H.exports.string
|
|
21340
21366
|
});
|
|
21341
21367
|
function showRelative(dateToCheck, relative, relativeHrs) {
|
|
21342
21368
|
if (!relativeHrs && !relative) {
|
|
@@ -21412,8 +21438,8 @@ function SpsDateTime(props2) {
|
|
|
21412
21438
|
}));
|
|
21413
21439
|
}
|
|
21414
21440
|
Object.assign(SpsDateTime, {
|
|
21415
|
-
props: propsDoc$
|
|
21416
|
-
propTypes: propTypes$
|
|
21441
|
+
props: propsDoc$1d,
|
|
21442
|
+
propTypes: propTypes$1e,
|
|
21417
21443
|
displayName: "SpsDateTime"
|
|
21418
21444
|
});
|
|
21419
21445
|
const SpsDatetimeExamples = {
|
|
@@ -21434,15 +21460,15 @@ const SpsDatetimeExamples = {
|
|
|
21434
21460
|
}
|
|
21435
21461
|
}
|
|
21436
21462
|
};
|
|
21437
|
-
const propsDoc$
|
|
21463
|
+
const propsDoc$1c = {
|
|
21438
21464
|
compact: "boolean",
|
|
21439
21465
|
wideTerms: "boolean",
|
|
21440
21466
|
widerTerms: "boolean"
|
|
21441
21467
|
};
|
|
21442
|
-
const propTypes$
|
|
21443
|
-
compact: propTypes$
|
|
21444
|
-
wideTerms: propTypes$
|
|
21445
|
-
widerTerms: propTypes$
|
|
21468
|
+
const propTypes$1d = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21469
|
+
compact: propTypes$1H.exports.bool,
|
|
21470
|
+
wideTerms: propTypes$1H.exports.bool,
|
|
21471
|
+
widerTerms: propTypes$1H.exports.bool
|
|
21446
21472
|
});
|
|
21447
21473
|
function SpsDescriptionList(props2) {
|
|
21448
21474
|
const _a = props2, {
|
|
@@ -21482,20 +21508,20 @@ function SpsDescriptionList(props2) {
|
|
|
21482
21508
|
}, rest), childrenWithProps);
|
|
21483
21509
|
}
|
|
21484
21510
|
Object.assign(SpsDescriptionList, {
|
|
21485
|
-
props: propsDoc$
|
|
21486
|
-
propTypes: propTypes$
|
|
21511
|
+
props: propsDoc$1c,
|
|
21512
|
+
propTypes: propTypes$1d,
|
|
21487
21513
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21488
21514
|
});
|
|
21489
21515
|
function SpsDl(p2) {
|
|
21490
21516
|
return SpsDescriptionList(p2);
|
|
21491
21517
|
}
|
|
21492
21518
|
Object.assign(SpsDl, {
|
|
21493
|
-
props: propsDoc$
|
|
21494
|
-
propTypes: propTypes$
|
|
21519
|
+
props: propsDoc$1c,
|
|
21520
|
+
propTypes: propTypes$1d,
|
|
21495
21521
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21496
21522
|
});
|
|
21497
|
-
const propsDoc$
|
|
21498
|
-
const propTypes$
|
|
21523
|
+
const propsDoc$1b = {};
|
|
21524
|
+
const propTypes$1c = __spreadValues({}, spsGlobalPropTypes);
|
|
21499
21525
|
function SpsDescriptionListDefinition(props2) {
|
|
21500
21526
|
const _a = props2, {
|
|
21501
21527
|
children,
|
|
@@ -21515,16 +21541,16 @@ function SpsDescriptionListDefinition(props2) {
|
|
|
21515
21541
|
}, rest), children);
|
|
21516
21542
|
}
|
|
21517
21543
|
Object.assign(SpsDescriptionListDefinition, {
|
|
21518
|
-
props: propsDoc$
|
|
21519
|
-
propTypes: propTypes$
|
|
21544
|
+
props: propsDoc$1b,
|
|
21545
|
+
propTypes: propTypes$1c,
|
|
21520
21546
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21521
21547
|
});
|
|
21522
21548
|
function SpsDd(p2) {
|
|
21523
21549
|
return SpsDescriptionListDefinition(p2);
|
|
21524
21550
|
}
|
|
21525
21551
|
Object.assign(SpsDd, {
|
|
21526
|
-
props: propsDoc$
|
|
21527
|
-
propTypes: propTypes$
|
|
21552
|
+
props: propsDoc$1b,
|
|
21553
|
+
propTypes: propTypes$1c,
|
|
21528
21554
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21529
21555
|
});
|
|
21530
21556
|
var TooltipVisibility;
|
|
@@ -21539,7 +21565,7 @@ function toggleTooltipState(state) {
|
|
|
21539
21565
|
}
|
|
21540
21566
|
const CARET_SPACING_PX = 13;
|
|
21541
21567
|
const openTips = new Map();
|
|
21542
|
-
const propsDoc$
|
|
21568
|
+
const propsDoc$1a = {
|
|
21543
21569
|
for: { type: "React.MutableRefObject<any> | string", required: true },
|
|
21544
21570
|
hideDelay: "number",
|
|
21545
21571
|
isShown: "TooltipVisibility",
|
|
@@ -21551,17 +21577,17 @@ const propsDoc$19 = {
|
|
|
21551
21577
|
showOn: "TooltipShowTrigger",
|
|
21552
21578
|
title: "string | ReactNode"
|
|
21553
21579
|
};
|
|
21554
|
-
const propTypes$
|
|
21555
|
-
for: propTypes$
|
|
21556
|
-
hideDelay: propTypes$
|
|
21580
|
+
const propTypes$1b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21581
|
+
for: propTypes$1H.exports.oneOfType([ref(), propTypes$1H.exports.string]).isRequired,
|
|
21582
|
+
hideDelay: propTypes$1H.exports.number,
|
|
21557
21583
|
isShown: enumValue(TooltipVisibility),
|
|
21558
21584
|
kind: enumValue(TooltipKind),
|
|
21559
|
-
offsets: propTypes$
|
|
21585
|
+
offsets: propTypes$1H.exports.arrayOf(propTypes$1H.exports.number),
|
|
21560
21586
|
onDeferred: fun(),
|
|
21561
21587
|
position: enumValue(Position),
|
|
21562
21588
|
altPosition: enumValue(Position),
|
|
21563
21589
|
showOn: enumValue(TooltipShowTrigger),
|
|
21564
|
-
title: propTypes$
|
|
21590
|
+
title: propTypes$1H.exports.string || propTypes$1H.exports.node
|
|
21565
21591
|
});
|
|
21566
21592
|
function SpsTooltip({
|
|
21567
21593
|
children,
|
|
@@ -21765,26 +21791,26 @@ function SpsTooltip({
|
|
|
21765
21791
|
})));
|
|
21766
21792
|
}
|
|
21767
21793
|
Object.assign(SpsTooltip, {
|
|
21768
|
-
props: propsDoc$
|
|
21769
|
-
propTypes: propTypes$
|
|
21794
|
+
props: propsDoc$1a,
|
|
21795
|
+
propTypes: propTypes$1b,
|
|
21770
21796
|
displayName: "SpsTooltip"
|
|
21771
21797
|
});
|
|
21772
|
-
const propsDoc$
|
|
21798
|
+
const propsDoc$19 = {
|
|
21773
21799
|
error: "boolean",
|
|
21774
21800
|
errors: "ReactNodeOrRenderFn",
|
|
21775
21801
|
help: "ReactNodeOrRenderFn",
|
|
21776
21802
|
labelFor: "SpsFormFieldMeta<any>",
|
|
21777
21803
|
required: "boolean"
|
|
21778
21804
|
};
|
|
21779
|
-
const propTypes$
|
|
21780
|
-
error: propTypes$
|
|
21805
|
+
const propTypes$1a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21806
|
+
error: propTypes$1H.exports.bool,
|
|
21781
21807
|
errors: nodeOrRenderFn,
|
|
21782
21808
|
help: nodeOrRenderFn,
|
|
21783
|
-
labelFor: propTypes$
|
|
21809
|
+
labelFor: propTypes$1H.exports.oneOfType([
|
|
21784
21810
|
impl(),
|
|
21785
21811
|
impl()
|
|
21786
21812
|
]),
|
|
21787
|
-
required: propTypes$
|
|
21813
|
+
required: propTypes$1H.exports.bool
|
|
21788
21814
|
});
|
|
21789
21815
|
function SpsDescriptionListTerm(props2) {
|
|
21790
21816
|
const _a = props2, {
|
|
@@ -21840,16 +21866,16 @@ function SpsDescriptionListTerm(props2) {
|
|
|
21840
21866
|
}, contentOf(tipKind === TooltipKind.ERROR ? errors : help)));
|
|
21841
21867
|
}
|
|
21842
21868
|
Object.assign(SpsDescriptionListTerm, {
|
|
21843
|
-
props: propsDoc$
|
|
21844
|
-
propTypes: propTypes$
|
|
21869
|
+
props: propsDoc$19,
|
|
21870
|
+
propTypes: propTypes$1a,
|
|
21845
21871
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
21846
21872
|
});
|
|
21847
21873
|
function SpsDt(p2) {
|
|
21848
21874
|
return SpsDescriptionListTerm(p2);
|
|
21849
21875
|
}
|
|
21850
21876
|
Object.assign(SpsDt, {
|
|
21851
|
-
props: propsDoc$
|
|
21852
|
-
propTypes: propTypes$
|
|
21877
|
+
props: propsDoc$19,
|
|
21878
|
+
propTypes: propTypes$1a,
|
|
21853
21879
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
21854
21880
|
});
|
|
21855
21881
|
const SpsDescriptionListExamples = {
|
|
@@ -22505,19 +22531,19 @@ const SpsDropdownExamples = {
|
|
|
22505
22531
|
}
|
|
22506
22532
|
}
|
|
22507
22533
|
};
|
|
22508
|
-
const propsDoc$
|
|
22534
|
+
const propsDoc$18 = {
|
|
22509
22535
|
checked: "boolean",
|
|
22510
22536
|
onChange: "ChangeEventHandler",
|
|
22511
22537
|
indeterminate: "boolean",
|
|
22512
22538
|
disabled: "boolean",
|
|
22513
22539
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
22514
22540
|
};
|
|
22515
|
-
const propTypes$
|
|
22516
|
-
checked: propTypes$
|
|
22541
|
+
const propTypes$19 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22542
|
+
checked: propTypes$1H.exports.bool,
|
|
22517
22543
|
onChange: fun(),
|
|
22518
|
-
indeterminate: propTypes$
|
|
22519
|
-
options: propTypes$
|
|
22520
|
-
disabled: propTypes$
|
|
22544
|
+
indeterminate: propTypes$1H.exports.bool,
|
|
22545
|
+
options: propTypes$1H.exports.arrayOf(propTypes$1H.exports.oneOfType([propTypes$1H.exports.func, propTypes$1H.exports.any])).isRequired,
|
|
22546
|
+
disabled: propTypes$1H.exports.bool
|
|
22521
22547
|
});
|
|
22522
22548
|
function SpsCheckboxDropdown(props2) {
|
|
22523
22549
|
const _a = props2, {
|
|
@@ -22551,14 +22577,14 @@ function SpsCheckboxDropdown(props2) {
|
|
|
22551
22577
|
}));
|
|
22552
22578
|
}
|
|
22553
22579
|
Object.assign(SpsCheckboxDropdown, {
|
|
22554
|
-
props: propsDoc$
|
|
22555
|
-
propTypes: propTypes$
|
|
22580
|
+
props: propsDoc$18,
|
|
22581
|
+
propTypes: propTypes$19,
|
|
22556
22582
|
displayName: "SpsCheckboxDropdown"
|
|
22557
22583
|
});
|
|
22558
|
-
const propsDoc$
|
|
22584
|
+
const propsDoc$17 = {
|
|
22559
22585
|
kind: "FeedbackBlockKind"
|
|
22560
22586
|
};
|
|
22561
|
-
const propTypes$
|
|
22587
|
+
const propTypes$18 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22562
22588
|
kind: enumValue(FeedbackBlockKind)
|
|
22563
22589
|
});
|
|
22564
22590
|
function SpsFeedbackBlock(props2) {
|
|
@@ -22589,8 +22615,8 @@ function SpsFeedbackBlock(props2) {
|
|
|
22589
22615
|
}, children));
|
|
22590
22616
|
}
|
|
22591
22617
|
Object.assign(SpsFeedbackBlock, {
|
|
22592
|
-
props: propsDoc$
|
|
22593
|
-
propTypes: propTypes$
|
|
22618
|
+
props: propsDoc$17,
|
|
22619
|
+
propTypes: propTypes$18,
|
|
22594
22620
|
displayName: "SpsFeedbackBlock"
|
|
22595
22621
|
});
|
|
22596
22622
|
const SpsFeedbackBlockExamples = {
|
|
@@ -22692,7 +22718,7 @@ const SpsFeedbackBlockExamples = {
|
|
|
22692
22718
|
}
|
|
22693
22719
|
}
|
|
22694
22720
|
};
|
|
22695
|
-
const propsDoc$
|
|
22721
|
+
const propsDoc$16 = {
|
|
22696
22722
|
errors: "ReactNodeOrRenderFn",
|
|
22697
22723
|
formMeta: "SpsFormSetMeta<any>",
|
|
22698
22724
|
legend: "string",
|
|
@@ -22701,16 +22727,16 @@ const propsDoc$15 = {
|
|
|
22701
22727
|
onToggled: "(isEnabled: boolean) => void",
|
|
22702
22728
|
tooltip: "string"
|
|
22703
22729
|
};
|
|
22704
|
-
const propTypes$
|
|
22730
|
+
const propTypes$17 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22705
22731
|
errors: nodeOrRenderFn,
|
|
22706
22732
|
formArray: impl(),
|
|
22707
22733
|
formGroup: impl(),
|
|
22708
22734
|
formMeta: impl(),
|
|
22709
|
-
legend: propTypes$
|
|
22710
|
-
optional: propTypes$
|
|
22711
|
-
enabled: propTypes$
|
|
22735
|
+
legend: propTypes$1H.exports.string,
|
|
22736
|
+
optional: propTypes$1H.exports.bool,
|
|
22737
|
+
enabled: propTypes$1H.exports.bool,
|
|
22712
22738
|
onToggled: fun(),
|
|
22713
|
-
tooltip: propTypes$
|
|
22739
|
+
tooltip: propTypes$1H.exports.string
|
|
22714
22740
|
});
|
|
22715
22741
|
function SpsFieldset({
|
|
22716
22742
|
children,
|
|
@@ -22785,8 +22811,8 @@ function SpsFieldset({
|
|
|
22785
22811
|
}, contentOf(errors)), children));
|
|
22786
22812
|
}
|
|
22787
22813
|
Object.assign(SpsFieldset, {
|
|
22788
|
-
props: propsDoc$
|
|
22789
|
-
propTypes: propTypes$
|
|
22814
|
+
props: propsDoc$16,
|
|
22815
|
+
propTypes: propTypes$17,
|
|
22790
22816
|
displayName: "SpsFieldset"
|
|
22791
22817
|
});
|
|
22792
22818
|
const SpsFieldsetExamples = {
|
|
@@ -23072,8 +23098,8 @@ const SpsFieldsetExamples = {
|
|
|
23072
23098
|
}
|
|
23073
23099
|
}
|
|
23074
23100
|
};
|
|
23075
|
-
const propsDoc$
|
|
23076
|
-
const propTypes$
|
|
23101
|
+
const propsDoc$15 = {};
|
|
23102
|
+
const propTypes$16 = __spreadValues({}, spsGlobalPropTypes);
|
|
23077
23103
|
function SpsFocusedTaskActions(props2) {
|
|
23078
23104
|
const _a = props2, {
|
|
23079
23105
|
children,
|
|
@@ -23094,18 +23120,18 @@ function SpsFocusedTaskActions(props2) {
|
|
|
23094
23120
|
}, children)));
|
|
23095
23121
|
}
|
|
23096
23122
|
Object.assign(SpsFocusedTaskActions, {
|
|
23097
|
-
props: propsDoc$
|
|
23098
|
-
propTypes: propTypes$
|
|
23123
|
+
props: propsDoc$15,
|
|
23124
|
+
propTypes: propTypes$16,
|
|
23099
23125
|
displayName: "SpsFocusedTaskActions"
|
|
23100
23126
|
});
|
|
23101
|
-
const propsDoc$
|
|
23127
|
+
const propsDoc$14 = {
|
|
23102
23128
|
fullWidth: "boolean",
|
|
23103
23129
|
isOpen: "boolean",
|
|
23104
23130
|
onClose: "() => void"
|
|
23105
23131
|
};
|
|
23106
|
-
const propTypes$
|
|
23107
|
-
fullWidth: propTypes$
|
|
23108
|
-
isOpen: propTypes$
|
|
23132
|
+
const propTypes$15 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
23133
|
+
fullWidth: propTypes$1H.exports.bool,
|
|
23134
|
+
isOpen: propTypes$1H.exports.bool,
|
|
23109
23135
|
onClose: fun()
|
|
23110
23136
|
});
|
|
23111
23137
|
function SpsFocusedTask(props2) {
|
|
@@ -23162,8 +23188,8 @@ function SpsFocusedTask(props2) {
|
|
|
23162
23188
|
}, isOpen && content)), actions);
|
|
23163
23189
|
}
|
|
23164
23190
|
Object.assign(SpsFocusedTask, {
|
|
23165
|
-
props: propsDoc$
|
|
23166
|
-
propTypes: propTypes$
|
|
23191
|
+
props: propsDoc$14,
|
|
23192
|
+
propTypes: propTypes$15,
|
|
23167
23193
|
displayName: "SpsFocusedTask"
|
|
23168
23194
|
});
|
|
23169
23195
|
const SpsFocusedTaskExamples = {
|
|
@@ -23772,19 +23798,19 @@ const SpsAddRemoveFormRowExamples = {
|
|
|
23772
23798
|
}
|
|
23773
23799
|
}
|
|
23774
23800
|
};
|
|
23775
|
-
const propsDoc$
|
|
23801
|
+
const propsDoc$13 = {
|
|
23776
23802
|
imgSrc: "string",
|
|
23777
23803
|
kind: "GrowlerKind",
|
|
23778
23804
|
onClose: "() => void",
|
|
23779
23805
|
persist: "boolean",
|
|
23780
23806
|
title: "string"
|
|
23781
23807
|
};
|
|
23782
|
-
const propTypes$
|
|
23783
|
-
imgSrc: propTypes$
|
|
23808
|
+
const propTypes$14 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
23809
|
+
imgSrc: propTypes$1H.exports.string,
|
|
23784
23810
|
kind: enumValue(GrowlerKind),
|
|
23785
23811
|
onClose: fun(),
|
|
23786
|
-
persist: propTypes$
|
|
23787
|
-
title: propTypes$
|
|
23812
|
+
persist: propTypes$1H.exports.bool,
|
|
23813
|
+
title: propTypes$1H.exports.string
|
|
23788
23814
|
});
|
|
23789
23815
|
function SpsGrowler(props2) {
|
|
23790
23816
|
const _a = props2, {
|
|
@@ -23890,8 +23916,8 @@ function SpsGrowler(props2) {
|
|
|
23890
23916
|
})))));
|
|
23891
23917
|
}
|
|
23892
23918
|
Object.assign(SpsGrowler, {
|
|
23893
|
-
props: propsDoc$
|
|
23894
|
-
propTypes: propTypes$
|
|
23919
|
+
props: propsDoc$13,
|
|
23920
|
+
propTypes: propTypes$14,
|
|
23895
23921
|
displayName: "SpsGrowler"
|
|
23896
23922
|
});
|
|
23897
23923
|
const SpsGrowlerExamples = {
|
|
@@ -24266,18 +24292,18 @@ const SpsGrowlerExamples = {
|
|
|
24266
24292
|
}
|
|
24267
24293
|
}
|
|
24268
24294
|
};
|
|
24269
|
-
const propsDoc$
|
|
24295
|
+
const propsDoc$12 = {
|
|
24270
24296
|
disabled: "boolean",
|
|
24271
24297
|
min: "number",
|
|
24272
24298
|
max: "number",
|
|
24273
24299
|
step: "number",
|
|
24274
24300
|
onValueChange: "(newValue: number) => void"
|
|
24275
24301
|
};
|
|
24276
|
-
const propTypes$
|
|
24277
|
-
disabled: propTypes$
|
|
24278
|
-
min: propTypes$
|
|
24279
|
-
max: propTypes$
|
|
24280
|
-
step: propTypes$
|
|
24302
|
+
const propTypes$13 = __spreadValues({
|
|
24303
|
+
disabled: propTypes$1H.exports.bool,
|
|
24304
|
+
min: propTypes$1H.exports.number,
|
|
24305
|
+
max: propTypes$1H.exports.number,
|
|
24306
|
+
step: propTypes$1H.exports.number,
|
|
24281
24307
|
onValueChange: fun()
|
|
24282
24308
|
}, spsGlobalPropTypes);
|
|
24283
24309
|
function SpsIncrementor(props2) {
|
|
@@ -24380,8 +24406,8 @@ function SpsIncrementor(props2) {
|
|
|
24380
24406
|
}))));
|
|
24381
24407
|
}
|
|
24382
24408
|
Object.assign(SpsIncrementor, {
|
|
24383
|
-
props: propsDoc$
|
|
24384
|
-
propTypes: propTypes$
|
|
24409
|
+
props: propsDoc$12,
|
|
24410
|
+
propTypes: propTypes$13,
|
|
24385
24411
|
displayName: "SpsIncrementor"
|
|
24386
24412
|
});
|
|
24387
24413
|
const SpsIncrementorExamples = {
|
|
@@ -24420,7 +24446,7 @@ function SpsInsights(props2) {
|
|
|
24420
24446
|
className: "insight-tile-wrapper"
|
|
24421
24447
|
}, children);
|
|
24422
24448
|
}
|
|
24423
|
-
const propsDoc$
|
|
24449
|
+
const propsDoc$11 = {
|
|
24424
24450
|
horizontal: "boolean",
|
|
24425
24451
|
icon: "SpsIcon",
|
|
24426
24452
|
kind: "SpsInsightTileKind",
|
|
@@ -24429,14 +24455,14 @@ const propsDoc$10 = {
|
|
|
24429
24455
|
partnerCount: "number",
|
|
24430
24456
|
totalPartners: "number"
|
|
24431
24457
|
};
|
|
24432
|
-
const propTypes$
|
|
24433
|
-
horizontal: propTypes$
|
|
24458
|
+
const propTypes$12 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24459
|
+
horizontal: propTypes$1H.exports.bool,
|
|
24434
24460
|
icon: enumValue(SpsIcon),
|
|
24435
24461
|
kind: enumValue(SpsInsightTileKind),
|
|
24436
|
-
title: propTypes$
|
|
24437
|
-
metric: propTypes$
|
|
24438
|
-
partnerCount: propTypes$
|
|
24439
|
-
totalPartners: propTypes$
|
|
24462
|
+
title: propTypes$1H.exports.string,
|
|
24463
|
+
metric: propTypes$1H.exports.number || propTypes$1H.exports.string,
|
|
24464
|
+
partnerCount: propTypes$1H.exports.number,
|
|
24465
|
+
totalPartners: propTypes$1H.exports.number
|
|
24440
24466
|
});
|
|
24441
24467
|
function SpsInsightTile(props2) {
|
|
24442
24468
|
const _a = props2, {
|
|
@@ -24496,8 +24522,8 @@ function SpsInsightTile(props2) {
|
|
|
24496
24522
|
}, t2("design-system:insightTile.partners")))));
|
|
24497
24523
|
}
|
|
24498
24524
|
Object.assign(SpsInsightTile, {
|
|
24499
|
-
props: propsDoc$
|
|
24500
|
-
propTypes: propTypes$
|
|
24525
|
+
props: propsDoc$11,
|
|
24526
|
+
propTypes: propTypes$12,
|
|
24501
24527
|
displayName: "SpsInsightTile"
|
|
24502
24528
|
});
|
|
24503
24529
|
const SpsInsightTileExamples = {
|
|
@@ -24771,11 +24797,11 @@ const SpsInsightTileExamples = {
|
|
|
24771
24797
|
}
|
|
24772
24798
|
}
|
|
24773
24799
|
};
|
|
24774
|
-
const propsDoc
|
|
24800
|
+
const propsDoc$10 = {
|
|
24775
24801
|
inline: "boolean"
|
|
24776
24802
|
};
|
|
24777
|
-
const propTypes$
|
|
24778
|
-
inline: propTypes$
|
|
24803
|
+
const propTypes$11 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24804
|
+
inline: propTypes$1H.exports.bool
|
|
24779
24805
|
});
|
|
24780
24806
|
function SpsKeyValueList(props2) {
|
|
24781
24807
|
const _a = props2, {
|
|
@@ -24798,16 +24824,16 @@ function SpsKeyValueList(props2) {
|
|
|
24798
24824
|
}, rest), children);
|
|
24799
24825
|
}
|
|
24800
24826
|
Object.assign(SpsKeyValueList, {
|
|
24801
|
-
props: propsDoc
|
|
24802
|
-
propTypes: propTypes$
|
|
24827
|
+
props: propsDoc$10,
|
|
24828
|
+
propTypes: propTypes$11,
|
|
24803
24829
|
displayName: "SpsKeyValueList"
|
|
24804
24830
|
});
|
|
24805
|
-
const propsDoc
|
|
24831
|
+
const propsDoc$$ = {
|
|
24806
24832
|
itemKey: { type: "string | nodeOrRenderFn", required: true },
|
|
24807
24833
|
titleColor: "KeyValueListTitleColor"
|
|
24808
24834
|
};
|
|
24809
|
-
const propTypes
|
|
24810
|
-
itemKey: propTypes$
|
|
24835
|
+
const propTypes$10 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24836
|
+
itemKey: propTypes$1H.exports.string.isRequired || nodeOrRenderFn.isRequired,
|
|
24811
24837
|
titleColor: enumValue(KeyValueListTitleColor)
|
|
24812
24838
|
});
|
|
24813
24839
|
function SpsKeyValueListItem(props2) {
|
|
@@ -24839,8 +24865,8 @@ function SpsKeyValueListItem(props2) {
|
|
|
24839
24865
|
}, children));
|
|
24840
24866
|
}
|
|
24841
24867
|
Object.assign(SpsKeyValueListItem, {
|
|
24842
|
-
props: propsDoc
|
|
24843
|
-
propTypes: propTypes
|
|
24868
|
+
props: propsDoc$$,
|
|
24869
|
+
propTypes: propTypes$10,
|
|
24844
24870
|
displayName: "SpsKeyValueListItem"
|
|
24845
24871
|
});
|
|
24846
24872
|
const SpsKeyValueListExamples = {
|
|
@@ -24883,7 +24909,7 @@ const SpsKeyValueListExamples = {
|
|
|
24883
24909
|
}
|
|
24884
24910
|
}
|
|
24885
24911
|
};
|
|
24886
|
-
const propsDoc$
|
|
24912
|
+
const propsDoc$_ = {
|
|
24887
24913
|
for: { type: "SpsFormMetaBase<any>", required: true },
|
|
24888
24914
|
description: "string",
|
|
24889
24915
|
stronglySuggested: "boolean",
|
|
@@ -24892,16 +24918,16 @@ const propsDoc$Z = {
|
|
|
24892
24918
|
helpIconColor: "string",
|
|
24893
24919
|
errors: "ReactNodeOrRenderFn"
|
|
24894
24920
|
};
|
|
24895
|
-
const propTypes
|
|
24896
|
-
description: propTypes$
|
|
24897
|
-
for: propTypes$
|
|
24921
|
+
const propTypes$$ = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24922
|
+
description: propTypes$1H.exports.string,
|
|
24923
|
+
for: propTypes$1H.exports.oneOfType([
|
|
24898
24924
|
impl(),
|
|
24899
24925
|
impl()
|
|
24900
24926
|
]).isRequired,
|
|
24901
|
-
stronglySuggested: propTypes$
|
|
24927
|
+
stronglySuggested: propTypes$1H.exports.bool,
|
|
24902
24928
|
help: nodeOrRenderFn,
|
|
24903
24929
|
helpIcon: enumValue(SpsIcon),
|
|
24904
|
-
helpIconColor: propTypes$
|
|
24930
|
+
helpIconColor: propTypes$1H.exports.string,
|
|
24905
24931
|
errors: nodeOrRenderFn
|
|
24906
24932
|
});
|
|
24907
24933
|
function SpsLabel(_y) {
|
|
@@ -25089,8 +25115,8 @@ function SpsLabel(_y) {
|
|
|
25089
25115
|
}, description));
|
|
25090
25116
|
}
|
|
25091
25117
|
Object.assign(SpsLabel, {
|
|
25092
|
-
props: propsDoc$
|
|
25093
|
-
propTypes: propTypes
|
|
25118
|
+
props: propsDoc$_,
|
|
25119
|
+
propTypes: propTypes$$,
|
|
25094
25120
|
displayName: "SpsLabel"
|
|
25095
25121
|
});
|
|
25096
25122
|
const SpsLabelExamples = {
|
|
@@ -25268,13 +25294,13 @@ const SpsLabelExamples = {
|
|
|
25268
25294
|
}
|
|
25269
25295
|
}
|
|
25270
25296
|
};
|
|
25271
|
-
const propsDoc$
|
|
25297
|
+
const propsDoc$Z = {
|
|
25272
25298
|
clearSelected: { type: "() => void", required: true },
|
|
25273
25299
|
itemsSelected: { type: "string | number", required: true }
|
|
25274
25300
|
};
|
|
25275
|
-
const propTypes$
|
|
25301
|
+
const propTypes$_ = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25276
25302
|
clearSelected: fun().isRequired,
|
|
25277
|
-
itemsSelected: propTypes$
|
|
25303
|
+
itemsSelected: propTypes$1H.exports.oneOfType([propTypes$1H.exports.string, propTypes$1H.exports.number])
|
|
25278
25304
|
});
|
|
25279
25305
|
function SpsListActionBar(props2) {
|
|
25280
25306
|
const _a = props2, {
|
|
@@ -25324,8 +25350,8 @@ function SpsListActionBar(props2) {
|
|
|
25324
25350
|
}, t2("design-system:listActionBar.clearSelected")))));
|
|
25325
25351
|
}
|
|
25326
25352
|
Object.assign(SpsListActionBar, {
|
|
25327
|
-
props: propsDoc$
|
|
25328
|
-
propTypes: propTypes$
|
|
25353
|
+
props: propsDoc$Z,
|
|
25354
|
+
propTypes: propTypes$_,
|
|
25329
25355
|
displayName: "SpsListActionBar"
|
|
25330
25356
|
});
|
|
25331
25357
|
const SpsTableContext = React.createContext({
|
|
@@ -25652,7 +25678,7 @@ const useMaxHeightTableStyle = (containerRef, maxHeight) => {
|
|
|
25652
25678
|
}
|
|
25653
25679
|
});
|
|
25654
25680
|
};
|
|
25655
|
-
const propsDoc$
|
|
25681
|
+
const propsDoc$Y = {
|
|
25656
25682
|
sort: "SortedColumn",
|
|
25657
25683
|
onSortChange: "SortChangeHandler",
|
|
25658
25684
|
selectable: "boolean",
|
|
@@ -25662,13 +25688,13 @@ const propsDoc$X = {
|
|
|
25662
25688
|
resizeState: "ResizeState",
|
|
25663
25689
|
onResizeStateChange: "ResizeStateChangeHandler"
|
|
25664
25690
|
};
|
|
25665
|
-
const propTypes$
|
|
25691
|
+
const propTypes$Z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25666
25692
|
onSortChange: fun(),
|
|
25667
|
-
sort: propTypes$
|
|
25668
|
-
selectable: propTypes$
|
|
25669
|
-
maxHeightPx: propTypes$
|
|
25670
|
-
maxHeightRem: propTypes$
|
|
25671
|
-
resizeable: propTypes$
|
|
25693
|
+
sort: propTypes$1H.exports.arrayOf(impl()),
|
|
25694
|
+
selectable: propTypes$1H.exports.bool,
|
|
25695
|
+
maxHeightPx: propTypes$1H.exports.number,
|
|
25696
|
+
maxHeightRem: propTypes$1H.exports.number,
|
|
25697
|
+
resizeable: propTypes$1H.exports.bool,
|
|
25672
25698
|
resizeState: impl(),
|
|
25673
25699
|
onResizeStateChange: fun()
|
|
25674
25700
|
});
|
|
@@ -25726,8 +25752,8 @@ function SpsTable(_A) {
|
|
|
25726
25752
|
}, rest), children)));
|
|
25727
25753
|
}
|
|
25728
25754
|
Object.assign(SpsTable, {
|
|
25729
|
-
props: propsDoc$
|
|
25730
|
-
propTypes: propTypes$
|
|
25755
|
+
props: propsDoc$Y,
|
|
25756
|
+
propTypes: propTypes$Z,
|
|
25731
25757
|
displayName: "SpsTable"
|
|
25732
25758
|
});
|
|
25733
25759
|
function findTableElementParent(element) {
|
|
@@ -25860,17 +25886,17 @@ const useColumnResizer = ({
|
|
|
25860
25886
|
]);
|
|
25861
25887
|
return { isResizeable };
|
|
25862
25888
|
};
|
|
25863
|
-
const propsDoc$
|
|
25889
|
+
const propsDoc$X = {
|
|
25864
25890
|
controlCell: "boolean",
|
|
25865
25891
|
sortKey: "string",
|
|
25866
25892
|
resizeKey: "string",
|
|
25867
25893
|
pinned: "boolean"
|
|
25868
25894
|
};
|
|
25869
|
-
const propTypes$
|
|
25870
|
-
controlCell: propTypes$
|
|
25871
|
-
sortKey: propTypes$
|
|
25872
|
-
resizeKey: propTypes$
|
|
25873
|
-
pinned: propTypes$
|
|
25895
|
+
const propTypes$Y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25896
|
+
controlCell: propTypes$1H.exports.bool,
|
|
25897
|
+
sortKey: propTypes$1H.exports.string,
|
|
25898
|
+
resizeKey: propTypes$1H.exports.string,
|
|
25899
|
+
pinned: propTypes$1H.exports.bool
|
|
25874
25900
|
});
|
|
25875
25901
|
function SpsTableHeader(_C) {
|
|
25876
25902
|
var _D = _C, {
|
|
@@ -25929,23 +25955,23 @@ function SpsTableHeader(_C) {
|
|
|
25929
25955
|
}));
|
|
25930
25956
|
}
|
|
25931
25957
|
Object.assign(SpsTableHeader, {
|
|
25932
|
-
props: propsDoc$
|
|
25933
|
-
propTypes: propTypes$
|
|
25958
|
+
props: propsDoc$X,
|
|
25959
|
+
propTypes: propTypes$Y,
|
|
25934
25960
|
displayName: "SpsTableHeader"
|
|
25935
25961
|
});
|
|
25936
25962
|
function SpsTh(props2) {
|
|
25937
25963
|
return /* @__PURE__ */ React.createElement(SpsTableHeader, __spreadValues({}, props2));
|
|
25938
25964
|
}
|
|
25939
25965
|
Object.assign(SpsTh, {
|
|
25940
|
-
props: propsDoc$
|
|
25941
|
-
propTypes: propTypes$
|
|
25966
|
+
props: propsDoc$X,
|
|
25967
|
+
propTypes: propTypes$Y,
|
|
25942
25968
|
displayName: "SpsTh"
|
|
25943
25969
|
});
|
|
25944
|
-
const propsDoc$
|
|
25970
|
+
const propsDoc$W = {
|
|
25945
25971
|
pinned: "boolean"
|
|
25946
25972
|
};
|
|
25947
|
-
const propTypes$
|
|
25948
|
-
pinned: propTypes$
|
|
25973
|
+
const propTypes$X = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25974
|
+
pinned: propTypes$1H.exports.bool
|
|
25949
25975
|
});
|
|
25950
25976
|
function SpsTableHead(_E) {
|
|
25951
25977
|
var _F = _E, {
|
|
@@ -25968,20 +25994,20 @@ function SpsTableHead(_E) {
|
|
|
25968
25994
|
}, rest), children);
|
|
25969
25995
|
}
|
|
25970
25996
|
Object.assign(SpsTableHead, {
|
|
25971
|
-
props: propsDoc$
|
|
25972
|
-
propTypes: propTypes$
|
|
25997
|
+
props: propsDoc$W,
|
|
25998
|
+
propTypes: propTypes$X,
|
|
25973
25999
|
displayName: "SpsTableHead"
|
|
25974
26000
|
});
|
|
25975
26001
|
function SpsThead(props2) {
|
|
25976
26002
|
return /* @__PURE__ */ React.createElement(SpsTableHead, __spreadValues({}, props2));
|
|
25977
26003
|
}
|
|
25978
26004
|
Object.assign(SpsThead, {
|
|
25979
|
-
props: propsDoc$
|
|
25980
|
-
propTypes: propTypes$
|
|
26005
|
+
props: propsDoc$W,
|
|
26006
|
+
propTypes: propTypes$X,
|
|
25981
26007
|
displayName: "SpsThead"
|
|
25982
26008
|
});
|
|
25983
|
-
const propsDoc$
|
|
25984
|
-
const propTypes$
|
|
26009
|
+
const propsDoc$V = {};
|
|
26010
|
+
const propTypes$W = __spreadValues({}, spsGlobalPropTypes);
|
|
25985
26011
|
function SpsTableRow(_G) {
|
|
25986
26012
|
var _H = _G, {
|
|
25987
26013
|
children,
|
|
@@ -26002,20 +26028,20 @@ function SpsTableRow(_G) {
|
|
|
26002
26028
|
}, rest), children);
|
|
26003
26029
|
}
|
|
26004
26030
|
Object.assign(SpsTableRow, {
|
|
26005
|
-
props: propsDoc$
|
|
26006
|
-
propTypes: propTypes$
|
|
26031
|
+
props: propsDoc$V,
|
|
26032
|
+
propTypes: propTypes$W,
|
|
26007
26033
|
displayName: "SpsTableRow"
|
|
26008
26034
|
});
|
|
26009
26035
|
function SpsTr(props2) {
|
|
26010
26036
|
return /* @__PURE__ */ React.createElement(SpsTableRow, __spreadValues({}, props2));
|
|
26011
26037
|
}
|
|
26012
26038
|
Object.assign(SpsTr, {
|
|
26013
|
-
props: propsDoc$
|
|
26014
|
-
propTypes: propTypes$
|
|
26039
|
+
props: propsDoc$V,
|
|
26040
|
+
propTypes: propTypes$W,
|
|
26015
26041
|
displayName: "SpsTr"
|
|
26016
26042
|
});
|
|
26017
|
-
const propsDoc$
|
|
26018
|
-
const propTypes$
|
|
26043
|
+
const propsDoc$U = {};
|
|
26044
|
+
const propTypes$V = __spreadValues({}, spsGlobalPropTypes);
|
|
26019
26045
|
function SpsTableBody(props2) {
|
|
26020
26046
|
const _a = props2, {
|
|
26021
26047
|
children,
|
|
@@ -26035,35 +26061,35 @@ function SpsTableBody(props2) {
|
|
|
26035
26061
|
}, rest), children);
|
|
26036
26062
|
}
|
|
26037
26063
|
Object.assign(SpsTableBody, {
|
|
26038
|
-
props: propsDoc$
|
|
26039
|
-
propTypes: propTypes$
|
|
26064
|
+
props: propsDoc$U,
|
|
26065
|
+
propTypes: propTypes$V,
|
|
26040
26066
|
displayName: "SpsTableBody"
|
|
26041
26067
|
});
|
|
26042
26068
|
function SpsTbody(props2) {
|
|
26043
26069
|
return /* @__PURE__ */ React.createElement(SpsTableBody, __spreadValues({}, props2));
|
|
26044
26070
|
}
|
|
26045
26071
|
Object.assign(SpsTbody, {
|
|
26046
|
-
props: propsDoc$
|
|
26047
|
-
propTypes: propTypes$
|
|
26072
|
+
props: propsDoc$U,
|
|
26073
|
+
propTypes: propTypes$V,
|
|
26048
26074
|
displayName: "SpsTbody"
|
|
26049
26075
|
});
|
|
26050
|
-
const propsDoc$
|
|
26076
|
+
const propsDoc$T = {
|
|
26051
26077
|
buttonCell: "boolean",
|
|
26052
26078
|
controlCell: "boolean",
|
|
26053
26079
|
wrap: "SpsTableCellWrapWidth",
|
|
26054
26080
|
pinned: "boolean"
|
|
26055
26081
|
};
|
|
26056
|
-
const propTypes$
|
|
26057
|
-
buttonCell: propTypes$
|
|
26058
|
-
controlCell: propTypes$
|
|
26059
|
-
wrap: propTypes$
|
|
26082
|
+
const propTypes$U = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26083
|
+
buttonCell: propTypes$1H.exports.bool,
|
|
26084
|
+
controlCell: propTypes$1H.exports.bool,
|
|
26085
|
+
wrap: propTypes$1H.exports.oneOf([
|
|
26060
26086
|
200,
|
|
26061
26087
|
300,
|
|
26062
26088
|
400,
|
|
26063
26089
|
500,
|
|
26064
26090
|
600
|
|
26065
26091
|
]),
|
|
26066
|
-
pinned: propTypes$
|
|
26092
|
+
pinned: propTypes$1H.exports.bool
|
|
26067
26093
|
});
|
|
26068
26094
|
function SpsTableCell(props2) {
|
|
26069
26095
|
const _a = props2, {
|
|
@@ -26096,20 +26122,20 @@ function SpsTableCell(props2) {
|
|
|
26096
26122
|
}, rest), children);
|
|
26097
26123
|
}
|
|
26098
26124
|
Object.assign(SpsTableCell, {
|
|
26099
|
-
props: propsDoc$
|
|
26100
|
-
propTypes: propTypes$
|
|
26125
|
+
props: propsDoc$T,
|
|
26126
|
+
propTypes: propTypes$U,
|
|
26101
26127
|
displayName: "SpsTableCell"
|
|
26102
26128
|
});
|
|
26103
26129
|
function SpsTd(props2) {
|
|
26104
26130
|
return /* @__PURE__ */ React.createElement(SpsTableCell, __spreadValues({}, props2));
|
|
26105
26131
|
}
|
|
26106
26132
|
Object.assign(SpsTd, {
|
|
26107
|
-
props: propsDoc$
|
|
26108
|
-
propTypes: propTypes$
|
|
26133
|
+
props: propsDoc$T,
|
|
26134
|
+
propTypes: propTypes$U,
|
|
26109
26135
|
displayName: "SpsTd"
|
|
26110
26136
|
});
|
|
26111
|
-
const propsDoc$
|
|
26112
|
-
const propTypes$
|
|
26137
|
+
const propsDoc$S = {};
|
|
26138
|
+
const propTypes$T = __spreadValues({}, spsGlobalPropTypes);
|
|
26113
26139
|
const CSS_BLOCK$1 = "sps-icon-button-panel";
|
|
26114
26140
|
function SpsIconButtonPanel(_I) {
|
|
26115
26141
|
var _J = _I, {
|
|
@@ -26128,8 +26154,8 @@ function SpsIconButtonPanel(_I) {
|
|
|
26128
26154
|
}, rest), iconButtons);
|
|
26129
26155
|
}
|
|
26130
26156
|
Object.assign(SpsIconButtonPanel, {
|
|
26131
|
-
props: propsDoc$
|
|
26132
|
-
propTypes: propTypes$
|
|
26157
|
+
props: propsDoc$S,
|
|
26158
|
+
propTypes: propTypes$T,
|
|
26133
26159
|
displayName: "SpsIconButtonPanel"
|
|
26134
26160
|
});
|
|
26135
26161
|
const SpsTableExamples = {
|
|
@@ -27453,8 +27479,8 @@ const SpsListActionBarExamples = {
|
|
|
27453
27479
|
}
|
|
27454
27480
|
}
|
|
27455
27481
|
};
|
|
27456
|
-
const propTypes$
|
|
27457
|
-
tabs: propTypes$
|
|
27482
|
+
const propTypes$S = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27483
|
+
tabs: propTypes$1H.exports.arrayOf(impl()).isRequired,
|
|
27458
27484
|
activeTab: impl(),
|
|
27459
27485
|
onTabChange: fun()
|
|
27460
27486
|
});
|
|
@@ -27518,17 +27544,17 @@ function SpsTabs(props2) {
|
|
|
27518
27544
|
}, tab2.tag)))));
|
|
27519
27545
|
}
|
|
27520
27546
|
Object.assign(SpsTabs, {
|
|
27521
|
-
propTypes: propTypes$
|
|
27547
|
+
propTypes: propTypes$S,
|
|
27522
27548
|
displayName: "SpsTabs"
|
|
27523
27549
|
});
|
|
27524
|
-
const propsDoc$
|
|
27550
|
+
const propsDoc$R = {
|
|
27525
27551
|
resultsCount: "number",
|
|
27526
27552
|
totalResults: "number",
|
|
27527
27553
|
onClear: "() => void"
|
|
27528
27554
|
};
|
|
27529
|
-
const propTypes$
|
|
27530
|
-
resultsCount: propTypes$
|
|
27531
|
-
totalResults: propTypes$
|
|
27555
|
+
const propTypes$R = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27556
|
+
resultsCount: propTypes$1H.exports.number,
|
|
27557
|
+
totalResults: propTypes$1H.exports.number,
|
|
27532
27558
|
onClear: fun()
|
|
27533
27559
|
});
|
|
27534
27560
|
function SpsSearchResultsBar(props2) {
|
|
@@ -27579,20 +27605,20 @@ function SpsSearchResultsBar(props2) {
|
|
|
27579
27605
|
}, t2("design-system:searchResultsBar.clear"))));
|
|
27580
27606
|
}
|
|
27581
27607
|
Object.assign(SpsSearchResultsBar, {
|
|
27582
|
-
props: propsDoc$
|
|
27583
|
-
propTypes: propTypes$
|
|
27608
|
+
props: propsDoc$R,
|
|
27609
|
+
propTypes: propTypes$R,
|
|
27584
27610
|
displayName: "SpsSearchResultsBar"
|
|
27585
27611
|
});
|
|
27586
|
-
const propsDoc$
|
|
27612
|
+
const propsDoc$Q = {
|
|
27587
27613
|
results: "number",
|
|
27588
27614
|
selections: "{ [key: string]: string[] }",
|
|
27589
27615
|
zeroStateText: "string",
|
|
27590
27616
|
onClear: "() => void"
|
|
27591
27617
|
};
|
|
27592
|
-
const propTypes$
|
|
27593
|
-
results: propTypes$
|
|
27618
|
+
const propTypes$Q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27619
|
+
results: propTypes$1H.exports.number,
|
|
27594
27620
|
selections: impl(),
|
|
27595
|
-
zeroStateText: propTypes$
|
|
27621
|
+
zeroStateText: propTypes$1H.exports.string,
|
|
27596
27622
|
onClear: fun()
|
|
27597
27623
|
});
|
|
27598
27624
|
function SpsSearchResultsBarV2(props2) {
|
|
@@ -27649,8 +27675,8 @@ function SpsSearchResultsBarV2(props2) {
|
|
|
27649
27675
|
}, t2("design-system:searchResultsBar.clearResults"))));
|
|
27650
27676
|
}
|
|
27651
27677
|
Object.assign(SpsSearchResultsBarV2, {
|
|
27652
|
-
props: propsDoc$
|
|
27653
|
-
propTypes: propTypes$
|
|
27678
|
+
props: propsDoc$Q,
|
|
27679
|
+
propTypes: propTypes$Q,
|
|
27654
27680
|
displayName: "SpsSearchResultsBarV2"
|
|
27655
27681
|
});
|
|
27656
27682
|
const SpsSearchResultsBarExamples = {
|
|
@@ -27803,15 +27829,15 @@ const SpsSearchResultsBarExamples = {
|
|
|
27803
27829
|
}
|
|
27804
27830
|
}
|
|
27805
27831
|
};
|
|
27806
|
-
const propsDoc$
|
|
27832
|
+
const propsDoc$P = {
|
|
27807
27833
|
formMeta: "SpsFormSetMeta<any>",
|
|
27808
27834
|
stacked: "boolean"
|
|
27809
27835
|
};
|
|
27810
|
-
const propTypes$
|
|
27836
|
+
const propTypes$P = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27811
27837
|
formArray: impl(),
|
|
27812
27838
|
formGroup: impl(),
|
|
27813
27839
|
formMeta: impl(),
|
|
27814
|
-
stacked: propTypes$
|
|
27840
|
+
stacked: propTypes$1H.exports.bool
|
|
27815
27841
|
});
|
|
27816
27842
|
function SpsInputGroup(_K) {
|
|
27817
27843
|
var _L = _K, {
|
|
@@ -27856,14 +27882,14 @@ function SpsInputGroup(_K) {
|
|
|
27856
27882
|
}, children));
|
|
27857
27883
|
}
|
|
27858
27884
|
Object.assign(SpsInputGroup, {
|
|
27859
|
-
props: propsDoc$
|
|
27860
|
-
propTypes: propTypes$
|
|
27885
|
+
props: propsDoc$P,
|
|
27886
|
+
propTypes: propTypes$P,
|
|
27861
27887
|
displayName: "SpsInputGroup"
|
|
27862
27888
|
});
|
|
27863
|
-
const propsDoc$
|
|
27889
|
+
const propsDoc$O = {
|
|
27864
27890
|
onSubmit: "FormEventHandler"
|
|
27865
27891
|
};
|
|
27866
|
-
const propTypes$
|
|
27892
|
+
const propTypes$O = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27867
27893
|
onSubmit: fun()
|
|
27868
27894
|
});
|
|
27869
27895
|
function SpsListToolbarSearch(props2) {
|
|
@@ -27886,12 +27912,12 @@ function SpsListToolbarSearch(props2) {
|
|
|
27886
27912
|
}, children));
|
|
27887
27913
|
}
|
|
27888
27914
|
Object.assign(SpsListToolbarSearch, {
|
|
27889
|
-
props: propsDoc$
|
|
27890
|
-
propTypes: propTypes$
|
|
27915
|
+
props: propsDoc$O,
|
|
27916
|
+
propTypes: propTypes$O,
|
|
27891
27917
|
displayName: "SpsListToolbarSearch"
|
|
27892
27918
|
});
|
|
27893
|
-
const propsDoc$
|
|
27894
|
-
const propTypes$
|
|
27919
|
+
const propsDoc$N = {};
|
|
27920
|
+
const propTypes$N = __spreadValues({}, spsGlobalPropTypes);
|
|
27895
27921
|
function SpsListToolbarSearchInfo(props2) {
|
|
27896
27922
|
const {
|
|
27897
27923
|
children
|
|
@@ -27899,11 +27925,11 @@ function SpsListToolbarSearchInfo(props2) {
|
|
|
27899
27925
|
return /* @__PURE__ */ React.createElement("div", null, children);
|
|
27900
27926
|
}
|
|
27901
27927
|
Object.assign(SpsListToolbarSearchInfo, {
|
|
27902
|
-
props: propsDoc$
|
|
27903
|
-
propTypes: propTypes$
|
|
27928
|
+
props: propsDoc$N,
|
|
27929
|
+
propTypes: propTypes$N,
|
|
27904
27930
|
displayName: "SpsListToolbarSearchInfo"
|
|
27905
27931
|
});
|
|
27906
|
-
const propsDoc$
|
|
27932
|
+
const propsDoc$M = {
|
|
27907
27933
|
activeTab: "SpsTab",
|
|
27908
27934
|
advancedSearch: "{ isOpen: boolean, enteredFields: number }",
|
|
27909
27935
|
onToggleAdvancedSearch: "(boolean) => void",
|
|
@@ -27918,23 +27944,23 @@ const propsDoc$L = {
|
|
|
27918
27944
|
pinResultsBar: "boolean",
|
|
27919
27945
|
pinToolbar: "boolean"
|
|
27920
27946
|
};
|
|
27921
|
-
const propTypes$
|
|
27947
|
+
const propTypes$M = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27922
27948
|
activeTab: impl(),
|
|
27923
|
-
advancedSearch: propTypes$
|
|
27924
|
-
isOpen: propTypes$
|
|
27925
|
-
enteredFields: propTypes$
|
|
27949
|
+
advancedSearch: propTypes$1H.exports.shape({
|
|
27950
|
+
isOpen: propTypes$1H.exports.bool,
|
|
27951
|
+
enteredFields: propTypes$1H.exports.number
|
|
27926
27952
|
}),
|
|
27927
27953
|
onToggleAdvancedSearch: fun(),
|
|
27928
27954
|
onTabChange: fun(),
|
|
27929
|
-
title: propTypes$
|
|
27930
|
-
tabs: propTypes$
|
|
27955
|
+
title: propTypes$1H.exports.string,
|
|
27956
|
+
tabs: propTypes$1H.exports.arrayOf(impl()),
|
|
27931
27957
|
onToolbarPinned: fun(),
|
|
27932
|
-
selectable: propTypes$
|
|
27933
|
-
isSelected: propTypes$
|
|
27934
|
-
isIndeterminate: propTypes$
|
|
27958
|
+
selectable: propTypes$1H.exports.bool,
|
|
27959
|
+
isSelected: propTypes$1H.exports.bool,
|
|
27960
|
+
isIndeterminate: propTypes$1H.exports.bool,
|
|
27935
27961
|
onSelectionChange: fun(),
|
|
27936
|
-
pinResultsBar: propTypes$
|
|
27937
|
-
pinToolbar: propTypes$
|
|
27962
|
+
pinResultsBar: propTypes$1H.exports.bool,
|
|
27963
|
+
pinToolbar: propTypes$1H.exports.bool
|
|
27938
27964
|
});
|
|
27939
27965
|
function SpsListToolbar(props2) {
|
|
27940
27966
|
const _a = props2, {
|
|
@@ -28097,18 +28123,18 @@ function SpsListToolbar(props2) {
|
|
|
28097
28123
|
}, otherChildren)), /* @__PURE__ */ React.createElement("div", null, (!isPinned || isPinned && pinResultsBar) && searchResultsBar)));
|
|
28098
28124
|
}
|
|
28099
28125
|
Object.assign(SpsListToolbar, {
|
|
28100
|
-
props: propsDoc$
|
|
28101
|
-
propTypes: propTypes$
|
|
28126
|
+
props: propsDoc$M,
|
|
28127
|
+
propTypes: propTypes$M,
|
|
28102
28128
|
displayName: "SpsListToolbar"
|
|
28103
28129
|
});
|
|
28104
|
-
const propsDoc$
|
|
28130
|
+
const propsDoc$L = {
|
|
28105
28131
|
options: "SortOption[]",
|
|
28106
28132
|
activeOption: "SortOption",
|
|
28107
28133
|
onSortChange: "(option: SortOption) => void",
|
|
28108
28134
|
defaultOption: "SortOption"
|
|
28109
28135
|
};
|
|
28110
|
-
const propTypes$
|
|
28111
|
-
options: propTypes$
|
|
28136
|
+
const propTypes$L = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28137
|
+
options: propTypes$1H.exports.arrayOf(impl()),
|
|
28112
28138
|
activeOption: impl(),
|
|
28113
28139
|
onSortChange: fun(),
|
|
28114
28140
|
defaultOption: impl()
|
|
@@ -28132,8 +28158,8 @@ function SpsListToolbarSortBy(props2) {
|
|
|
28132
28158
|
});
|
|
28133
28159
|
}
|
|
28134
28160
|
Object.assign(SpsListToolbarSortBy, {
|
|
28135
|
-
props: propsDoc$
|
|
28136
|
-
propTypes: propTypes$
|
|
28161
|
+
props: propsDoc$L,
|
|
28162
|
+
propTypes: propTypes$L,
|
|
28137
28163
|
displayName: "SpsListToolbarSortBy"
|
|
28138
28164
|
});
|
|
28139
28165
|
function ContentOrderExample() {
|
|
@@ -28878,13 +28904,13 @@ const SpsListToolbarExamples = {
|
|
|
28878
28904
|
}
|
|
28879
28905
|
}
|
|
28880
28906
|
};
|
|
28881
|
-
const propsDoc$
|
|
28907
|
+
const propsDoc$K = {
|
|
28882
28908
|
kind: "FeedbackBlockKind",
|
|
28883
28909
|
message: { type: "string", required: true }
|
|
28884
28910
|
};
|
|
28885
|
-
const propTypes$
|
|
28911
|
+
const propTypes$K = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28886
28912
|
kind: enumValue(FeedbackBlockKind),
|
|
28887
|
-
message: propTypes$
|
|
28913
|
+
message: propTypes$1H.exports.node.isRequired
|
|
28888
28914
|
});
|
|
28889
28915
|
function SpsMicroBlock(props2) {
|
|
28890
28916
|
const _a = props2, {
|
|
@@ -28911,8 +28937,8 @@ function SpsMicroBlock(props2) {
|
|
|
28911
28937
|
}), /* @__PURE__ */ React.createElement("span", null, message));
|
|
28912
28938
|
}
|
|
28913
28939
|
Object.assign(SpsMicroBlock, {
|
|
28914
|
-
props: propsDoc$
|
|
28915
|
-
propTypes: propTypes$
|
|
28940
|
+
props: propsDoc$K,
|
|
28941
|
+
propTypes: propTypes$K,
|
|
28916
28942
|
displayName: "SpsMicroBlock"
|
|
28917
28943
|
});
|
|
28918
28944
|
const SpsMicroBlockExamples = {
|
|
@@ -28967,17 +28993,17 @@ const SpsMicroBlockExamples = {
|
|
|
28967
28993
|
}
|
|
28968
28994
|
}
|
|
28969
28995
|
};
|
|
28970
|
-
const propsDoc$
|
|
28996
|
+
const propsDoc$J = {
|
|
28971
28997
|
kind: "ModalKind",
|
|
28972
28998
|
size: "ModalSize",
|
|
28973
28999
|
title: "string",
|
|
28974
29000
|
onClose: "() => void",
|
|
28975
29001
|
focusElementOnOpen: "React.MutableRefObject<HTMLElement>"
|
|
28976
29002
|
};
|
|
28977
|
-
const propTypes$
|
|
29003
|
+
const propTypes$J = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28978
29004
|
kind: enumValue(ModalKind),
|
|
28979
29005
|
size: enumValue(ModalSize),
|
|
28980
|
-
title: propTypes$
|
|
29006
|
+
title: propTypes$1H.exports.string,
|
|
28981
29007
|
onClose: fun(),
|
|
28982
29008
|
focusElementOnOpen: ref()
|
|
28983
29009
|
});
|
|
@@ -29103,8 +29129,8 @@ function SpsModal(_M) {
|
|
|
29103
29129
|
}, t2("design-system:modal.defaultButtonLabel"))))) : /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
29104
29130
|
}
|
|
29105
29131
|
Object.assign(SpsModal, {
|
|
29106
|
-
props: propsDoc$
|
|
29107
|
-
propTypes: propTypes$
|
|
29132
|
+
props: propsDoc$J,
|
|
29133
|
+
propTypes: propTypes$J,
|
|
29108
29134
|
displayName: "SpsModal"
|
|
29109
29135
|
});
|
|
29110
29136
|
const SpsModalExamples = {
|
|
@@ -29574,7 +29600,7 @@ const SpsModalExamples = {
|
|
|
29574
29600
|
}
|
|
29575
29601
|
}
|
|
29576
29602
|
};
|
|
29577
|
-
const propsDoc$
|
|
29603
|
+
const propsDoc$I = {
|
|
29578
29604
|
captionKey: "string",
|
|
29579
29605
|
clearSearchOnBlur: "boolean",
|
|
29580
29606
|
debounce: "number",
|
|
@@ -29597,34 +29623,34 @@ const propsDoc$H = {
|
|
|
29597
29623
|
maxHeightOptionListRem: "number",
|
|
29598
29624
|
disableOptionsMemoization: "boolean"
|
|
29599
29625
|
};
|
|
29600
|
-
const propTypes$
|
|
29626
|
+
const propTypes$I = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
29601
29627
|
action: fun(),
|
|
29602
|
-
captionKey: propTypes$
|
|
29603
|
-
clearSearchOnBlur: propTypes$
|
|
29604
|
-
debounce: propTypes$
|
|
29605
|
-
disabled: propTypes$
|
|
29606
|
-
disableSelected: propTypes$
|
|
29607
|
-
comparisonKey: propTypes$
|
|
29628
|
+
captionKey: propTypes$1H.exports.string,
|
|
29629
|
+
clearSearchOnBlur: propTypes$1H.exports.bool,
|
|
29630
|
+
debounce: propTypes$1H.exports.number,
|
|
29631
|
+
disabled: propTypes$1H.exports.bool,
|
|
29632
|
+
disableSelected: propTypes$1H.exports.bool,
|
|
29633
|
+
comparisonKey: propTypes$1H.exports.string,
|
|
29608
29634
|
formControl: impl(),
|
|
29609
29635
|
formMeta: impl(),
|
|
29610
|
-
hideSelected: propTypes$
|
|
29636
|
+
hideSelected: propTypes$1H.exports.bool,
|
|
29611
29637
|
icon: enumValue(SpsIcon),
|
|
29612
29638
|
onChange: fun(),
|
|
29613
29639
|
onSearchChange: fun(),
|
|
29614
|
-
options: propTypes$
|
|
29615
|
-
propTypes$
|
|
29616
|
-
propTypes$
|
|
29640
|
+
options: propTypes$1H.exports.oneOfType([
|
|
29641
|
+
propTypes$1H.exports.array,
|
|
29642
|
+
propTypes$1H.exports.instanceOf(Promise),
|
|
29617
29643
|
fun()
|
|
29618
29644
|
]).isRequired,
|
|
29619
|
-
placeholder: propTypes$
|
|
29620
|
-
tallOptionList: propTypes$
|
|
29621
|
-
textKey: propTypes$
|
|
29622
|
-
value: propTypes$
|
|
29623
|
-
zeroState: propTypes$
|
|
29624
|
-
loading: propTypes$
|
|
29625
|
-
maxHeightOptionListPx: propTypes$
|
|
29626
|
-
maxHeightOptionListRem: propTypes$
|
|
29627
|
-
disableOptionsMemoization: propTypes$
|
|
29645
|
+
placeholder: propTypes$1H.exports.string,
|
|
29646
|
+
tallOptionList: propTypes$1H.exports.bool,
|
|
29647
|
+
textKey: propTypes$1H.exports.string,
|
|
29648
|
+
value: propTypes$1H.exports.any,
|
|
29649
|
+
zeroState: propTypes$1H.exports.string,
|
|
29650
|
+
loading: propTypes$1H.exports.bool,
|
|
29651
|
+
maxHeightOptionListPx: propTypes$1H.exports.number,
|
|
29652
|
+
maxHeightOptionListRem: propTypes$1H.exports.number,
|
|
29653
|
+
disableOptionsMemoization: propTypes$1H.exports.bool
|
|
29628
29654
|
});
|
|
29629
29655
|
function SpsMultiSelect(_O) {
|
|
29630
29656
|
var _P = _O, {
|
|
@@ -29702,6 +29728,7 @@ function SpsMultiSelect(_O) {
|
|
|
29702
29728
|
const inputVisual = React.useRef();
|
|
29703
29729
|
const textInput = React.useRef();
|
|
29704
29730
|
const optionListRef = React.useRef();
|
|
29731
|
+
const tagList = React.useRef();
|
|
29705
29732
|
function handleBlur() {
|
|
29706
29733
|
if (clearSearchOnBlur) {
|
|
29707
29734
|
patchState({
|
|
@@ -29723,6 +29750,13 @@ function SpsMultiSelect(_O) {
|
|
|
29723
29750
|
textInput.current.focus();
|
|
29724
29751
|
}, 0);
|
|
29725
29752
|
}
|
|
29753
|
+
function focusClickableTagRemoveButton(index) {
|
|
29754
|
+
if (tagList.current && tagList.current.children.length && index !== null) {
|
|
29755
|
+
const currTag = tagList.current.children[index];
|
|
29756
|
+
const removeIcon = currTag == null ? void 0 : currTag.querySelector(".sps-clickable-tag__icon");
|
|
29757
|
+
removeIcon && removeIcon.focus();
|
|
29758
|
+
}
|
|
29759
|
+
}
|
|
29726
29760
|
function updateValue(newValue) {
|
|
29727
29761
|
patchState({ searchText: "" });
|
|
29728
29762
|
if (meta) {
|
|
@@ -29751,6 +29785,11 @@ function SpsMultiSelect(_O) {
|
|
|
29751
29785
|
const cursorIsAtLeftOfTextInputAndThereIsAtLeastOneSelection = !hideSelected && !event.target.selectionStart && value && value.length;
|
|
29752
29786
|
switch (event.key) {
|
|
29753
29787
|
case "Backspace":
|
|
29788
|
+
if (state.activeTagIndex === value.length - 1) {
|
|
29789
|
+
removeOptionByIndex(state.activeTagIndex);
|
|
29790
|
+
focusTextInput();
|
|
29791
|
+
return;
|
|
29792
|
+
}
|
|
29754
29793
|
if (state.activeTagIndex !== null) {
|
|
29755
29794
|
removeOptionByIndex(state.activeTagIndex);
|
|
29756
29795
|
return;
|
|
@@ -29775,13 +29814,14 @@ function SpsMultiSelect(_O) {
|
|
|
29775
29814
|
case "Left":
|
|
29776
29815
|
case "ArrowLeft":
|
|
29777
29816
|
if (cursorIsAtLeftOfTextInputAndThereIsAtLeastOneSelection) {
|
|
29778
|
-
rootElement.current.focus();
|
|
29779
29817
|
if (state.activeTagIndex === null) {
|
|
29780
29818
|
patchState({ activeTagIndex: value.length - 1 });
|
|
29781
29819
|
doHidePopup();
|
|
29820
|
+
focusClickableTagRemoveButton(value.length - 1);
|
|
29782
29821
|
} else if (state.activeTagIndex > 0) {
|
|
29783
29822
|
patchState({ activeTagIndex: state.activeTagIndex - 1 });
|
|
29784
29823
|
doHidePopup();
|
|
29824
|
+
focusClickableTagRemoveButton(state.activeTagIndex - 1);
|
|
29785
29825
|
}
|
|
29786
29826
|
return;
|
|
29787
29827
|
}
|
|
@@ -29795,6 +29835,7 @@ function SpsMultiSelect(_O) {
|
|
|
29795
29835
|
textInput.current.focus();
|
|
29796
29836
|
} else {
|
|
29797
29837
|
patchState({ activeTagIndex: state.activeTagIndex + 1 });
|
|
29838
|
+
focusClickableTagRemoveButton(state.activeTagIndex + 1);
|
|
29798
29839
|
}
|
|
29799
29840
|
return;
|
|
29800
29841
|
}
|
|
@@ -29848,7 +29889,8 @@ function SpsMultiSelect(_O) {
|
|
|
29848
29889
|
}, icon && /* @__PURE__ */ React.createElement("i", {
|
|
29849
29890
|
className: clsx("sps-text-input__icon", "sps-icon", `sps-icon-${icon}`)
|
|
29850
29891
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
29851
|
-
className: "sps-multi-select__tags-and-input"
|
|
29892
|
+
className: "sps-multi-select__tags-and-input",
|
|
29893
|
+
ref: tagList
|
|
29852
29894
|
}, hideSelected ? null : value.map((opt, i2) => /* @__PURE__ */ React.createElement(SpsClickableTag, {
|
|
29853
29895
|
id: tagIds[i2],
|
|
29854
29896
|
role: "option",
|
|
@@ -29906,8 +29948,8 @@ function SpsMultiSelect(_O) {
|
|
|
29906
29948
|
}));
|
|
29907
29949
|
}
|
|
29908
29950
|
Object.assign(SpsMultiSelect, {
|
|
29909
|
-
props: propsDoc$
|
|
29910
|
-
propTypes: propTypes$
|
|
29951
|
+
props: propsDoc$I,
|
|
29952
|
+
propTypes: propTypes$I,
|
|
29911
29953
|
displayName: "SpsMultiSelect"
|
|
29912
29954
|
});
|
|
29913
29955
|
const SpsMultiSelectExamples = {
|
|
@@ -30284,8 +30326,8 @@ const SpsMultiSelectExamples = {
|
|
|
30284
30326
|
}
|
|
30285
30327
|
}
|
|
30286
30328
|
};
|
|
30287
|
-
const propsDoc$
|
|
30288
|
-
const propTypes$
|
|
30329
|
+
const propsDoc$H = {};
|
|
30330
|
+
const propTypes$H = __spreadValues({}, spsGlobalPropTypes);
|
|
30289
30331
|
function SpsPageTitle(props2) {
|
|
30290
30332
|
const _a = props2, {
|
|
30291
30333
|
children,
|
|
@@ -30317,12 +30359,12 @@ function SpsPageTitle(props2) {
|
|
|
30317
30359
|
}, otherChildren));
|
|
30318
30360
|
}
|
|
30319
30361
|
Object.assign(SpsPageTitle, {
|
|
30320
|
-
props: propsDoc$
|
|
30321
|
-
propTypes: propTypes$
|
|
30362
|
+
props: propsDoc$H,
|
|
30363
|
+
propTypes: propTypes$H,
|
|
30322
30364
|
displayName: "SpsPageTitle"
|
|
30323
30365
|
});
|
|
30324
|
-
const propsDoc$
|
|
30325
|
-
const propTypes$
|
|
30366
|
+
const propsDoc$G = {};
|
|
30367
|
+
const propTypes$G = __spreadValues({}, spsGlobalPropTypes);
|
|
30326
30368
|
function SpsPageSubtitle(props2) {
|
|
30327
30369
|
const _a = props2, {
|
|
30328
30370
|
children,
|
|
@@ -30342,8 +30384,8 @@ function SpsPageSubtitle(props2) {
|
|
|
30342
30384
|
}, rest), children);
|
|
30343
30385
|
}
|
|
30344
30386
|
Object.assign(SpsPageSubtitle, {
|
|
30345
|
-
props: propsDoc$
|
|
30346
|
-
propTypes: propTypes$
|
|
30387
|
+
props: propsDoc$G,
|
|
30388
|
+
propTypes: propTypes$G,
|
|
30347
30389
|
displayName: "SpsPageSubtitle"
|
|
30348
30390
|
});
|
|
30349
30391
|
const SpsPageTitleExamples = {
|
|
@@ -30406,7 +30448,7 @@ const SpsPageTitleExamples = {
|
|
|
30406
30448
|
}
|
|
30407
30449
|
}
|
|
30408
30450
|
};
|
|
30409
|
-
const propsDoc$
|
|
30451
|
+
const propsDoc$F = {
|
|
30410
30452
|
action: "SpsActionMethod",
|
|
30411
30453
|
captionKey: "string",
|
|
30412
30454
|
comparisonKey: "string",
|
|
@@ -30431,35 +30473,35 @@ const propsDoc$E = {
|
|
|
30431
30473
|
maxHeightOptionListRem: "number",
|
|
30432
30474
|
disableOptionsMemoization: "boolean"
|
|
30433
30475
|
};
|
|
30434
|
-
const propTypes$
|
|
30476
|
+
const propTypes$F = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30435
30477
|
action: fun(),
|
|
30436
|
-
captionKey: propTypes$
|
|
30437
|
-
comparisonKey: propTypes$
|
|
30438
|
-
disabled: propTypes$
|
|
30478
|
+
captionKey: propTypes$1H.exports.string,
|
|
30479
|
+
comparisonKey: propTypes$1H.exports.string,
|
|
30480
|
+
disabled: propTypes$1H.exports.bool,
|
|
30439
30481
|
formControl: impl(),
|
|
30440
30482
|
formMeta: impl(),
|
|
30441
|
-
notClearable: propTypes$
|
|
30442
|
-
options: propTypes$
|
|
30443
|
-
propTypes$
|
|
30444
|
-
propTypes$
|
|
30483
|
+
notClearable: propTypes$1H.exports.bool,
|
|
30484
|
+
options: propTypes$1H.exports.oneOfType([
|
|
30485
|
+
propTypes$1H.exports.array,
|
|
30486
|
+
propTypes$1H.exports.instanceOf(Promise),
|
|
30445
30487
|
fun()
|
|
30446
30488
|
]).isRequired,
|
|
30447
30489
|
onChange: fun(),
|
|
30448
30490
|
onOpen: fun(),
|
|
30449
|
-
placeholder: propTypes$
|
|
30450
|
-
searchDebounce: propTypes$
|
|
30451
|
-
searchPlaceholder: propTypes$
|
|
30452
|
-
tallOptionList: propTypes$
|
|
30453
|
-
textKey: propTypes$
|
|
30454
|
-
valueKey: propTypes$
|
|
30455
|
-
value: propTypes$
|
|
30456
|
-
zeroState: propTypes$
|
|
30457
|
-
autoFixWidth: propTypes$
|
|
30458
|
-
loading: propTypes$
|
|
30459
|
-
filterByTextAndCaptionKey: propTypes$
|
|
30460
|
-
maxHeightOptionListPx: propTypes$
|
|
30461
|
-
maxHeightOptionListRem: propTypes$
|
|
30462
|
-
disableOptionsMemoization: propTypes$
|
|
30491
|
+
placeholder: propTypes$1H.exports.string,
|
|
30492
|
+
searchDebounce: propTypes$1H.exports.number,
|
|
30493
|
+
searchPlaceholder: propTypes$1H.exports.string,
|
|
30494
|
+
tallOptionList: propTypes$1H.exports.bool,
|
|
30495
|
+
textKey: propTypes$1H.exports.string,
|
|
30496
|
+
valueKey: propTypes$1H.exports.string,
|
|
30497
|
+
value: propTypes$1H.exports.any,
|
|
30498
|
+
zeroState: propTypes$1H.exports.string,
|
|
30499
|
+
autoFixWidth: propTypes$1H.exports.bool,
|
|
30500
|
+
loading: propTypes$1H.exports.bool,
|
|
30501
|
+
filterByTextAndCaptionKey: propTypes$1H.exports.bool,
|
|
30502
|
+
maxHeightOptionListPx: propTypes$1H.exports.number,
|
|
30503
|
+
maxHeightOptionListRem: propTypes$1H.exports.number,
|
|
30504
|
+
disableOptionsMemoization: propTypes$1H.exports.bool
|
|
30463
30505
|
});
|
|
30464
30506
|
const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
30465
30507
|
const _a = props2, {
|
|
@@ -30698,23 +30740,23 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30698
30740
|
}));
|
|
30699
30741
|
});
|
|
30700
30742
|
Object.assign(SpsSelect, {
|
|
30701
|
-
props: propsDoc$
|
|
30702
|
-
propTypes: propTypes$
|
|
30743
|
+
props: propsDoc$F,
|
|
30744
|
+
propTypes: propTypes$F,
|
|
30703
30745
|
displayName: "SpsSelect"
|
|
30704
30746
|
});
|
|
30705
|
-
const propsDoc$
|
|
30747
|
+
const propsDoc$E = {
|
|
30706
30748
|
page: "number",
|
|
30707
30749
|
numPages: "number",
|
|
30708
30750
|
onPageChange: "(number) => void",
|
|
30709
30751
|
disabled: "boolean",
|
|
30710
30752
|
unknownPageCount: "boolean"
|
|
30711
30753
|
};
|
|
30712
|
-
const propTypes$
|
|
30713
|
-
numPages: propTypes$
|
|
30754
|
+
const propTypes$E = __spreadValues({
|
|
30755
|
+
numPages: propTypes$1H.exports.number,
|
|
30714
30756
|
onPageChange: fun(),
|
|
30715
|
-
page: propTypes$
|
|
30716
|
-
disabled: propTypes$
|
|
30717
|
-
unknownPageCount: propTypes$
|
|
30757
|
+
page: propTypes$1H.exports.number,
|
|
30758
|
+
disabled: propTypes$1H.exports.bool,
|
|
30759
|
+
unknownPageCount: propTypes$1H.exports.bool
|
|
30718
30760
|
}, spsGlobalPropTypes);
|
|
30719
30761
|
function SpsPageSelector(props2) {
|
|
30720
30762
|
const _a = props2, {
|
|
@@ -30810,11 +30852,11 @@ function SpsPageSelector(props2) {
|
|
|
30810
30852
|
})))));
|
|
30811
30853
|
}
|
|
30812
30854
|
Object.assign(SpsPageSelector, {
|
|
30813
|
-
props: propsDoc$
|
|
30814
|
-
propTypes: propTypes$
|
|
30855
|
+
props: propsDoc$E,
|
|
30856
|
+
propTypes: propTypes$E,
|
|
30815
30857
|
displayName: "SpsPageSelector"
|
|
30816
30858
|
});
|
|
30817
|
-
const propsDoc$
|
|
30859
|
+
const propsDoc$D = {
|
|
30818
30860
|
page: "number",
|
|
30819
30861
|
pageSize: "number",
|
|
30820
30862
|
pageSizeOptions: "Array<number>",
|
|
@@ -30823,14 +30865,14 @@ const propsDoc$C = {
|
|
|
30823
30865
|
disabled: "boolean",
|
|
30824
30866
|
unknownPageCount: "boolean"
|
|
30825
30867
|
};
|
|
30826
|
-
const propTypes$
|
|
30868
|
+
const propTypes$D = __spreadValues({
|
|
30827
30869
|
onPageChange: fun().isRequired,
|
|
30828
|
-
page: propTypes$
|
|
30829
|
-
pageSize: propTypes$
|
|
30830
|
-
pageSizeOptions: propTypes$
|
|
30831
|
-
totalResults: propTypes$
|
|
30832
|
-
disabled: propTypes$
|
|
30833
|
-
unknownPageCount: propTypes$
|
|
30870
|
+
page: propTypes$1H.exports.number,
|
|
30871
|
+
pageSize: propTypes$1H.exports.number,
|
|
30872
|
+
pageSizeOptions: propTypes$1H.exports.arrayOf(propTypes$1H.exports.number),
|
|
30873
|
+
totalResults: propTypes$1H.exports.number,
|
|
30874
|
+
disabled: propTypes$1H.exports.bool,
|
|
30875
|
+
unknownPageCount: propTypes$1H.exports.bool
|
|
30834
30876
|
}, spsGlobalPropTypes);
|
|
30835
30877
|
function SpsPagination(props2) {
|
|
30836
30878
|
const _a = props2, {
|
|
@@ -30945,8 +30987,8 @@ function SpsPagination(props2) {
|
|
|
30945
30987
|
}));
|
|
30946
30988
|
}
|
|
30947
30989
|
Object.assign(SpsPagination, {
|
|
30948
|
-
props: propsDoc$
|
|
30949
|
-
propTypes: propTypes$
|
|
30990
|
+
props: propsDoc$D,
|
|
30991
|
+
propTypes: propTypes$D,
|
|
30950
30992
|
displayName: "SpsPagination"
|
|
30951
30993
|
});
|
|
30952
30994
|
const SpsPaginationExamples = {
|
|
@@ -31071,7 +31113,7 @@ const SpsPaginationExamples = {
|
|
|
31071
31113
|
}
|
|
31072
31114
|
}
|
|
31073
31115
|
};
|
|
31074
|
-
const propsDoc$
|
|
31116
|
+
const propsDoc$C = {
|
|
31075
31117
|
active: "boolean",
|
|
31076
31118
|
as: "React.ElementType"
|
|
31077
31119
|
};
|
|
@@ -31095,10 +31137,10 @@ function SpsProductBarTab(props2) {
|
|
|
31095
31137
|
}, rest), children);
|
|
31096
31138
|
}
|
|
31097
31139
|
Object.assign(SpsProductBarTab, {
|
|
31098
|
-
props: propsDoc$
|
|
31140
|
+
props: propsDoc$C,
|
|
31099
31141
|
displayName: "SpsProductBarTab"
|
|
31100
31142
|
});
|
|
31101
|
-
const propsDoc$
|
|
31143
|
+
const propsDoc$B = {
|
|
31102
31144
|
activeTab: "string",
|
|
31103
31145
|
fullWidth: "boolean",
|
|
31104
31146
|
onTabChange: "(newTab: string) => void",
|
|
@@ -31108,15 +31150,15 @@ const propsDoc$A = {
|
|
|
31108
31150
|
productNameHref: "string",
|
|
31109
31151
|
tabs: "Array<string>"
|
|
31110
31152
|
};
|
|
31111
|
-
const propTypes$
|
|
31112
|
-
activeTab: propTypes$
|
|
31113
|
-
fullWidth: propTypes$
|
|
31153
|
+
const propTypes$C = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31154
|
+
activeTab: propTypes$1H.exports.string,
|
|
31155
|
+
fullWidth: propTypes$1H.exports.bool,
|
|
31114
31156
|
onTabChange: fun(),
|
|
31115
31157
|
onProductNameClick: fun(),
|
|
31116
|
-
productLogoSrc: propTypes$
|
|
31117
|
-
productName: propTypes$
|
|
31118
|
-
productNameHref: propTypes$
|
|
31119
|
-
tabs: propTypes$
|
|
31158
|
+
productLogoSrc: propTypes$1H.exports.string,
|
|
31159
|
+
productName: propTypes$1H.exports.string,
|
|
31160
|
+
productNameHref: propTypes$1H.exports.string,
|
|
31161
|
+
tabs: propTypes$1H.exports.arrayOf(propTypes$1H.exports.string)
|
|
31120
31162
|
});
|
|
31121
31163
|
function SpsProductBar(props2) {
|
|
31122
31164
|
const _a = props2, {
|
|
@@ -31191,8 +31233,8 @@ function SpsProductBar(props2) {
|
|
|
31191
31233
|
}, otherChildren))));
|
|
31192
31234
|
}
|
|
31193
31235
|
Object.assign(SpsProductBar, {
|
|
31194
|
-
props: propsDoc$
|
|
31195
|
-
propTypes: propTypes$
|
|
31236
|
+
props: propsDoc$B,
|
|
31237
|
+
propTypes: propTypes$C,
|
|
31196
31238
|
displayName: "SpsProductBar"
|
|
31197
31239
|
});
|
|
31198
31240
|
const SpsProductBarExamples = {
|
|
@@ -31331,18 +31373,18 @@ const SpsProductBarExamples = {
|
|
|
31331
31373
|
}
|
|
31332
31374
|
}
|
|
31333
31375
|
};
|
|
31334
|
-
const propsDoc$
|
|
31376
|
+
const propsDoc$A = {
|
|
31335
31377
|
percentComplete: "number",
|
|
31336
31378
|
title: "string",
|
|
31337
31379
|
detail: "string",
|
|
31338
31380
|
disabled: "boolean",
|
|
31339
31381
|
onClose: "() => void"
|
|
31340
31382
|
};
|
|
31341
|
-
const propTypes$
|
|
31342
|
-
percentComplete: propTypes$
|
|
31343
|
-
title: propTypes$
|
|
31344
|
-
detail: propTypes$
|
|
31345
|
-
disabled: propTypes$
|
|
31383
|
+
const propTypes$B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31384
|
+
percentComplete: propTypes$1H.exports.number,
|
|
31385
|
+
title: propTypes$1H.exports.string,
|
|
31386
|
+
detail: propTypes$1H.exports.string,
|
|
31387
|
+
disabled: propTypes$1H.exports.bool,
|
|
31346
31388
|
onClose: fun()
|
|
31347
31389
|
});
|
|
31348
31390
|
function SpsProgressBar(props2) {
|
|
@@ -31398,8 +31440,8 @@ function SpsProgressBar(props2) {
|
|
|
31398
31440
|
})));
|
|
31399
31441
|
}
|
|
31400
31442
|
Object.assign(SpsProgressBar, {
|
|
31401
|
-
props: propsDoc$
|
|
31402
|
-
propTypes: propTypes$
|
|
31443
|
+
props: propsDoc$A,
|
|
31444
|
+
propTypes: propTypes$B,
|
|
31403
31445
|
displayName: "SpsProgressBar"
|
|
31404
31446
|
});
|
|
31405
31447
|
const SpsSteppedProgressBarExamples = {
|
|
@@ -31543,11 +31585,11 @@ const SpsSteppedProgressBarExamples = {
|
|
|
31543
31585
|
}
|
|
31544
31586
|
}
|
|
31545
31587
|
};
|
|
31546
|
-
const propsDoc$
|
|
31588
|
+
const propsDoc$z = {
|
|
31547
31589
|
icon: "SpsIcon",
|
|
31548
31590
|
iconSize: "SpsIconSize"
|
|
31549
31591
|
};
|
|
31550
|
-
const propTypes$
|
|
31592
|
+
const propTypes$A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31551
31593
|
icon: enumValue(SpsIcon),
|
|
31552
31594
|
iconSize: enumValue(SpsIconSize)
|
|
31553
31595
|
});
|
|
@@ -31566,8 +31608,8 @@ function SpsTooltipTitle({
|
|
|
31566
31608
|
}, children));
|
|
31567
31609
|
}
|
|
31568
31610
|
Object.assign(SpsTooltipTitle, {
|
|
31569
|
-
props: propsDoc$
|
|
31570
|
-
propTypes: propTypes$
|
|
31611
|
+
props: propsDoc$z,
|
|
31612
|
+
propTypes: propTypes$A,
|
|
31571
31613
|
displayName: "SpsTooltipTitle"
|
|
31572
31614
|
});
|
|
31573
31615
|
const SpsTooltipExamples = {
|
|
@@ -32076,7 +32118,7 @@ const SpsTooltipExamples = {
|
|
|
32076
32118
|
}
|
|
32077
32119
|
}
|
|
32078
32120
|
};
|
|
32079
|
-
const propsDoc$
|
|
32121
|
+
const propsDoc$y = {
|
|
32080
32122
|
title: "string",
|
|
32081
32123
|
stepsCount: "number",
|
|
32082
32124
|
completedStepsCount: "number",
|
|
@@ -32085,14 +32127,14 @@ const propsDoc$x = {
|
|
|
32085
32127
|
color: "SteppedProgressBarColor",
|
|
32086
32128
|
data: "SteppedProgressBarData[]"
|
|
32087
32129
|
};
|
|
32088
|
-
const propTypes$
|
|
32089
|
-
title: propTypes$
|
|
32090
|
-
stepsCount: propTypes$
|
|
32091
|
-
completedStepsCount: propTypes$
|
|
32092
|
-
disabled: propTypes$
|
|
32093
|
-
showStepsCounter: propTypes$
|
|
32130
|
+
const propTypes$z = {
|
|
32131
|
+
title: propTypes$1H.exports.string,
|
|
32132
|
+
stepsCount: propTypes$1H.exports.number,
|
|
32133
|
+
completedStepsCount: propTypes$1H.exports.number,
|
|
32134
|
+
disabled: propTypes$1H.exports.bool,
|
|
32135
|
+
showStepsCounter: propTypes$1H.exports.bool,
|
|
32094
32136
|
color: enumValue(SteppedProgressBarColor),
|
|
32095
|
-
data: propTypes$
|
|
32137
|
+
data: propTypes$1H.exports.arrayOf(impl())
|
|
32096
32138
|
};
|
|
32097
32139
|
function SpsSteppedProgressBar(props2) {
|
|
32098
32140
|
const {
|
|
@@ -32133,8 +32175,8 @@ function SpsSteppedProgressBar(props2) {
|
|
|
32133
32175
|
}, item.description))))));
|
|
32134
32176
|
}
|
|
32135
32177
|
Object.assign(SpsSteppedProgressBar, {
|
|
32136
|
-
props: propsDoc$
|
|
32137
|
-
propTypes: propTypes$
|
|
32178
|
+
props: propsDoc$y,
|
|
32179
|
+
propTypes: propTypes$z,
|
|
32138
32180
|
displayName: "SpsSteppedProgressBar"
|
|
32139
32181
|
});
|
|
32140
32182
|
const SpsProgressBarExamples = {
|
|
@@ -32232,7 +32274,7 @@ const SpsProgressBarExamples = {
|
|
|
32232
32274
|
}
|
|
32233
32275
|
}
|
|
32234
32276
|
};
|
|
32235
|
-
const propsDoc$
|
|
32277
|
+
const propsDoc$x = {
|
|
32236
32278
|
checked: "boolean",
|
|
32237
32279
|
disabled: "boolean",
|
|
32238
32280
|
formMeta: "SpsFormFieldMeta<any>",
|
|
@@ -32243,18 +32285,18 @@ const propsDoc$w = {
|
|
|
32243
32285
|
onChange: "ChangeEventHandler",
|
|
32244
32286
|
value: "any"
|
|
32245
32287
|
};
|
|
32246
|
-
const propTypes$
|
|
32247
|
-
checked: propTypes$
|
|
32248
|
-
disabled: propTypes$
|
|
32288
|
+
const propTypes$y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32289
|
+
checked: propTypes$1H.exports.bool,
|
|
32290
|
+
disabled: propTypes$1H.exports.bool,
|
|
32249
32291
|
formControl: impl(),
|
|
32250
32292
|
formMeta: impl(),
|
|
32251
|
-
inline: propTypes$
|
|
32252
|
-
centered: propTypes$
|
|
32253
|
-
label: propTypes$
|
|
32254
|
-
name: propTypes$
|
|
32293
|
+
inline: propTypes$1H.exports.bool,
|
|
32294
|
+
centered: propTypes$1H.exports.bool,
|
|
32295
|
+
label: propTypes$1H.exports.string,
|
|
32296
|
+
name: propTypes$1H.exports.string.isRequired,
|
|
32255
32297
|
onChange: fun(),
|
|
32256
32298
|
ref: ref(),
|
|
32257
|
-
value: propTypes$
|
|
32299
|
+
value: propTypes$1H.exports.any
|
|
32258
32300
|
});
|
|
32259
32301
|
function SpsRadioButton(_Q) {
|
|
32260
32302
|
var _R = _Q, {
|
|
@@ -32329,8 +32371,8 @@ function SpsRadioButton(_Q) {
|
|
|
32329
32371
|
}, label || ""));
|
|
32330
32372
|
}
|
|
32331
32373
|
Object.assign(SpsRadioButton, {
|
|
32332
|
-
props: propsDoc$
|
|
32333
|
-
propTypes: propTypes$
|
|
32374
|
+
props: propsDoc$x,
|
|
32375
|
+
propTypes: propTypes$y,
|
|
32334
32376
|
displayName: "SpsRadioButton"
|
|
32335
32377
|
});
|
|
32336
32378
|
const SpsRadioButtonExamples = {
|
|
@@ -32887,11 +32929,11 @@ const SpsRadioButtonExamples = {
|
|
|
32887
32929
|
}
|
|
32888
32930
|
}
|
|
32889
32931
|
};
|
|
32890
|
-
const propsDoc$
|
|
32932
|
+
const propsDoc$w = {
|
|
32891
32933
|
maxHeight: "string"
|
|
32892
32934
|
};
|
|
32893
|
-
const propTypes$
|
|
32894
|
-
maxHeight: propTypes$
|
|
32935
|
+
const propTypes$x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32936
|
+
maxHeight: propTypes$1H.exports.string
|
|
32895
32937
|
});
|
|
32896
32938
|
function SpsScrollableContainer(props2) {
|
|
32897
32939
|
const {
|
|
@@ -32904,8 +32946,8 @@ function SpsScrollableContainer(props2) {
|
|
|
32904
32946
|
}, children);
|
|
32905
32947
|
}
|
|
32906
32948
|
Object.assign(SpsScrollableContainer, {
|
|
32907
|
-
props: propsDoc$
|
|
32908
|
-
propTypes: propTypes$
|
|
32949
|
+
props: propsDoc$w,
|
|
32950
|
+
propTypes: propTypes$x,
|
|
32909
32951
|
displayName: "SpsScrollableContainer"
|
|
32910
32952
|
});
|
|
32911
32953
|
const SpsScrollableContainerExamples = {
|
|
@@ -33818,7 +33860,7 @@ const SpsSideNavExamples = {
|
|
|
33818
33860
|
}
|
|
33819
33861
|
}
|
|
33820
33862
|
};
|
|
33821
|
-
const propsDoc$
|
|
33863
|
+
const propsDoc$v = {
|
|
33822
33864
|
sortKey: "string",
|
|
33823
33865
|
sortDisabled: "boolean",
|
|
33824
33866
|
sort: "SortedColumn[]",
|
|
@@ -33826,13 +33868,13 @@ const propsDoc$u = {
|
|
|
33826
33868
|
widthPx: "number",
|
|
33827
33869
|
widthRem: "number"
|
|
33828
33870
|
};
|
|
33829
|
-
const propTypes$
|
|
33830
|
-
sortKey: propTypes$
|
|
33831
|
-
sortDisabled: propTypes$
|
|
33832
|
-
sort: propTypes$
|
|
33871
|
+
const propTypes$w = __spreadValues({
|
|
33872
|
+
sortKey: propTypes$1H.exports.string,
|
|
33873
|
+
sortDisabled: propTypes$1H.exports.bool,
|
|
33874
|
+
sort: propTypes$1H.exports.arrayOf(impl()),
|
|
33833
33875
|
onSortChange: fun(),
|
|
33834
|
-
widthPx: propTypes$
|
|
33835
|
-
widthRem: propTypes$
|
|
33876
|
+
widthPx: propTypes$1H.exports.number,
|
|
33877
|
+
widthRem: propTypes$1H.exports.number
|
|
33836
33878
|
}, spsGlobalPropTypes);
|
|
33837
33879
|
function SpsSortingHeaderCell(_S) {
|
|
33838
33880
|
var _T = _S, {
|
|
@@ -33893,16 +33935,16 @@ function SpsSortingHeaderCell(_S) {
|
|
|
33893
33935
|
}, rest), children);
|
|
33894
33936
|
}
|
|
33895
33937
|
Object.assign(SpsSortingHeaderCell, {
|
|
33896
|
-
props: propsDoc$
|
|
33897
|
-
propTypes: propTypes$
|
|
33938
|
+
props: propsDoc$v,
|
|
33939
|
+
propTypes: propTypes$w,
|
|
33898
33940
|
displayName: "SpsSortingHeaderCell"
|
|
33899
33941
|
});
|
|
33900
|
-
const propsDoc$
|
|
33942
|
+
const propsDoc$u = {
|
|
33901
33943
|
sort: "SortedColumn[]",
|
|
33902
33944
|
onSortChange: "SortChangeHandler"
|
|
33903
33945
|
};
|
|
33904
|
-
const propTypes$
|
|
33905
|
-
sort: propTypes$
|
|
33946
|
+
const propTypes$v = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33947
|
+
sort: propTypes$1H.exports.arrayOf(impl()),
|
|
33906
33948
|
onSortChange: fun()
|
|
33907
33949
|
});
|
|
33908
33950
|
function SpsSortingHeader(_U) {
|
|
@@ -33936,8 +33978,8 @@ function SpsSortingHeader(_U) {
|
|
|
33936
33978
|
}));
|
|
33937
33979
|
}
|
|
33938
33980
|
Object.assign(SpsSortingHeader, {
|
|
33939
|
-
props: propsDoc$
|
|
33940
|
-
propTypes: propTypes$
|
|
33981
|
+
props: propsDoc$u,
|
|
33982
|
+
propTypes: propTypes$v,
|
|
33941
33983
|
displayName: "SpsSortingHeader"
|
|
33942
33984
|
});
|
|
33943
33985
|
const SpsSpinnerExamples = {
|
|
@@ -33976,7 +34018,7 @@ const SpsSpinnerExamples = {
|
|
|
33976
34018
|
}
|
|
33977
34019
|
}
|
|
33978
34020
|
};
|
|
33979
|
-
const propsDoc$
|
|
34021
|
+
const propsDoc$t = {
|
|
33980
34022
|
disabled: "boolean",
|
|
33981
34023
|
href: "string",
|
|
33982
34024
|
label: "string",
|
|
@@ -33984,13 +34026,13 @@ const propsDoc$s = {
|
|
|
33984
34026
|
kind: "StdButtonKind",
|
|
33985
34027
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
33986
34028
|
};
|
|
33987
|
-
const propTypes$
|
|
33988
|
-
disabled: propTypes$
|
|
33989
|
-
href: propTypes$
|
|
33990
|
-
label: propTypes$
|
|
34029
|
+
const propTypes$u = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34030
|
+
disabled: propTypes$1H.exports.bool,
|
|
34031
|
+
href: propTypes$1H.exports.string,
|
|
34032
|
+
label: propTypes$1H.exports.string,
|
|
33991
34033
|
icon: enumValue(SpsIcon),
|
|
33992
34034
|
kind: enumValue(StdButtonKind),
|
|
33993
|
-
options: propTypes$
|
|
34035
|
+
options: propTypes$1H.exports.arrayOf(propTypes$1H.exports.oneOfType([propTypes$1H.exports.func, propTypes$1H.exports.any]))
|
|
33994
34036
|
});
|
|
33995
34037
|
function SpsSplitButton(props2) {
|
|
33996
34038
|
const _a = props2, {
|
|
@@ -34041,8 +34083,8 @@ function SpsSplitButton(props2) {
|
|
|
34041
34083
|
}));
|
|
34042
34084
|
}
|
|
34043
34085
|
Object.assign(SpsSplitButton, {
|
|
34044
|
-
props: propsDoc$
|
|
34045
|
-
propTypes: propTypes$
|
|
34086
|
+
props: propsDoc$t,
|
|
34087
|
+
propTypes: propTypes$u,
|
|
34046
34088
|
displayName: "SpsSplitButton"
|
|
34047
34089
|
});
|
|
34048
34090
|
const SpsSplitButtonExamples = {
|
|
@@ -34143,11 +34185,11 @@ const SpsSplitButtonExamples = {
|
|
|
34143
34185
|
}
|
|
34144
34186
|
}
|
|
34145
34187
|
};
|
|
34146
|
-
const propsDoc$
|
|
34188
|
+
const propsDoc$s = {
|
|
34147
34189
|
channelId: { type: "string", required: true }
|
|
34148
34190
|
};
|
|
34149
|
-
const propTypes$
|
|
34150
|
-
channelId: propTypes$
|
|
34191
|
+
const propTypes$t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34192
|
+
channelId: propTypes$1H.exports.string.isRequired
|
|
34151
34193
|
});
|
|
34152
34194
|
function SpsSlackLink(props2) {
|
|
34153
34195
|
const _a = props2, {
|
|
@@ -34172,8 +34214,8 @@ function SpsSlackLink(props2) {
|
|
|
34172
34214
|
}), /* @__PURE__ */ React.createElement("span", null, t2("design-system:slackLink.label")));
|
|
34173
34215
|
}
|
|
34174
34216
|
Object.assign(SpsSlackLink, {
|
|
34175
|
-
props: propsDoc$
|
|
34176
|
-
propTypes: propTypes$
|
|
34217
|
+
props: propsDoc$s,
|
|
34218
|
+
propTypes: propTypes$t,
|
|
34177
34219
|
displayName: "SpsSlackLink"
|
|
34178
34220
|
});
|
|
34179
34221
|
const SpsSlackLinkExamples = {
|
|
@@ -34197,8 +34239,8 @@ const SpsSlackLinkExamples = {
|
|
|
34197
34239
|
}
|
|
34198
34240
|
}
|
|
34199
34241
|
};
|
|
34200
|
-
const propsDoc$
|
|
34201
|
-
const propTypes$
|
|
34242
|
+
const propsDoc$r = {};
|
|
34243
|
+
const propTypes$s = __spreadValues({}, spsGlobalPropTypes);
|
|
34202
34244
|
function SpsSummaryListExpansion(props2) {
|
|
34203
34245
|
const _a = props2, {
|
|
34204
34246
|
children,
|
|
@@ -34219,18 +34261,18 @@ function SpsSummaryListExpansion(props2) {
|
|
|
34219
34261
|
}), children);
|
|
34220
34262
|
}
|
|
34221
34263
|
Object.assign(SpsSummaryListExpansion, {
|
|
34222
|
-
props: propsDoc$
|
|
34223
|
-
propTypes: propTypes$
|
|
34264
|
+
props: propsDoc$r,
|
|
34265
|
+
propTypes: propTypes$s,
|
|
34224
34266
|
displayName: "SpsSummaryListExpansion"
|
|
34225
34267
|
});
|
|
34226
|
-
const propsDoc$
|
|
34268
|
+
const propsDoc$q = {
|
|
34227
34269
|
expanded: "boolean",
|
|
34228
34270
|
selected: "boolean",
|
|
34229
34271
|
onToggle: "(isExpanded: boolean) => void"
|
|
34230
34272
|
};
|
|
34231
|
-
const propTypes$
|
|
34232
|
-
expanded: propTypes$
|
|
34233
|
-
selected: propTypes$
|
|
34273
|
+
const propTypes$r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34274
|
+
expanded: propTypes$1H.exports.bool,
|
|
34275
|
+
selected: propTypes$1H.exports.bool,
|
|
34234
34276
|
onToggle: fun()
|
|
34235
34277
|
});
|
|
34236
34278
|
function SpsSummaryListRow(props2) {
|
|
@@ -34301,21 +34343,21 @@ function SpsSummaryListRow(props2) {
|
|
|
34301
34343
|
}, otherChildren), expansion);
|
|
34302
34344
|
}
|
|
34303
34345
|
Object.assign(SpsSummaryListRow, {
|
|
34304
|
-
props: propsDoc$
|
|
34305
|
-
propTypes: propTypes$
|
|
34346
|
+
props: propsDoc$q,
|
|
34347
|
+
propTypes: propTypes$r,
|
|
34306
34348
|
displayName: "SpsSummaryListRow"
|
|
34307
34349
|
});
|
|
34308
|
-
const propsDoc$
|
|
34350
|
+
const propsDoc$p = {
|
|
34309
34351
|
borderless: "boolean",
|
|
34310
34352
|
lean: "boolean",
|
|
34311
34353
|
leaner: "boolean",
|
|
34312
34354
|
width: "string"
|
|
34313
34355
|
};
|
|
34314
|
-
const propTypes$
|
|
34315
|
-
borderless: propTypes$
|
|
34316
|
-
lean: propTypes$
|
|
34317
|
-
leaner: propTypes$
|
|
34318
|
-
width: propTypes$
|
|
34356
|
+
const propTypes$q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34357
|
+
borderless: propTypes$1H.exports.bool,
|
|
34358
|
+
lean: propTypes$1H.exports.bool,
|
|
34359
|
+
leaner: propTypes$1H.exports.bool,
|
|
34360
|
+
width: propTypes$1H.exports.string
|
|
34319
34361
|
});
|
|
34320
34362
|
function SpsSummaryListColumn(props2) {
|
|
34321
34363
|
const _a = props2, {
|
|
@@ -34346,8 +34388,8 @@ function SpsSummaryListColumn(props2) {
|
|
|
34346
34388
|
}), children);
|
|
34347
34389
|
}
|
|
34348
34390
|
Object.assign(SpsSummaryListColumn, {
|
|
34349
|
-
props: propsDoc$
|
|
34350
|
-
propTypes: propTypes$
|
|
34391
|
+
props: propsDoc$p,
|
|
34392
|
+
propTypes: propTypes$q,
|
|
34351
34393
|
displayName: "SpsSummaryListColumn"
|
|
34352
34394
|
});
|
|
34353
34395
|
const SpsSummaryListExamples = {
|
|
@@ -34647,18 +34689,18 @@ const props = {
|
|
|
34647
34689
|
onClearCompleted: "() => void",
|
|
34648
34690
|
suppressTooltips: "boolean"
|
|
34649
34691
|
};
|
|
34650
|
-
const propTypes$
|
|
34651
|
-
tasks: propTypes$
|
|
34692
|
+
const propTypes$p = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34693
|
+
tasks: propTypes$1H.exports.arrayOf(propTypes$1H.exports.any),
|
|
34652
34694
|
taskQueuePosition: enumValue(Position),
|
|
34653
|
-
notificationText: propTypes$
|
|
34654
|
-
tooltipConfig: propTypes$
|
|
34695
|
+
notificationText: propTypes$1H.exports.string,
|
|
34696
|
+
tooltipConfig: propTypes$1H.exports.shape({
|
|
34655
34697
|
position: enumValue(Position),
|
|
34656
34698
|
kind: enumValue(TooltipKind)
|
|
34657
34699
|
}),
|
|
34658
34700
|
onClose: fun(),
|
|
34659
34701
|
onOpen: fun(),
|
|
34660
34702
|
onClearCompleted: fun(),
|
|
34661
|
-
suppressTooltips: propTypes$
|
|
34703
|
+
suppressTooltips: propTypes$1H.exports.bool
|
|
34662
34704
|
});
|
|
34663
34705
|
function SpsTaskQueue(_W) {
|
|
34664
34706
|
var _X = _W, {
|
|
@@ -34864,7 +34906,7 @@ function SpsTaskQueue(_W) {
|
|
|
34864
34906
|
}
|
|
34865
34907
|
Object.assign(SpsTaskQueue, {
|
|
34866
34908
|
props,
|
|
34867
|
-
propTypes: propTypes$
|
|
34909
|
+
propTypes: propTypes$p,
|
|
34868
34910
|
displayName: "SpsTaskQueue"
|
|
34869
34911
|
});
|
|
34870
34912
|
const SpsTaskQueueExamples = {
|
|
@@ -35185,7 +35227,7 @@ const SpsTaskQueueExamples = {
|
|
|
35185
35227
|
}
|
|
35186
35228
|
}
|
|
35187
35229
|
};
|
|
35188
|
-
const propsDoc$
|
|
35230
|
+
const propsDoc$o = {
|
|
35189
35231
|
disabled: "boolean",
|
|
35190
35232
|
formMeta: "SpsFormFieldMeta<string>",
|
|
35191
35233
|
icon: "SpsIcon",
|
|
@@ -35195,16 +35237,16 @@ const propsDoc$n = {
|
|
|
35195
35237
|
value: "string",
|
|
35196
35238
|
additionalText: "string"
|
|
35197
35239
|
};
|
|
35198
|
-
const propTypes$
|
|
35199
|
-
disabled: propTypes$
|
|
35240
|
+
const propTypes$o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35241
|
+
disabled: propTypes$1H.exports.bool,
|
|
35200
35242
|
formControl: impl(),
|
|
35201
35243
|
formMeta: impl(),
|
|
35202
35244
|
icon: enumValue(SpsIcon),
|
|
35203
|
-
name: propTypes$
|
|
35245
|
+
name: propTypes$1H.exports.string,
|
|
35204
35246
|
onChange: fun(),
|
|
35205
|
-
placeholder: propTypes$
|
|
35206
|
-
value: propTypes$
|
|
35207
|
-
additionalText: propTypes$
|
|
35247
|
+
placeholder: propTypes$1H.exports.string,
|
|
35248
|
+
value: propTypes$1H.exports.string,
|
|
35249
|
+
additionalText: propTypes$1H.exports.string
|
|
35208
35250
|
});
|
|
35209
35251
|
const SpsTextInput = React.forwardRef((_Y, ref2) => {
|
|
35210
35252
|
var _Z = _Y, {
|
|
@@ -35292,8 +35334,8 @@ const SpsTextInput = React.forwardRef((_Y, ref2) => {
|
|
|
35292
35334
|
}, additionalText));
|
|
35293
35335
|
});
|
|
35294
35336
|
Object.assign(SpsTextInput, {
|
|
35295
|
-
props: propsDoc$
|
|
35296
|
-
propTypes: propTypes$
|
|
35337
|
+
props: propsDoc$o,
|
|
35338
|
+
propTypes: propTypes$o,
|
|
35297
35339
|
displayName: "SpsTextInput"
|
|
35298
35340
|
});
|
|
35299
35341
|
const SpsTextInputExamples = {
|
|
@@ -35421,7 +35463,7 @@ const SpsTextInputExamples = {
|
|
|
35421
35463
|
}
|
|
35422
35464
|
}
|
|
35423
35465
|
};
|
|
35424
|
-
const propsDoc$
|
|
35466
|
+
const propsDoc$n = {
|
|
35425
35467
|
disabled: "boolean",
|
|
35426
35468
|
formMeta: "SpsFormFieldMeta<string>",
|
|
35427
35469
|
name: "string",
|
|
@@ -35431,17 +35473,17 @@ const propsDoc$m = {
|
|
|
35431
35473
|
value: "string",
|
|
35432
35474
|
additionalText: "string"
|
|
35433
35475
|
};
|
|
35434
|
-
const propTypes$
|
|
35435
|
-
disabled: propTypes$
|
|
35476
|
+
const propTypes$n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35477
|
+
disabled: propTypes$1H.exports.bool,
|
|
35436
35478
|
formControl: impl(),
|
|
35437
35479
|
formMeta: impl(),
|
|
35438
|
-
name: propTypes$
|
|
35480
|
+
name: propTypes$1H.exports.string,
|
|
35439
35481
|
onChange: fun(),
|
|
35440
|
-
placeholder: propTypes$
|
|
35482
|
+
placeholder: propTypes$1H.exports.string,
|
|
35441
35483
|
ref: ref(),
|
|
35442
|
-
rows: propTypes$
|
|
35443
|
-
value: propTypes$
|
|
35444
|
-
additionalText: propTypes$
|
|
35484
|
+
rows: propTypes$1H.exports.number,
|
|
35485
|
+
value: propTypes$1H.exports.string,
|
|
35486
|
+
additionalText: propTypes$1H.exports.string
|
|
35445
35487
|
});
|
|
35446
35488
|
function SpsTextarea(__) {
|
|
35447
35489
|
var _$ = __, {
|
|
@@ -35526,8 +35568,8 @@ function SpsTextarea(__) {
|
|
|
35526
35568
|
}, additionalText));
|
|
35527
35569
|
}
|
|
35528
35570
|
Object.assign(SpsTextarea, {
|
|
35529
|
-
props: propsDoc$
|
|
35530
|
-
propTypes: propTypes$
|
|
35571
|
+
props: propsDoc$n,
|
|
35572
|
+
propTypes: propTypes$n,
|
|
35531
35573
|
displayName: "SpsTextarea"
|
|
35532
35574
|
});
|
|
35533
35575
|
const SpsTextareaExamples = {
|
|
@@ -35656,7 +35698,7 @@ const SpsTextareaExamples = {
|
|
|
35656
35698
|
}
|
|
35657
35699
|
}
|
|
35658
35700
|
};
|
|
35659
|
-
const propsDoc$
|
|
35701
|
+
const propsDoc$m = {
|
|
35660
35702
|
href: "string",
|
|
35661
35703
|
icon: { type: "ReactNodeOrRenderFn", required: "true" },
|
|
35662
35704
|
error: "boolean",
|
|
@@ -35666,16 +35708,16 @@ const propsDoc$l = {
|
|
|
35666
35708
|
warningIcon: "ReactNodeOrRenderFn",
|
|
35667
35709
|
disabled: "boolean"
|
|
35668
35710
|
};
|
|
35669
|
-
const propTypes$
|
|
35670
|
-
href: propTypes$
|
|
35671
|
-
target: propTypes$
|
|
35711
|
+
const propTypes$m = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35712
|
+
href: propTypes$1H.exports.string,
|
|
35713
|
+
target: propTypes$1H.exports.string,
|
|
35672
35714
|
icon: nodeOrRenderFn.isRequired,
|
|
35673
|
-
error: propTypes$
|
|
35715
|
+
error: propTypes$1H.exports.bool,
|
|
35674
35716
|
errorIcon: nodeOrRenderFn,
|
|
35675
|
-
title: propTypes$
|
|
35676
|
-
warning: propTypes$
|
|
35717
|
+
title: propTypes$1H.exports.string.isRequired,
|
|
35718
|
+
warning: propTypes$1H.exports.bool,
|
|
35677
35719
|
warningIcon: nodeOrRenderFn,
|
|
35678
|
-
disabled: propTypes$
|
|
35720
|
+
disabled: propTypes$1H.exports.bool
|
|
35679
35721
|
});
|
|
35680
35722
|
function SpsTile(props2) {
|
|
35681
35723
|
const _a = props2, {
|
|
@@ -35737,12 +35779,12 @@ function SpsTile(props2) {
|
|
|
35737
35779
|
}))))));
|
|
35738
35780
|
}
|
|
35739
35781
|
Object.assign(SpsTile, {
|
|
35740
|
-
props: propsDoc$
|
|
35741
|
-
propTypes: propTypes$
|
|
35782
|
+
props: propsDoc$m,
|
|
35783
|
+
propTypes: propTypes$m,
|
|
35742
35784
|
displayName: "SpsTile"
|
|
35743
35785
|
});
|
|
35744
|
-
const propsDoc$
|
|
35745
|
-
const propTypes$
|
|
35786
|
+
const propsDoc$l = {};
|
|
35787
|
+
const propTypes$l = __spreadValues({}, spsGlobalPropTypes);
|
|
35746
35788
|
function SpsTileList(props2) {
|
|
35747
35789
|
const _a = props2, {
|
|
35748
35790
|
children,
|
|
@@ -35761,8 +35803,8 @@ function SpsTileList(props2) {
|
|
|
35761
35803
|
}, rest), children);
|
|
35762
35804
|
}
|
|
35763
35805
|
Object.assign(SpsTileList, {
|
|
35764
|
-
props: propsDoc$
|
|
35765
|
-
propTypes: propTypes$
|
|
35806
|
+
props: propsDoc$l,
|
|
35807
|
+
propTypes: propTypes$l,
|
|
35766
35808
|
displayName: "SpsTileList"
|
|
35767
35809
|
});
|
|
35768
35810
|
const SpsTileListExamples = {
|
|
@@ -35993,17 +36035,17 @@ const SpsTileListExamples = {
|
|
|
35993
36035
|
}
|
|
35994
36036
|
}
|
|
35995
36037
|
};
|
|
35996
|
-
const propsDoc$
|
|
36038
|
+
const propsDoc$k = {
|
|
35997
36039
|
value: { type: "number", required: "true" },
|
|
35998
36040
|
title: { type: "string", required: "true" },
|
|
35999
36041
|
kind: "SpsFilterTileKind",
|
|
36000
36042
|
active: "boolean"
|
|
36001
36043
|
};
|
|
36002
|
-
const propTypes$
|
|
36003
|
-
value: propTypes$
|
|
36004
|
-
title: propTypes$
|
|
36044
|
+
const propTypes$k = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36045
|
+
value: propTypes$1H.exports.number.isRequired,
|
|
36046
|
+
title: propTypes$1H.exports.string.isRequired,
|
|
36005
36047
|
kind: enumValue(SpsFilterTileKind),
|
|
36006
|
-
active: propTypes$
|
|
36048
|
+
active: propTypes$1H.exports.bool
|
|
36007
36049
|
});
|
|
36008
36050
|
function SpsFilterTile(props2) {
|
|
36009
36051
|
const _a = props2, {
|
|
@@ -36039,12 +36081,12 @@ function SpsFilterTile(props2) {
|
|
|
36039
36081
|
}));
|
|
36040
36082
|
}
|
|
36041
36083
|
Object.assign(SpsFilterTile, {
|
|
36042
|
-
props: propsDoc$
|
|
36043
|
-
propTypes: propTypes$
|
|
36084
|
+
props: propsDoc$k,
|
|
36085
|
+
propTypes: propTypes$k,
|
|
36044
36086
|
displayName: "SpsFilterTile"
|
|
36045
36087
|
});
|
|
36046
|
-
const propsDoc$
|
|
36047
|
-
const propTypes$
|
|
36088
|
+
const propsDoc$j = {};
|
|
36089
|
+
const propTypes$j = __spreadValues({}, spsGlobalPropTypes);
|
|
36048
36090
|
function SpsFilterTileList(props2) {
|
|
36049
36091
|
const _a = props2, {
|
|
36050
36092
|
children,
|
|
@@ -36063,8 +36105,8 @@ function SpsFilterTileList(props2) {
|
|
|
36063
36105
|
}, rest), children);
|
|
36064
36106
|
}
|
|
36065
36107
|
Object.assign(SpsFilterTileList, {
|
|
36066
|
-
props: propsDoc$
|
|
36067
|
-
propTypes: propTypes$
|
|
36108
|
+
props: propsDoc$j,
|
|
36109
|
+
propTypes: propTypes$j,
|
|
36068
36110
|
displayName: "SpsFilterTileList"
|
|
36069
36111
|
});
|
|
36070
36112
|
const SpsFilterTileListExamples = {
|
|
@@ -36127,7 +36169,7 @@ const SpsFilterTileListExamples = {
|
|
|
36127
36169
|
}
|
|
36128
36170
|
}
|
|
36129
36171
|
};
|
|
36130
|
-
const propsDoc$
|
|
36172
|
+
const propsDoc$i = {
|
|
36131
36173
|
active: "boolean",
|
|
36132
36174
|
description: "string",
|
|
36133
36175
|
disabled: "boolean",
|
|
@@ -36136,15 +36178,15 @@ const propsDoc$h = {
|
|
|
36136
36178
|
large: "boolean",
|
|
36137
36179
|
onChange: "(isActive: boolean) => void"
|
|
36138
36180
|
};
|
|
36139
|
-
const propTypes$
|
|
36140
|
-
active: propTypes$
|
|
36141
|
-
description: propTypes$
|
|
36142
|
-
disabled: propTypes$
|
|
36181
|
+
const propTypes$i = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36182
|
+
active: propTypes$1H.exports.bool,
|
|
36183
|
+
description: propTypes$1H.exports.string,
|
|
36184
|
+
disabled: propTypes$1H.exports.bool,
|
|
36143
36185
|
formControl: impl(),
|
|
36144
36186
|
formMeta: impl(),
|
|
36145
|
-
id: propTypes$
|
|
36146
|
-
label: propTypes$
|
|
36147
|
-
large: propTypes$
|
|
36187
|
+
id: propTypes$1H.exports.string,
|
|
36188
|
+
label: propTypes$1H.exports.string,
|
|
36189
|
+
large: propTypes$1H.exports.bool,
|
|
36148
36190
|
onChange: fun(),
|
|
36149
36191
|
ref: ref()
|
|
36150
36192
|
});
|
|
@@ -36178,7 +36220,7 @@ function SpsToggle(props2) {
|
|
|
36178
36220
|
"data-testid",
|
|
36179
36221
|
"unsafelyReplaceClassName"
|
|
36180
36222
|
]);
|
|
36181
|
-
useCheckDeprecatedProps("SpsToggle", propsDoc$
|
|
36223
|
+
useCheckDeprecatedProps("SpsToggle", propsDoc$i, props2);
|
|
36182
36224
|
const meta = formMeta || formControl2;
|
|
36183
36225
|
const [active, setActive] = React.useState(activeProp);
|
|
36184
36226
|
const { wrapperId, controlId } = useFormControlId(id2, meta);
|
|
@@ -36229,8 +36271,8 @@ function SpsToggle(props2) {
|
|
|
36229
36271
|
}, description)));
|
|
36230
36272
|
}
|
|
36231
36273
|
Object.assign(SpsToggle, {
|
|
36232
|
-
props: propsDoc$
|
|
36233
|
-
propTypes: propTypes$
|
|
36274
|
+
props: propsDoc$i,
|
|
36275
|
+
propTypes: propTypes$i,
|
|
36234
36276
|
displayName: "SpsToggle"
|
|
36235
36277
|
});
|
|
36236
36278
|
const SpsToggleExamples = {
|
|
@@ -36467,12 +36509,12 @@ const SpsToggleExamples = {
|
|
|
36467
36509
|
}
|
|
36468
36510
|
}
|
|
36469
36511
|
};
|
|
36470
|
-
const propsDoc$
|
|
36512
|
+
const propsDoc$h = {
|
|
36471
36513
|
heading: "string",
|
|
36472
36514
|
icon: "SpsIcon"
|
|
36473
36515
|
};
|
|
36474
|
-
const propTypes$
|
|
36475
|
-
heading: propTypes$
|
|
36516
|
+
const propTypes$h = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36517
|
+
heading: propTypes$1H.exports.string,
|
|
36476
36518
|
icon: enumValue(SpsIcon)
|
|
36477
36519
|
});
|
|
36478
36520
|
function SpsWorkflow(props2) {
|
|
@@ -36507,24 +36549,24 @@ function SpsWorkflow(props2) {
|
|
|
36507
36549
|
})), title), children);
|
|
36508
36550
|
}
|
|
36509
36551
|
Object.assign(SpsWorkflow, {
|
|
36510
|
-
props: propsDoc$
|
|
36511
|
-
propTypes: propTypes$
|
|
36552
|
+
props: propsDoc$h,
|
|
36553
|
+
propTypes: propTypes$h,
|
|
36512
36554
|
displayName: "SpsWorkflow"
|
|
36513
36555
|
});
|
|
36514
36556
|
function SpsWf(props2) {
|
|
36515
36557
|
return /* @__PURE__ */ React.createElement(SpsWorkflow, __spreadValues({}, props2));
|
|
36516
36558
|
}
|
|
36517
36559
|
Object.assign(SpsWf, {
|
|
36518
|
-
props: propsDoc$
|
|
36519
|
-
propTypes: propTypes$
|
|
36560
|
+
props: propsDoc$h,
|
|
36561
|
+
propTypes: propTypes$h,
|
|
36520
36562
|
displayName: "SpsWf"
|
|
36521
36563
|
});
|
|
36522
|
-
const propsDoc$
|
|
36564
|
+
const propsDoc$g = {
|
|
36523
36565
|
size: "RingSize",
|
|
36524
36566
|
progress: "number"
|
|
36525
36567
|
};
|
|
36526
|
-
const propTypes$
|
|
36527
|
-
progress: propTypes$
|
|
36568
|
+
const propTypes$g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36569
|
+
progress: propTypes$1H.exports.number,
|
|
36528
36570
|
size: enumValue(RingSize)
|
|
36529
36571
|
});
|
|
36530
36572
|
function SpsProgressRing({
|
|
@@ -36561,15 +36603,15 @@ function SpsProgressRing({
|
|
|
36561
36603
|
})));
|
|
36562
36604
|
}
|
|
36563
36605
|
Object.assign(SpsProgressRing, {
|
|
36564
|
-
props: propsDoc$
|
|
36565
|
-
propTypes: propTypes$
|
|
36606
|
+
props: propsDoc$g,
|
|
36607
|
+
propTypes: propTypes$g,
|
|
36566
36608
|
displayName: "SpsProgressRing"
|
|
36567
36609
|
});
|
|
36568
|
-
const propsDoc$
|
|
36610
|
+
const propsDoc$f = {
|
|
36569
36611
|
phases: "WizardPhase[]"
|
|
36570
36612
|
};
|
|
36571
|
-
const propTypes$
|
|
36572
|
-
phases: propTypes$
|
|
36613
|
+
const propTypes$f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36614
|
+
phases: propTypes$1H.exports.arrayOf(impl())
|
|
36573
36615
|
});
|
|
36574
36616
|
const CSS_BLOCK = "sps-wizard-sidebar";
|
|
36575
36617
|
function SpsWizardSidebar({
|
|
@@ -36609,21 +36651,21 @@ function SpsWizardSidebar({
|
|
|
36609
36651
|
}));
|
|
36610
36652
|
}
|
|
36611
36653
|
Object.assign(SpsWizardSidebar, {
|
|
36612
|
-
props: propsDoc$
|
|
36613
|
-
propTypes: propTypes$
|
|
36654
|
+
props: propsDoc$f,
|
|
36655
|
+
propTypes: propTypes$f,
|
|
36614
36656
|
displayName: "SpsWizardSidebar"
|
|
36615
36657
|
});
|
|
36616
|
-
const propsDoc$
|
|
36658
|
+
const propsDoc$e = {
|
|
36617
36659
|
display: "string",
|
|
36618
36660
|
condition: "WizardSubstepConditions",
|
|
36619
36661
|
orderPosition: "string | number"
|
|
36620
36662
|
};
|
|
36621
|
-
const propTypes$
|
|
36663
|
+
const propTypes$e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36622
36664
|
condition: enumValue(WizardSubstepConditions).isRequired,
|
|
36623
|
-
display: propTypes$
|
|
36624
|
-
orderPosition: propTypes$
|
|
36625
|
-
propTypes$
|
|
36626
|
-
propTypes$
|
|
36665
|
+
display: propTypes$1H.exports.string.isRequired,
|
|
36666
|
+
orderPosition: propTypes$1H.exports.oneOfType([
|
|
36667
|
+
propTypes$1H.exports.string,
|
|
36668
|
+
propTypes$1H.exports.number
|
|
36627
36669
|
]).isRequired
|
|
36628
36670
|
});
|
|
36629
36671
|
function SpsWizardSubstep(props2) {
|
|
@@ -36647,8 +36689,8 @@ function SpsWizardSubstep(props2) {
|
|
|
36647
36689
|
}, children));
|
|
36648
36690
|
}
|
|
36649
36691
|
Object.assign(SpsWizardSubstep, {
|
|
36650
|
-
props: propsDoc$
|
|
36651
|
-
propTypes: propTypes$
|
|
36692
|
+
props: propsDoc$e,
|
|
36693
|
+
propTypes: propTypes$e,
|
|
36652
36694
|
displayName: "SpsWizardSubstep"
|
|
36653
36695
|
});
|
|
36654
36696
|
const SpsWizardExamples = {
|
|
@@ -36743,8 +36785,8 @@ const SpsWizardExamples = {
|
|
|
36743
36785
|
}
|
|
36744
36786
|
}
|
|
36745
36787
|
};
|
|
36746
|
-
const propsDoc$
|
|
36747
|
-
const propTypes$
|
|
36788
|
+
const propsDoc$d = {};
|
|
36789
|
+
const propTypes$d = __spreadValues({}, spsGlobalPropTypes);
|
|
36748
36790
|
function SpsWorkflowDocument(props2) {
|
|
36749
36791
|
const _a = props2, {
|
|
36750
36792
|
children,
|
|
@@ -36764,22 +36806,22 @@ function SpsWorkflowDocument(props2) {
|
|
|
36764
36806
|
}, rest), children);
|
|
36765
36807
|
}
|
|
36766
36808
|
Object.assign(SpsWorkflowDocument, {
|
|
36767
|
-
props: propsDoc$
|
|
36768
|
-
propTypes: propTypes$
|
|
36809
|
+
props: propsDoc$d,
|
|
36810
|
+
propTypes: propTypes$d,
|
|
36769
36811
|
displayName: "SpsWorkflowDocument"
|
|
36770
36812
|
});
|
|
36771
36813
|
function SpsWfDoc(props2) {
|
|
36772
36814
|
return /* @__PURE__ */ React.createElement(SpsWorkflowDocument, __spreadValues({}, props2));
|
|
36773
36815
|
}
|
|
36774
36816
|
Object.assign(SpsWfDoc, {
|
|
36775
|
-
props: propsDoc$
|
|
36776
|
-
propTypes: propTypes$
|
|
36817
|
+
props: propsDoc$d,
|
|
36818
|
+
propTypes: propTypes$d,
|
|
36777
36819
|
displayName: "SpsWfDoc"
|
|
36778
36820
|
});
|
|
36779
|
-
const propsDoc$
|
|
36821
|
+
const propsDoc$c = {
|
|
36780
36822
|
icon: "SpsIcon"
|
|
36781
36823
|
};
|
|
36782
|
-
const propTypes$
|
|
36824
|
+
const propTypes$c = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36783
36825
|
icon: enumValue(SpsIcon)
|
|
36784
36826
|
});
|
|
36785
36827
|
function SpsWorkflowDocumentStatus(props2) {
|
|
@@ -36806,25 +36848,25 @@ function SpsWorkflowDocumentStatus(props2) {
|
|
|
36806
36848
|
}), children);
|
|
36807
36849
|
}
|
|
36808
36850
|
Object.assign(SpsWorkflowDocumentStatus, {
|
|
36809
|
-
props: propsDoc$
|
|
36810
|
-
propTypes: propTypes$
|
|
36851
|
+
props: propsDoc$c,
|
|
36852
|
+
propTypes: propTypes$c,
|
|
36811
36853
|
displayName: "SpsWorkflowDocumentStatus"
|
|
36812
36854
|
});
|
|
36813
36855
|
function SpsWfDs(props2) {
|
|
36814
36856
|
return /* @__PURE__ */ React.createElement(SpsWorkflowDocumentStatus, __spreadValues({}, props2));
|
|
36815
36857
|
}
|
|
36816
36858
|
Object.assign(SpsWfDs, {
|
|
36817
|
-
props: propsDoc$
|
|
36818
|
-
propTypes: propTypes$
|
|
36859
|
+
props: propsDoc$c,
|
|
36860
|
+
propTypes: propTypes$c,
|
|
36819
36861
|
displayName: "SpsWfDs"
|
|
36820
36862
|
});
|
|
36821
|
-
const propsDoc$
|
|
36863
|
+
const propsDoc$b = {
|
|
36822
36864
|
icon: { type: "SpsIcon", required: true },
|
|
36823
36865
|
title: { type: "string", required: true }
|
|
36824
36866
|
};
|
|
36825
|
-
const propTypes$
|
|
36867
|
+
const propTypes$b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36826
36868
|
icon: enumValue(SpsIcon).isRequired,
|
|
36827
|
-
title: propTypes$
|
|
36869
|
+
title: propTypes$1H.exports.string.isRequired
|
|
36828
36870
|
});
|
|
36829
36871
|
function SpsWorkflowStep(props2) {
|
|
36830
36872
|
const _a = props2, {
|
|
@@ -36855,16 +36897,16 @@ function SpsWorkflowStep(props2) {
|
|
|
36855
36897
|
}, title), children);
|
|
36856
36898
|
}
|
|
36857
36899
|
Object.assign(SpsWorkflowStep, {
|
|
36858
|
-
props: propsDoc$
|
|
36859
|
-
propTypes: propTypes$
|
|
36900
|
+
props: propsDoc$b,
|
|
36901
|
+
propTypes: propTypes$b,
|
|
36860
36902
|
displayName: "SpsWorkflowStep"
|
|
36861
36903
|
});
|
|
36862
36904
|
function SpsWfStep(props2) {
|
|
36863
36905
|
return /* @__PURE__ */ React.createElement(SpsWorkflowStep, __spreadValues({}, props2));
|
|
36864
36906
|
}
|
|
36865
36907
|
Object.assign(SpsWfStep, {
|
|
36866
|
-
props: propsDoc$
|
|
36867
|
-
propTypes: propTypes$
|
|
36908
|
+
props: propsDoc$b,
|
|
36909
|
+
propTypes: propTypes$b,
|
|
36868
36910
|
displayName: "SpsWfStep"
|
|
36869
36911
|
});
|
|
36870
36912
|
const SpsWorkflowExamples = {
|
|
@@ -36929,17 +36971,17 @@ const SpsWorkflowExamples = {
|
|
|
36929
36971
|
}
|
|
36930
36972
|
}
|
|
36931
36973
|
};
|
|
36932
|
-
const propsDoc$
|
|
36974
|
+
const propsDoc$a = {
|
|
36933
36975
|
illustration: "string",
|
|
36934
36976
|
artwork: { type: "string", deprecated: true },
|
|
36935
36977
|
heading: { type: "string", required: true },
|
|
36936
36978
|
subHeading: "string"
|
|
36937
36979
|
};
|
|
36938
|
-
const propTypes$
|
|
36939
|
-
illustration: propTypes$
|
|
36940
|
-
artwork: propTypes$
|
|
36941
|
-
heading: propTypes$
|
|
36942
|
-
subHeading: propTypes$
|
|
36980
|
+
const propTypes$a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36981
|
+
illustration: propTypes$1H.exports.string,
|
|
36982
|
+
artwork: propTypes$1H.exports.string,
|
|
36983
|
+
heading: propTypes$1H.exports.string.isRequired,
|
|
36984
|
+
subHeading: propTypes$1H.exports.string
|
|
36943
36985
|
});
|
|
36944
36986
|
function SpsZeroState(props2) {
|
|
36945
36987
|
const _a = props2, {
|
|
@@ -36986,18 +37028,18 @@ function SpsZeroState(props2) {
|
|
|
36986
37028
|
}, children)));
|
|
36987
37029
|
}
|
|
36988
37030
|
Object.assign(SpsZeroState, {
|
|
36989
|
-
props: propsDoc$
|
|
36990
|
-
propTypes: propTypes$
|
|
37031
|
+
props: propsDoc$a,
|
|
37032
|
+
propTypes: propTypes$a,
|
|
36991
37033
|
displayName: "SpsZeroState"
|
|
36992
37034
|
});
|
|
36993
|
-
const propsDoc$
|
|
37035
|
+
const propsDoc$9 = {
|
|
36994
37036
|
illustration: "string",
|
|
36995
37037
|
icon: { type: "SpsIcon", deprecated: true },
|
|
36996
37038
|
heading: "ReactNodeOrRenderFn",
|
|
36997
37039
|
subHeading: "ReactNodeOrRenderFn"
|
|
36998
37040
|
};
|
|
36999
|
-
const propTypes$
|
|
37000
|
-
illustration: propTypes$
|
|
37041
|
+
const propTypes$9 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37042
|
+
illustration: propTypes$1H.exports.string,
|
|
37001
37043
|
icon: enumValue(SpsIcon),
|
|
37002
37044
|
heading: nodeOrRenderFn,
|
|
37003
37045
|
subHeading: nodeOrRenderFn
|
|
@@ -37040,8 +37082,8 @@ function SpsMicroZeroState(props2) {
|
|
|
37040
37082
|
}, subHeading));
|
|
37041
37083
|
}
|
|
37042
37084
|
Object.assign(SpsMicroZeroState, {
|
|
37043
|
-
props: propsDoc$
|
|
37044
|
-
propTypes: propTypes$
|
|
37085
|
+
props: propsDoc$9,
|
|
37086
|
+
propTypes: propTypes$9,
|
|
37045
37087
|
displayName: "SpsMicroZeroState"
|
|
37046
37088
|
});
|
|
37047
37089
|
const SpsZeroStateExamples = {
|
|
@@ -37215,8 +37257,8 @@ function Component() {
|
|
|
37215
37257
|
}
|
|
37216
37258
|
}
|
|
37217
37259
|
};
|
|
37218
|
-
const propsDoc$
|
|
37219
|
-
const propTypes$
|
|
37260
|
+
const propsDoc$8 = {};
|
|
37261
|
+
const propTypes$8 = __spreadValues({}, spsGlobalPropTypes);
|
|
37220
37262
|
function SpsFilterPanel(_aa) {
|
|
37221
37263
|
var _ba = _aa, { children, className } = _ba, rest = __objRest(_ba, ["children", "className"]);
|
|
37222
37264
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
@@ -37224,11 +37266,11 @@ function SpsFilterPanel(_aa) {
|
|
|
37224
37266
|
}, rest), children);
|
|
37225
37267
|
}
|
|
37226
37268
|
Object.assign(SpsFilterPanel, {
|
|
37227
|
-
props: propsDoc$
|
|
37228
|
-
propTypes: propTypes$
|
|
37269
|
+
props: propsDoc$8,
|
|
37270
|
+
propTypes: propTypes$8,
|
|
37229
37271
|
displayName: "SpsFilterPanel"
|
|
37230
37272
|
});
|
|
37231
|
-
const propsDoc$
|
|
37273
|
+
const propsDoc$7 = {
|
|
37232
37274
|
title: "string",
|
|
37233
37275
|
expanded: "boolean",
|
|
37234
37276
|
heightPx: "number",
|
|
@@ -37236,11 +37278,11 @@ const propsDoc$6 = {
|
|
|
37236
37278
|
onExpand: "() => void",
|
|
37237
37279
|
onCollapse: "() => void"
|
|
37238
37280
|
};
|
|
37239
|
-
const propTypes$
|
|
37240
|
-
title: propTypes$
|
|
37241
|
-
expanded: propTypes$
|
|
37242
|
-
heightPx: propTypes$
|
|
37243
|
-
heightRem: propTypes$
|
|
37281
|
+
const propTypes$7 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37282
|
+
title: propTypes$1H.exports.string,
|
|
37283
|
+
expanded: propTypes$1H.exports.bool,
|
|
37284
|
+
heightPx: propTypes$1H.exports.number,
|
|
37285
|
+
heightRem: propTypes$1H.exports.number,
|
|
37244
37286
|
onExpand: fun(),
|
|
37245
37287
|
onCollapse: fun()
|
|
37246
37288
|
});
|
|
@@ -37297,14 +37339,14 @@ function SpsFilterPanelSection(_ca) {
|
|
|
37297
37339
|
}, children)));
|
|
37298
37340
|
}
|
|
37299
37341
|
Object.assign(SpsFilterPanelSection, {
|
|
37300
|
-
props: propsDoc$
|
|
37301
|
-
propTypes: propTypes$
|
|
37342
|
+
props: propsDoc$7,
|
|
37343
|
+
propTypes: propTypes$7,
|
|
37302
37344
|
displayName: "SpsFilterPanelSection"
|
|
37303
37345
|
});
|
|
37304
|
-
const propsDoc$
|
|
37346
|
+
const propsDoc$6 = {
|
|
37305
37347
|
onClear: "() => void"
|
|
37306
37348
|
};
|
|
37307
|
-
const propTypes$
|
|
37349
|
+
const propTypes$6 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37308
37350
|
onClear: fun()
|
|
37309
37351
|
});
|
|
37310
37352
|
function SpsFilterPanelCap(_ea) {
|
|
@@ -37331,8 +37373,8 @@ function SpsFilterPanelCap(_ea) {
|
|
|
37331
37373
|
}, t2("design-system:filterPanel.clear")));
|
|
37332
37374
|
}
|
|
37333
37375
|
Object.assign(SpsFilterPanelCap, {
|
|
37334
|
-
props: propsDoc$
|
|
37335
|
-
propTypes: propTypes$
|
|
37376
|
+
props: propsDoc$6,
|
|
37377
|
+
propTypes: propTypes$6,
|
|
37336
37378
|
displayName: "SpsFilterPanelCap"
|
|
37337
37379
|
});
|
|
37338
37380
|
const SpsFilterPanelExamples = {
|
|
@@ -37659,15 +37701,15 @@ const SpsFilterPanelExamples = {
|
|
|
37659
37701
|
}
|
|
37660
37702
|
}
|
|
37661
37703
|
};
|
|
37662
|
-
const propsDoc$
|
|
37704
|
+
const propsDoc$5 = {
|
|
37663
37705
|
value: "string",
|
|
37664
37706
|
placeholder: "string",
|
|
37665
37707
|
formMeta: "SpsFormFieldMeta<string>",
|
|
37666
37708
|
onFilterChange: "ChangeEventHandler<HTMLInputElement>"
|
|
37667
37709
|
};
|
|
37668
|
-
const propTypes$
|
|
37669
|
-
value: propTypes$
|
|
37670
|
-
placeholder: propTypes$
|
|
37710
|
+
const propTypes$5 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37711
|
+
value: propTypes$1H.exports.string,
|
|
37712
|
+
placeholder: propTypes$1H.exports.string,
|
|
37671
37713
|
formMeta: impl(),
|
|
37672
37714
|
onFilterChange: fun()
|
|
37673
37715
|
});
|
|
@@ -37697,15 +37739,15 @@ function SpsFilterPanelFilterBox(_ga) {
|
|
|
37697
37739
|
}));
|
|
37698
37740
|
}
|
|
37699
37741
|
Object.assign(SpsFilterPanelFilterBox, {
|
|
37700
|
-
props: propsDoc$
|
|
37701
|
-
propTypes: propTypes$
|
|
37742
|
+
props: propsDoc$5,
|
|
37743
|
+
propTypes: propTypes$5,
|
|
37702
37744
|
displayName: "SpsFilterPanelFilterBox"
|
|
37703
37745
|
});
|
|
37704
|
-
const propsDoc$
|
|
37746
|
+
const propsDoc$4 = {
|
|
37705
37747
|
showCondition: "boolean"
|
|
37706
37748
|
};
|
|
37707
|
-
const propTypes$
|
|
37708
|
-
showCondition: propTypes$
|
|
37749
|
+
const propTypes$4 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37750
|
+
showCondition: propTypes$1H.exports.bool
|
|
37709
37751
|
});
|
|
37710
37752
|
function SpsConditionalField(_ia) {
|
|
37711
37753
|
var _ja = _ia, {
|
|
@@ -37722,8 +37764,8 @@ function SpsConditionalField(_ia) {
|
|
|
37722
37764
|
}, rest), children) : null;
|
|
37723
37765
|
}
|
|
37724
37766
|
Object.assign(SpsConditionalField, {
|
|
37725
|
-
props: propsDoc$
|
|
37726
|
-
propTypes: propTypes$
|
|
37767
|
+
props: propsDoc$4,
|
|
37768
|
+
propTypes: propTypes$4,
|
|
37727
37769
|
displayName: "SpsConditionalField"
|
|
37728
37770
|
});
|
|
37729
37771
|
const SpsConditionalFieldExamples = {
|
|
@@ -38179,20 +38221,20 @@ const SpsContextBar = function({
|
|
|
38179
38221
|
onClick: onChange
|
|
38180
38222
|
}, "Change"));
|
|
38181
38223
|
};
|
|
38182
|
-
const propsDoc$
|
|
38224
|
+
const propsDoc$3 = {
|
|
38183
38225
|
disabled: "boolean",
|
|
38184
38226
|
formMeta: "SpsFormFieldMeta<number>",
|
|
38185
38227
|
name: "string",
|
|
38186
38228
|
onChange: "ChangeEventHandler<number>",
|
|
38187
38229
|
value: "number"
|
|
38188
38230
|
};
|
|
38189
|
-
const propTypes$
|
|
38190
|
-
disabled: propTypes$
|
|
38231
|
+
const propTypes$3 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
38232
|
+
disabled: propTypes$1H.exports.bool,
|
|
38191
38233
|
formMeta: impl(),
|
|
38192
|
-
name: propTypes$
|
|
38234
|
+
name: propTypes$1H.exports.string,
|
|
38193
38235
|
onChange: fun(),
|
|
38194
38236
|
ref: ref(),
|
|
38195
|
-
value: propTypes$
|
|
38237
|
+
value: propTypes$1H.exports.number
|
|
38196
38238
|
});
|
|
38197
38239
|
function strToDollars(str) {
|
|
38198
38240
|
return str ? Number.parseInt(str.replace(/[^\d]/g, ""), 10) / 100 : null;
|
|
@@ -38272,8 +38314,8 @@ function SpsCurrencyInput(_ka) {
|
|
|
38272
38314
|
})));
|
|
38273
38315
|
}
|
|
38274
38316
|
Object.assign(SpsCurrencyInput, {
|
|
38275
|
-
props: propsDoc$
|
|
38276
|
-
propTypes: propTypes$
|
|
38317
|
+
props: propsDoc$3,
|
|
38318
|
+
propTypes: propTypes$3,
|
|
38277
38319
|
displayName: "SpsCurrencyInput"
|
|
38278
38320
|
});
|
|
38279
38321
|
const SpsCurrencyInputExamples = {
|
|
@@ -38352,7 +38394,7 @@ function useGrowlers() {
|
|
|
38352
38394
|
}, []);
|
|
38353
38395
|
return [growlers, createGrowler];
|
|
38354
38396
|
}
|
|
38355
|
-
const propsDoc$
|
|
38397
|
+
const propsDoc$2 = {
|
|
38356
38398
|
color: "TagKind",
|
|
38357
38399
|
href: "String",
|
|
38358
38400
|
icon: "SpsIcon",
|
|
@@ -38365,12 +38407,12 @@ const propsDoc$1 = {
|
|
|
38365
38407
|
required: true
|
|
38366
38408
|
}
|
|
38367
38409
|
};
|
|
38368
|
-
const propTypes$
|
|
38410
|
+
const propTypes$2 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
38369
38411
|
color: enumValue(TagKind),
|
|
38370
|
-
href: propTypes$
|
|
38412
|
+
href: propTypes$1H.exports.string,
|
|
38371
38413
|
icon: enumValue(SpsIcon),
|
|
38372
|
-
tagKey: propTypes$
|
|
38373
|
-
value: propTypes$
|
|
38414
|
+
tagKey: propTypes$1H.exports.string.isRequired,
|
|
38415
|
+
value: propTypes$1H.exports.string.isRequired
|
|
38374
38416
|
});
|
|
38375
38417
|
function SpsKeyValueTag(props2) {
|
|
38376
38418
|
const _a = props2, {
|
|
@@ -38407,8 +38449,8 @@ function SpsKeyValueTag(props2) {
|
|
|
38407
38449
|
}, value), !href && value));
|
|
38408
38450
|
}
|
|
38409
38451
|
Object.assign(SpsKeyValueTag, {
|
|
38410
|
-
props: propsDoc$
|
|
38411
|
-
propTypes: propTypes$
|
|
38452
|
+
props: propsDoc$2,
|
|
38453
|
+
propTypes: propTypes$2,
|
|
38412
38454
|
displayName: "SpsKeyValueTag"
|
|
38413
38455
|
});
|
|
38414
38456
|
const SpsKeyValueTagExamples = {
|
|
@@ -38461,6 +38503,242 @@ const SpsKeyValueTagExamples = {
|
|
|
38461
38503
|
}
|
|
38462
38504
|
}
|
|
38463
38505
|
};
|
|
38506
|
+
const WHITESPACE_COMMA_TAB_NEWLINE_REGEX = new RegExp(/[,\n+\s+\t+]+/);
|
|
38507
|
+
function splitStringByDelimiter(str) {
|
|
38508
|
+
return str.split(WHITESPACE_COMMA_TAB_NEWLINE_REGEX).filter((s) => s !== "");
|
|
38509
|
+
}
|
|
38510
|
+
const propsDoc$1 = {
|
|
38511
|
+
disabled: "boolean",
|
|
38512
|
+
formMeta: "SpsFormFieldMeta<any[]>",
|
|
38513
|
+
icon: "SpsIcon",
|
|
38514
|
+
onChange: "ChangeEventHandler",
|
|
38515
|
+
onEntryChange: "(searchText: string) => void",
|
|
38516
|
+
placeholder: "string",
|
|
38517
|
+
value: "any"
|
|
38518
|
+
};
|
|
38519
|
+
const propTypes$1 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
38520
|
+
disabled: propTypes$1H.exports.bool,
|
|
38521
|
+
formControl: impl(),
|
|
38522
|
+
formMeta: impl(),
|
|
38523
|
+
icon: enumValue(SpsIcon),
|
|
38524
|
+
onChange: fun(),
|
|
38525
|
+
onEntryChange: fun(),
|
|
38526
|
+
placeholder: propTypes$1H.exports.string,
|
|
38527
|
+
value: propTypes$1H.exports.any
|
|
38528
|
+
});
|
|
38529
|
+
function SpsMultiValueTextInput(_ma) {
|
|
38530
|
+
var _na = _ma, {
|
|
38531
|
+
className,
|
|
38532
|
+
disabled,
|
|
38533
|
+
formControl: formControl2,
|
|
38534
|
+
formMeta,
|
|
38535
|
+
id: id2,
|
|
38536
|
+
onChange,
|
|
38537
|
+
onEntryChange,
|
|
38538
|
+
placeholder,
|
|
38539
|
+
unsafelyReplaceClassName,
|
|
38540
|
+
value,
|
|
38541
|
+
icon,
|
|
38542
|
+
"data-testid": testId
|
|
38543
|
+
} = _na, rest = __objRest(_na, [
|
|
38544
|
+
"className",
|
|
38545
|
+
"disabled",
|
|
38546
|
+
"formControl",
|
|
38547
|
+
"formMeta",
|
|
38548
|
+
"id",
|
|
38549
|
+
"onChange",
|
|
38550
|
+
"onEntryChange",
|
|
38551
|
+
"placeholder",
|
|
38552
|
+
"unsafelyReplaceClassName",
|
|
38553
|
+
"value",
|
|
38554
|
+
"icon",
|
|
38555
|
+
"data-testid"
|
|
38556
|
+
]);
|
|
38557
|
+
const meta = formMeta || formControl2;
|
|
38558
|
+
const { wrapperId, controlId } = useFormControlId(id2, meta);
|
|
38559
|
+
const [state, patchState] = usePatchReducer({
|
|
38560
|
+
keyDown: null,
|
|
38561
|
+
searchText: "",
|
|
38562
|
+
activeTagIndex: null,
|
|
38563
|
+
optionIds: ""
|
|
38564
|
+
});
|
|
38565
|
+
React.useEffect(() => {
|
|
38566
|
+
if (onEntryChange) {
|
|
38567
|
+
onEntryChange(state.searchText);
|
|
38568
|
+
}
|
|
38569
|
+
}, [state.searchText]);
|
|
38570
|
+
const rootElement = React.useRef();
|
|
38571
|
+
const textInput = React.useRef();
|
|
38572
|
+
const clickableTagList = React.useRef();
|
|
38573
|
+
function focusTextInput() {
|
|
38574
|
+
setTimeout(() => {
|
|
38575
|
+
textInput.current.focus();
|
|
38576
|
+
}, 0);
|
|
38577
|
+
}
|
|
38578
|
+
function updateValue(newValue) {
|
|
38579
|
+
patchState({ searchText: "" });
|
|
38580
|
+
if (meta) {
|
|
38581
|
+
meta.setValue(newValue);
|
|
38582
|
+
meta.markAsDirty();
|
|
38583
|
+
}
|
|
38584
|
+
if (onChange) {
|
|
38585
|
+
onChange(new FauxChangeEvent({ value: newValue }));
|
|
38586
|
+
}
|
|
38587
|
+
}
|
|
38588
|
+
function removeOptionByIndex(indexToRemove) {
|
|
38589
|
+
const newValue = value.filter((_, i2) => i2 !== indexToRemove);
|
|
38590
|
+
updateValue(newValue);
|
|
38591
|
+
}
|
|
38592
|
+
function handleChange(event) {
|
|
38593
|
+
patchState({ searchText: event.target.value });
|
|
38594
|
+
}
|
|
38595
|
+
function focusClickableTagRemoveButton(index) {
|
|
38596
|
+
if (clickableTagList.current && clickableTagList.current.children.length && index !== null) {
|
|
38597
|
+
const currTag = clickableTagList.current.children[index];
|
|
38598
|
+
const removeIcon = currTag == null ? void 0 : currTag.querySelector(".sps-clickable-tag__icon");
|
|
38599
|
+
removeIcon && removeIcon.focus();
|
|
38600
|
+
}
|
|
38601
|
+
}
|
|
38602
|
+
function handleKeyDown(event) {
|
|
38603
|
+
if (!disabled) {
|
|
38604
|
+
const cursorIsAtLeftOfTextInputAndThereIsAtLeastOneSelection = !event.target.selectionStart && value && value.length;
|
|
38605
|
+
switch (event.key) {
|
|
38606
|
+
case "Backspace":
|
|
38607
|
+
if (state.activeTagIndex === value.length - 1) {
|
|
38608
|
+
removeOptionByIndex(state.activeTagIndex);
|
|
38609
|
+
focusTextInput();
|
|
38610
|
+
return;
|
|
38611
|
+
}
|
|
38612
|
+
if (state.activeTagIndex !== null) {
|
|
38613
|
+
removeOptionByIndex(state.activeTagIndex);
|
|
38614
|
+
return;
|
|
38615
|
+
}
|
|
38616
|
+
if (cursorIsAtLeftOfTextInputAndThereIsAtLeastOneSelection) {
|
|
38617
|
+
updateValue(value.slice(0, value.length - 1));
|
|
38618
|
+
focusTextInput();
|
|
38619
|
+
return;
|
|
38620
|
+
}
|
|
38621
|
+
break;
|
|
38622
|
+
case "Delete":
|
|
38623
|
+
if (state.activeTagIndex !== null) {
|
|
38624
|
+
removeOptionByIndex(state.activeTagIndex);
|
|
38625
|
+
focusTextInput();
|
|
38626
|
+
}
|
|
38627
|
+
break;
|
|
38628
|
+
case "Enter":
|
|
38629
|
+
case "Tab":
|
|
38630
|
+
case ",":
|
|
38631
|
+
case " ":
|
|
38632
|
+
if (state.searchText !== "") {
|
|
38633
|
+
event.preventDefault();
|
|
38634
|
+
}
|
|
38635
|
+
patchState({ activeTagIndex: null, searchText: "" });
|
|
38636
|
+
if (state.searchText.trim() !== "" && value.indexOf(state.searchText) === -1) {
|
|
38637
|
+
updateValue([...value, ...splitStringByDelimiter(state.searchText)]);
|
|
38638
|
+
}
|
|
38639
|
+
break;
|
|
38640
|
+
case "Up":
|
|
38641
|
+
case "ArrowUp":
|
|
38642
|
+
case "Down":
|
|
38643
|
+
case "ArrowDown":
|
|
38644
|
+
event.preventDefault();
|
|
38645
|
+
break;
|
|
38646
|
+
case "Left":
|
|
38647
|
+
case "ArrowLeft":
|
|
38648
|
+
if (cursorIsAtLeftOfTextInputAndThereIsAtLeastOneSelection) {
|
|
38649
|
+
if (state.activeTagIndex === null) {
|
|
38650
|
+
patchState({ activeTagIndex: value.length - 1 });
|
|
38651
|
+
focusClickableTagRemoveButton(value.length - 1);
|
|
38652
|
+
} else if (state.activeTagIndex > 0) {
|
|
38653
|
+
patchState({ activeTagIndex: state.activeTagIndex - 1 });
|
|
38654
|
+
focusClickableTagRemoveButton(state.activeTagIndex - 1);
|
|
38655
|
+
}
|
|
38656
|
+
return;
|
|
38657
|
+
}
|
|
38658
|
+
break;
|
|
38659
|
+
case "Right":
|
|
38660
|
+
case "ArrowRight":
|
|
38661
|
+
if (state.activeTagIndex !== null) {
|
|
38662
|
+
if (state.activeTagIndex === value.length - 1) {
|
|
38663
|
+
patchState({ activeTagIndex: null });
|
|
38664
|
+
textInput.current.focus();
|
|
38665
|
+
} else {
|
|
38666
|
+
patchState({ activeTagIndex: state.activeTagIndex + 1 });
|
|
38667
|
+
focusClickableTagRemoveButton(state.activeTagIndex + 1);
|
|
38668
|
+
}
|
|
38669
|
+
return;
|
|
38670
|
+
}
|
|
38671
|
+
break;
|
|
38672
|
+
}
|
|
38673
|
+
event.persist();
|
|
38674
|
+
patchState({ keyDown: event });
|
|
38675
|
+
}
|
|
38676
|
+
}
|
|
38677
|
+
function handleClearIconClick(event) {
|
|
38678
|
+
updateValue([]);
|
|
38679
|
+
event.stopPropagation();
|
|
38680
|
+
}
|
|
38681
|
+
const classes = clsx(unsafelyReplaceClassName || "sps-multi-select", disabled && "sps-form-control--disabled", className);
|
|
38682
|
+
const tagIds = new Array(value.length).fill(0).map((_, i2) => `${wrapperId}_tag-${i2}`);
|
|
38683
|
+
return /* @__PURE__ */ React.createElement(SpsFormComponentWrapper, {
|
|
38684
|
+
id: wrapperId,
|
|
38685
|
+
className: classes,
|
|
38686
|
+
formControl: formControl2,
|
|
38687
|
+
formMeta,
|
|
38688
|
+
ref: rootElement,
|
|
38689
|
+
inputRef: textInput,
|
|
38690
|
+
focusInputOnClick: true,
|
|
38691
|
+
onKeyDown: handleKeyDown,
|
|
38692
|
+
role: "listbox",
|
|
38693
|
+
"aria-multiselectable": true,
|
|
38694
|
+
"aria-activedescendant": tagIds[state.activeTagIndex],
|
|
38695
|
+
"aria-owns": state.optionIds
|
|
38696
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
38697
|
+
className: "sps-text-input"
|
|
38698
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
38699
|
+
className: clsx("sps-form-control", value && !disabled && "sps-form-control--clearable")
|
|
38700
|
+
}, icon && /* @__PURE__ */ React.createElement("i", {
|
|
38701
|
+
className: clsx("sps-text-input__icon", "sps-icon", `sps-icon-${icon}`)
|
|
38702
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
38703
|
+
className: "sps-multi-select__tags-and-input",
|
|
38704
|
+
ref: clickableTagList
|
|
38705
|
+
}, Array.isArray(value) && value.map((opt, i2) => /* @__PURE__ */ React.createElement(SpsClickableTag, {
|
|
38706
|
+
id: tagIds[i2],
|
|
38707
|
+
role: "option",
|
|
38708
|
+
disabled,
|
|
38709
|
+
"aria-selected": "true",
|
|
38710
|
+
key: tagIds[i2],
|
|
38711
|
+
onRemove: () => removeOptionByIndex(i2)
|
|
38712
|
+
}, /* @__PURE__ */ React.createElement("span", null, opt))), /* @__PURE__ */ React.createElement("input", __spreadValues({
|
|
38713
|
+
type: "text",
|
|
38714
|
+
ref: textInput,
|
|
38715
|
+
"data-testid": `${testId}__multi-value-text-input`,
|
|
38716
|
+
value: state.searchText,
|
|
38717
|
+
className: "sps-text-input__input",
|
|
38718
|
+
placeholder: state.searchText.length === 0 ? placeholder : void 0,
|
|
38719
|
+
id: controlId,
|
|
38720
|
+
onChange: handleChange,
|
|
38721
|
+
onKeyDown: handleKeyDown,
|
|
38722
|
+
disabled,
|
|
38723
|
+
role: "listbox",
|
|
38724
|
+
"aria-multiselectable": "true",
|
|
38725
|
+
"aria-owns": tagIds.join(" ")
|
|
38726
|
+
}, rest))), value.length !== 0 && !disabled ? /* @__PURE__ */ React.createElement("i", {
|
|
38727
|
+
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
38728
|
+
onClick: (event) => handleClearIconClick(event)
|
|
38729
|
+
}) : null)));
|
|
38730
|
+
}
|
|
38731
|
+
Object.assign(SpsMultiValueTextInput, {
|
|
38732
|
+
props: propsDoc$1,
|
|
38733
|
+
propTypes: propTypes$1,
|
|
38734
|
+
displayName: "SpsMultiValueTextInput"
|
|
38735
|
+
});
|
|
38736
|
+
const SpsMultiValueTextInputExamples = {
|
|
38737
|
+
general: {
|
|
38738
|
+
label: "General Usage",
|
|
38739
|
+
description: ({ NavigateTo }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h5", null, "Coming soon"))
|
|
38740
|
+
}
|
|
38741
|
+
};
|
|
38464
38742
|
function useSpsAction(descriptor, fn) {
|
|
38465
38743
|
const metadata = __spreadValues(__spreadValues({}, SPS_ACTION_DEFAULTS), descriptor);
|
|
38466
38744
|
const [state, patchState] = usePatchReducer(metadata);
|
|
@@ -38556,4 +38834,4 @@ Object.assign(SpsVr, {
|
|
|
38556
38834
|
propTypes,
|
|
38557
38835
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
38558
38836
|
});
|
|
38559
|
-
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, SpsContextBar, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, 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, SpsModalExamples, SpsModalFooter, 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, useColumnResizer, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate };
|
|
38837
|
+
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, SpsContextBar, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, 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, SpsModalExamples, SpsModalFooter, SpsMultiSelect, SpsMultiSelectExamples, SpsMultiValueTextInput, SpsMultiValueTextInputExamples, 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, useColumnResizer, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate };
|