@spscommerce/ds-react 5.11.0 → 5.11.1
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.es.js
CHANGED
|
@@ -81,7 +81,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
81
81
|
function commonjsRequire(path) {
|
|
82
82
|
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.');
|
|
83
83
|
}
|
|
84
|
-
var propTypes$
|
|
84
|
+
var propTypes$1N = { exports: {} };
|
|
85
85
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
86
86
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
87
87
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
@@ -129,32 +129,32 @@ var factoryWithThrowingShims = function() {
|
|
|
129
129
|
return ReactPropTypes;
|
|
130
130
|
};
|
|
131
131
|
{
|
|
132
|
-
propTypes$
|
|
132
|
+
propTypes$1N.exports = factoryWithThrowingShims();
|
|
133
133
|
}
|
|
134
134
|
function deprecated(type) {
|
|
135
135
|
return type;
|
|
136
136
|
}
|
|
137
137
|
function enumValue(e2) {
|
|
138
|
-
return propTypes$
|
|
138
|
+
return propTypes$1N.exports.oneOf(values$3(e2));
|
|
139
139
|
}
|
|
140
140
|
function fun() {
|
|
141
|
-
return propTypes$
|
|
141
|
+
return propTypes$1N.exports.func;
|
|
142
142
|
}
|
|
143
143
|
function impl() {
|
|
144
|
-
return propTypes$
|
|
144
|
+
return propTypes$1N.exports.object;
|
|
145
145
|
}
|
|
146
146
|
function ref() {
|
|
147
|
-
return propTypes$
|
|
147
|
+
return propTypes$1N.exports.object;
|
|
148
148
|
}
|
|
149
|
-
const nodeOrRenderFn = propTypes$
|
|
149
|
+
const nodeOrRenderFn = propTypes$1N.exports.oneOfType([propTypes$1N.exports.node, propTypes$1N.exports.func]);
|
|
150
150
|
const spsGlobalPropTypes = {
|
|
151
|
-
children: propTypes$
|
|
152
|
-
className: propTypes$
|
|
153
|
-
"data-testid": propTypes$
|
|
154
|
-
unsafelyReplaceClassName: propTypes$
|
|
151
|
+
children: propTypes$1N.exports.oneOfType([propTypes$1N.exports.arrayOf(propTypes$1N.exports.node), propTypes$1N.exports.node]),
|
|
152
|
+
className: propTypes$1N.exports.string,
|
|
153
|
+
"data-testid": propTypes$1N.exports.string,
|
|
154
|
+
unsafelyReplaceClassName: propTypes$1N.exports.string
|
|
155
155
|
};
|
|
156
156
|
const I18nContext = React.createContext(noI18nI18n);
|
|
157
|
-
const propsDoc$
|
|
157
|
+
const propsDoc$1I = {
|
|
158
158
|
disabled: "boolean",
|
|
159
159
|
href: "string",
|
|
160
160
|
icon: "SpsIcon",
|
|
@@ -163,13 +163,13 @@ const propsDoc$1H = {
|
|
|
163
163
|
spinningTitle: "string",
|
|
164
164
|
type: "ButtonType"
|
|
165
165
|
};
|
|
166
|
-
const propTypes$
|
|
167
|
-
disabled: propTypes$
|
|
168
|
-
href: propTypes$
|
|
166
|
+
const propTypes$1M = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
167
|
+
disabled: propTypes$1N.exports.bool,
|
|
168
|
+
href: propTypes$1N.exports.string,
|
|
169
169
|
icon: enumValue(SpsIcon),
|
|
170
170
|
kind: enumValue(ButtonKind),
|
|
171
|
-
spinning: propTypes$
|
|
172
|
-
spinningTitle: propTypes$
|
|
171
|
+
spinning: propTypes$1N.exports.bool,
|
|
172
|
+
spinningTitle: propTypes$1N.exports.string,
|
|
173
173
|
type: enumValue(ButtonType)
|
|
174
174
|
});
|
|
175
175
|
function SpsButton(props2) {
|
|
@@ -219,8 +219,8 @@ function SpsButton(props2) {
|
|
|
219
219
|
}), iconElement, children, spinner));
|
|
220
220
|
}
|
|
221
221
|
Object.assign(SpsButton, {
|
|
222
|
-
props: propsDoc$
|
|
223
|
-
propTypes: propTypes$
|
|
222
|
+
props: propsDoc$1I,
|
|
223
|
+
propTypes: propTypes$1M,
|
|
224
224
|
displayName: "SpsButton"
|
|
225
225
|
});
|
|
226
226
|
const spsFormProps = {
|
|
@@ -272,7 +272,7 @@ Object.assign(SpsForm, {
|
|
|
272
272
|
function contentOf(nodeOrRenderFn2) {
|
|
273
273
|
return typeof nodeOrRenderFn2 === "function" ? nodeOrRenderFn2() : nodeOrRenderFn2;
|
|
274
274
|
}
|
|
275
|
-
const propsDoc$
|
|
275
|
+
const propsDoc$1H = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
276
276
|
controlsDisabled: "boolean",
|
|
277
277
|
footerLinks: "ReactNodeOrRenderFn",
|
|
278
278
|
formMeta: "SpsFormArrayMeta<any> | SpsFormGroupMeta<any>",
|
|
@@ -280,16 +280,16 @@ const propsDoc$1G = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
|
280
280
|
onClear: "() => void",
|
|
281
281
|
onSubmit: "React.FormEventHandler"
|
|
282
282
|
});
|
|
283
|
-
const propTypes$
|
|
284
|
-
controlsDisabled: propTypes$
|
|
283
|
+
const propTypes$1L = __spreadProps(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsFormPropTypes), {
|
|
284
|
+
controlsDisabled: propTypes$1N.exports.bool,
|
|
285
285
|
footerLinks: nodeOrRenderFn,
|
|
286
286
|
formArray: impl(),
|
|
287
287
|
formGroup: impl(),
|
|
288
|
-
formMeta: propTypes$
|
|
288
|
+
formMeta: propTypes$1N.exports.oneOfType([
|
|
289
289
|
impl(),
|
|
290
290
|
impl()
|
|
291
291
|
]),
|
|
292
|
-
isOpen: propTypes$
|
|
292
|
+
isOpen: propTypes$1N.exports.bool,
|
|
293
293
|
onClear: fun(),
|
|
294
294
|
onSubmit: fun()
|
|
295
295
|
});
|
|
@@ -354,8 +354,8 @@ function SpsAdvancedSearch(props2) {
|
|
|
354
354
|
}, t2("design-system:advancedSearch.search"))))));
|
|
355
355
|
}
|
|
356
356
|
Object.assign(SpsAdvancedSearch, {
|
|
357
|
-
props: propsDoc$
|
|
358
|
-
propTypes: propTypes$
|
|
357
|
+
props: propsDoc$1H,
|
|
358
|
+
propTypes: propTypes$1L,
|
|
359
359
|
displayName: "SpsAdvancedSearch"
|
|
360
360
|
});
|
|
361
361
|
const SpsAdvancedSearchExamples = {
|
|
@@ -1274,7 +1274,7 @@ function useSpsForm(value, validatorMap) {
|
|
|
1274
1274
|
return state;
|
|
1275
1275
|
}
|
|
1276
1276
|
const spsFormComponentWrapperPropTypes = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
1277
|
-
focusInputOnClick: propTypes$
|
|
1277
|
+
focusInputOnClick: propTypes$1N.exports.bool,
|
|
1278
1278
|
formMeta: impl(),
|
|
1279
1279
|
formControl: impl(),
|
|
1280
1280
|
inputRef: ref()
|
|
@@ -1450,15 +1450,15 @@ var scrollIntoViewImport = /* @__PURE__ */ Object.freeze({
|
|
|
1450
1450
|
[Symbol.toStringTag]: "Module",
|
|
1451
1451
|
"default": scrollIntoView$1
|
|
1452
1452
|
});
|
|
1453
|
-
const propsDoc$
|
|
1453
|
+
const propsDoc$1G = {
|
|
1454
1454
|
alt: "string",
|
|
1455
1455
|
size: "SpinnerSize",
|
|
1456
1456
|
title: "string"
|
|
1457
1457
|
};
|
|
1458
|
-
const propTypes$
|
|
1459
|
-
alt: propTypes$
|
|
1458
|
+
const propTypes$1K = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
1459
|
+
alt: propTypes$1N.exports.string,
|
|
1460
1460
|
size: enumValue(SpinnerSize),
|
|
1461
|
-
title: propTypes$
|
|
1461
|
+
title: propTypes$1N.exports.string
|
|
1462
1462
|
});
|
|
1463
1463
|
function SpsSpinner(props2) {
|
|
1464
1464
|
const _a = props2, {
|
|
@@ -1486,8 +1486,8 @@ function SpsSpinner(props2) {
|
|
|
1486
1486
|
}, rest));
|
|
1487
1487
|
}
|
|
1488
1488
|
Object.assign(SpsSpinner, {
|
|
1489
|
-
props: propsDoc$
|
|
1490
|
-
propTypes: propTypes$
|
|
1489
|
+
props: propsDoc$1G,
|
|
1490
|
+
propTypes: propTypes$1K,
|
|
1491
1491
|
displayName: "SpsSpinner"
|
|
1492
1492
|
});
|
|
1493
1493
|
const NAVBAR_HEIGHT = 60;
|
|
@@ -1674,48 +1674,48 @@ const spsOptionListPassthroughProps = {
|
|
|
1674
1674
|
zeroState: "string"
|
|
1675
1675
|
},
|
|
1676
1676
|
propTypes: {
|
|
1677
|
-
captionKey: propTypes$
|
|
1678
|
-
comparisonKey: propTypes$
|
|
1679
|
-
disabledOptions: propTypes$
|
|
1680
|
-
options: propTypes$
|
|
1681
|
-
propTypes$
|
|
1682
|
-
propTypes$
|
|
1677
|
+
captionKey: propTypes$1N.exports.string,
|
|
1678
|
+
comparisonKey: propTypes$1N.exports.string,
|
|
1679
|
+
disabledOptions: propTypes$1N.exports.arrayOf(propTypes$1N.exports.any),
|
|
1680
|
+
options: propTypes$1N.exports.oneOfType([
|
|
1681
|
+
propTypes$1N.exports.array,
|
|
1682
|
+
propTypes$1N.exports.instanceOf(Promise),
|
|
1683
1683
|
fun()
|
|
1684
1684
|
]).isRequired,
|
|
1685
|
-
tall: propTypes$
|
|
1686
|
-
textKey: propTypes$
|
|
1687
|
-
valueKey: propTypes$
|
|
1688
|
-
zeroState: propTypes$
|
|
1685
|
+
tall: propTypes$1N.exports.bool,
|
|
1686
|
+
textKey: propTypes$1N.exports.string,
|
|
1687
|
+
valueKey: propTypes$1N.exports.string,
|
|
1688
|
+
zeroState: propTypes$1N.exports.string
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
const searchableOptionListProps = {
|
|
1692
|
-
hideInlineSearch: propTypes$
|
|
1692
|
+
hideInlineSearch: propTypes$1N.exports.bool,
|
|
1693
1693
|
onSearchChange: fun(),
|
|
1694
|
-
search: propTypes$
|
|
1695
|
-
searchDebounce: propTypes$
|
|
1696
|
-
searchPlaceholder: propTypes$
|
|
1694
|
+
search: propTypes$1N.exports.string,
|
|
1695
|
+
searchDebounce: propTypes$1N.exports.number,
|
|
1696
|
+
searchPlaceholder: propTypes$1N.exports.string,
|
|
1697
1697
|
searchInputRef: ref()
|
|
1698
1698
|
};
|
|
1699
|
-
const propTypes$
|
|
1699
|
+
const propTypes$1J = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsOptionListPassthroughProps.propTypes), searchableOptionListProps), {
|
|
1700
1700
|
attachTo: ref().isRequired,
|
|
1701
|
-
conformWidth: propTypes$
|
|
1702
|
-
id: propTypes$
|
|
1703
|
-
isOpen: propTypes$
|
|
1704
|
-
keepOpen: propTypes$
|
|
1701
|
+
conformWidth: propTypes$1N.exports.bool,
|
|
1702
|
+
id: propTypes$1N.exports.string.isRequired,
|
|
1703
|
+
isOpen: propTypes$1N.exports.bool,
|
|
1704
|
+
keepOpen: propTypes$1N.exports.bool,
|
|
1705
1705
|
keyDown: impl(),
|
|
1706
|
-
nullOption: propTypes$
|
|
1707
|
-
offsets: propTypes$
|
|
1706
|
+
nullOption: propTypes$1N.exports.string,
|
|
1707
|
+
offsets: propTypes$1N.exports.arrayOf(propTypes$1N.exports.number),
|
|
1708
1708
|
onOptionListChanged: fun(),
|
|
1709
1709
|
onOptionSelected: fun(),
|
|
1710
1710
|
onPositionFlip: fun(),
|
|
1711
1711
|
onSelfToggle: fun(),
|
|
1712
|
-
optionRole: propTypes$
|
|
1713
|
-
positionOverride: propTypes$
|
|
1714
|
-
selectedOption: propTypes$
|
|
1712
|
+
optionRole: propTypes$1N.exports.string,
|
|
1713
|
+
positionOverride: propTypes$1N.exports.arrayOf(enumValue(Position)),
|
|
1714
|
+
selectedOption: propTypes$1N.exports.any,
|
|
1715
1715
|
specialAction: fun(),
|
|
1716
|
-
ignoreWidthStyles: propTypes$
|
|
1717
|
-
loading: propTypes$
|
|
1718
|
-
filterByTextAndCaptionKey: propTypes$
|
|
1716
|
+
ignoreWidthStyles: propTypes$1N.exports.bool,
|
|
1717
|
+
loading: propTypes$1N.exports.bool,
|
|
1718
|
+
filterByTextAndCaptionKey: propTypes$1N.exports.bool
|
|
1719
1719
|
});
|
|
1720
1720
|
async function updateOptions(props2, searchState, searchStatePatch, setOptionList, setAnyOptionHasIcon, promiseRef) {
|
|
1721
1721
|
const options = typeof props2.options === "function" ? props2.options(searchState.value) : props2.options || [];
|
|
@@ -2339,7 +2339,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
2339
2339
|
}), /* @__PURE__ */ React.createElement("span", null, specialAction.label))));
|
|
2340
2340
|
});
|
|
2341
2341
|
Object.assign(SpsOptionList, {
|
|
2342
|
-
propTypes: propTypes$
|
|
2342
|
+
propTypes: propTypes$1J,
|
|
2343
2343
|
displayName: "SpsOptionList"
|
|
2344
2344
|
});
|
|
2345
2345
|
function selectChildren(children = [], groups = []) {
|
|
@@ -2428,7 +2428,7 @@ function useInputPopup(rootRef, popupRef) {
|
|
|
2428
2428
|
doHidePopup
|
|
2429
2429
|
};
|
|
2430
2430
|
}
|
|
2431
|
-
const propsDoc$
|
|
2431
|
+
const propsDoc$1F = {
|
|
2432
2432
|
debounce: "number",
|
|
2433
2433
|
disabled: "boolean",
|
|
2434
2434
|
formMeta: "SpsFormFieldMeta<string>",
|
|
@@ -2447,23 +2447,23 @@ const propsDoc$1E = {
|
|
|
2447
2447
|
zeroState: "string",
|
|
2448
2448
|
loading: "boolean"
|
|
2449
2449
|
};
|
|
2450
|
-
const propTypes$
|
|
2451
|
-
debounce: propTypes$
|
|
2452
|
-
disabled: propTypes$
|
|
2450
|
+
const propTypes$1I = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2451
|
+
debounce: propTypes$1N.exports.number,
|
|
2452
|
+
disabled: propTypes$1N.exports.bool,
|
|
2453
2453
|
formControl: impl(),
|
|
2454
2454
|
formMeta: impl(),
|
|
2455
2455
|
icon: enumValue(SpsIcon),
|
|
2456
2456
|
onChange: fun(),
|
|
2457
|
-
placeholder: propTypes$
|
|
2458
|
-
suggestions: propTypes$
|
|
2459
|
-
propTypes$
|
|
2460
|
-
propTypes$
|
|
2457
|
+
placeholder: propTypes$1N.exports.string,
|
|
2458
|
+
suggestions: propTypes$1N.exports.oneOfType([
|
|
2459
|
+
propTypes$1N.exports.arrayOf(propTypes$1N.exports.string),
|
|
2460
|
+
propTypes$1N.exports.instanceOf(Promise),
|
|
2461
2461
|
fun()
|
|
2462
2462
|
]).isRequired,
|
|
2463
|
-
tallOptionList: propTypes$
|
|
2464
|
-
value: propTypes$
|
|
2465
|
-
zeroState: propTypes$
|
|
2466
|
-
loading: propTypes$
|
|
2463
|
+
tallOptionList: propTypes$1N.exports.bool,
|
|
2464
|
+
value: propTypes$1N.exports.string,
|
|
2465
|
+
zeroState: propTypes$1N.exports.string,
|
|
2466
|
+
loading: propTypes$1N.exports.bool
|
|
2467
2467
|
});
|
|
2468
2468
|
function SpsAutocomplete(_a) {
|
|
2469
2469
|
var _b = _a, {
|
|
@@ -2610,8 +2610,8 @@ function SpsAutocomplete(_a) {
|
|
|
2610
2610
|
}));
|
|
2611
2611
|
}
|
|
2612
2612
|
Object.assign(SpsAutocomplete, {
|
|
2613
|
-
props: propsDoc$
|
|
2614
|
-
propTypes: propTypes$
|
|
2613
|
+
props: propsDoc$1F,
|
|
2614
|
+
propTypes: propTypes$1I,
|
|
2615
2615
|
displayName: "SpsAutocomplete"
|
|
2616
2616
|
});
|
|
2617
2617
|
const SpsAutocompleteExamples = {
|
|
@@ -2734,7 +2734,7 @@ const SpsAutocompleteExamples = {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
}
|
|
2736
2736
|
};
|
|
2737
|
-
const propsDoc$
|
|
2737
|
+
const propsDoc$1E = {
|
|
2738
2738
|
alignLeft: "boolean",
|
|
2739
2739
|
disabled: "boolean",
|
|
2740
2740
|
icon: "SpsIcon",
|
|
@@ -2748,19 +2748,19 @@ const propsDoc$1D = {
|
|
|
2748
2748
|
onClose: "() => void",
|
|
2749
2749
|
loading: "boolean"
|
|
2750
2750
|
};
|
|
2751
|
-
const propTypes$
|
|
2752
|
-
alignLeft: propTypes$
|
|
2753
|
-
disabled: propTypes$
|
|
2751
|
+
const propTypes$1H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2752
|
+
alignLeft: propTypes$1N.exports.bool,
|
|
2753
|
+
disabled: propTypes$1N.exports.bool,
|
|
2754
2754
|
icon: enumValue(SpsIcon),
|
|
2755
2755
|
kind: enumValue(DropdownKind),
|
|
2756
|
-
label: propTypes$
|
|
2757
|
-
options: propTypes$
|
|
2758
|
-
spinning: propTypes$
|
|
2759
|
-
spinningTitle: propTypes$
|
|
2760
|
-
tallOptionList: propTypes$
|
|
2756
|
+
label: propTypes$1N.exports.string,
|
|
2757
|
+
options: propTypes$1N.exports.arrayOf(propTypes$1N.exports.oneOfType([propTypes$1N.exports.func, propTypes$1N.exports.any])).isRequired,
|
|
2758
|
+
spinning: propTypes$1N.exports.bool,
|
|
2759
|
+
spinningTitle: propTypes$1N.exports.string,
|
|
2760
|
+
tallOptionList: propTypes$1N.exports.bool,
|
|
2761
2761
|
onOpen: fun(),
|
|
2762
2762
|
onClose: fun(),
|
|
2763
|
-
loading: propTypes$
|
|
2763
|
+
loading: propTypes$1N.exports.bool
|
|
2764
2764
|
});
|
|
2765
2765
|
function SpsDropdown(props2) {
|
|
2766
2766
|
const _a = props2, {
|
|
@@ -2917,12 +2917,12 @@ function SpsDropdown(props2) {
|
|
|
2917
2917
|
}, spinningTitle || t2("design-system:button.spinningTitle")))));
|
|
2918
2918
|
}
|
|
2919
2919
|
Object.assign(SpsDropdown, {
|
|
2920
|
-
props: propsDoc$
|
|
2921
|
-
propTypes: propTypes$
|
|
2920
|
+
props: propsDoc$1E,
|
|
2921
|
+
propTypes: propTypes$1H,
|
|
2922
2922
|
displayName: "SpsDropdown"
|
|
2923
2923
|
});
|
|
2924
|
-
const propsDoc$
|
|
2925
|
-
const propTypes$
|
|
2924
|
+
const propsDoc$1D = {};
|
|
2925
|
+
const propTypes$1G = __spreadValues({}, spsGlobalPropTypes);
|
|
2926
2926
|
function SpsButtonGroup(props2) {
|
|
2927
2927
|
const _a = props2, {
|
|
2928
2928
|
children,
|
|
@@ -2953,8 +2953,8 @@ function SpsButtonGroup(props2) {
|
|
|
2953
2953
|
}), others.length > 0 && others);
|
|
2954
2954
|
}
|
|
2955
2955
|
Object.assign(SpsButtonGroup, {
|
|
2956
|
-
props: propsDoc$
|
|
2957
|
-
propTypes: propTypes$
|
|
2956
|
+
props: propsDoc$1D,
|
|
2957
|
+
propTypes: propTypes$1G,
|
|
2958
2958
|
displayName: "SpsButtonGroup"
|
|
2959
2959
|
});
|
|
2960
2960
|
const SpsButtonExamples = {
|
|
@@ -5686,8 +5686,8 @@ function SpsTabPanel(_c) {
|
|
|
5686
5686
|
className: "sps-card__body"
|
|
5687
5687
|
}), state.selectedItem ? state.selectedItem.props.children : null);
|
|
5688
5688
|
}
|
|
5689
|
-
const propsDoc$
|
|
5690
|
-
const propTypes$
|
|
5689
|
+
const propsDoc$1C = {};
|
|
5690
|
+
const propTypes$1F = {};
|
|
5691
5691
|
function SpsTabsV2(props2) {
|
|
5692
5692
|
const state = useTabListState(props2);
|
|
5693
5693
|
const ref2 = React.useRef();
|
|
@@ -5705,12 +5705,12 @@ function SpsTabsV2(props2) {
|
|
|
5705
5705
|
}));
|
|
5706
5706
|
}
|
|
5707
5707
|
Object.assign(SpsTabsV2, {
|
|
5708
|
-
props: propsDoc$
|
|
5709
|
-
propTypes: propTypes$
|
|
5708
|
+
props: propsDoc$1C,
|
|
5709
|
+
propTypes: propTypes$1F,
|
|
5710
5710
|
displayName: "SpsTabsV2"
|
|
5711
5711
|
});
|
|
5712
|
-
const propsDoc$
|
|
5713
|
-
const propTypes$
|
|
5712
|
+
const propsDoc$1B = {};
|
|
5713
|
+
const propTypes$1E = {};
|
|
5714
5714
|
function SpsCardV2Footer(_e) {
|
|
5715
5715
|
var _f = _e, {
|
|
5716
5716
|
children,
|
|
@@ -5724,12 +5724,12 @@ function SpsCardV2Footer(_e) {
|
|
|
5724
5724
|
}, rest), children);
|
|
5725
5725
|
}
|
|
5726
5726
|
Object.assign(SpsCardV2Footer, {
|
|
5727
|
-
props: propsDoc$
|
|
5728
|
-
propTypes: propTypes$
|
|
5727
|
+
props: propsDoc$1B,
|
|
5728
|
+
propTypes: propTypes$1E,
|
|
5729
5729
|
displayName: "SpsCardV2Footer"
|
|
5730
5730
|
});
|
|
5731
|
-
const propsDoc$
|
|
5732
|
-
const propTypes$
|
|
5731
|
+
const propsDoc$1A = {};
|
|
5732
|
+
const propTypes$1D = {};
|
|
5733
5733
|
function SpsCardV2Header(_g) {
|
|
5734
5734
|
var _h = _g, {
|
|
5735
5735
|
children,
|
|
@@ -5743,12 +5743,12 @@ function SpsCardV2Header(_g) {
|
|
|
5743
5743
|
}, rest), children);
|
|
5744
5744
|
}
|
|
5745
5745
|
Object.assign(SpsCardV2Header, {
|
|
5746
|
-
props: propsDoc$
|
|
5747
|
-
propTypes: propTypes$
|
|
5746
|
+
props: propsDoc$1A,
|
|
5747
|
+
propTypes: propTypes$1D,
|
|
5748
5748
|
displayName: "SpsCardV2Header"
|
|
5749
5749
|
});
|
|
5750
|
-
const propsDoc$
|
|
5751
|
-
const propTypes$
|
|
5750
|
+
const propsDoc$1z = {};
|
|
5751
|
+
const propTypes$1C = {};
|
|
5752
5752
|
function SpsCardV2(_i) {
|
|
5753
5753
|
var _j = _i, {
|
|
5754
5754
|
children,
|
|
@@ -5774,12 +5774,12 @@ function SpsCardV2(_i) {
|
|
|
5774
5774
|
}, bodyContent), footer);
|
|
5775
5775
|
}
|
|
5776
5776
|
Object.assign(SpsCardV2, {
|
|
5777
|
-
props: propsDoc$
|
|
5778
|
-
propTypes: propTypes$
|
|
5777
|
+
props: propsDoc$1z,
|
|
5778
|
+
propTypes: propTypes$1C,
|
|
5779
5779
|
displayName: "SpsCardV2"
|
|
5780
5780
|
});
|
|
5781
|
-
const propsDoc$
|
|
5782
|
-
const propTypes$
|
|
5781
|
+
const propsDoc$1y = {};
|
|
5782
|
+
const propTypes$1B = {};
|
|
5783
5783
|
function SpsCardV2Title(_k) {
|
|
5784
5784
|
var _l = _k, {
|
|
5785
5785
|
children,
|
|
@@ -5793,8 +5793,8 @@ function SpsCardV2Title(_k) {
|
|
|
5793
5793
|
}, rest), children);
|
|
5794
5794
|
}
|
|
5795
5795
|
Object.assign(SpsCardV2Title, {
|
|
5796
|
-
props: propsDoc$
|
|
5797
|
-
propTypes: propTypes$
|
|
5796
|
+
props: propsDoc$1y,
|
|
5797
|
+
propTypes: propTypes$1B,
|
|
5798
5798
|
displayName: "SpsCardV2Title"
|
|
5799
5799
|
});
|
|
5800
5800
|
const SpsCardExamples = {
|
|
@@ -6102,7 +6102,7 @@ const SpsCardExamples = {
|
|
|
6102
6102
|
}
|
|
6103
6103
|
}
|
|
6104
6104
|
};
|
|
6105
|
-
const propsDoc$
|
|
6105
|
+
const propsDoc$1x = {
|
|
6106
6106
|
checked: "boolean",
|
|
6107
6107
|
disabled: "boolean",
|
|
6108
6108
|
formMeta: "SpsFormFieldMeta<boolean>",
|
|
@@ -6111,14 +6111,14 @@ const propsDoc$1w = {
|
|
|
6111
6111
|
label: "string",
|
|
6112
6112
|
onChange: "ChangeEventHandler"
|
|
6113
6113
|
};
|
|
6114
|
-
const propTypes$
|
|
6115
|
-
checked: propTypes$
|
|
6116
|
-
disabled: propTypes$
|
|
6114
|
+
const propTypes$1A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
6115
|
+
checked: propTypes$1N.exports.bool,
|
|
6116
|
+
disabled: propTypes$1N.exports.bool,
|
|
6117
6117
|
formControl: impl(),
|
|
6118
6118
|
formMeta: impl(),
|
|
6119
|
-
indeterminate: propTypes$
|
|
6120
|
-
inline: propTypes$
|
|
6121
|
-
label: propTypes$
|
|
6119
|
+
indeterminate: propTypes$1N.exports.bool,
|
|
6120
|
+
inline: propTypes$1N.exports.bool,
|
|
6121
|
+
label: propTypes$1N.exports.string,
|
|
6122
6122
|
onChange: fun()
|
|
6123
6123
|
});
|
|
6124
6124
|
function SpsCheckbox(_m) {
|
|
@@ -6194,8 +6194,8 @@ function SpsCheckbox(_m) {
|
|
|
6194
6194
|
}, label || ""));
|
|
6195
6195
|
}
|
|
6196
6196
|
Object.assign(SpsCheckbox, {
|
|
6197
|
-
props: propsDoc$
|
|
6198
|
-
propTypes: propTypes$
|
|
6197
|
+
props: propsDoc$1x,
|
|
6198
|
+
propTypes: propTypes$1A,
|
|
6199
6199
|
displayName: "SpsCheckbox"
|
|
6200
6200
|
});
|
|
6201
6201
|
const SpsCheckboxExamples = {
|
|
@@ -6323,16 +6323,16 @@ const SpsCheckboxExamples = {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
}
|
|
6325
6325
|
};
|
|
6326
|
-
const propsDoc$
|
|
6326
|
+
const propsDoc$1w = {
|
|
6327
6327
|
disabled: "boolean",
|
|
6328
6328
|
href: "string",
|
|
6329
6329
|
kind: "ClickableTagKind",
|
|
6330
6330
|
onAdd: "() => void",
|
|
6331
6331
|
onRemove: "() => void"
|
|
6332
6332
|
};
|
|
6333
|
-
const propTypes$
|
|
6334
|
-
disabled: propTypes$
|
|
6335
|
-
href: propTypes$
|
|
6333
|
+
const propTypes$1z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
6334
|
+
disabled: propTypes$1N.exports.bool,
|
|
6335
|
+
href: propTypes$1N.exports.string,
|
|
6336
6336
|
kind: enumValue(ClickableTagKind),
|
|
6337
6337
|
onAdd: fun(),
|
|
6338
6338
|
onRemove: fun()
|
|
@@ -6403,8 +6403,8 @@ function SpsClickableTag(props2) {
|
|
|
6403
6403
|
})));
|
|
6404
6404
|
}
|
|
6405
6405
|
Object.assign(SpsClickableTag, {
|
|
6406
|
-
props: propsDoc$
|
|
6407
|
-
propTypes: propTypes$
|
|
6406
|
+
props: propsDoc$1w,
|
|
6407
|
+
propTypes: propTypes$1z,
|
|
6408
6408
|
displayName: "SpsClickableTag"
|
|
6409
6409
|
});
|
|
6410
6410
|
const SpsClickableTagExamples = {
|
|
@@ -14632,15 +14632,15 @@ var ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, nu
|
|
|
14632
14632
|
areStatePropsEqual: isStrictEqual
|
|
14633
14633
|
})(Draggable);
|
|
14634
14634
|
ConnectedDraggable.defaultProps = defaultProps$1;
|
|
14635
|
-
const propsDoc$
|
|
14635
|
+
const propsDoc$1v = {
|
|
14636
14636
|
content: "ReactNodeLike",
|
|
14637
14637
|
icon: "SpsIcon",
|
|
14638
14638
|
title: "string"
|
|
14639
14639
|
};
|
|
14640
|
-
const propTypes$
|
|
14641
|
-
content: propTypes$
|
|
14640
|
+
const propTypes$1y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14641
|
+
content: propTypes$1N.exports.node,
|
|
14642
14642
|
icon: enumValue(SpsIcon),
|
|
14643
|
-
title: propTypes$
|
|
14643
|
+
title: propTypes$1N.exports.string
|
|
14644
14644
|
});
|
|
14645
14645
|
function SpsCardHeader(props2) {
|
|
14646
14646
|
const _a = props2, {
|
|
@@ -14672,15 +14672,15 @@ function SpsCardHeader(props2) {
|
|
|
14672
14672
|
}, content));
|
|
14673
14673
|
}
|
|
14674
14674
|
Object.assign(SpsCardHeader, {
|
|
14675
|
-
props: propsDoc$
|
|
14676
|
-
propTypes: propTypes$
|
|
14675
|
+
props: propsDoc$1v,
|
|
14676
|
+
propTypes: propTypes$1y,
|
|
14677
14677
|
displayName: "SpsCardHeader"
|
|
14678
14678
|
});
|
|
14679
|
-
const propsDoc$
|
|
14679
|
+
const propsDoc$1u = {
|
|
14680
14680
|
icon: "SpsIcon",
|
|
14681
14681
|
kind: "TagKind"
|
|
14682
14682
|
};
|
|
14683
|
-
const propTypes$
|
|
14683
|
+
const propTypes$1x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14684
14684
|
icon: enumValue(SpsIcon),
|
|
14685
14685
|
kind: enumValue(TagKind)
|
|
14686
14686
|
});
|
|
@@ -14713,11 +14713,11 @@ function SpsTag(props2) {
|
|
|
14713
14713
|
}), children);
|
|
14714
14714
|
}
|
|
14715
14715
|
Object.assign(SpsTag, {
|
|
14716
|
-
props: propsDoc$
|
|
14717
|
-
propTypes: propTypes$
|
|
14716
|
+
props: propsDoc$1u,
|
|
14717
|
+
propTypes: propTypes$1x,
|
|
14718
14718
|
displayName: "SpsTag"
|
|
14719
14719
|
});
|
|
14720
|
-
const propsDoc$
|
|
14720
|
+
const propsDoc$1t = {
|
|
14721
14721
|
activateTab: "Function",
|
|
14722
14722
|
active: "boolean",
|
|
14723
14723
|
icon: "SpsIcon",
|
|
@@ -14727,13 +14727,13 @@ const propsDoc$1s = {
|
|
|
14727
14727
|
tagKind: "TagKind",
|
|
14728
14728
|
tagIcon: "SpsIcon"
|
|
14729
14729
|
};
|
|
14730
|
-
const propTypes$
|
|
14731
|
-
activateTab: propTypes$
|
|
14732
|
-
active: propTypes$
|
|
14730
|
+
const propTypes$1w = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14731
|
+
activateTab: propTypes$1N.exports.func,
|
|
14732
|
+
active: propTypes$1N.exports.bool,
|
|
14733
14733
|
icon: enumValue(SpsIcon),
|
|
14734
|
-
label: propTypes$
|
|
14735
|
-
index: propTypes$
|
|
14736
|
-
tag: propTypes$
|
|
14734
|
+
label: propTypes$1N.exports.string,
|
|
14735
|
+
index: propTypes$1N.exports.number,
|
|
14736
|
+
tag: propTypes$1N.exports.string,
|
|
14737
14737
|
tagKind: enumValue(TagKind),
|
|
14738
14738
|
tagIcon: enumValue(SpsIcon)
|
|
14739
14739
|
});
|
|
@@ -14796,8 +14796,8 @@ function SpsCardTabbedPane(props2) {
|
|
|
14796
14796
|
}, tag));
|
|
14797
14797
|
}
|
|
14798
14798
|
Object.assign(SpsCardTabbedPane, {
|
|
14799
|
-
props: propsDoc$
|
|
14800
|
-
propTypes: propTypes$
|
|
14799
|
+
props: propsDoc$1t,
|
|
14800
|
+
propTypes: propTypes$1w,
|
|
14801
14801
|
displayName: "SpsCardTabbedPane"
|
|
14802
14802
|
});
|
|
14803
14803
|
function useTab(children, activeTab, isTabbedCard) {
|
|
@@ -14839,19 +14839,19 @@ function useTab(children, activeTab, isTabbedCard) {
|
|
|
14839
14839
|
}, [activeTab, children]);
|
|
14840
14840
|
return [currentlyActiveTab, activateTab];
|
|
14841
14841
|
}
|
|
14842
|
-
const propsDoc$
|
|
14842
|
+
const propsDoc$1s = {
|
|
14843
14843
|
activeTab: "string",
|
|
14844
14844
|
footer: "ReactNodeOrRenderFn",
|
|
14845
14845
|
headerContent: "ReactNodeOrRenderFn",
|
|
14846
14846
|
headerIcon: "SpsIcon",
|
|
14847
14847
|
headerTitle: "string"
|
|
14848
14848
|
};
|
|
14849
|
-
const propTypes$
|
|
14850
|
-
activeTab: propTypes$
|
|
14849
|
+
const propTypes$1v = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14850
|
+
activeTab: propTypes$1N.exports.string,
|
|
14851
14851
|
footer: nodeOrRenderFn,
|
|
14852
14852
|
headerContent: nodeOrRenderFn,
|
|
14853
14853
|
headerIcon: enumValue(SpsIcon),
|
|
14854
|
-
headerTitle: propTypes$
|
|
14854
|
+
headerTitle: propTypes$1N.exports.string
|
|
14855
14855
|
});
|
|
14856
14856
|
function SpsCard(props2) {
|
|
14857
14857
|
React.useEffect(() => {
|
|
@@ -14918,11 +14918,11 @@ function SpsCard(props2) {
|
|
|
14918
14918
|
}, contentOf(footer)));
|
|
14919
14919
|
}
|
|
14920
14920
|
Object.assign(SpsCard, {
|
|
14921
|
-
props: propsDoc$
|
|
14922
|
-
propTypes: propTypes$
|
|
14921
|
+
props: propsDoc$1s,
|
|
14922
|
+
propTypes: propTypes$1v,
|
|
14923
14923
|
displayName: "SpsCard"
|
|
14924
14924
|
});
|
|
14925
|
-
const propsDoc$
|
|
14925
|
+
const propsDoc$1r = {
|
|
14926
14926
|
index: "number",
|
|
14927
14927
|
key: "string",
|
|
14928
14928
|
columnId: "string",
|
|
@@ -14931,14 +14931,14 @@ const propsDoc$1q = {
|
|
|
14931
14931
|
onDelete: "(columnValue: string) => void",
|
|
14932
14932
|
mandatory: "boolean"
|
|
14933
14933
|
};
|
|
14934
|
-
const propTypes$
|
|
14935
|
-
index: propTypes$
|
|
14936
|
-
key: propTypes$
|
|
14937
|
-
columnId: propTypes$
|
|
14938
|
-
name: propTypes$
|
|
14939
|
-
value: propTypes$
|
|
14934
|
+
const propTypes$1u = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14935
|
+
index: propTypes$1N.exports.number,
|
|
14936
|
+
key: propTypes$1N.exports.string,
|
|
14937
|
+
columnId: propTypes$1N.exports.string,
|
|
14938
|
+
name: propTypes$1N.exports.string,
|
|
14939
|
+
value: propTypes$1N.exports.string,
|
|
14940
14940
|
onDelete: fun(),
|
|
14941
|
-
mandatory: propTypes$
|
|
14941
|
+
mandatory: propTypes$1N.exports.bool
|
|
14942
14942
|
});
|
|
14943
14943
|
function SpsColumnChooserColumn(props2) {
|
|
14944
14944
|
const _a = props2, {
|
|
@@ -14994,20 +14994,20 @@ function SpsColumnChooserColumn(props2) {
|
|
|
14994
14994
|
})))));
|
|
14995
14995
|
}
|
|
14996
14996
|
Object.assign(SpsColumnChooserColumn, {
|
|
14997
|
-
props: propsDoc$
|
|
14998
|
-
propTypes: propTypes$
|
|
14997
|
+
props: propsDoc$1r,
|
|
14998
|
+
propTypes: propTypes$1u,
|
|
14999
14999
|
displayName: "SpsColumnChooserColumn"
|
|
15000
15000
|
});
|
|
15001
|
-
const propsDoc$
|
|
15001
|
+
const propsDoc$1q = {
|
|
15002
15002
|
maxSelectedColumns: "number",
|
|
15003
15003
|
unselectedColumns: "ColumnProps[]",
|
|
15004
15004
|
selectedColumns: "ColumnProps[]",
|
|
15005
15005
|
onApplyChanges: "(selectedColumns: ColumnProps[]) => void"
|
|
15006
15006
|
};
|
|
15007
|
-
const propTypes$
|
|
15008
|
-
maxSelectedColumns: propTypes$
|
|
15009
|
-
unselectedColumns: propTypes$
|
|
15010
|
-
selectedColumns: propTypes$
|
|
15007
|
+
const propTypes$1t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15008
|
+
maxSelectedColumns: propTypes$1N.exports.number,
|
|
15009
|
+
unselectedColumns: propTypes$1N.exports.array,
|
|
15010
|
+
selectedColumns: propTypes$1N.exports.array,
|
|
15011
15011
|
onApplyChanges: fun()
|
|
15012
15012
|
});
|
|
15013
15013
|
function SpsColumnChooser(props2) {
|
|
@@ -15147,8 +15147,8 @@ function SpsColumnChooser(props2) {
|
|
|
15147
15147
|
})), provided.placeholder)))));
|
|
15148
15148
|
}
|
|
15149
15149
|
Object.assign(SpsColumnChooser, {
|
|
15150
|
-
props: propsDoc$
|
|
15151
|
-
propTypes: propTypes$
|
|
15150
|
+
props: propsDoc$1q,
|
|
15151
|
+
propTypes: propTypes$1t,
|
|
15152
15152
|
displayName: "SpsColumnChooser"
|
|
15153
15153
|
});
|
|
15154
15154
|
const SpsColumnChooserExamples = {
|
|
@@ -15180,11 +15180,11 @@ const SpsColumnChooserExamples = {
|
|
|
15180
15180
|
}
|
|
15181
15181
|
}
|
|
15182
15182
|
};
|
|
15183
|
-
const propsDoc$
|
|
15183
|
+
const propsDoc$1p = {
|
|
15184
15184
|
icon: { type: "SpsIcon", required: true },
|
|
15185
15185
|
size: "SpsIconSize"
|
|
15186
15186
|
};
|
|
15187
|
-
const propTypes$
|
|
15187
|
+
const propTypes$1s = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15188
15188
|
icon: enumValue(SpsIcon).isRequired,
|
|
15189
15189
|
size: enumValue(SpsIconSize)
|
|
15190
15190
|
});
|
|
@@ -15210,28 +15210,28 @@ function SpsI(props2) {
|
|
|
15210
15210
|
}, rest));
|
|
15211
15211
|
}
|
|
15212
15212
|
Object.assign(SpsI, {
|
|
15213
|
-
props: propsDoc$
|
|
15214
|
-
propTypes: propTypes$
|
|
15213
|
+
props: propsDoc$1p,
|
|
15214
|
+
propTypes: propTypes$1s,
|
|
15215
15215
|
displayName: "SpsI"
|
|
15216
15216
|
});
|
|
15217
15217
|
Object.assign(SpsI, {
|
|
15218
|
-
props: propsDoc$
|
|
15219
|
-
propTypes: propTypes$
|
|
15218
|
+
props: propsDoc$1p,
|
|
15219
|
+
propTypes: propTypes$1s,
|
|
15220
15220
|
displayName: "SpsI"
|
|
15221
15221
|
});
|
|
15222
|
-
const propsDoc$
|
|
15222
|
+
const propsDoc$1o = {
|
|
15223
15223
|
borderless: "boolean",
|
|
15224
15224
|
lean: "boolean",
|
|
15225
15225
|
leaner: { type: "boolean", deprecated: true },
|
|
15226
15226
|
widthPx: "number",
|
|
15227
15227
|
widthRem: "number"
|
|
15228
15228
|
};
|
|
15229
|
-
const propTypes$
|
|
15230
|
-
borderless: propTypes$
|
|
15231
|
-
lean: propTypes$
|
|
15232
|
-
leaner: propTypes$
|
|
15233
|
-
widthPx: propTypes$
|
|
15234
|
-
widthRem: propTypes$
|
|
15229
|
+
const propTypes$1r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15230
|
+
borderless: propTypes$1N.exports.bool,
|
|
15231
|
+
lean: propTypes$1N.exports.bool,
|
|
15232
|
+
leaner: propTypes$1N.exports.bool,
|
|
15233
|
+
widthPx: propTypes$1N.exports.number,
|
|
15234
|
+
widthRem: propTypes$1N.exports.number
|
|
15235
15235
|
});
|
|
15236
15236
|
function SpsContentRowCol(props2) {
|
|
15237
15237
|
const _a = props2, {
|
|
@@ -15276,12 +15276,12 @@ function SpsContentRowCol(props2) {
|
|
|
15276
15276
|
}), children);
|
|
15277
15277
|
}
|
|
15278
15278
|
Object.assign(SpsContentRowCol, {
|
|
15279
|
-
props: propsDoc$
|
|
15280
|
-
propTypes: propTypes$
|
|
15279
|
+
props: propsDoc$1o,
|
|
15280
|
+
propTypes: propTypes$1r,
|
|
15281
15281
|
displayName: "SpsContentRowCol"
|
|
15282
15282
|
});
|
|
15283
|
-
const propsDoc$
|
|
15284
|
-
const propTypes$
|
|
15283
|
+
const propsDoc$1n = {};
|
|
15284
|
+
const propTypes$1q = __spreadValues({}, spsGlobalPropTypes);
|
|
15285
15285
|
function SpsContentRowExpansion(props2) {
|
|
15286
15286
|
const _a = props2, {
|
|
15287
15287
|
children,
|
|
@@ -15302,11 +15302,11 @@ function SpsContentRowExpansion(props2) {
|
|
|
15302
15302
|
}), children);
|
|
15303
15303
|
}
|
|
15304
15304
|
Object.assign(SpsContentRowExpansion, {
|
|
15305
|
-
props: propsDoc$
|
|
15306
|
-
propTypes: propTypes$
|
|
15305
|
+
props: propsDoc$1n,
|
|
15306
|
+
propTypes: propTypes$1q,
|
|
15307
15307
|
displayName: "SpsContentRowExpansion"
|
|
15308
15308
|
});
|
|
15309
|
-
const propsDoc$
|
|
15309
|
+
const propsDoc$1m = {
|
|
15310
15310
|
alternateLayout: "boolean",
|
|
15311
15311
|
initiallyExpanded: "boolean",
|
|
15312
15312
|
cardSpacing: "boolean",
|
|
@@ -15319,18 +15319,18 @@ const propsDoc$1l = {
|
|
|
15319
15319
|
selectable: "boolean",
|
|
15320
15320
|
selected: "boolean"
|
|
15321
15321
|
};
|
|
15322
|
-
const propTypes$
|
|
15323
|
-
alternateLayout: propTypes$
|
|
15324
|
-
cardSpacing: propTypes$
|
|
15325
|
-
expanded: propTypes$
|
|
15326
|
-
initiallyExpanded: propTypes$
|
|
15322
|
+
const propTypes$1p = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15323
|
+
alternateLayout: propTypes$1N.exports.bool,
|
|
15324
|
+
cardSpacing: propTypes$1N.exports.bool,
|
|
15325
|
+
expanded: propTypes$1N.exports.bool,
|
|
15326
|
+
initiallyExpanded: propTypes$1N.exports.bool,
|
|
15327
15327
|
onBeforeCollapsed: fun(),
|
|
15328
15328
|
onBeforeExpanded: fun(),
|
|
15329
15329
|
onSelectionChange: fun(),
|
|
15330
15330
|
onCollapsed: fun(),
|
|
15331
15331
|
onExpanded: fun(),
|
|
15332
|
-
selectable: propTypes$
|
|
15333
|
-
selected: propTypes$
|
|
15332
|
+
selectable: propTypes$1N.exports.bool,
|
|
15333
|
+
selected: propTypes$1N.exports.bool
|
|
15334
15334
|
});
|
|
15335
15335
|
function SpsContentRow(props2) {
|
|
15336
15336
|
const _a = props2, {
|
|
@@ -15411,8 +15411,8 @@ function SpsContentRow(props2) {
|
|
|
15411
15411
|
}, /* @__PURE__ */ React.createElement("section", null, ContentRowCheckBox()), /* @__PURE__ */ React.createElement("section", null, ExpandoThingy())), columns), expansion);
|
|
15412
15412
|
}
|
|
15413
15413
|
Object.assign(SpsContentRow, {
|
|
15414
|
-
props: propsDoc$
|
|
15415
|
-
propTypes: propTypes$
|
|
15414
|
+
props: propsDoc$1m,
|
|
15415
|
+
propTypes: propTypes$1p,
|
|
15416
15416
|
displayName: "SpsContentRow"
|
|
15417
15417
|
});
|
|
15418
15418
|
const SpsContentRowExamples = {
|
|
@@ -15881,7 +15881,7 @@ function parse2(value) {
|
|
|
15881
15881
|
function weekOfMonth$1(date2) {
|
|
15882
15882
|
return Math.floor((date2.clone().date(1).day() + date2.date() - 1) / 7);
|
|
15883
15883
|
}
|
|
15884
|
-
const propsDoc$
|
|
15884
|
+
const propsDoc$1l = {
|
|
15885
15885
|
disabled: "boolean",
|
|
15886
15886
|
format: "string",
|
|
15887
15887
|
maxDate: "string",
|
|
@@ -15891,15 +15891,15 @@ const propsDoc$1k = {
|
|
|
15891
15891
|
placeholder: "string",
|
|
15892
15892
|
value: "string"
|
|
15893
15893
|
};
|
|
15894
|
-
const propTypes$
|
|
15895
|
-
disabled: propTypes$
|
|
15896
|
-
format: propTypes$
|
|
15897
|
-
maxDate: propTypes$
|
|
15898
|
-
minDate: propTypes$
|
|
15894
|
+
const propTypes$1o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15895
|
+
disabled: propTypes$1N.exports.bool,
|
|
15896
|
+
format: propTypes$1N.exports.string,
|
|
15897
|
+
maxDate: propTypes$1N.exports.string,
|
|
15898
|
+
minDate: propTypes$1N.exports.string,
|
|
15899
15899
|
onChange: fun(),
|
|
15900
15900
|
onClickOutside: fun(),
|
|
15901
|
-
placeholder: propTypes$
|
|
15902
|
-
value: propTypes$
|
|
15901
|
+
placeholder: propTypes$1N.exports.string,
|
|
15902
|
+
value: propTypes$1N.exports.string
|
|
15903
15903
|
});
|
|
15904
15904
|
function SpsDatepicker(props2) {
|
|
15905
15905
|
const _a = props2, {
|
|
@@ -16262,8 +16262,8 @@ function SpsDatepicker(props2) {
|
|
|
16262
16262
|
}))));
|
|
16263
16263
|
}
|
|
16264
16264
|
Object.assign(SpsDatepicker, {
|
|
16265
|
-
props: propsDoc$
|
|
16266
|
-
propTypes: propTypes$
|
|
16265
|
+
props: propsDoc$1l,
|
|
16266
|
+
propTypes: propTypes$1o,
|
|
16267
16267
|
displayName: "SpsDatepicker"
|
|
16268
16268
|
});
|
|
16269
16269
|
const SpsDatepickerExamples = {
|
|
@@ -16358,7 +16358,7 @@ const SpsDatepickerExamples = {
|
|
|
16358
16358
|
}
|
|
16359
16359
|
}
|
|
16360
16360
|
};
|
|
16361
|
-
const propsDoc$
|
|
16361
|
+
const propsDoc$1k = {
|
|
16362
16362
|
placeholder: "string",
|
|
16363
16363
|
disabled: "boolean",
|
|
16364
16364
|
format: "string",
|
|
@@ -16369,13 +16369,13 @@ const propsDoc$1j = {
|
|
|
16369
16369
|
value: "MomentRange",
|
|
16370
16370
|
preset: "Duration"
|
|
16371
16371
|
};
|
|
16372
|
-
const propTypes$
|
|
16373
|
-
placeholder: propTypes$
|
|
16374
|
-
disabled: propTypes$
|
|
16375
|
-
format: propTypes$
|
|
16376
|
-
minDate: propTypes$
|
|
16377
|
-
maxDate: propTypes$
|
|
16378
|
-
availablePresets: propTypes$
|
|
16372
|
+
const propTypes$1n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
16373
|
+
placeholder: propTypes$1N.exports.string,
|
|
16374
|
+
disabled: propTypes$1N.exports.bool,
|
|
16375
|
+
format: propTypes$1N.exports.string,
|
|
16376
|
+
minDate: propTypes$1N.exports.string,
|
|
16377
|
+
maxDate: propTypes$1N.exports.string,
|
|
16378
|
+
availablePresets: propTypes$1N.exports.array,
|
|
16379
16379
|
onChange: fun(),
|
|
16380
16380
|
value: impl(),
|
|
16381
16381
|
preset: impl()
|
|
@@ -17023,8 +17023,8 @@ function SpsDateRangePicker(props2) {
|
|
|
17023
17023
|
}) : "")));
|
|
17024
17024
|
}
|
|
17025
17025
|
Object.assign(SpsDateRangePicker, {
|
|
17026
|
-
props: propsDoc$
|
|
17027
|
-
propTypes: propTypes$
|
|
17026
|
+
props: propsDoc$1k,
|
|
17027
|
+
propTypes: propTypes$1n,
|
|
17028
17028
|
displayName: "SpsDateRangePicker"
|
|
17029
17029
|
});
|
|
17030
17030
|
const SpsDateRangePickerExamples = {
|
|
@@ -21627,7 +21627,7 @@ const formatMaps = {
|
|
|
21627
21627
|
LONG_FULLDATETIME: "LLLL",
|
|
21628
21628
|
LONG_FULLDATETIME_ZONE: "LLLL z"
|
|
21629
21629
|
};
|
|
21630
|
-
const propsDoc$
|
|
21630
|
+
const propsDoc$1j = {
|
|
21631
21631
|
currentUser: "any",
|
|
21632
21632
|
dateToFormat: "string | Date",
|
|
21633
21633
|
format: "string",
|
|
@@ -21636,17 +21636,17 @@ const propsDoc$1i = {
|
|
|
21636
21636
|
relativeHrs: "number",
|
|
21637
21637
|
tz: "string"
|
|
21638
21638
|
};
|
|
21639
|
-
const propTypes$
|
|
21640
|
-
currentUser: propTypes$
|
|
21641
|
-
dateToFormat: propTypes$
|
|
21642
|
-
propTypes$
|
|
21643
|
-
propTypes$
|
|
21639
|
+
const propTypes$1m = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21640
|
+
currentUser: propTypes$1N.exports.any,
|
|
21641
|
+
dateToFormat: propTypes$1N.exports.oneOfType([
|
|
21642
|
+
propTypes$1N.exports.string,
|
|
21643
|
+
propTypes$1N.exports.instanceOf(Date)
|
|
21644
21644
|
]),
|
|
21645
|
-
format: propTypes$
|
|
21646
|
-
locale: propTypes$
|
|
21647
|
-
relative: propTypes$
|
|
21648
|
-
relativeHrs: propTypes$
|
|
21649
|
-
tz: propTypes$
|
|
21645
|
+
format: propTypes$1N.exports.string,
|
|
21646
|
+
locale: propTypes$1N.exports.string,
|
|
21647
|
+
relative: propTypes$1N.exports.bool,
|
|
21648
|
+
relativeHrs: propTypes$1N.exports.number,
|
|
21649
|
+
tz: propTypes$1N.exports.string
|
|
21650
21650
|
});
|
|
21651
21651
|
function showRelative(dateToCheck, relative, relativeHrs) {
|
|
21652
21652
|
if (!relativeHrs && !relative) {
|
|
@@ -21722,8 +21722,8 @@ function SpsDateTime(props2) {
|
|
|
21722
21722
|
}));
|
|
21723
21723
|
}
|
|
21724
21724
|
Object.assign(SpsDateTime, {
|
|
21725
|
-
props: propsDoc$
|
|
21726
|
-
propTypes: propTypes$
|
|
21725
|
+
props: propsDoc$1j,
|
|
21726
|
+
propTypes: propTypes$1m,
|
|
21727
21727
|
displayName: "SpsDateTime"
|
|
21728
21728
|
});
|
|
21729
21729
|
const SpsDatetimeExamples = {
|
|
@@ -21744,15 +21744,15 @@ const SpsDatetimeExamples = {
|
|
|
21744
21744
|
}
|
|
21745
21745
|
}
|
|
21746
21746
|
};
|
|
21747
|
-
const propsDoc$
|
|
21747
|
+
const propsDoc$1i = {
|
|
21748
21748
|
compact: "boolean",
|
|
21749
21749
|
wideTerms: "boolean",
|
|
21750
21750
|
widerTerms: "boolean"
|
|
21751
21751
|
};
|
|
21752
|
-
const propTypes$
|
|
21753
|
-
compact: propTypes$
|
|
21754
|
-
wideTerms: propTypes$
|
|
21755
|
-
widerTerms: propTypes$
|
|
21752
|
+
const propTypes$1l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21753
|
+
compact: propTypes$1N.exports.bool,
|
|
21754
|
+
wideTerms: propTypes$1N.exports.bool,
|
|
21755
|
+
widerTerms: propTypes$1N.exports.bool
|
|
21756
21756
|
});
|
|
21757
21757
|
function SpsDescriptionList(props2) {
|
|
21758
21758
|
const _a = props2, {
|
|
@@ -21792,20 +21792,20 @@ function SpsDescriptionList(props2) {
|
|
|
21792
21792
|
}, rest), childrenWithProps);
|
|
21793
21793
|
}
|
|
21794
21794
|
Object.assign(SpsDescriptionList, {
|
|
21795
|
-
props: propsDoc$
|
|
21796
|
-
propTypes: propTypes$
|
|
21795
|
+
props: propsDoc$1i,
|
|
21796
|
+
propTypes: propTypes$1l,
|
|
21797
21797
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21798
21798
|
});
|
|
21799
21799
|
function SpsDl(p2) {
|
|
21800
21800
|
return SpsDescriptionList(p2);
|
|
21801
21801
|
}
|
|
21802
21802
|
Object.assign(SpsDl, {
|
|
21803
|
-
props: propsDoc$
|
|
21804
|
-
propTypes: propTypes$
|
|
21803
|
+
props: propsDoc$1i,
|
|
21804
|
+
propTypes: propTypes$1l,
|
|
21805
21805
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21806
21806
|
});
|
|
21807
|
-
const propsDoc$
|
|
21808
|
-
const propTypes$
|
|
21807
|
+
const propsDoc$1h = {};
|
|
21808
|
+
const propTypes$1k = __spreadValues({}, spsGlobalPropTypes);
|
|
21809
21809
|
function SpsDescriptionListDefinition(props2) {
|
|
21810
21810
|
const _a = props2, {
|
|
21811
21811
|
children,
|
|
@@ -21825,16 +21825,16 @@ function SpsDescriptionListDefinition(props2) {
|
|
|
21825
21825
|
}, rest), children);
|
|
21826
21826
|
}
|
|
21827
21827
|
Object.assign(SpsDescriptionListDefinition, {
|
|
21828
|
-
props: propsDoc$
|
|
21829
|
-
propTypes: propTypes$
|
|
21828
|
+
props: propsDoc$1h,
|
|
21829
|
+
propTypes: propTypes$1k,
|
|
21830
21830
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21831
21831
|
});
|
|
21832
21832
|
function SpsDd(p2) {
|
|
21833
21833
|
return SpsDescriptionListDefinition(p2);
|
|
21834
21834
|
}
|
|
21835
21835
|
Object.assign(SpsDd, {
|
|
21836
|
-
props: propsDoc$
|
|
21837
|
-
propTypes: propTypes$
|
|
21836
|
+
props: propsDoc$1h,
|
|
21837
|
+
propTypes: propTypes$1k,
|
|
21838
21838
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21839
21839
|
});
|
|
21840
21840
|
var TooltipVisibility;
|
|
@@ -21849,7 +21849,7 @@ function toggleTooltipState(state) {
|
|
|
21849
21849
|
}
|
|
21850
21850
|
const CARET_SPACING_PX = 13;
|
|
21851
21851
|
const openTips = new Map();
|
|
21852
|
-
const propsDoc$
|
|
21852
|
+
const propsDoc$1g = {
|
|
21853
21853
|
for: { type: "React.MutableRefObject<any> | string", required: true },
|
|
21854
21854
|
hideDelay: "number",
|
|
21855
21855
|
isShown: "TooltipVisibility",
|
|
@@ -21861,17 +21861,17 @@ const propsDoc$1f = {
|
|
|
21861
21861
|
showOn: "TooltipShowTrigger",
|
|
21862
21862
|
title: "string | ReactNode"
|
|
21863
21863
|
};
|
|
21864
|
-
const propTypes$
|
|
21865
|
-
for: propTypes$
|
|
21866
|
-
hideDelay: propTypes$
|
|
21864
|
+
const propTypes$1j = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21865
|
+
for: propTypes$1N.exports.oneOfType([ref(), propTypes$1N.exports.string]).isRequired,
|
|
21866
|
+
hideDelay: propTypes$1N.exports.number,
|
|
21867
21867
|
isShown: enumValue(TooltipVisibility),
|
|
21868
21868
|
kind: enumValue(TooltipKind),
|
|
21869
|
-
offsets: propTypes$
|
|
21869
|
+
offsets: propTypes$1N.exports.arrayOf(propTypes$1N.exports.number),
|
|
21870
21870
|
onDeferred: fun(),
|
|
21871
21871
|
position: enumValue(Position),
|
|
21872
21872
|
altPosition: enumValue(Position),
|
|
21873
21873
|
showOn: enumValue(TooltipShowTrigger),
|
|
21874
|
-
title: propTypes$
|
|
21874
|
+
title: propTypes$1N.exports.string || propTypes$1N.exports.node
|
|
21875
21875
|
});
|
|
21876
21876
|
function SpsTooltip({
|
|
21877
21877
|
children,
|
|
@@ -22044,11 +22044,18 @@ function SpsTooltip({
|
|
|
22044
22044
|
}, []);
|
|
22045
22045
|
const portal = usePortal("sps-tooltip-portal");
|
|
22046
22046
|
const portalContext = React.useContext(PortalContext);
|
|
22047
|
-
const [posStyle, altPositionUsed] =
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22047
|
+
const [[posStyle, altPositionUsed], setPositionData] = React.useState([{}, false]);
|
|
22048
|
+
React.useEffect(() => {
|
|
22049
|
+
if (shown) {
|
|
22050
|
+
setPositionData(getPosition(rootElement, forElementRef, position3, __spreadValues({
|
|
22051
|
+
altPosition,
|
|
22052
|
+
setMinWidth: false,
|
|
22053
|
+
offsets: [offsets[0] - CARET_SPACING_PX, offsets[1] + getSecondaryOffset(position3)]
|
|
22054
|
+
}, portalContext)));
|
|
22055
|
+
} else {
|
|
22056
|
+
setPositionData([{}, false]);
|
|
22057
|
+
}
|
|
22058
|
+
}, [shown, position3, altPosition, offsets[0], offsets[1], children]);
|
|
22052
22059
|
const classes = clsx(unsafelyReplaceClassName || "sps-tooltip", "z-stratum-tip", `sps-tooltip--${kind}`, `sps-tooltip--pos-${(altPositionUsed ? altPosition : position3).replace(" ", "-")}`, shown && "sps-tooltip--shown", className);
|
|
22053
22060
|
return portal(/* @__PURE__ */ React.createElement("div", {
|
|
22054
22061
|
role: "tooltip",
|
|
@@ -22068,26 +22075,26 @@ function SpsTooltip({
|
|
|
22068
22075
|
})));
|
|
22069
22076
|
}
|
|
22070
22077
|
Object.assign(SpsTooltip, {
|
|
22071
|
-
props: propsDoc$
|
|
22072
|
-
propTypes: propTypes$
|
|
22078
|
+
props: propsDoc$1g,
|
|
22079
|
+
propTypes: propTypes$1j,
|
|
22073
22080
|
displayName: "SpsTooltip"
|
|
22074
22081
|
});
|
|
22075
|
-
const propsDoc$
|
|
22082
|
+
const propsDoc$1f = {
|
|
22076
22083
|
error: "boolean",
|
|
22077
22084
|
errors: "ReactNodeOrRenderFn",
|
|
22078
22085
|
help: "ReactNodeOrRenderFn",
|
|
22079
22086
|
labelFor: "SpsFormFieldMeta<any>",
|
|
22080
22087
|
required: "boolean"
|
|
22081
22088
|
};
|
|
22082
|
-
const propTypes$
|
|
22083
|
-
error: propTypes$
|
|
22089
|
+
const propTypes$1i = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22090
|
+
error: propTypes$1N.exports.bool,
|
|
22084
22091
|
errors: nodeOrRenderFn,
|
|
22085
22092
|
help: nodeOrRenderFn,
|
|
22086
|
-
labelFor: propTypes$
|
|
22093
|
+
labelFor: propTypes$1N.exports.oneOfType([
|
|
22087
22094
|
impl(),
|
|
22088
22095
|
impl()
|
|
22089
22096
|
]),
|
|
22090
|
-
required: propTypes$
|
|
22097
|
+
required: propTypes$1N.exports.bool
|
|
22091
22098
|
});
|
|
22092
22099
|
function SpsDescriptionListTerm(props2) {
|
|
22093
22100
|
const _a = props2, {
|
|
@@ -22143,16 +22150,16 @@ function SpsDescriptionListTerm(props2) {
|
|
|
22143
22150
|
}, contentOf(tipKind === TooltipKind.ERROR ? errors : help)));
|
|
22144
22151
|
}
|
|
22145
22152
|
Object.assign(SpsDescriptionListTerm, {
|
|
22146
|
-
props: propsDoc$
|
|
22147
|
-
propTypes: propTypes$
|
|
22153
|
+
props: propsDoc$1f,
|
|
22154
|
+
propTypes: propTypes$1i,
|
|
22148
22155
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
22149
22156
|
});
|
|
22150
22157
|
function SpsDt(p2) {
|
|
22151
22158
|
return SpsDescriptionListTerm(p2);
|
|
22152
22159
|
}
|
|
22153
22160
|
Object.assign(SpsDt, {
|
|
22154
|
-
props: propsDoc$
|
|
22155
|
-
propTypes: propTypes$
|
|
22161
|
+
props: propsDoc$1f,
|
|
22162
|
+
propTypes: propTypes$1i,
|
|
22156
22163
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
22157
22164
|
});
|
|
22158
22165
|
const SpsDescriptionListExamples = {
|
|
@@ -22630,19 +22637,19 @@ const SpsDropdownExamples = {
|
|
|
22630
22637
|
}
|
|
22631
22638
|
}
|
|
22632
22639
|
};
|
|
22633
|
-
const propsDoc$
|
|
22640
|
+
const propsDoc$1e = {
|
|
22634
22641
|
checked: "boolean",
|
|
22635
22642
|
onChange: "ChangeEventHandler",
|
|
22636
22643
|
indeterminate: "boolean",
|
|
22637
22644
|
disabled: "boolean",
|
|
22638
22645
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
22639
22646
|
};
|
|
22640
|
-
const propTypes$
|
|
22641
|
-
checked: propTypes$
|
|
22647
|
+
const propTypes$1h = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22648
|
+
checked: propTypes$1N.exports.bool,
|
|
22642
22649
|
onChange: fun(),
|
|
22643
|
-
indeterminate: propTypes$
|
|
22644
|
-
options: propTypes$
|
|
22645
|
-
disabled: propTypes$
|
|
22650
|
+
indeterminate: propTypes$1N.exports.bool,
|
|
22651
|
+
options: propTypes$1N.exports.arrayOf(propTypes$1N.exports.oneOfType([propTypes$1N.exports.func, propTypes$1N.exports.any])).isRequired,
|
|
22652
|
+
disabled: propTypes$1N.exports.bool
|
|
22646
22653
|
});
|
|
22647
22654
|
function SpsCheckboxDropdown(props2) {
|
|
22648
22655
|
const _a = props2, {
|
|
@@ -22676,14 +22683,14 @@ function SpsCheckboxDropdown(props2) {
|
|
|
22676
22683
|
}));
|
|
22677
22684
|
}
|
|
22678
22685
|
Object.assign(SpsCheckboxDropdown, {
|
|
22679
|
-
props: propsDoc$
|
|
22680
|
-
propTypes: propTypes$
|
|
22686
|
+
props: propsDoc$1e,
|
|
22687
|
+
propTypes: propTypes$1h,
|
|
22681
22688
|
displayName: "SpsCheckboxDropdown"
|
|
22682
22689
|
});
|
|
22683
|
-
const propsDoc$
|
|
22690
|
+
const propsDoc$1d = {
|
|
22684
22691
|
kind: "FeedbackBlockKind"
|
|
22685
22692
|
};
|
|
22686
|
-
const propTypes$
|
|
22693
|
+
const propTypes$1g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22687
22694
|
kind: enumValue(FeedbackBlockKind)
|
|
22688
22695
|
});
|
|
22689
22696
|
function SpsFeedbackBlock(props2) {
|
|
@@ -22714,8 +22721,8 @@ function SpsFeedbackBlock(props2) {
|
|
|
22714
22721
|
}, children));
|
|
22715
22722
|
}
|
|
22716
22723
|
Object.assign(SpsFeedbackBlock, {
|
|
22717
|
-
props: propsDoc$
|
|
22718
|
-
propTypes: propTypes$
|
|
22724
|
+
props: propsDoc$1d,
|
|
22725
|
+
propTypes: propTypes$1g,
|
|
22719
22726
|
displayName: "SpsFeedbackBlock"
|
|
22720
22727
|
});
|
|
22721
22728
|
const SpsFeedbackBlockExamples = {
|
|
@@ -22817,7 +22824,7 @@ const SpsFeedbackBlockExamples = {
|
|
|
22817
22824
|
}
|
|
22818
22825
|
}
|
|
22819
22826
|
};
|
|
22820
|
-
const propsDoc$
|
|
22827
|
+
const propsDoc$1c = {
|
|
22821
22828
|
errors: "ReactNodeOrRenderFn",
|
|
22822
22829
|
formMeta: "SpsFormSetMeta<any>",
|
|
22823
22830
|
legend: "string",
|
|
@@ -22826,16 +22833,16 @@ const propsDoc$1b = {
|
|
|
22826
22833
|
onToggled: "(isEnabled: boolean) => void",
|
|
22827
22834
|
tooltip: "string"
|
|
22828
22835
|
};
|
|
22829
|
-
const propTypes$
|
|
22836
|
+
const propTypes$1f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22830
22837
|
errors: nodeOrRenderFn,
|
|
22831
22838
|
formArray: impl(),
|
|
22832
22839
|
formGroup: impl(),
|
|
22833
22840
|
formMeta: impl(),
|
|
22834
|
-
legend: propTypes$
|
|
22835
|
-
optional: propTypes$
|
|
22836
|
-
enabled: propTypes$
|
|
22841
|
+
legend: propTypes$1N.exports.string,
|
|
22842
|
+
optional: propTypes$1N.exports.bool,
|
|
22843
|
+
enabled: propTypes$1N.exports.bool,
|
|
22837
22844
|
onToggled: fun(),
|
|
22838
|
-
tooltip: propTypes$
|
|
22845
|
+
tooltip: propTypes$1N.exports.string
|
|
22839
22846
|
});
|
|
22840
22847
|
function SpsFieldset({
|
|
22841
22848
|
children,
|
|
@@ -22915,8 +22922,8 @@ function SpsFieldset({
|
|
|
22915
22922
|
}, contentOf(errors)), children));
|
|
22916
22923
|
}
|
|
22917
22924
|
Object.assign(SpsFieldset, {
|
|
22918
|
-
props: propsDoc$
|
|
22919
|
-
propTypes: propTypes$
|
|
22925
|
+
props: propsDoc$1c,
|
|
22926
|
+
propTypes: propTypes$1f,
|
|
22920
22927
|
displayName: "SpsFieldset"
|
|
22921
22928
|
});
|
|
22922
22929
|
const SpsFieldsetExamples = {
|
|
@@ -23202,8 +23209,8 @@ const SpsFieldsetExamples = {
|
|
|
23202
23209
|
}
|
|
23203
23210
|
}
|
|
23204
23211
|
};
|
|
23205
|
-
const propsDoc$
|
|
23206
|
-
const propTypes$
|
|
23212
|
+
const propsDoc$1b = {};
|
|
23213
|
+
const propTypes$1e = __spreadValues({}, spsGlobalPropTypes);
|
|
23207
23214
|
function SpsFocusedTaskActions(props2) {
|
|
23208
23215
|
const _a = props2, {
|
|
23209
23216
|
children,
|
|
@@ -23224,18 +23231,18 @@ function SpsFocusedTaskActions(props2) {
|
|
|
23224
23231
|
}, children)));
|
|
23225
23232
|
}
|
|
23226
23233
|
Object.assign(SpsFocusedTaskActions, {
|
|
23227
|
-
props: propsDoc$
|
|
23228
|
-
propTypes: propTypes$
|
|
23234
|
+
props: propsDoc$1b,
|
|
23235
|
+
propTypes: propTypes$1e,
|
|
23229
23236
|
displayName: "SpsFocusedTaskActions"
|
|
23230
23237
|
});
|
|
23231
|
-
const propsDoc$
|
|
23238
|
+
const propsDoc$1a = {
|
|
23232
23239
|
fullWidth: "boolean",
|
|
23233
23240
|
isOpen: "boolean",
|
|
23234
23241
|
onClose: "() => void"
|
|
23235
23242
|
};
|
|
23236
|
-
const propTypes$
|
|
23237
|
-
fullWidth: propTypes$
|
|
23238
|
-
isOpen: propTypes$
|
|
23243
|
+
const propTypes$1d = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
23244
|
+
fullWidth: propTypes$1N.exports.bool,
|
|
23245
|
+
isOpen: propTypes$1N.exports.bool,
|
|
23239
23246
|
onClose: fun()
|
|
23240
23247
|
});
|
|
23241
23248
|
function SpsFocusedTask(props2) {
|
|
@@ -23292,8 +23299,8 @@ function SpsFocusedTask(props2) {
|
|
|
23292
23299
|
}, isOpen && content)), actions);
|
|
23293
23300
|
}
|
|
23294
23301
|
Object.assign(SpsFocusedTask, {
|
|
23295
|
-
props: propsDoc$
|
|
23296
|
-
propTypes: propTypes$
|
|
23302
|
+
props: propsDoc$1a,
|
|
23303
|
+
propTypes: propTypes$1d,
|
|
23297
23304
|
displayName: "SpsFocusedTask"
|
|
23298
23305
|
});
|
|
23299
23306
|
const SpsFocusedTaskExamples = {
|
|
@@ -24278,19 +24285,19 @@ const SpsAddRemoveFormRowExamples = {
|
|
|
24278
24285
|
}
|
|
24279
24286
|
}
|
|
24280
24287
|
};
|
|
24281
|
-
const propsDoc$
|
|
24288
|
+
const propsDoc$19 = {
|
|
24282
24289
|
imgSrc: "string",
|
|
24283
24290
|
kind: "GrowlerKind",
|
|
24284
24291
|
onClose: "() => void",
|
|
24285
24292
|
persist: "boolean",
|
|
24286
24293
|
title: "string"
|
|
24287
24294
|
};
|
|
24288
|
-
const propTypes$
|
|
24289
|
-
imgSrc: propTypes$
|
|
24295
|
+
const propTypes$1c = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24296
|
+
imgSrc: propTypes$1N.exports.string,
|
|
24290
24297
|
kind: enumValue(GrowlerKind),
|
|
24291
24298
|
onClose: fun(),
|
|
24292
|
-
persist: propTypes$
|
|
24293
|
-
title: propTypes$
|
|
24299
|
+
persist: propTypes$1N.exports.bool,
|
|
24300
|
+
title: propTypes$1N.exports.string
|
|
24294
24301
|
});
|
|
24295
24302
|
function SpsGrowler(props2) {
|
|
24296
24303
|
const _a = props2, {
|
|
@@ -24396,8 +24403,8 @@ function SpsGrowler(props2) {
|
|
|
24396
24403
|
})))));
|
|
24397
24404
|
}
|
|
24398
24405
|
Object.assign(SpsGrowler, {
|
|
24399
|
-
props: propsDoc$
|
|
24400
|
-
propTypes: propTypes$
|
|
24406
|
+
props: propsDoc$19,
|
|
24407
|
+
propTypes: propTypes$1c,
|
|
24401
24408
|
displayName: "SpsGrowler"
|
|
24402
24409
|
});
|
|
24403
24410
|
const SpsGrowlerExamples = {
|
|
@@ -24772,18 +24779,18 @@ const SpsGrowlerExamples = {
|
|
|
24772
24779
|
}
|
|
24773
24780
|
}
|
|
24774
24781
|
};
|
|
24775
|
-
const propsDoc$
|
|
24782
|
+
const propsDoc$18 = {
|
|
24776
24783
|
disabled: "boolean",
|
|
24777
24784
|
min: "number",
|
|
24778
24785
|
max: "number",
|
|
24779
24786
|
step: "number",
|
|
24780
24787
|
onValueChange: "(newValue: number) => void"
|
|
24781
24788
|
};
|
|
24782
|
-
const propTypes$
|
|
24783
|
-
disabled: propTypes$
|
|
24784
|
-
min: propTypes$
|
|
24785
|
-
max: propTypes$
|
|
24786
|
-
step: propTypes$
|
|
24789
|
+
const propTypes$1b = __spreadValues({
|
|
24790
|
+
disabled: propTypes$1N.exports.bool,
|
|
24791
|
+
min: propTypes$1N.exports.number,
|
|
24792
|
+
max: propTypes$1N.exports.number,
|
|
24793
|
+
step: propTypes$1N.exports.number,
|
|
24787
24794
|
onValueChange: fun()
|
|
24788
24795
|
}, spsGlobalPropTypes);
|
|
24789
24796
|
function SpsIncrementor(props2) {
|
|
@@ -24886,8 +24893,8 @@ function SpsIncrementor(props2) {
|
|
|
24886
24893
|
}))));
|
|
24887
24894
|
}
|
|
24888
24895
|
Object.assign(SpsIncrementor, {
|
|
24889
|
-
props: propsDoc$
|
|
24890
|
-
propTypes: propTypes$
|
|
24896
|
+
props: propsDoc$18,
|
|
24897
|
+
propTypes: propTypes$1b,
|
|
24891
24898
|
displayName: "SpsIncrementor"
|
|
24892
24899
|
});
|
|
24893
24900
|
const SpsIncrementorExamples = {
|
|
@@ -24926,7 +24933,7 @@ function SpsInsights(props2) {
|
|
|
24926
24933
|
className: "insight-tile-wrapper"
|
|
24927
24934
|
}, children);
|
|
24928
24935
|
}
|
|
24929
|
-
const propsDoc$
|
|
24936
|
+
const propsDoc$17 = {
|
|
24930
24937
|
horizontal: "boolean",
|
|
24931
24938
|
icon: "SpsIcon",
|
|
24932
24939
|
kind: "SpsInsightTileKind",
|
|
@@ -24935,14 +24942,14 @@ const propsDoc$16 = {
|
|
|
24935
24942
|
partnerCount: "number",
|
|
24936
24943
|
totalPartners: "number"
|
|
24937
24944
|
};
|
|
24938
|
-
const propTypes$
|
|
24939
|
-
horizontal: propTypes$
|
|
24945
|
+
const propTypes$1a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24946
|
+
horizontal: propTypes$1N.exports.bool,
|
|
24940
24947
|
icon: enumValue(SpsIcon),
|
|
24941
24948
|
kind: enumValue(SpsInsightTileKind),
|
|
24942
|
-
title: propTypes$
|
|
24943
|
-
metric: propTypes$
|
|
24944
|
-
partnerCount: propTypes$
|
|
24945
|
-
totalPartners: propTypes$
|
|
24949
|
+
title: propTypes$1N.exports.string,
|
|
24950
|
+
metric: propTypes$1N.exports.number || propTypes$1N.exports.string,
|
|
24951
|
+
partnerCount: propTypes$1N.exports.number,
|
|
24952
|
+
totalPartners: propTypes$1N.exports.number
|
|
24946
24953
|
});
|
|
24947
24954
|
function SpsInsightTile(props2) {
|
|
24948
24955
|
const _a = props2, {
|
|
@@ -25002,8 +25009,8 @@ function SpsInsightTile(props2) {
|
|
|
25002
25009
|
}, t2("design-system:insightTile.partners")))));
|
|
25003
25010
|
}
|
|
25004
25011
|
Object.assign(SpsInsightTile, {
|
|
25005
|
-
props: propsDoc$
|
|
25006
|
-
propTypes: propTypes$
|
|
25012
|
+
props: propsDoc$17,
|
|
25013
|
+
propTypes: propTypes$1a,
|
|
25007
25014
|
displayName: "SpsInsightTile"
|
|
25008
25015
|
});
|
|
25009
25016
|
const SpsInsightTileExamples = {
|
|
@@ -25277,11 +25284,11 @@ const SpsInsightTileExamples = {
|
|
|
25277
25284
|
}
|
|
25278
25285
|
}
|
|
25279
25286
|
};
|
|
25280
|
-
const propsDoc$
|
|
25287
|
+
const propsDoc$16 = {
|
|
25281
25288
|
inline: "boolean"
|
|
25282
25289
|
};
|
|
25283
|
-
const propTypes$
|
|
25284
|
-
inline: propTypes$
|
|
25290
|
+
const propTypes$19 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25291
|
+
inline: propTypes$1N.exports.bool
|
|
25285
25292
|
});
|
|
25286
25293
|
function SpsKeyValueList(props2) {
|
|
25287
25294
|
const _a = props2, {
|
|
@@ -25304,16 +25311,16 @@ function SpsKeyValueList(props2) {
|
|
|
25304
25311
|
}, rest), children);
|
|
25305
25312
|
}
|
|
25306
25313
|
Object.assign(SpsKeyValueList, {
|
|
25307
|
-
props: propsDoc$
|
|
25308
|
-
propTypes: propTypes$
|
|
25314
|
+
props: propsDoc$16,
|
|
25315
|
+
propTypes: propTypes$19,
|
|
25309
25316
|
displayName: "SpsKeyValueList"
|
|
25310
25317
|
});
|
|
25311
|
-
const propsDoc$
|
|
25318
|
+
const propsDoc$15 = {
|
|
25312
25319
|
itemKey: { type: "string | nodeOrRenderFn", required: true },
|
|
25313
25320
|
titleColor: "KeyValueListTitleColor"
|
|
25314
25321
|
};
|
|
25315
|
-
const propTypes$
|
|
25316
|
-
itemKey: propTypes$
|
|
25322
|
+
const propTypes$18 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25323
|
+
itemKey: propTypes$1N.exports.string.isRequired || nodeOrRenderFn.isRequired,
|
|
25317
25324
|
titleColor: enumValue(KeyValueListTitleColor)
|
|
25318
25325
|
});
|
|
25319
25326
|
function SpsKeyValueListItem(props2) {
|
|
@@ -25345,8 +25352,8 @@ function SpsKeyValueListItem(props2) {
|
|
|
25345
25352
|
}, children));
|
|
25346
25353
|
}
|
|
25347
25354
|
Object.assign(SpsKeyValueListItem, {
|
|
25348
|
-
props: propsDoc$
|
|
25349
|
-
propTypes: propTypes$
|
|
25355
|
+
props: propsDoc$15,
|
|
25356
|
+
propTypes: propTypes$18,
|
|
25350
25357
|
displayName: "SpsKeyValueListItem"
|
|
25351
25358
|
});
|
|
25352
25359
|
const SpsKeyValueListExamples = {
|
|
@@ -25389,7 +25396,7 @@ const SpsKeyValueListExamples = {
|
|
|
25389
25396
|
}
|
|
25390
25397
|
}
|
|
25391
25398
|
};
|
|
25392
|
-
const propsDoc$
|
|
25399
|
+
const propsDoc$14 = {
|
|
25393
25400
|
for: { type: "SpsFormMetaBase<any>", required: true },
|
|
25394
25401
|
description: "string",
|
|
25395
25402
|
stronglySuggested: "boolean",
|
|
@@ -25398,16 +25405,16 @@ const propsDoc$13 = {
|
|
|
25398
25405
|
helpIconColor: "string",
|
|
25399
25406
|
errors: "ReactNodeOrRenderFn"
|
|
25400
25407
|
};
|
|
25401
|
-
const propTypes$
|
|
25402
|
-
description: propTypes$
|
|
25403
|
-
for: propTypes$
|
|
25408
|
+
const propTypes$17 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25409
|
+
description: propTypes$1N.exports.string,
|
|
25410
|
+
for: propTypes$1N.exports.oneOfType([
|
|
25404
25411
|
impl(),
|
|
25405
25412
|
impl()
|
|
25406
25413
|
]).isRequired,
|
|
25407
|
-
stronglySuggested: propTypes$
|
|
25414
|
+
stronglySuggested: propTypes$1N.exports.bool,
|
|
25408
25415
|
help: nodeOrRenderFn,
|
|
25409
25416
|
helpIcon: enumValue(SpsIcon),
|
|
25410
|
-
helpIconColor: propTypes$
|
|
25417
|
+
helpIconColor: propTypes$1N.exports.string,
|
|
25411
25418
|
errors: nodeOrRenderFn
|
|
25412
25419
|
});
|
|
25413
25420
|
function SpsLabel(_o) {
|
|
@@ -25603,8 +25610,8 @@ function SpsLabel(_o) {
|
|
|
25603
25610
|
}, description));
|
|
25604
25611
|
}
|
|
25605
25612
|
Object.assign(SpsLabel, {
|
|
25606
|
-
props: propsDoc$
|
|
25607
|
-
propTypes: propTypes$
|
|
25613
|
+
props: propsDoc$14,
|
|
25614
|
+
propTypes: propTypes$17,
|
|
25608
25615
|
displayName: "SpsLabel"
|
|
25609
25616
|
});
|
|
25610
25617
|
const SpsLabelExamples = {
|
|
@@ -25822,13 +25829,13 @@ const SpsLabelExamples = {
|
|
|
25822
25829
|
}
|
|
25823
25830
|
}
|
|
25824
25831
|
};
|
|
25825
|
-
const propsDoc$
|
|
25832
|
+
const propsDoc$13 = {
|
|
25826
25833
|
clearSelected: { type: "() => void", required: true },
|
|
25827
25834
|
itemsSelected: { type: "string | number", required: true }
|
|
25828
25835
|
};
|
|
25829
|
-
const propTypes$
|
|
25836
|
+
const propTypes$16 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25830
25837
|
clearSelected: fun().isRequired,
|
|
25831
|
-
itemsSelected: propTypes$
|
|
25838
|
+
itemsSelected: propTypes$1N.exports.oneOfType([propTypes$1N.exports.string, propTypes$1N.exports.number])
|
|
25832
25839
|
});
|
|
25833
25840
|
function SpsListActionBar(props2) {
|
|
25834
25841
|
const _a = props2, {
|
|
@@ -25878,8 +25885,8 @@ function SpsListActionBar(props2) {
|
|
|
25878
25885
|
}, t2("design-system:listActionBar.clearSelected")))));
|
|
25879
25886
|
}
|
|
25880
25887
|
Object.assign(SpsListActionBar, {
|
|
25881
|
-
props: propsDoc$
|
|
25882
|
-
propTypes: propTypes$
|
|
25888
|
+
props: propsDoc$13,
|
|
25889
|
+
propTypes: propTypes$16,
|
|
25883
25890
|
displayName: "SpsListActionBar"
|
|
25884
25891
|
});
|
|
25885
25892
|
const getScrollParent = (node) => {
|
|
@@ -26075,18 +26082,18 @@ const usePinnedTableHeadStyle = (containerRef) => {
|
|
|
26075
26082
|
};
|
|
26076
26083
|
});
|
|
26077
26084
|
};
|
|
26078
|
-
const propsDoc$
|
|
26085
|
+
const propsDoc$12 = {
|
|
26079
26086
|
controlCell: "boolean",
|
|
26080
26087
|
currentSort: "Array<SortedColumn>",
|
|
26081
26088
|
onSortChange: "SortChangeHandler",
|
|
26082
26089
|
sortKey: "string"
|
|
26083
26090
|
};
|
|
26084
|
-
const propTypes$
|
|
26085
|
-
controlCell: propTypes$
|
|
26086
|
-
currentSort: propTypes$
|
|
26091
|
+
const propTypes$15 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26092
|
+
controlCell: propTypes$1N.exports.bool,
|
|
26093
|
+
currentSort: propTypes$1N.exports.arrayOf(impl()),
|
|
26087
26094
|
onSortChange: fun(),
|
|
26088
|
-
sortKey: propTypes$
|
|
26089
|
-
pinned: propTypes$
|
|
26095
|
+
sortKey: propTypes$1N.exports.string,
|
|
26096
|
+
pinned: propTypes$1N.exports.bool
|
|
26090
26097
|
});
|
|
26091
26098
|
function SpsTableHeader(props2) {
|
|
26092
26099
|
const _a = props2, {
|
|
@@ -26145,24 +26152,24 @@ function SpsTableHeader(props2) {
|
|
|
26145
26152
|
}, children));
|
|
26146
26153
|
}
|
|
26147
26154
|
Object.assign(SpsTableHeader, {
|
|
26148
|
-
props: propsDoc$
|
|
26149
|
-
propTypes: propTypes$
|
|
26155
|
+
props: propsDoc$12,
|
|
26156
|
+
propTypes: propTypes$15,
|
|
26150
26157
|
displayName: "SpsTableHeader"
|
|
26151
26158
|
});
|
|
26152
26159
|
function SpsTh(props2) {
|
|
26153
26160
|
return /* @__PURE__ */ React.createElement(SpsTableHeader, __spreadValues({}, props2));
|
|
26154
26161
|
}
|
|
26155
26162
|
Object.assign(SpsTh, {
|
|
26156
|
-
props: propsDoc$
|
|
26157
|
-
propTypes: propTypes$
|
|
26163
|
+
props: propsDoc$12,
|
|
26164
|
+
propTypes: propTypes$15,
|
|
26158
26165
|
displayName: "SpsTh"
|
|
26159
26166
|
});
|
|
26160
|
-
const propsDoc$
|
|
26167
|
+
const propsDoc$11 = {
|
|
26161
26168
|
currentSort: "Array<SortedColumn>",
|
|
26162
26169
|
onSortChange: "SortChangeHandler"
|
|
26163
26170
|
};
|
|
26164
|
-
const propTypes$
|
|
26165
|
-
currentSort: propTypes$
|
|
26171
|
+
const propTypes$14 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26172
|
+
currentSort: propTypes$1N.exports.arrayOf(impl()),
|
|
26166
26173
|
onSortChange: fun()
|
|
26167
26174
|
});
|
|
26168
26175
|
function SpsTableRow(props2) {
|
|
@@ -26198,26 +26205,26 @@ function SpsTableRow(props2) {
|
|
|
26198
26205
|
}));
|
|
26199
26206
|
}
|
|
26200
26207
|
Object.assign(SpsTableRow, {
|
|
26201
|
-
props: propsDoc$
|
|
26202
|
-
propTypes: propTypes$
|
|
26208
|
+
props: propsDoc$11,
|
|
26209
|
+
propTypes: propTypes$14,
|
|
26203
26210
|
displayName: "SpsTableRow"
|
|
26204
26211
|
});
|
|
26205
26212
|
function SpsTr(props2) {
|
|
26206
26213
|
return /* @__PURE__ */ React.createElement(SpsTableRow, __spreadValues({}, props2));
|
|
26207
26214
|
}
|
|
26208
26215
|
Object.assign(SpsTr, {
|
|
26209
|
-
props: propsDoc$
|
|
26210
|
-
propTypes: propTypes$
|
|
26216
|
+
props: propsDoc$11,
|
|
26217
|
+
propTypes: propTypes$14,
|
|
26211
26218
|
displayName: "SpsTr"
|
|
26212
26219
|
});
|
|
26213
|
-
const propsDoc
|
|
26220
|
+
const propsDoc$10 = {
|
|
26214
26221
|
currentSort: "Array<SortedColumn>",
|
|
26215
26222
|
onSortChange: "SortChangeHandler"
|
|
26216
26223
|
};
|
|
26217
|
-
const propTypes$
|
|
26224
|
+
const propTypes$13 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26218
26225
|
onSortChange: fun(),
|
|
26219
|
-
currentSort: propTypes$
|
|
26220
|
-
pinned: propTypes$
|
|
26226
|
+
currentSort: propTypes$1N.exports.arrayOf(impl()),
|
|
26227
|
+
pinned: propTypes$1N.exports.bool
|
|
26221
26228
|
});
|
|
26222
26229
|
function SpsTableHead(props2) {
|
|
26223
26230
|
const _a = props2, {
|
|
@@ -26253,27 +26260,27 @@ function SpsTableHead(props2) {
|
|
|
26253
26260
|
}));
|
|
26254
26261
|
}
|
|
26255
26262
|
Object.assign(SpsTableHead, {
|
|
26256
|
-
props: propsDoc
|
|
26257
|
-
propTypes: propTypes$
|
|
26263
|
+
props: propsDoc$10,
|
|
26264
|
+
propTypes: propTypes$13,
|
|
26258
26265
|
displayName: "SpsTableHead"
|
|
26259
26266
|
});
|
|
26260
26267
|
function SpsThead(props2) {
|
|
26261
26268
|
return /* @__PURE__ */ React.createElement(SpsTableHead, __spreadValues({}, props2));
|
|
26262
26269
|
}
|
|
26263
26270
|
Object.assign(SpsThead, {
|
|
26264
|
-
props: propsDoc
|
|
26265
|
-
propTypes: propTypes$
|
|
26271
|
+
props: propsDoc$10,
|
|
26272
|
+
propTypes: propTypes$13,
|
|
26266
26273
|
displayName: "SpsThead"
|
|
26267
26274
|
});
|
|
26268
|
-
const propsDoc
|
|
26275
|
+
const propsDoc$$ = {
|
|
26269
26276
|
sort: "SortedColumn",
|
|
26270
26277
|
onSortChange: "SortChangeHandler",
|
|
26271
26278
|
selectable: "boolean"
|
|
26272
26279
|
};
|
|
26273
|
-
const propTypes$
|
|
26280
|
+
const propTypes$12 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26274
26281
|
onSortChange: fun(),
|
|
26275
|
-
sort: propTypes$
|
|
26276
|
-
selectable: propTypes$
|
|
26282
|
+
sort: propTypes$1N.exports.arrayOf(impl()),
|
|
26283
|
+
selectable: propTypes$1N.exports.bool
|
|
26277
26284
|
});
|
|
26278
26285
|
function SpsTable(props2) {
|
|
26279
26286
|
const _a = props2, {
|
|
@@ -26328,12 +26335,12 @@ function SpsTable(props2) {
|
|
|
26328
26335
|
})));
|
|
26329
26336
|
}
|
|
26330
26337
|
Object.assign(SpsTable, {
|
|
26331
|
-
props: propsDoc
|
|
26332
|
-
propTypes: propTypes$
|
|
26338
|
+
props: propsDoc$$,
|
|
26339
|
+
propTypes: propTypes$12,
|
|
26333
26340
|
displayName: "SpsTable"
|
|
26334
26341
|
});
|
|
26335
|
-
const propsDoc$
|
|
26336
|
-
const propTypes$
|
|
26342
|
+
const propsDoc$_ = {};
|
|
26343
|
+
const propTypes$11 = __spreadValues({}, spsGlobalPropTypes);
|
|
26337
26344
|
function SpsTableBody(props2) {
|
|
26338
26345
|
const _a = props2, {
|
|
26339
26346
|
children,
|
|
@@ -26353,34 +26360,34 @@ function SpsTableBody(props2) {
|
|
|
26353
26360
|
}, rest), children);
|
|
26354
26361
|
}
|
|
26355
26362
|
Object.assign(SpsTableBody, {
|
|
26356
|
-
props: propsDoc$
|
|
26357
|
-
propTypes: propTypes$
|
|
26363
|
+
props: propsDoc$_,
|
|
26364
|
+
propTypes: propTypes$11,
|
|
26358
26365
|
displayName: "SpsTableBody"
|
|
26359
26366
|
});
|
|
26360
26367
|
function SpsTbody(props2) {
|
|
26361
26368
|
return /* @__PURE__ */ React.createElement(SpsTableBody, __spreadValues({}, props2));
|
|
26362
26369
|
}
|
|
26363
26370
|
Object.assign(SpsTbody, {
|
|
26364
|
-
props: propsDoc$
|
|
26365
|
-
propTypes: propTypes$
|
|
26371
|
+
props: propsDoc$_,
|
|
26372
|
+
propTypes: propTypes$11,
|
|
26366
26373
|
displayName: "SpsTbody"
|
|
26367
26374
|
});
|
|
26368
|
-
const propsDoc$
|
|
26375
|
+
const propsDoc$Z = {
|
|
26369
26376
|
buttonCell: "boolean",
|
|
26370
26377
|
controlCell: "boolean",
|
|
26371
26378
|
wrap: "SpsTableCellWrapWidth"
|
|
26372
26379
|
};
|
|
26373
|
-
const propTypes
|
|
26374
|
-
buttonCell: propTypes$
|
|
26375
|
-
controlCell: propTypes$
|
|
26376
|
-
wrap: propTypes$
|
|
26380
|
+
const propTypes$10 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26381
|
+
buttonCell: propTypes$1N.exports.bool,
|
|
26382
|
+
controlCell: propTypes$1N.exports.bool,
|
|
26383
|
+
wrap: propTypes$1N.exports.oneOf([
|
|
26377
26384
|
200,
|
|
26378
26385
|
300,
|
|
26379
26386
|
400,
|
|
26380
26387
|
500,
|
|
26381
26388
|
600
|
|
26382
26389
|
]),
|
|
26383
|
-
pinned: propTypes$
|
|
26390
|
+
pinned: propTypes$1N.exports.bool
|
|
26384
26391
|
});
|
|
26385
26392
|
function SpsTableCell(props2) {
|
|
26386
26393
|
const _a = props2, {
|
|
@@ -26413,20 +26420,20 @@ function SpsTableCell(props2) {
|
|
|
26413
26420
|
}, rest), children);
|
|
26414
26421
|
}
|
|
26415
26422
|
Object.assign(SpsTableCell, {
|
|
26416
|
-
props: propsDoc$
|
|
26417
|
-
propTypes: propTypes
|
|
26423
|
+
props: propsDoc$Z,
|
|
26424
|
+
propTypes: propTypes$10,
|
|
26418
26425
|
displayName: "SpsTableCell"
|
|
26419
26426
|
});
|
|
26420
26427
|
function SpsTd(props2) {
|
|
26421
26428
|
return /* @__PURE__ */ React.createElement(SpsTableCell, __spreadValues({}, props2));
|
|
26422
26429
|
}
|
|
26423
26430
|
Object.assign(SpsTd, {
|
|
26424
|
-
props: propsDoc$
|
|
26425
|
-
propTypes: propTypes
|
|
26431
|
+
props: propsDoc$Z,
|
|
26432
|
+
propTypes: propTypes$10,
|
|
26426
26433
|
displayName: "SpsTd"
|
|
26427
26434
|
});
|
|
26428
|
-
const propsDoc$
|
|
26429
|
-
const propTypes
|
|
26435
|
+
const propsDoc$Y = {};
|
|
26436
|
+
const propTypes$$ = __spreadValues({}, spsGlobalPropTypes);
|
|
26430
26437
|
const CSS_BLOCK$3 = "sps-icon-button-panel";
|
|
26431
26438
|
function SpsIconButtonPanel(_q) {
|
|
26432
26439
|
var _r = _q, {
|
|
@@ -26445,8 +26452,8 @@ function SpsIconButtonPanel(_q) {
|
|
|
26445
26452
|
}, rest), iconButtons);
|
|
26446
26453
|
}
|
|
26447
26454
|
Object.assign(SpsIconButtonPanel, {
|
|
26448
|
-
props: propsDoc$
|
|
26449
|
-
propTypes: propTypes
|
|
26455
|
+
props: propsDoc$Y,
|
|
26456
|
+
propTypes: propTypes$$,
|
|
26450
26457
|
displayName: "SpsIconButtonPanel"
|
|
26451
26458
|
});
|
|
26452
26459
|
const SpsTableExamples = {
|
|
@@ -27630,8 +27637,8 @@ const SpsListActionBarExamples = {
|
|
|
27630
27637
|
}
|
|
27631
27638
|
}
|
|
27632
27639
|
};
|
|
27633
|
-
const propTypes$
|
|
27634
|
-
tabs: propTypes$
|
|
27640
|
+
const propTypes$_ = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27641
|
+
tabs: propTypes$1N.exports.arrayOf(impl()).isRequired,
|
|
27635
27642
|
activeTab: impl(),
|
|
27636
27643
|
onTabChange: fun()
|
|
27637
27644
|
});
|
|
@@ -27695,18 +27702,300 @@ function SpsTabs(props2) {
|
|
|
27695
27702
|
}, tab2.tag)))));
|
|
27696
27703
|
}
|
|
27697
27704
|
Object.assign(SpsTabs, {
|
|
27698
|
-
propTypes: propTypes$
|
|
27705
|
+
propTypes: propTypes$_,
|
|
27699
27706
|
displayName: "SpsTabs"
|
|
27700
27707
|
});
|
|
27708
|
+
const propsDoc$X = {
|
|
27709
|
+
resultsCount: "number",
|
|
27710
|
+
totalResults: "number",
|
|
27711
|
+
onClear: "() => void"
|
|
27712
|
+
};
|
|
27713
|
+
const propTypes$Z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27714
|
+
resultsCount: propTypes$1N.exports.number,
|
|
27715
|
+
totalResults: propTypes$1N.exports.number,
|
|
27716
|
+
onClear: fun()
|
|
27717
|
+
});
|
|
27718
|
+
function SpsSearchResultsBar(props2) {
|
|
27719
|
+
const _a = props2, {
|
|
27720
|
+
children,
|
|
27721
|
+
className,
|
|
27722
|
+
resultsCount,
|
|
27723
|
+
totalResults,
|
|
27724
|
+
onClear,
|
|
27725
|
+
"data-testid": testId,
|
|
27726
|
+
unsafelyReplaceClassName
|
|
27727
|
+
} = _a, rest = __objRest(_a, [
|
|
27728
|
+
"children",
|
|
27729
|
+
"className",
|
|
27730
|
+
"resultsCount",
|
|
27731
|
+
"totalResults",
|
|
27732
|
+
"onClear",
|
|
27733
|
+
"data-testid",
|
|
27734
|
+
"unsafelyReplaceClassName"
|
|
27735
|
+
]);
|
|
27736
|
+
const { t: t2 } = React.useContext(I18nContext);
|
|
27737
|
+
const classes = clsx(unsafelyReplaceClassName || "sps-search-results-bar", className);
|
|
27738
|
+
const [
|
|
27739
|
+
count,
|
|
27740
|
+
ofText,
|
|
27741
|
+
total
|
|
27742
|
+
] = t2("design-system:searchResultsBar.count", { count: resultsCount, total: totalResults }).split(" ");
|
|
27743
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
27744
|
+
className: classes,
|
|
27745
|
+
"data-testid": `${testId}`
|
|
27746
|
+
}, rest), /* @__PURE__ */ React.createElement("span", {
|
|
27747
|
+
className: "sps-search-results-bar__label",
|
|
27748
|
+
"data-testid": `${testId}__label`
|
|
27749
|
+
}, t2("design-system:searchResultsBar.matchingResults")), count && !Number.isNaN(Number(count)) && /* @__PURE__ */ React.createElement("span", {
|
|
27750
|
+
className: "sps-search-results-bar__count",
|
|
27751
|
+
"data-testid": `${testId}__count`
|
|
27752
|
+
}, /* @__PURE__ */ React.createElement("i", {
|
|
27753
|
+
className: "sps-icon sps-icon-double-angle-right"
|
|
27754
|
+
}), /* @__PURE__ */ React.createElement("span", null, count)), total && !Number.isNaN(Number(total)) && /* @__PURE__ */ React.createElement("span", {
|
|
27755
|
+
className: "sps-search-results-bar__total",
|
|
27756
|
+
"data-testid": `${testId}__total`
|
|
27757
|
+
}, ofText, " ", total), /* @__PURE__ */ React.createElement("div", {
|
|
27758
|
+
className: "sps-search-results-bar__buttons",
|
|
27759
|
+
"data-testid": `${testId}__button`
|
|
27760
|
+
}, /* @__PURE__ */ React.createElement("button", {
|
|
27761
|
+
type: "button",
|
|
27762
|
+
onClick: onClear
|
|
27763
|
+
}, t2("design-system:searchResultsBar.clear"))));
|
|
27764
|
+
}
|
|
27765
|
+
Object.assign(SpsSearchResultsBar, {
|
|
27766
|
+
props: propsDoc$X,
|
|
27767
|
+
propTypes: propTypes$Z,
|
|
27768
|
+
displayName: "SpsSearchResultsBar"
|
|
27769
|
+
});
|
|
27701
27770
|
const propsDoc$W = {
|
|
27771
|
+
results: "number",
|
|
27772
|
+
selections: "{ [key: string]: string[] }",
|
|
27773
|
+
zeroStateText: "string",
|
|
27774
|
+
onClear: "() => void"
|
|
27775
|
+
};
|
|
27776
|
+
const propTypes$Y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27777
|
+
results: propTypes$1N.exports.number,
|
|
27778
|
+
selections: impl(),
|
|
27779
|
+
zeroStateText: propTypes$1N.exports.string,
|
|
27780
|
+
onClear: fun()
|
|
27781
|
+
});
|
|
27782
|
+
function SpsSearchResultsBarV2(props2) {
|
|
27783
|
+
const _a = props2, {
|
|
27784
|
+
className,
|
|
27785
|
+
results = 0,
|
|
27786
|
+
selections,
|
|
27787
|
+
zeroStateText,
|
|
27788
|
+
onClear,
|
|
27789
|
+
"data-testid": testId,
|
|
27790
|
+
unsafelyReplaceClassName
|
|
27791
|
+
} = _a, rest = __objRest(_a, [
|
|
27792
|
+
"className",
|
|
27793
|
+
"results",
|
|
27794
|
+
"selections",
|
|
27795
|
+
"zeroStateText",
|
|
27796
|
+
"onClear",
|
|
27797
|
+
"data-testid",
|
|
27798
|
+
"unsafelyReplaceClassName"
|
|
27799
|
+
]);
|
|
27800
|
+
const { t: t2 } = React.useContext(I18nContext);
|
|
27801
|
+
const classes = clsx(unsafelyReplaceClassName || "sps-search-results-bar-v2", className);
|
|
27802
|
+
const filteredSelections = selections ? Object.keys(selections).reduce((acc, value) => {
|
|
27803
|
+
if (selections[value].length > 0) {
|
|
27804
|
+
acc[value] = selections[value];
|
|
27805
|
+
}
|
|
27806
|
+
return acc;
|
|
27807
|
+
}, {}) : {};
|
|
27808
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
27809
|
+
className: classes,
|
|
27810
|
+
"data-testid": `${testId}`
|
|
27811
|
+
}, rest), /* @__PURE__ */ React.createElement("div", {
|
|
27812
|
+
className: "sps-search-results-bar-v2__results"
|
|
27813
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
27814
|
+
"data-testid": `${testId}__label`
|
|
27815
|
+
}, t2("design-system:searchResultsBar.results")), /* @__PURE__ */ React.createElement(SpsTag, {
|
|
27816
|
+
kind: TagKind.INFO
|
|
27817
|
+
}, /* @__PURE__ */ React.createElement("span", null, results))), /* @__PURE__ */ React.createElement("div", {
|
|
27818
|
+
className: "sps-search-results-bar-v2__selections"
|
|
27819
|
+
}, Object.keys(filteredSelections).length > 0 ? Object.keys(filteredSelections).map((selection, i2) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
|
|
27820
|
+
key: i2,
|
|
27821
|
+
className: "sps-search-results-bar-v2__selection"
|
|
27822
|
+
}, selection, ":"), filteredSelections[selection].map((label, j) => /* @__PURE__ */ React.createElement(SpsTag, {
|
|
27823
|
+
key: j,
|
|
27824
|
+
kind: TagKind.KEY
|
|
27825
|
+
}, /* @__PURE__ */ React.createElement("span", null, label))))) : /* @__PURE__ */ React.createElement("span", {
|
|
27826
|
+
className: "font-italic"
|
|
27827
|
+
}, zeroStateText || t2("design-system:searchResultsBar.noAdvancedSearchSelections"))), /* @__PURE__ */ React.createElement("div", {
|
|
27828
|
+
className: "sps-search-results-bar-v2__buttons",
|
|
27829
|
+
"data-testid": `${testId}__button`
|
|
27830
|
+
}, /* @__PURE__ */ React.createElement(SpsButton, {
|
|
27831
|
+
kind: ButtonKind.LINK,
|
|
27832
|
+
onClick: onClear
|
|
27833
|
+
}, t2("design-system:searchResultsBar.clearResults"))));
|
|
27834
|
+
}
|
|
27835
|
+
Object.assign(SpsSearchResultsBarV2, {
|
|
27836
|
+
props: propsDoc$W,
|
|
27837
|
+
propTypes: propTypes$Y,
|
|
27838
|
+
displayName: "SpsSearchResultsBarV2"
|
|
27839
|
+
});
|
|
27840
|
+
const SpsSearchResultsBarExamples = {
|
|
27841
|
+
basic: {
|
|
27842
|
+
label: "Basic",
|
|
27843
|
+
description: ({ NavigateTo }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", null, "SpsSearchResultsBarV2 should be used with List Toolbar and Advanced Search."), /* @__PURE__ */ React.createElement("p", null, "For more examples go to the Advanced Search section on the", " ", /* @__PURE__ */ React.createElement(NavigateTo, {
|
|
27844
|
+
to: "list-toolbar"
|
|
27845
|
+
}, "List Toolbar"), " page.")),
|
|
27846
|
+
examples: {
|
|
27847
|
+
basic: {
|
|
27848
|
+
react: code`
|
|
27849
|
+
function Component() {
|
|
27850
|
+
|
|
27851
|
+
const [advSearch, setAdvSearch] = React.useState({
|
|
27852
|
+
isOpen: false
|
|
27853
|
+
});
|
|
27854
|
+
|
|
27855
|
+
const [showSearchBar, setShowSearchBar] = React.useState(true);
|
|
27856
|
+
|
|
27857
|
+
const [results, setResults] = React.useState(10);
|
|
27858
|
+
|
|
27859
|
+
const initialSelections = {
|
|
27860
|
+
sender: ["Aktie Sports","Modells Sporting Goods", "Perry Sport"],
|
|
27861
|
+
receiver: ["FGL Sports", "Foot Asylum", "Hervis", "Lovell Rugby"],
|
|
27862
|
+
};
|
|
27863
|
+
|
|
27864
|
+
const [selections, setSelections] = React.useState(initialSelections);
|
|
27865
|
+
|
|
27866
|
+
const initValue = {
|
|
27867
|
+
searchText: "",
|
|
27868
|
+
};
|
|
27869
|
+
|
|
27870
|
+
const { formValue, formMeta, updateForm } = useSpsForm(initValue);
|
|
27871
|
+
|
|
27872
|
+
function handleToggleAdvancedSearch(isOpen) {
|
|
27873
|
+
setAdvSearch({ isOpen });
|
|
27874
|
+
}
|
|
27875
|
+
|
|
27876
|
+
function handleAdvancedSearchSubmit() {
|
|
27877
|
+
console.log("submit");
|
|
27878
|
+
setResults(10);
|
|
27879
|
+
setSelections(initialSelections);
|
|
27880
|
+
}
|
|
27881
|
+
|
|
27882
|
+
function handleClear() {
|
|
27883
|
+
setResults(0);
|
|
27884
|
+
setSelections({});
|
|
27885
|
+
}
|
|
27886
|
+
|
|
27887
|
+
return (
|
|
27888
|
+
<>
|
|
27889
|
+
<SpsListToolbar advancedSearch={advSearch}
|
|
27890
|
+
onToggleAdvancedSearch={handleToggleAdvancedSearch}
|
|
27891
|
+
>
|
|
27892
|
+
<SpsListToolbarSearch>
|
|
27893
|
+
<SpsTextInput
|
|
27894
|
+
value={formValue.searchText}
|
|
27895
|
+
formMeta={formMeta.fields.searchText}
|
|
27896
|
+
placeholder="Search fields"
|
|
27897
|
+
/>
|
|
27898
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.SEARCH} />
|
|
27899
|
+
</SpsListToolbarSearch>
|
|
27900
|
+
<SpsSearchResultsBarV2
|
|
27901
|
+
results={results}
|
|
27902
|
+
onClear={handleClear}
|
|
27903
|
+
selections={selections}
|
|
27904
|
+
/>
|
|
27905
|
+
</SpsListToolbar>
|
|
27906
|
+
<SpsAdvancedSearch {...advSearch} onSubmit={handleAdvancedSearchSubmit}>
|
|
27907
|
+
<i>insert form here</i>
|
|
27908
|
+
</SpsAdvancedSearch>
|
|
27909
|
+
</>
|
|
27910
|
+
)
|
|
27911
|
+
}
|
|
27912
|
+
`
|
|
27913
|
+
}
|
|
27914
|
+
}
|
|
27915
|
+
},
|
|
27916
|
+
customText: {
|
|
27917
|
+
label: "Custom Text",
|
|
27918
|
+
description: () => /* @__PURE__ */ React.createElement("p", null, "You can pass in custom text to be displayed when there are no selections."),
|
|
27919
|
+
examples: {
|
|
27920
|
+
customText: {
|
|
27921
|
+
react: code`
|
|
27922
|
+
function Component() {
|
|
27923
|
+
const [advSearch, setAdvSearch] = React.useState({
|
|
27924
|
+
isOpen: false
|
|
27925
|
+
});
|
|
27926
|
+
|
|
27927
|
+
const [showSearchBar, setShowSearchBar] = React.useState(true);
|
|
27928
|
+
|
|
27929
|
+
const [results, setResults] = React.useState(0);
|
|
27930
|
+
|
|
27931
|
+
const initialSelections = {
|
|
27932
|
+
sender: ["Aktie Sports","Modells Sporting Goods", "Perry Sport"],
|
|
27933
|
+
receiver: ["FGL Sports", "Foot Asylum", "Hervis", "Lovell Rugby"],
|
|
27934
|
+
};
|
|
27935
|
+
|
|
27936
|
+
const [selections, setSelections] = React.useState({});
|
|
27937
|
+
|
|
27938
|
+
const initValue = {
|
|
27939
|
+
searchText: "",
|
|
27940
|
+
};
|
|
27941
|
+
|
|
27942
|
+
const { formValue, formMeta, updateForm } = useSpsForm(initValue);
|
|
27943
|
+
|
|
27944
|
+
function handleToggleAdvancedSearch(isOpen) {
|
|
27945
|
+
setAdvSearch({ isOpen });
|
|
27946
|
+
}
|
|
27947
|
+
|
|
27948
|
+
function handleAdvancedSearchSubmit() {
|
|
27949
|
+
console.log("submit");
|
|
27950
|
+
setResults(10);
|
|
27951
|
+
setSelections(initialSelections);
|
|
27952
|
+
}
|
|
27953
|
+
|
|
27954
|
+
function handleClear() {
|
|
27955
|
+
setResults(0);
|
|
27956
|
+
setSelections({});
|
|
27957
|
+
}
|
|
27958
|
+
|
|
27959
|
+
return (
|
|
27960
|
+
<>
|
|
27961
|
+
<SpsListToolbar advancedSearch={advSearch}
|
|
27962
|
+
onToggleAdvancedSearch={handleToggleAdvancedSearch}
|
|
27963
|
+
>
|
|
27964
|
+
<SpsListToolbarSearch>
|
|
27965
|
+
<SpsTextInput
|
|
27966
|
+
value={formValue.searchText}
|
|
27967
|
+
formMeta={formMeta.fields.searchText}
|
|
27968
|
+
placeholder="Search fields"
|
|
27969
|
+
/>
|
|
27970
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.SEARCH} />
|
|
27971
|
+
</SpsListToolbarSearch>
|
|
27972
|
+
<SpsSearchResultsBarV2
|
|
27973
|
+
results={results}
|
|
27974
|
+
onClear={handleClear}
|
|
27975
|
+
selections={selections}
|
|
27976
|
+
zeroStateText="There are no selections here"
|
|
27977
|
+
/>
|
|
27978
|
+
</SpsListToolbar>
|
|
27979
|
+
<SpsAdvancedSearch {...advSearch} onSubmit={handleAdvancedSearchSubmit}>
|
|
27980
|
+
<i>insert form here</i>
|
|
27981
|
+
</SpsAdvancedSearch>
|
|
27982
|
+
</>
|
|
27983
|
+
)
|
|
27984
|
+
}
|
|
27985
|
+
`
|
|
27986
|
+
}
|
|
27987
|
+
}
|
|
27988
|
+
}
|
|
27989
|
+
};
|
|
27990
|
+
const propsDoc$V = {
|
|
27702
27991
|
formMeta: "SpsFormSetMeta<any>",
|
|
27703
27992
|
stacked: "boolean"
|
|
27704
27993
|
};
|
|
27705
|
-
const propTypes$
|
|
27994
|
+
const propTypes$X = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27706
27995
|
formArray: impl(),
|
|
27707
27996
|
formGroup: impl(),
|
|
27708
27997
|
formMeta: impl(),
|
|
27709
|
-
stacked: propTypes$
|
|
27998
|
+
stacked: propTypes$1N.exports.bool
|
|
27710
27999
|
});
|
|
27711
28000
|
function SpsInputGroup(_s) {
|
|
27712
28001
|
var _t = _s, {
|
|
@@ -27751,14 +28040,14 @@ function SpsInputGroup(_s) {
|
|
|
27751
28040
|
}, children));
|
|
27752
28041
|
}
|
|
27753
28042
|
Object.assign(SpsInputGroup, {
|
|
27754
|
-
props: propsDoc$
|
|
27755
|
-
propTypes: propTypes$
|
|
28043
|
+
props: propsDoc$V,
|
|
28044
|
+
propTypes: propTypes$X,
|
|
27756
28045
|
displayName: "SpsInputGroup"
|
|
27757
28046
|
});
|
|
27758
|
-
const propsDoc$
|
|
28047
|
+
const propsDoc$U = {
|
|
27759
28048
|
onSubmit: "FormEventHandler"
|
|
27760
28049
|
};
|
|
27761
|
-
const propTypes$
|
|
28050
|
+
const propTypes$W = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27762
28051
|
onSubmit: fun()
|
|
27763
28052
|
});
|
|
27764
28053
|
function SpsListToolbarSearch(props2) {
|
|
@@ -27781,12 +28070,12 @@ function SpsListToolbarSearch(props2) {
|
|
|
27781
28070
|
}, children));
|
|
27782
28071
|
}
|
|
27783
28072
|
Object.assign(SpsListToolbarSearch, {
|
|
27784
|
-
props: propsDoc$
|
|
27785
|
-
propTypes: propTypes$
|
|
28073
|
+
props: propsDoc$U,
|
|
28074
|
+
propTypes: propTypes$W,
|
|
27786
28075
|
displayName: "SpsListToolbarSearch"
|
|
27787
28076
|
});
|
|
27788
|
-
const propsDoc$
|
|
27789
|
-
const propTypes$
|
|
28077
|
+
const propsDoc$T = {};
|
|
28078
|
+
const propTypes$V = __spreadValues({}, spsGlobalPropTypes);
|
|
27790
28079
|
function SpsListToolbarSearchInfo(props2) {
|
|
27791
28080
|
const {
|
|
27792
28081
|
children
|
|
@@ -27794,11 +28083,11 @@ function SpsListToolbarSearchInfo(props2) {
|
|
|
27794
28083
|
return /* @__PURE__ */ React.createElement("div", null, children);
|
|
27795
28084
|
}
|
|
27796
28085
|
Object.assign(SpsListToolbarSearchInfo, {
|
|
27797
|
-
props: propsDoc$
|
|
27798
|
-
propTypes: propTypes$
|
|
28086
|
+
props: propsDoc$T,
|
|
28087
|
+
propTypes: propTypes$V,
|
|
27799
28088
|
displayName: "SpsListToolbarSearchInfo"
|
|
27800
28089
|
});
|
|
27801
|
-
const propsDoc$
|
|
28090
|
+
const propsDoc$S = {
|
|
27802
28091
|
activeTab: "SpsTab",
|
|
27803
28092
|
advancedSearch: "{ isOpen: boolean, enteredFields: number }",
|
|
27804
28093
|
onToggleAdvancedSearch: "(boolean) => void",
|
|
@@ -27809,23 +28098,25 @@ const propsDoc$T = {
|
|
|
27809
28098
|
selectable: "boolean",
|
|
27810
28099
|
isSelected: "boolean",
|
|
27811
28100
|
isIndeterminate: "boolean",
|
|
27812
|
-
onSelectionChange: "(boolean) => void"
|
|
28101
|
+
onSelectionChange: "(boolean) => void",
|
|
28102
|
+
pinResultsBar: "boolean"
|
|
27813
28103
|
};
|
|
27814
|
-
const propTypes$
|
|
28104
|
+
const propTypes$U = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27815
28105
|
activeTab: impl(),
|
|
27816
|
-
advancedSearch: propTypes$
|
|
27817
|
-
isOpen: propTypes$
|
|
27818
|
-
enteredFields: propTypes$
|
|
28106
|
+
advancedSearch: propTypes$1N.exports.shape({
|
|
28107
|
+
isOpen: propTypes$1N.exports.bool,
|
|
28108
|
+
enteredFields: propTypes$1N.exports.number
|
|
27819
28109
|
}),
|
|
27820
28110
|
onToggleAdvancedSearch: fun(),
|
|
27821
28111
|
onTabChange: fun(),
|
|
27822
|
-
title: propTypes$
|
|
27823
|
-
tabs: propTypes$
|
|
28112
|
+
title: propTypes$1N.exports.string,
|
|
28113
|
+
tabs: propTypes$1N.exports.arrayOf(impl()),
|
|
27824
28114
|
onToolbarPinned: fun(),
|
|
27825
|
-
selectable: propTypes$
|
|
27826
|
-
isSelected: propTypes$
|
|
27827
|
-
isIndeterminate: propTypes$
|
|
27828
|
-
onSelectionChange: fun()
|
|
28115
|
+
selectable: propTypes$1N.exports.bool,
|
|
28116
|
+
isSelected: propTypes$1N.exports.bool,
|
|
28117
|
+
isIndeterminate: propTypes$1N.exports.bool,
|
|
28118
|
+
onSelectionChange: fun(),
|
|
28119
|
+
pinResultsBar: propTypes$1N.exports.bool
|
|
27829
28120
|
});
|
|
27830
28121
|
function SpsListToolbar(props2) {
|
|
27831
28122
|
const _a = props2, {
|
|
@@ -27843,6 +28134,7 @@ function SpsListToolbar(props2) {
|
|
|
27843
28134
|
isSelected,
|
|
27844
28135
|
isIndeterminate,
|
|
27845
28136
|
onSelectionChange,
|
|
28137
|
+
pinResultsBar,
|
|
27846
28138
|
"data-testid": testId
|
|
27847
28139
|
} = _a, rest = __objRest(_a, [
|
|
27848
28140
|
"activeTab",
|
|
@@ -27859,6 +28151,7 @@ function SpsListToolbar(props2) {
|
|
|
27859
28151
|
"isSelected",
|
|
27860
28152
|
"isIndeterminate",
|
|
27861
28153
|
"onSelectionChange",
|
|
28154
|
+
"pinResultsBar",
|
|
27862
28155
|
"data-testid"
|
|
27863
28156
|
]);
|
|
27864
28157
|
const { t: t2 } = React.useContext(I18nContext);
|
|
@@ -27931,10 +28224,12 @@ function SpsListToolbar(props2) {
|
|
|
27931
28224
|
const [
|
|
27932
28225
|
listToolbarSearch,
|
|
27933
28226
|
listToolbarSearchInfo,
|
|
28227
|
+
searchResultsBar,
|
|
27934
28228
|
otherChildren
|
|
27935
28229
|
] = selectChildren(children, [
|
|
27936
28230
|
{ type: SpsListToolbarSearch },
|
|
27937
|
-
{ type: SpsListToolbarSearchInfo }
|
|
28231
|
+
{ type: SpsListToolbarSearchInfo },
|
|
28232
|
+
{ type: SpsSearchResultsBarV2 }
|
|
27938
28233
|
]);
|
|
27939
28234
|
return /* @__PURE__ */ React.createElement("div", {
|
|
27940
28235
|
className: "sps-list-toolbar__wrapper",
|
|
@@ -27943,7 +28238,9 @@ function SpsListToolbar(props2) {
|
|
|
27943
28238
|
className: classes,
|
|
27944
28239
|
"data-testid": testId,
|
|
27945
28240
|
ref: rootElement
|
|
27946
|
-
}, rest),
|
|
28241
|
+
}, rest), /* @__PURE__ */ React.createElement("div", {
|
|
28242
|
+
className: "sps-list-toolbar__content"
|
|
28243
|
+
}, !!selectable && /* @__PURE__ */ React.createElement("div", {
|
|
27947
28244
|
className: "sps-list-toolbar__selection-controls"
|
|
27948
28245
|
}, /* @__PURE__ */ React.createElement(SpsCheckbox, {
|
|
27949
28246
|
checked: isSelected,
|
|
@@ -27977,11 +28274,11 @@ function SpsListToolbar(props2) {
|
|
|
27977
28274
|
value: { fixed: true }
|
|
27978
28275
|
}, otherChildren)) : /* @__PURE__ */ React.createElement("div", {
|
|
27979
28276
|
className: "sps-list-toolbar__header-content"
|
|
27980
|
-
}, otherChildren)));
|
|
28277
|
+
}, otherChildren)), /* @__PURE__ */ React.createElement("div", null, (!isPinned || isPinned && pinResultsBar) && searchResultsBar)));
|
|
27981
28278
|
}
|
|
27982
28279
|
Object.assign(SpsListToolbar, {
|
|
27983
|
-
props: propsDoc$
|
|
27984
|
-
propTypes: propTypes$
|
|
28280
|
+
props: propsDoc$S,
|
|
28281
|
+
propTypes: propTypes$U,
|
|
27985
28282
|
displayName: "SpsListToolbar"
|
|
27986
28283
|
});
|
|
27987
28284
|
function ContentOrderExample() {
|
|
@@ -28323,6 +28620,185 @@ const SpsListToolbarExamples = {
|
|
|
28323
28620
|
)
|
|
28324
28621
|
}
|
|
28325
28622
|
`
|
|
28623
|
+
},
|
|
28624
|
+
withResultsBar: {
|
|
28625
|
+
description: ({ NavigateTo }) => /* @__PURE__ */ React.createElement("p", null, "You can include ", /* @__PURE__ */ React.createElement(NavigateTo, {
|
|
28626
|
+
to: "search-results-bar"
|
|
28627
|
+
}, "Search Results Bar"), " (SpsSearchResultsBarV2)."),
|
|
28628
|
+
react: code`
|
|
28629
|
+
function Component() {
|
|
28630
|
+
const senderOptions = ["Aktie Sports", "FGL Sports","Modells Sporting Goods", "Perry Sport", "Sportman Warhouse Australia"];
|
|
28631
|
+
const receiverOptions = ["FGL Sports", "Foot Asylum", "Hervis", "Lovell Rugby", "Aktie Sports"];
|
|
28632
|
+
const doctypeOptions = [".doc", ".txt", ".pdf"];
|
|
28633
|
+
const statusOptions = ["pending", "done"];
|
|
28634
|
+
|
|
28635
|
+
const [advSearch, setAdvSearch] = React.useState({
|
|
28636
|
+
isOpen: false
|
|
28637
|
+
});
|
|
28638
|
+
|
|
28639
|
+
const [showSearchBar, setShowSearchBar] = React.useState(true);
|
|
28640
|
+
|
|
28641
|
+
const [selections, setSelections] = React.useState();
|
|
28642
|
+
const [results, setResults] = React.useState(0);
|
|
28643
|
+
|
|
28644
|
+
const initValue = {
|
|
28645
|
+
searchText: "",
|
|
28646
|
+
sender: [],
|
|
28647
|
+
receiver: [],
|
|
28648
|
+
doctype: [],
|
|
28649
|
+
status: [],
|
|
28650
|
+
};
|
|
28651
|
+
|
|
28652
|
+
const { formValue, formMeta, updateForm } = useSpsForm(initValue);
|
|
28653
|
+
|
|
28654
|
+
function handleToggleAdvancedSearch(isOpen) {
|
|
28655
|
+
setAdvSearch({ isOpen });
|
|
28656
|
+
}
|
|
28657
|
+
|
|
28658
|
+
function handleAdvancedSearchSubmit() {
|
|
28659
|
+
console.log("submit");
|
|
28660
|
+
setShowSearchBar(true);
|
|
28661
|
+
setSelections(omit(formValue, "searchText"));
|
|
28662
|
+
setResults(Math.floor(Math.random() * 100));
|
|
28663
|
+
}
|
|
28664
|
+
|
|
28665
|
+
function handleAdvancedSearchClear() {
|
|
28666
|
+
updateForm(initValue);
|
|
28667
|
+
}
|
|
28668
|
+
|
|
28669
|
+
return (
|
|
28670
|
+
<>
|
|
28671
|
+
<SpsListToolbar advancedSearch={advSearch}
|
|
28672
|
+
onToggleAdvancedSearch={handleToggleAdvancedSearch}
|
|
28673
|
+
>
|
|
28674
|
+
<SpsListToolbarSearch>
|
|
28675
|
+
<SpsTextInput
|
|
28676
|
+
value={formValue.searchText}
|
|
28677
|
+
formMeta={formMeta.fields.searchText}
|
|
28678
|
+
placeholder="Search fields"
|
|
28679
|
+
/>
|
|
28680
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.SEARCH} />
|
|
28681
|
+
</SpsListToolbarSearch>
|
|
28682
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.DOWNLOAD_CLOUD} />
|
|
28683
|
+
<SpsButton>Button</SpsButton>
|
|
28684
|
+
<SpsButton kind={ButtonKind.KEY}>Button</SpsButton>
|
|
28685
|
+
{showSearchBar && (
|
|
28686
|
+
<SpsSearchResultsBarV2
|
|
28687
|
+
results={results}
|
|
28688
|
+
selections={selections}
|
|
28689
|
+
onClear={() => setShowSearchBar(false)}
|
|
28690
|
+
/>
|
|
28691
|
+
)}
|
|
28692
|
+
</SpsListToolbar>
|
|
28693
|
+
<SpsAdvancedSearch {...advSearch}
|
|
28694
|
+
formMeta={formMeta}
|
|
28695
|
+
onSubmit={handleAdvancedSearchSubmit}
|
|
28696
|
+
onClear={handleAdvancedSearchClear}
|
|
28697
|
+
>
|
|
28698
|
+
<div className="sfg-row">
|
|
28699
|
+
<div className="sfg-col-4">
|
|
28700
|
+
<SpsLabel for={formMeta.fields.sender}>Sender</SpsLabel>
|
|
28701
|
+
<SpsMultiSelect
|
|
28702
|
+
formMeta={formMeta.fields.sender}
|
|
28703
|
+
value={formValue.sender}
|
|
28704
|
+
options={senderOptions}
|
|
28705
|
+
/>
|
|
28706
|
+
</div>
|
|
28707
|
+
<div className="sfg-col-4">
|
|
28708
|
+
<SpsLabel for={formMeta.fields.receiver}>Receiver</SpsLabel>
|
|
28709
|
+
<SpsMultiSelect
|
|
28710
|
+
formMeta={formMeta.fields.receiver}
|
|
28711
|
+
value={formValue.receiver}
|
|
28712
|
+
options={receiverOptions}
|
|
28713
|
+
/>
|
|
28714
|
+
</div>
|
|
28715
|
+
<div className="sfg-col-4">
|
|
28716
|
+
<SpsLabel for={formMeta.fields.doctype}>Document Type</SpsLabel>
|
|
28717
|
+
<SpsMultiSelect
|
|
28718
|
+
formMeta={formMeta.fields.doctype}
|
|
28719
|
+
value={formValue.doctype}
|
|
28720
|
+
options={doctypeOptions}
|
|
28721
|
+
/>
|
|
28722
|
+
</div>
|
|
28723
|
+
<div className="sfg-col-4">
|
|
28724
|
+
<SpsLabel for={formMeta.fields.status}>Status</SpsLabel>
|
|
28725
|
+
<SpsMultiSelect
|
|
28726
|
+
formMeta={formMeta.fields.status}
|
|
28727
|
+
value={formValue.status}
|
|
28728
|
+
options={statusOptions}
|
|
28729
|
+
/>
|
|
28730
|
+
</div>
|
|
28731
|
+
</div>
|
|
28732
|
+
</SpsAdvancedSearch>
|
|
28733
|
+
</>
|
|
28734
|
+
)
|
|
28735
|
+
}
|
|
28736
|
+
`
|
|
28737
|
+
},
|
|
28738
|
+
pinnedResultsBar: {
|
|
28739
|
+
description: () => /* @__PURE__ */ React.createElement("p", null, "You can pin the Results Bar by passing pinResultsBar prop to SpsListToolbar."),
|
|
28740
|
+
react: code`
|
|
28741
|
+
function Component() {
|
|
28742
|
+
const [advSearch, setAdvSearch] = React.useState({
|
|
28743
|
+
isOpen: false
|
|
28744
|
+
});
|
|
28745
|
+
|
|
28746
|
+
const [showSearchBar, setShowSearchBar] = React.useState(true);
|
|
28747
|
+
|
|
28748
|
+
const [results, setResults] = React.useState(0);
|
|
28749
|
+
|
|
28750
|
+
const initValue = {
|
|
28751
|
+
searchText: "",
|
|
28752
|
+
};
|
|
28753
|
+
|
|
28754
|
+
const { formValue, formMeta, updateForm } = useSpsForm(initValue);
|
|
28755
|
+
|
|
28756
|
+
function handleToggleAdvancedSearch(isOpen) {
|
|
28757
|
+
setAdvSearch({ isOpen });
|
|
28758
|
+
}
|
|
28759
|
+
|
|
28760
|
+
function handleAdvancedSearchSubmit() {
|
|
28761
|
+
setShowSearchBar(true);
|
|
28762
|
+
setResults(Math.floor(Math.random() * 100));
|
|
28763
|
+
}
|
|
28764
|
+
|
|
28765
|
+
function handleAdvancedSearchClear() {
|
|
28766
|
+
updateForm(initValue);
|
|
28767
|
+
}
|
|
28768
|
+
|
|
28769
|
+
return (
|
|
28770
|
+
<>
|
|
28771
|
+
<SpsListToolbar advancedSearch={advSearch}
|
|
28772
|
+
onToggleAdvancedSearch={handleToggleAdvancedSearch}
|
|
28773
|
+
pinResultsBar
|
|
28774
|
+
>
|
|
28775
|
+
<SpsListToolbarSearch>
|
|
28776
|
+
<SpsTextInput
|
|
28777
|
+
value={formValue.searchText}
|
|
28778
|
+
formMeta={formMeta.fields.searchText}
|
|
28779
|
+
placeholder="Search fields"
|
|
28780
|
+
/>
|
|
28781
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.SEARCH} />
|
|
28782
|
+
</SpsListToolbarSearch>
|
|
28783
|
+
<SpsButton kind={ButtonKind.ICON} icon={SpsIcon.DOWNLOAD_CLOUD} />
|
|
28784
|
+
<SpsButton>Button</SpsButton>
|
|
28785
|
+
<SpsButton kind={ButtonKind.KEY}>Button</SpsButton>
|
|
28786
|
+
{showSearchBar && (
|
|
28787
|
+
<SpsSearchResultsBarV2
|
|
28788
|
+
results={results}
|
|
28789
|
+
onClear={() => setShowSearchBar(false)}
|
|
28790
|
+
/>
|
|
28791
|
+
)}
|
|
28792
|
+
</SpsListToolbar>
|
|
28793
|
+
<SpsAdvancedSearch {...advSearch}
|
|
28794
|
+
onSubmit={handleAdvancedSearchSubmit}
|
|
28795
|
+
>
|
|
28796
|
+
<i>insert form here</i>
|
|
28797
|
+
</SpsAdvancedSearch>
|
|
28798
|
+
</>
|
|
28799
|
+
)
|
|
28800
|
+
}
|
|
28801
|
+
`
|
|
28326
28802
|
}
|
|
28327
28803
|
}
|
|
28328
28804
|
},
|
|
@@ -28486,13 +28962,13 @@ const SpsListToolbarExamples = {
|
|
|
28486
28962
|
}
|
|
28487
28963
|
}
|
|
28488
28964
|
};
|
|
28489
|
-
const propsDoc$
|
|
28965
|
+
const propsDoc$R = {
|
|
28490
28966
|
kind: "FeedbackBlockKind",
|
|
28491
28967
|
message: { type: "string", required: true }
|
|
28492
28968
|
};
|
|
28493
|
-
const propTypes$
|
|
28969
|
+
const propTypes$T = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28494
28970
|
kind: enumValue(FeedbackBlockKind),
|
|
28495
|
-
message: propTypes$
|
|
28971
|
+
message: propTypes$1N.exports.node.isRequired
|
|
28496
28972
|
});
|
|
28497
28973
|
function SpsMicroBlock(props2) {
|
|
28498
28974
|
const _a = props2, {
|
|
@@ -28519,8 +28995,8 @@ function SpsMicroBlock(props2) {
|
|
|
28519
28995
|
}), /* @__PURE__ */ React.createElement("span", null, message));
|
|
28520
28996
|
}
|
|
28521
28997
|
Object.assign(SpsMicroBlock, {
|
|
28522
|
-
props: propsDoc$
|
|
28523
|
-
propTypes: propTypes$
|
|
28998
|
+
props: propsDoc$R,
|
|
28999
|
+
propTypes: propTypes$T,
|
|
28524
29000
|
displayName: "SpsMicroBlock"
|
|
28525
29001
|
});
|
|
28526
29002
|
const SpsMicroBlockExamples = {
|
|
@@ -28575,17 +29051,17 @@ const SpsMicroBlockExamples = {
|
|
|
28575
29051
|
}
|
|
28576
29052
|
}
|
|
28577
29053
|
};
|
|
28578
|
-
const propsDoc$
|
|
29054
|
+
const propsDoc$Q = {
|
|
28579
29055
|
kind: "ModalKind",
|
|
28580
29056
|
size: "ModalSize",
|
|
28581
29057
|
title: "string",
|
|
28582
29058
|
onClose: "() => void",
|
|
28583
29059
|
focusElementOnOpen: "React.MutableRefObject<HTMLElement>"
|
|
28584
29060
|
};
|
|
28585
|
-
const propTypes$
|
|
29061
|
+
const propTypes$S = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28586
29062
|
kind: enumValue(ModalKind),
|
|
28587
29063
|
size: enumValue(ModalSize),
|
|
28588
|
-
title: propTypes$
|
|
29064
|
+
title: propTypes$1N.exports.string,
|
|
28589
29065
|
onClose: fun(),
|
|
28590
29066
|
focusElementOnOpen: ref()
|
|
28591
29067
|
});
|
|
@@ -28711,8 +29187,8 @@ function SpsModalV2(_u) {
|
|
|
28711
29187
|
}, t2("design-system:modal.defaultButtonLabel"))))) : /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
28712
29188
|
}
|
|
28713
29189
|
Object.assign(SpsModalV2, {
|
|
28714
|
-
props: propsDoc$
|
|
28715
|
-
propTypes: propTypes$
|
|
29190
|
+
props: propsDoc$Q,
|
|
29191
|
+
propTypes: propTypes$S,
|
|
28716
29192
|
displayName: "SpsModalV2"
|
|
28717
29193
|
});
|
|
28718
29194
|
const SpsModalExamples = {
|
|
@@ -29159,7 +29635,7 @@ const SpsModalExamples = {
|
|
|
29159
29635
|
}
|
|
29160
29636
|
}
|
|
29161
29637
|
};
|
|
29162
|
-
const propsDoc$
|
|
29638
|
+
const propsDoc$P = {
|
|
29163
29639
|
captionKey: "string",
|
|
29164
29640
|
debounce: "number",
|
|
29165
29641
|
disabled: "boolean",
|
|
@@ -29177,29 +29653,29 @@ const propsDoc$Q = {
|
|
|
29177
29653
|
zeroState: "string",
|
|
29178
29654
|
loading: "boolean"
|
|
29179
29655
|
};
|
|
29180
|
-
const propTypes$
|
|
29656
|
+
const propTypes$R = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
29181
29657
|
action: fun(),
|
|
29182
|
-
captionKey: propTypes$
|
|
29183
|
-
debounce: propTypes$
|
|
29184
|
-
disabled: propTypes$
|
|
29185
|
-
disableSelected: propTypes$
|
|
29186
|
-
comparisonKey: propTypes$
|
|
29658
|
+
captionKey: propTypes$1N.exports.string,
|
|
29659
|
+
debounce: propTypes$1N.exports.number,
|
|
29660
|
+
disabled: propTypes$1N.exports.bool,
|
|
29661
|
+
disableSelected: propTypes$1N.exports.bool,
|
|
29662
|
+
comparisonKey: propTypes$1N.exports.string,
|
|
29187
29663
|
formControl: impl(),
|
|
29188
29664
|
formMeta: impl(),
|
|
29189
|
-
hideSelected: propTypes$
|
|
29665
|
+
hideSelected: propTypes$1N.exports.bool,
|
|
29190
29666
|
icon: enumValue(SpsIcon),
|
|
29191
29667
|
onChange: fun(),
|
|
29192
|
-
options: propTypes$
|
|
29193
|
-
propTypes$
|
|
29194
|
-
propTypes$
|
|
29668
|
+
options: propTypes$1N.exports.oneOfType([
|
|
29669
|
+
propTypes$1N.exports.array,
|
|
29670
|
+
propTypes$1N.exports.instanceOf(Promise),
|
|
29195
29671
|
fun()
|
|
29196
29672
|
]).isRequired,
|
|
29197
|
-
placeholder: propTypes$
|
|
29198
|
-
tallOptionList: propTypes$
|
|
29199
|
-
textKey: propTypes$
|
|
29200
|
-
value: propTypes$
|
|
29201
|
-
zeroState: propTypes$
|
|
29202
|
-
loading: propTypes$
|
|
29673
|
+
placeholder: propTypes$1N.exports.string,
|
|
29674
|
+
tallOptionList: propTypes$1N.exports.bool,
|
|
29675
|
+
textKey: propTypes$1N.exports.string,
|
|
29676
|
+
value: propTypes$1N.exports.any,
|
|
29677
|
+
zeroState: propTypes$1N.exports.string,
|
|
29678
|
+
loading: propTypes$1N.exports.bool
|
|
29203
29679
|
});
|
|
29204
29680
|
function SpsMultiSelect(_w) {
|
|
29205
29681
|
var _x = _w, {
|
|
@@ -29449,8 +29925,8 @@ function SpsMultiSelect(_w) {
|
|
|
29449
29925
|
}));
|
|
29450
29926
|
}
|
|
29451
29927
|
Object.assign(SpsMultiSelect, {
|
|
29452
|
-
props: propsDoc$
|
|
29453
|
-
propTypes: propTypes$
|
|
29928
|
+
props: propsDoc$P,
|
|
29929
|
+
propTypes: propTypes$R,
|
|
29454
29930
|
displayName: "SpsMultiSelect"
|
|
29455
29931
|
});
|
|
29456
29932
|
const SpsMultiSelectExamples = {
|
|
@@ -29614,8 +30090,8 @@ const SpsMultiSelectExamples = {
|
|
|
29614
30090
|
}
|
|
29615
30091
|
}
|
|
29616
30092
|
};
|
|
29617
|
-
const propsDoc$
|
|
29618
|
-
const propTypes$
|
|
30093
|
+
const propsDoc$O = {};
|
|
30094
|
+
const propTypes$Q = __spreadValues({}, spsGlobalPropTypes);
|
|
29619
30095
|
function SpsPageTitle(props2) {
|
|
29620
30096
|
const _a = props2, {
|
|
29621
30097
|
children,
|
|
@@ -29647,12 +30123,12 @@ function SpsPageTitle(props2) {
|
|
|
29647
30123
|
}, otherChildren));
|
|
29648
30124
|
}
|
|
29649
30125
|
Object.assign(SpsPageTitle, {
|
|
29650
|
-
props: propsDoc$
|
|
29651
|
-
propTypes: propTypes$
|
|
30126
|
+
props: propsDoc$O,
|
|
30127
|
+
propTypes: propTypes$Q,
|
|
29652
30128
|
displayName: "SpsPageTitle"
|
|
29653
30129
|
});
|
|
29654
|
-
const propsDoc$
|
|
29655
|
-
const propTypes$
|
|
30130
|
+
const propsDoc$N = {};
|
|
30131
|
+
const propTypes$P = __spreadValues({}, spsGlobalPropTypes);
|
|
29656
30132
|
function SpsPageSubtitle(props2) {
|
|
29657
30133
|
const _a = props2, {
|
|
29658
30134
|
children,
|
|
@@ -29672,8 +30148,8 @@ function SpsPageSubtitle(props2) {
|
|
|
29672
30148
|
}, rest), children);
|
|
29673
30149
|
}
|
|
29674
30150
|
Object.assign(SpsPageSubtitle, {
|
|
29675
|
-
props: propsDoc$
|
|
29676
|
-
propTypes: propTypes$
|
|
30151
|
+
props: propsDoc$N,
|
|
30152
|
+
propTypes: propTypes$P,
|
|
29677
30153
|
displayName: "SpsPageSubtitle"
|
|
29678
30154
|
});
|
|
29679
30155
|
const SpsPageTitleExamples = {
|
|
@@ -29736,7 +30212,7 @@ const SpsPageTitleExamples = {
|
|
|
29736
30212
|
}
|
|
29737
30213
|
}
|
|
29738
30214
|
};
|
|
29739
|
-
const propsDoc$
|
|
30215
|
+
const propsDoc$M = {
|
|
29740
30216
|
action: "SpsActionMethod",
|
|
29741
30217
|
captionKey: "string",
|
|
29742
30218
|
comparisonKey: "string",
|
|
@@ -29757,31 +30233,31 @@ const propsDoc$N = {
|
|
|
29757
30233
|
loading: "boolean",
|
|
29758
30234
|
filterByTextAndCaptionKey: "boolean"
|
|
29759
30235
|
};
|
|
29760
|
-
const propTypes$
|
|
30236
|
+
const propTypes$O = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
29761
30237
|
action: fun(),
|
|
29762
|
-
captionKey: propTypes$
|
|
29763
|
-
comparisonKey: propTypes$
|
|
29764
|
-
disabled: propTypes$
|
|
30238
|
+
captionKey: propTypes$1N.exports.string,
|
|
30239
|
+
comparisonKey: propTypes$1N.exports.string,
|
|
30240
|
+
disabled: propTypes$1N.exports.bool,
|
|
29765
30241
|
formControl: impl(),
|
|
29766
30242
|
formMeta: impl(),
|
|
29767
|
-
notClearable: propTypes$
|
|
29768
|
-
options: propTypes$
|
|
29769
|
-
propTypes$
|
|
29770
|
-
propTypes$
|
|
30243
|
+
notClearable: propTypes$1N.exports.bool,
|
|
30244
|
+
options: propTypes$1N.exports.oneOfType([
|
|
30245
|
+
propTypes$1N.exports.array,
|
|
30246
|
+
propTypes$1N.exports.instanceOf(Promise),
|
|
29771
30247
|
fun()
|
|
29772
30248
|
]).isRequired,
|
|
29773
30249
|
onChange: fun(),
|
|
29774
|
-
placeholder: propTypes$
|
|
29775
|
-
searchDebounce: propTypes$
|
|
29776
|
-
searchPlaceholder: propTypes$
|
|
29777
|
-
tallOptionList: propTypes$
|
|
29778
|
-
textKey: propTypes$
|
|
29779
|
-
valueKey: propTypes$
|
|
29780
|
-
value: propTypes$
|
|
29781
|
-
zeroState: propTypes$
|
|
29782
|
-
autoFixWidth: propTypes$
|
|
29783
|
-
loading: propTypes$
|
|
29784
|
-
filterByTextAndCaptionKey: propTypes$
|
|
30250
|
+
placeholder: propTypes$1N.exports.string,
|
|
30251
|
+
searchDebounce: propTypes$1N.exports.number,
|
|
30252
|
+
searchPlaceholder: propTypes$1N.exports.string,
|
|
30253
|
+
tallOptionList: propTypes$1N.exports.bool,
|
|
30254
|
+
textKey: propTypes$1N.exports.string,
|
|
30255
|
+
valueKey: propTypes$1N.exports.string,
|
|
30256
|
+
value: propTypes$1N.exports.any,
|
|
30257
|
+
zeroState: propTypes$1N.exports.string,
|
|
30258
|
+
autoFixWidth: propTypes$1N.exports.bool,
|
|
30259
|
+
loading: propTypes$1N.exports.bool,
|
|
30260
|
+
filterByTextAndCaptionKey: propTypes$1N.exports.bool
|
|
29785
30261
|
});
|
|
29786
30262
|
const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
29787
30263
|
const _a = props2, {
|
|
@@ -30009,21 +30485,21 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30009
30485
|
}));
|
|
30010
30486
|
});
|
|
30011
30487
|
Object.assign(SpsSelect, {
|
|
30012
|
-
props: propsDoc$
|
|
30013
|
-
propTypes: propTypes$
|
|
30488
|
+
props: propsDoc$M,
|
|
30489
|
+
propTypes: propTypes$O,
|
|
30014
30490
|
displayName: "SpsSelect"
|
|
30015
30491
|
});
|
|
30016
|
-
const propsDoc$
|
|
30492
|
+
const propsDoc$L = {
|
|
30017
30493
|
page: "number",
|
|
30018
30494
|
numPages: "number",
|
|
30019
30495
|
onPageChange: "(number) => void",
|
|
30020
30496
|
disabled: "boolean"
|
|
30021
30497
|
};
|
|
30022
|
-
const propTypes$
|
|
30023
|
-
numPages: propTypes$
|
|
30498
|
+
const propTypes$N = __spreadValues({
|
|
30499
|
+
numPages: propTypes$1N.exports.number,
|
|
30024
30500
|
onPageChange: fun(),
|
|
30025
|
-
page: propTypes$
|
|
30026
|
-
disabled: propTypes$
|
|
30501
|
+
page: propTypes$1N.exports.number,
|
|
30502
|
+
disabled: propTypes$1N.exports.bool
|
|
30027
30503
|
}, spsGlobalPropTypes);
|
|
30028
30504
|
function SpsPageSelector(props2) {
|
|
30029
30505
|
const _a = props2, {
|
|
@@ -30116,11 +30592,11 @@ function SpsPageSelector(props2) {
|
|
|
30116
30592
|
})))));
|
|
30117
30593
|
}
|
|
30118
30594
|
Object.assign(SpsPageSelector, {
|
|
30119
|
-
props: propsDoc$
|
|
30120
|
-
propTypes: propTypes$
|
|
30595
|
+
props: propsDoc$L,
|
|
30596
|
+
propTypes: propTypes$N,
|
|
30121
30597
|
displayName: "SpsPageSelector"
|
|
30122
30598
|
});
|
|
30123
|
-
const propsDoc$
|
|
30599
|
+
const propsDoc$K = {
|
|
30124
30600
|
page: "number",
|
|
30125
30601
|
pageSize: "number",
|
|
30126
30602
|
pageSizeOptions: "Array<number>",
|
|
@@ -30128,13 +30604,13 @@ const propsDoc$L = {
|
|
|
30128
30604
|
onPageChange: "(page: number, pageSize: number, indices: [number, number]) => void",
|
|
30129
30605
|
disabled: "boolean"
|
|
30130
30606
|
};
|
|
30131
|
-
const propTypes$
|
|
30607
|
+
const propTypes$M = __spreadValues({
|
|
30132
30608
|
onPageChange: fun().isRequired,
|
|
30133
|
-
page: propTypes$
|
|
30134
|
-
pageSize: propTypes$
|
|
30135
|
-
pageSizeOptions: propTypes$
|
|
30136
|
-
totalResults: propTypes$
|
|
30137
|
-
disabled: propTypes$
|
|
30609
|
+
page: propTypes$1N.exports.number,
|
|
30610
|
+
pageSize: propTypes$1N.exports.number,
|
|
30611
|
+
pageSizeOptions: propTypes$1N.exports.arrayOf(propTypes$1N.exports.number),
|
|
30612
|
+
totalResults: propTypes$1N.exports.number,
|
|
30613
|
+
disabled: propTypes$1N.exports.bool
|
|
30138
30614
|
}, spsGlobalPropTypes);
|
|
30139
30615
|
function SpsPagination(props2) {
|
|
30140
30616
|
const _a = props2, {
|
|
@@ -30244,8 +30720,8 @@ function SpsPagination(props2) {
|
|
|
30244
30720
|
}));
|
|
30245
30721
|
}
|
|
30246
30722
|
Object.assign(SpsPagination, {
|
|
30247
|
-
props: propsDoc$
|
|
30248
|
-
propTypes: propTypes$
|
|
30723
|
+
props: propsDoc$K,
|
|
30724
|
+
propTypes: propTypes$M,
|
|
30249
30725
|
displayName: "SpsPagination"
|
|
30250
30726
|
});
|
|
30251
30727
|
const SpsPaginationExamples = {
|
|
@@ -30341,7 +30817,7 @@ const SpsPaginationExamples = {
|
|
|
30341
30817
|
}
|
|
30342
30818
|
}
|
|
30343
30819
|
};
|
|
30344
|
-
const propsDoc$
|
|
30820
|
+
const propsDoc$J = {
|
|
30345
30821
|
active: "boolean",
|
|
30346
30822
|
as: "React.ElementType"
|
|
30347
30823
|
};
|
|
@@ -30365,10 +30841,10 @@ function SpsProductBarTab(props2) {
|
|
|
30365
30841
|
}, rest), children);
|
|
30366
30842
|
}
|
|
30367
30843
|
Object.assign(SpsProductBarTab, {
|
|
30368
|
-
props: propsDoc$
|
|
30844
|
+
props: propsDoc$J,
|
|
30369
30845
|
displayName: "SpsProductBarTab"
|
|
30370
30846
|
});
|
|
30371
|
-
const propsDoc$
|
|
30847
|
+
const propsDoc$I = {
|
|
30372
30848
|
activeTab: "string",
|
|
30373
30849
|
fullWidth: "boolean",
|
|
30374
30850
|
onTabChange: "(newTab: string) => void",
|
|
@@ -30378,15 +30854,15 @@ const propsDoc$J = {
|
|
|
30378
30854
|
productNameHref: "string",
|
|
30379
30855
|
tabs: "Array<string>"
|
|
30380
30856
|
};
|
|
30381
|
-
const propTypes$
|
|
30382
|
-
activeTab: propTypes$
|
|
30383
|
-
fullWidth: propTypes$
|
|
30857
|
+
const propTypes$L = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30858
|
+
activeTab: propTypes$1N.exports.string,
|
|
30859
|
+
fullWidth: propTypes$1N.exports.bool,
|
|
30384
30860
|
onTabChange: fun(),
|
|
30385
30861
|
onProductNameClick: fun(),
|
|
30386
|
-
productLogoSrc: propTypes$
|
|
30387
|
-
productName: propTypes$
|
|
30388
|
-
productNameHref: propTypes$
|
|
30389
|
-
tabs: propTypes$
|
|
30862
|
+
productLogoSrc: propTypes$1N.exports.string,
|
|
30863
|
+
productName: propTypes$1N.exports.string.isRequired,
|
|
30864
|
+
productNameHref: propTypes$1N.exports.string,
|
|
30865
|
+
tabs: propTypes$1N.exports.arrayOf(propTypes$1N.exports.string)
|
|
30390
30866
|
});
|
|
30391
30867
|
function SpsProductBar(props2) {
|
|
30392
30868
|
const _a = props2, {
|
|
@@ -30461,8 +30937,8 @@ function SpsProductBar(props2) {
|
|
|
30461
30937
|
}, otherChildren))));
|
|
30462
30938
|
}
|
|
30463
30939
|
Object.assign(SpsProductBar, {
|
|
30464
|
-
props: propsDoc$
|
|
30465
|
-
propTypes: propTypes$
|
|
30940
|
+
props: propsDoc$I,
|
|
30941
|
+
propTypes: propTypes$L,
|
|
30466
30942
|
displayName: "SpsProductBar"
|
|
30467
30943
|
});
|
|
30468
30944
|
const SpsProductBarExamples = {
|
|
@@ -30601,18 +31077,18 @@ const SpsProductBarExamples = {
|
|
|
30601
31077
|
}
|
|
30602
31078
|
}
|
|
30603
31079
|
};
|
|
30604
|
-
const propsDoc$
|
|
31080
|
+
const propsDoc$H = {
|
|
30605
31081
|
percentComplete: "number",
|
|
30606
31082
|
title: "string",
|
|
30607
31083
|
detail: "string",
|
|
30608
31084
|
disabled: "boolean",
|
|
30609
31085
|
onClose: "() => void"
|
|
30610
31086
|
};
|
|
30611
|
-
const propTypes$
|
|
30612
|
-
percentComplete: propTypes$
|
|
30613
|
-
title: propTypes$
|
|
30614
|
-
detail: propTypes$
|
|
30615
|
-
disabled: propTypes$
|
|
31087
|
+
const propTypes$K = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31088
|
+
percentComplete: propTypes$1N.exports.number,
|
|
31089
|
+
title: propTypes$1N.exports.string,
|
|
31090
|
+
detail: propTypes$1N.exports.string,
|
|
31091
|
+
disabled: propTypes$1N.exports.bool,
|
|
30616
31092
|
onClose: fun()
|
|
30617
31093
|
});
|
|
30618
31094
|
function SpsProgressBar(props2) {
|
|
@@ -30668,8 +31144,8 @@ function SpsProgressBar(props2) {
|
|
|
30668
31144
|
})));
|
|
30669
31145
|
}
|
|
30670
31146
|
Object.assign(SpsProgressBar, {
|
|
30671
|
-
props: propsDoc$
|
|
30672
|
-
propTypes: propTypes$
|
|
31147
|
+
props: propsDoc$H,
|
|
31148
|
+
propTypes: propTypes$K,
|
|
30673
31149
|
displayName: "SpsProgressBar"
|
|
30674
31150
|
});
|
|
30675
31151
|
const SpsSteppedProgressBarExamples = {
|
|
@@ -30809,11 +31285,11 @@ const SpsSteppedProgressBarExamples = {
|
|
|
30809
31285
|
}
|
|
30810
31286
|
}
|
|
30811
31287
|
};
|
|
30812
|
-
const propsDoc$
|
|
31288
|
+
const propsDoc$G = {
|
|
30813
31289
|
icon: "SpsIcon",
|
|
30814
31290
|
iconSize: "SpsIconSize"
|
|
30815
31291
|
};
|
|
30816
|
-
const propTypes$
|
|
31292
|
+
const propTypes$J = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30817
31293
|
icon: enumValue(SpsIcon),
|
|
30818
31294
|
iconSize: enumValue(SpsIconSize)
|
|
30819
31295
|
});
|
|
@@ -30832,8 +31308,8 @@ function SpsTooltipTitle({
|
|
|
30832
31308
|
}, children));
|
|
30833
31309
|
}
|
|
30834
31310
|
Object.assign(SpsTooltipTitle, {
|
|
30835
|
-
props: propsDoc$
|
|
30836
|
-
propTypes: propTypes$
|
|
31311
|
+
props: propsDoc$G,
|
|
31312
|
+
propTypes: propTypes$J,
|
|
30837
31313
|
displayName: "SpsTooltipTitle"
|
|
30838
31314
|
});
|
|
30839
31315
|
const SpsTooltipExamples = {
|
|
@@ -31342,7 +31818,7 @@ const SpsTooltipExamples = {
|
|
|
31342
31818
|
}
|
|
31343
31819
|
}
|
|
31344
31820
|
};
|
|
31345
|
-
const propsDoc$
|
|
31821
|
+
const propsDoc$F = {
|
|
31346
31822
|
title: "string",
|
|
31347
31823
|
stepsCount: "number",
|
|
31348
31824
|
completedStepsCount: "number",
|
|
@@ -31352,14 +31828,14 @@ const propsDoc$G = {
|
|
|
31352
31828
|
tooltipsData: "TooltipsProps[]",
|
|
31353
31829
|
color: "SteppedProgressBarColor"
|
|
31354
31830
|
};
|
|
31355
|
-
const propTypes$
|
|
31356
|
-
title: propTypes$
|
|
31357
|
-
stepsCount: propTypes$
|
|
31358
|
-
completedStepsCount: propTypes$
|
|
31359
|
-
disabled: propTypes$
|
|
31360
|
-
showStepsCounter: propTypes$
|
|
31361
|
-
icons: propTypes$
|
|
31362
|
-
tooltipsData: propTypes$
|
|
31831
|
+
const propTypes$I = {
|
|
31832
|
+
title: propTypes$1N.exports.string,
|
|
31833
|
+
stepsCount: propTypes$1N.exports.number,
|
|
31834
|
+
completedStepsCount: propTypes$1N.exports.number,
|
|
31835
|
+
disabled: propTypes$1N.exports.bool,
|
|
31836
|
+
showStepsCounter: propTypes$1N.exports.bool,
|
|
31837
|
+
icons: propTypes$1N.exports.arrayOf(impl()),
|
|
31838
|
+
tooltipsData: propTypes$1N.exports.arrayOf(impl()),
|
|
31363
31839
|
color: enumValue(SteppedProgressBarColor)
|
|
31364
31840
|
};
|
|
31365
31841
|
function SpsSteppedProgressBar(props2) {
|
|
@@ -31408,8 +31884,8 @@ function SpsSteppedProgressBar(props2) {
|
|
|
31408
31884
|
}, findTooltipData(index).description))))));
|
|
31409
31885
|
}
|
|
31410
31886
|
Object.assign(SpsSteppedProgressBar, {
|
|
31411
|
-
props: propsDoc$
|
|
31412
|
-
propTypes: propTypes$
|
|
31887
|
+
props: propsDoc$F,
|
|
31888
|
+
propTypes: propTypes$I,
|
|
31413
31889
|
displayName: "SpsSteppedProgressBar"
|
|
31414
31890
|
});
|
|
31415
31891
|
const SpsProgressBarExamples = {
|
|
@@ -31507,7 +31983,7 @@ const SpsProgressBarExamples = {
|
|
|
31507
31983
|
}
|
|
31508
31984
|
}
|
|
31509
31985
|
};
|
|
31510
|
-
const propsDoc$
|
|
31986
|
+
const propsDoc$E = {
|
|
31511
31987
|
checked: "boolean",
|
|
31512
31988
|
disabled: "boolean",
|
|
31513
31989
|
formMeta: "SpsFormFieldMeta<any>",
|
|
@@ -31517,17 +31993,17 @@ const propsDoc$F = {
|
|
|
31517
31993
|
onChange: "ChangeEventHandler",
|
|
31518
31994
|
value: "any"
|
|
31519
31995
|
};
|
|
31520
|
-
const propTypes$
|
|
31521
|
-
checked: propTypes$
|
|
31522
|
-
disabled: propTypes$
|
|
31996
|
+
const propTypes$H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31997
|
+
checked: propTypes$1N.exports.bool,
|
|
31998
|
+
disabled: propTypes$1N.exports.bool,
|
|
31523
31999
|
formControl: impl(),
|
|
31524
32000
|
formMeta: impl(),
|
|
31525
|
-
inline: propTypes$
|
|
31526
|
-
label: propTypes$
|
|
31527
|
-
name: propTypes$
|
|
32001
|
+
inline: propTypes$1N.exports.bool,
|
|
32002
|
+
label: propTypes$1N.exports.string,
|
|
32003
|
+
name: propTypes$1N.exports.string.isRequired,
|
|
31528
32004
|
onChange: fun(),
|
|
31529
32005
|
ref: ref(),
|
|
31530
|
-
value: propTypes$
|
|
32006
|
+
value: propTypes$1N.exports.any
|
|
31531
32007
|
});
|
|
31532
32008
|
function SpsRadioButton(_y) {
|
|
31533
32009
|
var _z = _y, {
|
|
@@ -31600,8 +32076,8 @@ function SpsRadioButton(_y) {
|
|
|
31600
32076
|
}, label || ""));
|
|
31601
32077
|
}
|
|
31602
32078
|
Object.assign(SpsRadioButton, {
|
|
31603
|
-
props: propsDoc$
|
|
31604
|
-
propTypes: propTypes$
|
|
32079
|
+
props: propsDoc$E,
|
|
32080
|
+
propTypes: propTypes$H,
|
|
31605
32081
|
displayName: "SpsRadioButton"
|
|
31606
32082
|
});
|
|
31607
32083
|
const SpsRadioButtonExamples = {
|
|
@@ -31689,11 +32165,11 @@ const SpsRadioButtonExamples = {
|
|
|
31689
32165
|
}
|
|
31690
32166
|
}
|
|
31691
32167
|
};
|
|
31692
|
-
const propsDoc$
|
|
32168
|
+
const propsDoc$D = {
|
|
31693
32169
|
maxHeight: "string"
|
|
31694
32170
|
};
|
|
31695
|
-
const propTypes$
|
|
31696
|
-
maxHeight: propTypes$
|
|
32171
|
+
const propTypes$G = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32172
|
+
maxHeight: propTypes$1N.exports.string
|
|
31697
32173
|
});
|
|
31698
32174
|
function SpsScrollableContainer(props2) {
|
|
31699
32175
|
const {
|
|
@@ -31706,8 +32182,8 @@ function SpsScrollableContainer(props2) {
|
|
|
31706
32182
|
}, children);
|
|
31707
32183
|
}
|
|
31708
32184
|
Object.assign(SpsScrollableContainer, {
|
|
31709
|
-
props: propsDoc$
|
|
31710
|
-
propTypes: propTypes$
|
|
32185
|
+
props: propsDoc$D,
|
|
32186
|
+
propTypes: propTypes$G,
|
|
31711
32187
|
displayName: "SpsScrollableContainer"
|
|
31712
32188
|
});
|
|
31713
32189
|
const SpsScrollableContainerExamples = {
|
|
@@ -31787,125 +32263,6 @@ const SpsScrollableContainerExamples = {
|
|
|
31787
32263
|
}
|
|
31788
32264
|
}
|
|
31789
32265
|
};
|
|
31790
|
-
const propsDoc$D = {
|
|
31791
|
-
resultsCount: "number",
|
|
31792
|
-
totalResults: "number",
|
|
31793
|
-
onClear: "() => void"
|
|
31794
|
-
};
|
|
31795
|
-
const propTypes$G = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31796
|
-
resultsCount: propTypes$1M.exports.number,
|
|
31797
|
-
totalResults: propTypes$1M.exports.number,
|
|
31798
|
-
onClear: fun()
|
|
31799
|
-
});
|
|
31800
|
-
function SpsSearchResultsBar(props2) {
|
|
31801
|
-
const _a = props2, {
|
|
31802
|
-
children,
|
|
31803
|
-
className,
|
|
31804
|
-
resultsCount,
|
|
31805
|
-
totalResults,
|
|
31806
|
-
onClear,
|
|
31807
|
-
"data-testid": testId,
|
|
31808
|
-
unsafelyReplaceClassName
|
|
31809
|
-
} = _a, rest = __objRest(_a, [
|
|
31810
|
-
"children",
|
|
31811
|
-
"className",
|
|
31812
|
-
"resultsCount",
|
|
31813
|
-
"totalResults",
|
|
31814
|
-
"onClear",
|
|
31815
|
-
"data-testid",
|
|
31816
|
-
"unsafelyReplaceClassName"
|
|
31817
|
-
]);
|
|
31818
|
-
const { t: t2 } = React.useContext(I18nContext);
|
|
31819
|
-
const classes = clsx(unsafelyReplaceClassName || "sps-search-results-bar", className);
|
|
31820
|
-
const [
|
|
31821
|
-
count,
|
|
31822
|
-
ofText,
|
|
31823
|
-
total
|
|
31824
|
-
] = t2("design-system:searchResultsBar.count", { count: resultsCount, total: totalResults }).split(" ");
|
|
31825
|
-
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
31826
|
-
className: classes,
|
|
31827
|
-
"data-testid": `${testId}`
|
|
31828
|
-
}, rest), /* @__PURE__ */ React.createElement("span", {
|
|
31829
|
-
className: "sps-search-results-bar__label",
|
|
31830
|
-
"data-testid": `${testId}__label`
|
|
31831
|
-
}, t2("design-system:searchResultsBar.matchingResults")), count && !Number.isNaN(Number(count)) && /* @__PURE__ */ React.createElement("span", {
|
|
31832
|
-
className: "sps-search-results-bar__count",
|
|
31833
|
-
"data-testid": `${testId}__count`
|
|
31834
|
-
}, /* @__PURE__ */ React.createElement("i", {
|
|
31835
|
-
className: "sps-icon sps-icon-double-angle-right"
|
|
31836
|
-
}), /* @__PURE__ */ React.createElement("span", null, count)), total && !Number.isNaN(Number(total)) && /* @__PURE__ */ React.createElement("span", {
|
|
31837
|
-
className: "sps-search-results-bar__total",
|
|
31838
|
-
"data-testid": `${testId}__total`
|
|
31839
|
-
}, ofText, " ", total), /* @__PURE__ */ React.createElement("div", {
|
|
31840
|
-
className: "sps-search-results-bar__buttons",
|
|
31841
|
-
"data-testid": `${testId}__button`
|
|
31842
|
-
}, /* @__PURE__ */ React.createElement("button", {
|
|
31843
|
-
type: "button",
|
|
31844
|
-
onClick: onClear
|
|
31845
|
-
}, t2("design-system:searchResultsBar.clear"))));
|
|
31846
|
-
}
|
|
31847
|
-
Object.assign(SpsSearchResultsBar, {
|
|
31848
|
-
props: propsDoc$D,
|
|
31849
|
-
propTypes: propTypes$G,
|
|
31850
|
-
displayName: "SpsSearchResultsBar"
|
|
31851
|
-
});
|
|
31852
|
-
const SpsSearchResultsBarExamples = {
|
|
31853
|
-
noCount: {
|
|
31854
|
-
label: "Basic",
|
|
31855
|
-
description: "<p>Info about Basic Search Result Bars</p>",
|
|
31856
|
-
examples: {
|
|
31857
|
-
noCount: {
|
|
31858
|
-
react: code`
|
|
31859
|
-
function SpsSearchResultsBarBasic() {
|
|
31860
|
-
function clearHandler() {
|
|
31861
|
-
console.log("change handler called");
|
|
31862
|
-
}
|
|
31863
|
-
return (
|
|
31864
|
-
<SpsSearchResultsBar onClear={clearHandler}/>
|
|
31865
|
-
);
|
|
31866
|
-
}
|
|
31867
|
-
`
|
|
31868
|
-
}
|
|
31869
|
-
}
|
|
31870
|
-
},
|
|
31871
|
-
withCount: {
|
|
31872
|
-
label: "With Count",
|
|
31873
|
-
description: "<p>Info about Search Result Bars with count bars</p>",
|
|
31874
|
-
examples: {
|
|
31875
|
-
withCount: {
|
|
31876
|
-
react: code`
|
|
31877
|
-
function SpsSearchResultsBarCount() {
|
|
31878
|
-
function clearHandler() {
|
|
31879
|
-
console.log("change handler called");
|
|
31880
|
-
}
|
|
31881
|
-
|
|
31882
|
-
return (
|
|
31883
|
-
<SpsSearchResultsBar resultsCount={125} onClear={clearHandler}/>
|
|
31884
|
-
);
|
|
31885
|
-
}
|
|
31886
|
-
`
|
|
31887
|
-
}
|
|
31888
|
-
}
|
|
31889
|
-
},
|
|
31890
|
-
withCountAndTotal: {
|
|
31891
|
-
label: "With Count and total",
|
|
31892
|
-
description: "<p> Info about Search Result Bars with count & total</p>",
|
|
31893
|
-
examples: {
|
|
31894
|
-
withCountAndTotal: {
|
|
31895
|
-
react: code`
|
|
31896
|
-
function SpsSearchResultsBarCountTotal() {
|
|
31897
|
-
function clearHandler() {
|
|
31898
|
-
console.log("change handler called");
|
|
31899
|
-
}
|
|
31900
|
-
return (
|
|
31901
|
-
<SpsSearchResultsBar resultsCount={125} totalResults={250} onClear={clearHandler} />
|
|
31902
|
-
);
|
|
31903
|
-
}
|
|
31904
|
-
`
|
|
31905
|
-
}
|
|
31906
|
-
}
|
|
31907
|
-
}
|
|
31908
|
-
};
|
|
31909
32266
|
const SpsSelectExamples = {
|
|
31910
32267
|
basic: {
|
|
31911
32268
|
label: "Basic",
|
|
@@ -32663,12 +33020,12 @@ const propsDoc$C = {
|
|
|
32663
33020
|
widthRem: "number"
|
|
32664
33021
|
};
|
|
32665
33022
|
const propTypes$F = __spreadValues({
|
|
32666
|
-
sortKey: propTypes$
|
|
32667
|
-
sortDisabled: propTypes$
|
|
32668
|
-
sort: propTypes$
|
|
33023
|
+
sortKey: propTypes$1N.exports.string,
|
|
33024
|
+
sortDisabled: propTypes$1N.exports.bool,
|
|
33025
|
+
sort: propTypes$1N.exports.arrayOf(impl()),
|
|
32669
33026
|
onSortChange: fun(),
|
|
32670
|
-
widthPx: propTypes$
|
|
32671
|
-
widthRem: propTypes$
|
|
33027
|
+
widthPx: propTypes$1N.exports.number,
|
|
33028
|
+
widthRem: propTypes$1N.exports.number
|
|
32672
33029
|
}, spsGlobalPropTypes);
|
|
32673
33030
|
function SpsSortingHeaderCell(_A) {
|
|
32674
33031
|
var _B = _A, {
|
|
@@ -32738,7 +33095,7 @@ const propsDoc$B = {
|
|
|
32738
33095
|
onSortChange: "SortChangeHandler"
|
|
32739
33096
|
};
|
|
32740
33097
|
const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32741
|
-
sort: propTypes$
|
|
33098
|
+
sort: propTypes$1N.exports.arrayOf(impl()),
|
|
32742
33099
|
onSortChange: fun()
|
|
32743
33100
|
});
|
|
32744
33101
|
function SpsSortingHeader(_C) {
|
|
@@ -32816,12 +33173,12 @@ const propsDoc$A = {
|
|
|
32816
33173
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
32817
33174
|
};
|
|
32818
33175
|
const propTypes$D = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32819
|
-
disabled: propTypes$
|
|
32820
|
-
href: propTypes$
|
|
32821
|
-
label: propTypes$
|
|
33176
|
+
disabled: propTypes$1N.exports.bool,
|
|
33177
|
+
href: propTypes$1N.exports.string,
|
|
33178
|
+
label: propTypes$1N.exports.string,
|
|
32822
33179
|
icon: enumValue(SpsIcon),
|
|
32823
33180
|
kind: enumValue(StdButtonKind),
|
|
32824
|
-
options: propTypes$
|
|
33181
|
+
options: propTypes$1N.exports.arrayOf(propTypes$1N.exports.oneOfType([propTypes$1N.exports.func, propTypes$1N.exports.any]))
|
|
32825
33182
|
});
|
|
32826
33183
|
function SpsSplitButton(props2) {
|
|
32827
33184
|
const _a = props2, {
|
|
@@ -32978,7 +33335,7 @@ const propsDoc$z = {
|
|
|
32978
33335
|
channelId: { type: "string", required: true }
|
|
32979
33336
|
};
|
|
32980
33337
|
const propTypes$C = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32981
|
-
channelId: propTypes$
|
|
33338
|
+
channelId: propTypes$1N.exports.string.isRequired
|
|
32982
33339
|
});
|
|
32983
33340
|
function SpsSlackLink(props2) {
|
|
32984
33341
|
const _a = props2, {
|
|
@@ -33060,8 +33417,8 @@ const propsDoc$x = {
|
|
|
33060
33417
|
onToggle: "(isExpanded: boolean) => void"
|
|
33061
33418
|
};
|
|
33062
33419
|
const propTypes$A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33063
|
-
expanded: propTypes$
|
|
33064
|
-
selected: propTypes$
|
|
33420
|
+
expanded: propTypes$1N.exports.bool,
|
|
33421
|
+
selected: propTypes$1N.exports.bool,
|
|
33065
33422
|
onToggle: fun()
|
|
33066
33423
|
});
|
|
33067
33424
|
function SpsSummaryListRow(props2) {
|
|
@@ -33143,10 +33500,10 @@ const propsDoc$w = {
|
|
|
33143
33500
|
width: "string"
|
|
33144
33501
|
};
|
|
33145
33502
|
const propTypes$z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33146
|
-
borderless: propTypes$
|
|
33147
|
-
lean: propTypes$
|
|
33148
|
-
leaner: propTypes$
|
|
33149
|
-
width: propTypes$
|
|
33503
|
+
borderless: propTypes$1N.exports.bool,
|
|
33504
|
+
lean: propTypes$1N.exports.bool,
|
|
33505
|
+
leaner: propTypes$1N.exports.bool,
|
|
33506
|
+
width: propTypes$1N.exports.string
|
|
33150
33507
|
});
|
|
33151
33508
|
function SpsSummaryListColumn(props2) {
|
|
33152
33509
|
const _a = props2, {
|
|
@@ -33479,17 +33836,17 @@ const props = {
|
|
|
33479
33836
|
suppressTooltips: "boolean"
|
|
33480
33837
|
};
|
|
33481
33838
|
const propTypes$y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33482
|
-
tasks: propTypes$
|
|
33839
|
+
tasks: propTypes$1N.exports.arrayOf(propTypes$1N.exports.any),
|
|
33483
33840
|
taskQueuePosition: enumValue(Position),
|
|
33484
|
-
notificationText: propTypes$
|
|
33485
|
-
tooltipConfig: propTypes$
|
|
33841
|
+
notificationText: propTypes$1N.exports.string,
|
|
33842
|
+
tooltipConfig: propTypes$1N.exports.shape({
|
|
33486
33843
|
position: enumValue(Position),
|
|
33487
33844
|
kind: enumValue(TooltipKind)
|
|
33488
33845
|
}),
|
|
33489
33846
|
onClose: fun(),
|
|
33490
33847
|
onOpen: fun(),
|
|
33491
33848
|
onClearCompleted: fun(),
|
|
33492
|
-
suppressTooltips: propTypes$
|
|
33849
|
+
suppressTooltips: propTypes$1N.exports.bool
|
|
33493
33850
|
});
|
|
33494
33851
|
function SpsTaskQueue(_E) {
|
|
33495
33852
|
var _F = _E, {
|
|
@@ -34025,14 +34382,14 @@ const propsDoc$v = {
|
|
|
34025
34382
|
value: "string"
|
|
34026
34383
|
};
|
|
34027
34384
|
const propTypes$x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34028
|
-
disabled: propTypes$
|
|
34385
|
+
disabled: propTypes$1N.exports.bool,
|
|
34029
34386
|
formControl: impl(),
|
|
34030
34387
|
formMeta: impl(),
|
|
34031
34388
|
icon: enumValue(SpsIcon),
|
|
34032
|
-
name: propTypes$
|
|
34389
|
+
name: propTypes$1N.exports.string,
|
|
34033
34390
|
onChange: fun(),
|
|
34034
|
-
placeholder: propTypes$
|
|
34035
|
-
value: propTypes$
|
|
34391
|
+
placeholder: propTypes$1N.exports.string,
|
|
34392
|
+
value: propTypes$1N.exports.string
|
|
34036
34393
|
});
|
|
34037
34394
|
const SpsTextInput = React.forwardRef((_G, ref2) => {
|
|
34038
34395
|
var _H = _G, {
|
|
@@ -34222,15 +34579,15 @@ const propsDoc$u = {
|
|
|
34222
34579
|
value: "string"
|
|
34223
34580
|
};
|
|
34224
34581
|
const propTypes$w = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34225
|
-
disabled: propTypes$
|
|
34582
|
+
disabled: propTypes$1N.exports.bool,
|
|
34226
34583
|
formControl: impl(),
|
|
34227
34584
|
formMeta: impl(),
|
|
34228
|
-
name: propTypes$
|
|
34585
|
+
name: propTypes$1N.exports.string,
|
|
34229
34586
|
onChange: fun(),
|
|
34230
|
-
placeholder: propTypes$
|
|
34587
|
+
placeholder: propTypes$1N.exports.string,
|
|
34231
34588
|
ref: ref(),
|
|
34232
|
-
rows: propTypes$
|
|
34233
|
-
value: propTypes$
|
|
34589
|
+
rows: propTypes$1N.exports.number,
|
|
34590
|
+
value: propTypes$1N.exports.string
|
|
34234
34591
|
});
|
|
34235
34592
|
function SpsTextarea(_I) {
|
|
34236
34593
|
var _J = _I, {
|
|
@@ -34425,12 +34782,12 @@ const propsDoc$t = {
|
|
|
34425
34782
|
warning: "boolean"
|
|
34426
34783
|
};
|
|
34427
34784
|
const propTypes$v = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34428
|
-
href: propTypes$
|
|
34429
|
-
target: propTypes$
|
|
34785
|
+
href: propTypes$1N.exports.string,
|
|
34786
|
+
target: propTypes$1N.exports.string,
|
|
34430
34787
|
icon: nodeOrRenderFn.isRequired,
|
|
34431
|
-
error: propTypes$
|
|
34432
|
-
title: propTypes$
|
|
34433
|
-
warning: propTypes$
|
|
34788
|
+
error: propTypes$1N.exports.bool,
|
|
34789
|
+
title: propTypes$1N.exports.string.isRequired,
|
|
34790
|
+
warning: propTypes$1N.exports.bool
|
|
34434
34791
|
});
|
|
34435
34792
|
function SpsTile(props2) {
|
|
34436
34793
|
const _a = props2, {
|
|
@@ -34749,10 +35106,10 @@ const propsDoc$r = {
|
|
|
34749
35106
|
active: "boolean"
|
|
34750
35107
|
};
|
|
34751
35108
|
const propTypes$t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34752
|
-
value: propTypes$
|
|
34753
|
-
title: propTypes$
|
|
35109
|
+
value: propTypes$1N.exports.number.isRequired,
|
|
35110
|
+
title: propTypes$1N.exports.string.isRequired,
|
|
34754
35111
|
kind: enumValue(SpsFilterTileKind),
|
|
34755
|
-
active: propTypes$
|
|
35112
|
+
active: propTypes$1N.exports.bool
|
|
34756
35113
|
});
|
|
34757
35114
|
function SpsFilterTile(props2) {
|
|
34758
35115
|
const _a = props2, {
|
|
@@ -34890,18 +35247,18 @@ const propsDoc$p = {
|
|
|
34890
35247
|
onChange: "(isActive: boolean) => void"
|
|
34891
35248
|
};
|
|
34892
35249
|
const propTypes$r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34893
|
-
active: propTypes$
|
|
34894
|
-
activeDescription: deprecated(propTypes$
|
|
34895
|
-
activeLabel: deprecated(propTypes$
|
|
34896
|
-
description: propTypes$
|
|
34897
|
-
disabled: propTypes$
|
|
35250
|
+
active: propTypes$1N.exports.bool,
|
|
35251
|
+
activeDescription: deprecated(propTypes$1N.exports.string),
|
|
35252
|
+
activeLabel: deprecated(propTypes$1N.exports.string),
|
|
35253
|
+
description: propTypes$1N.exports.string,
|
|
35254
|
+
disabled: propTypes$1N.exports.bool,
|
|
34898
35255
|
formControl: impl(),
|
|
34899
35256
|
formMeta: impl(),
|
|
34900
|
-
id: propTypes$
|
|
34901
|
-
inactiveDescription: deprecated(propTypes$
|
|
34902
|
-
inactiveLabel: deprecated(propTypes$
|
|
34903
|
-
label: propTypes$
|
|
34904
|
-
large: propTypes$
|
|
35257
|
+
id: propTypes$1N.exports.string,
|
|
35258
|
+
inactiveDescription: deprecated(propTypes$1N.exports.string),
|
|
35259
|
+
inactiveLabel: deprecated(propTypes$1N.exports.string),
|
|
35260
|
+
label: propTypes$1N.exports.string,
|
|
35261
|
+
large: propTypes$1N.exports.bool,
|
|
34905
35262
|
onChange: fun(),
|
|
34906
35263
|
ref: ref()
|
|
34907
35264
|
});
|
|
@@ -35087,7 +35444,7 @@ const propsDoc$o = {
|
|
|
35087
35444
|
icon: "SpsIcon"
|
|
35088
35445
|
};
|
|
35089
35446
|
const propTypes$q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35090
|
-
heading: propTypes$
|
|
35447
|
+
heading: propTypes$1N.exports.string,
|
|
35091
35448
|
icon: enumValue(SpsIcon)
|
|
35092
35449
|
});
|
|
35093
35450
|
function SpsWorkflow(props2) {
|
|
@@ -35139,7 +35496,7 @@ const propsDoc$n = {
|
|
|
35139
35496
|
progress: "number"
|
|
35140
35497
|
};
|
|
35141
35498
|
const propTypes$p = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35142
|
-
progress: propTypes$
|
|
35499
|
+
progress: propTypes$1N.exports.number,
|
|
35143
35500
|
size: enumValue(RingSize)
|
|
35144
35501
|
});
|
|
35145
35502
|
function SpsProgressRing({
|
|
@@ -35184,7 +35541,7 @@ const propsDoc$m = {
|
|
|
35184
35541
|
phases: "WizardPhase[]"
|
|
35185
35542
|
};
|
|
35186
35543
|
const propTypes$o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35187
|
-
phases: propTypes$
|
|
35544
|
+
phases: propTypes$1N.exports.arrayOf(impl())
|
|
35188
35545
|
});
|
|
35189
35546
|
const CSS_BLOCK$2 = "sps-wizard-sidebar";
|
|
35190
35547
|
function SpsWizardSidebar({
|
|
@@ -35235,10 +35592,10 @@ const propsDoc$l = {
|
|
|
35235
35592
|
};
|
|
35236
35593
|
const propTypes$n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35237
35594
|
condition: enumValue(WizardSubstepConditions).isRequired,
|
|
35238
|
-
display: propTypes$
|
|
35239
|
-
orderPosition: propTypes$
|
|
35240
|
-
propTypes$
|
|
35241
|
-
propTypes$
|
|
35595
|
+
display: propTypes$1N.exports.string.isRequired,
|
|
35596
|
+
orderPosition: propTypes$1N.exports.oneOfType([
|
|
35597
|
+
propTypes$1N.exports.string,
|
|
35598
|
+
propTypes$1N.exports.number
|
|
35242
35599
|
]).isRequired
|
|
35243
35600
|
});
|
|
35244
35601
|
function SpsWizardSubstep(props2) {
|
|
@@ -35439,7 +35796,7 @@ const propsDoc$i = {
|
|
|
35439
35796
|
};
|
|
35440
35797
|
const propTypes$k = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35441
35798
|
icon: enumValue(SpsIcon).isRequired,
|
|
35442
|
-
title: propTypes$
|
|
35799
|
+
title: propTypes$1N.exports.string.isRequired
|
|
35443
35800
|
});
|
|
35444
35801
|
function SpsWorkflowStep(props2) {
|
|
35445
35802
|
const _a = props2, {
|
|
@@ -35550,9 +35907,9 @@ const propsDoc$h = {
|
|
|
35550
35907
|
subHeading: "string"
|
|
35551
35908
|
};
|
|
35552
35909
|
const propTypes$j = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35553
|
-
artwork: propTypes$
|
|
35554
|
-
heading: propTypes$
|
|
35555
|
-
subHeading: propTypes$
|
|
35910
|
+
artwork: propTypes$1N.exports.string.isRequired,
|
|
35911
|
+
heading: propTypes$1N.exports.string.isRequired,
|
|
35912
|
+
subHeading: propTypes$1N.exports.string
|
|
35556
35913
|
});
|
|
35557
35914
|
function SpsZeroState(props2) {
|
|
35558
35915
|
const _a = props2, {
|
|
@@ -35828,10 +36185,10 @@ const propsDoc$e = {
|
|
|
35828
36185
|
onCollapse: "() => void"
|
|
35829
36186
|
};
|
|
35830
36187
|
const propTypes$g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35831
|
-
title: propTypes$
|
|
35832
|
-
expanded: propTypes$
|
|
35833
|
-
heightPx: propTypes$
|
|
35834
|
-
heightRem: propTypes$
|
|
36188
|
+
title: propTypes$1N.exports.string,
|
|
36189
|
+
expanded: propTypes$1N.exports.bool,
|
|
36190
|
+
heightPx: propTypes$1N.exports.number,
|
|
36191
|
+
heightRem: propTypes$1N.exports.number,
|
|
35835
36192
|
onExpand: fun(),
|
|
35836
36193
|
onCollapse: fun()
|
|
35837
36194
|
});
|
|
@@ -36257,9 +36614,9 @@ const propsDoc$c = {
|
|
|
36257
36614
|
onFilterChange: "ChangeEventHandler<HTMLInputElement>"
|
|
36258
36615
|
};
|
|
36259
36616
|
const propTypes$e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36260
|
-
value: propTypes$
|
|
36261
|
-
placeholder: propTypes$
|
|
36262
|
-
formMeta: propTypes$
|
|
36617
|
+
value: propTypes$1N.exports.string,
|
|
36618
|
+
placeholder: propTypes$1N.exports.string,
|
|
36619
|
+
formMeta: propTypes$1N.exports.oneOfType([
|
|
36263
36620
|
impl(),
|
|
36264
36621
|
impl()
|
|
36265
36622
|
]),
|
|
@@ -36299,7 +36656,7 @@ const propsDoc$b = {
|
|
|
36299
36656
|
showCondition: "boolean"
|
|
36300
36657
|
};
|
|
36301
36658
|
const propTypes$d = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36302
|
-
showCondition: propTypes$
|
|
36659
|
+
showCondition: propTypes$1N.exports.bool
|
|
36303
36660
|
});
|
|
36304
36661
|
function SpsConditionalField(_S) {
|
|
36305
36662
|
var _T = _S, {
|
|
@@ -36493,7 +36850,13 @@ const MANIFEST = {
|
|
|
36493
36850
|
},
|
|
36494
36851
|
Cards: {
|
|
36495
36852
|
description: () => /* @__PURE__ */ React.createElement("p", null, "Cards are used to group similar or related content together in a single container. They can be combined with additional elements such as Headers, Footers, or Tabs."),
|
|
36496
|
-
components: [
|
|
36853
|
+
components: [
|
|
36854
|
+
SpsCardV2,
|
|
36855
|
+
SpsCardV2Footer,
|
|
36856
|
+
SpsCardV2Header,
|
|
36857
|
+
SpsCardV2Title,
|
|
36858
|
+
SpsTabsV2
|
|
36859
|
+
],
|
|
36497
36860
|
examples: SpsCardExamples
|
|
36498
36861
|
},
|
|
36499
36862
|
Checkbox: {
|
|
@@ -36678,7 +37041,7 @@ const MANIFEST = {
|
|
|
36678
37041
|
examples: SpsScrollableContainerExamples
|
|
36679
37042
|
},
|
|
36680
37043
|
"Search Results Bar": {
|
|
36681
|
-
components: [
|
|
37044
|
+
components: [SpsSearchResultsBarV2],
|
|
36682
37045
|
examples: SpsSearchResultsBarExamples
|
|
36683
37046
|
},
|
|
36684
37047
|
Select: {
|
|
@@ -36826,7 +37189,7 @@ const propTypes$c = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
36826
37189
|
minDate: impl(),
|
|
36827
37190
|
onNewSelection: fun().isRequired,
|
|
36828
37191
|
selectedDate: impl(),
|
|
36829
|
-
selectedRange: propTypes$
|
|
37192
|
+
selectedRange: propTypes$1N.exports.arrayOf(impl())
|
|
36830
37193
|
});
|
|
36831
37194
|
const CSS_ELEMENT$1 = "sps-datepicker__calendar";
|
|
36832
37195
|
function determineViewMonth({
|
|
@@ -36952,7 +37315,7 @@ Object.assign(SpsDatepickerCalendar, {
|
|
|
36952
37315
|
const CSS_ELEMENT = "sps-datepicker__popup";
|
|
36953
37316
|
const propTypes$b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36954
37317
|
attachTo: ref().isRequired,
|
|
36955
|
-
isOpen: propTypes$
|
|
37318
|
+
isOpen: propTypes$1N.exports.bool.isRequired
|
|
36956
37319
|
});
|
|
36957
37320
|
const SpsDatepickerPopup = React.forwardRef((_U, ref2) => {
|
|
36958
37321
|
var _V = _U, {
|
|
@@ -36990,7 +37353,7 @@ const propsDoc$a = {
|
|
|
36990
37353
|
value: "SimpleDate"
|
|
36991
37354
|
};
|
|
36992
37355
|
const propTypes$a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36993
|
-
disabled: propTypes$
|
|
37356
|
+
disabled: propTypes$1N.exports.bool,
|
|
36994
37357
|
formMeta: impl(),
|
|
36995
37358
|
maxDate: impl(),
|
|
36996
37359
|
minDate: impl(),
|
|
@@ -37115,12 +37478,12 @@ const propsDoc$9 = {
|
|
|
37115
37478
|
value: "SimpleDateRange | DatePreset"
|
|
37116
37479
|
};
|
|
37117
37480
|
const propTypes$9 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37118
|
-
disabled: propTypes$
|
|
37481
|
+
disabled: propTypes$1N.exports.bool,
|
|
37119
37482
|
formMeta: impl(),
|
|
37120
37483
|
maxDate: impl(),
|
|
37121
37484
|
minDate: impl(),
|
|
37122
37485
|
onChange: fun(),
|
|
37123
|
-
presets: propTypes$
|
|
37486
|
+
presets: propTypes$1N.exports.arrayOf(impl())
|
|
37124
37487
|
});
|
|
37125
37488
|
const CSS_BLOCK = "sps-datepicker";
|
|
37126
37489
|
const DEFAULT_PRESETS = [
|
|
@@ -37346,12 +37709,12 @@ const propsDoc$8 = {
|
|
|
37346
37709
|
value: "number"
|
|
37347
37710
|
};
|
|
37348
37711
|
const propTypes$8 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37349
|
-
disabled: propTypes$
|
|
37712
|
+
disabled: propTypes$1N.exports.bool,
|
|
37350
37713
|
formMeta: impl(),
|
|
37351
|
-
name: propTypes$
|
|
37714
|
+
name: propTypes$1N.exports.string,
|
|
37352
37715
|
onChange: fun(),
|
|
37353
37716
|
ref: ref(),
|
|
37354
|
-
value: propTypes$
|
|
37717
|
+
value: propTypes$1N.exports.number
|
|
37355
37718
|
});
|
|
37356
37719
|
function strToDollars(str) {
|
|
37357
37720
|
return str ? Number.parseInt(str.replace(/[^\d]/g, ""), 10) / 100 : null;
|
|
@@ -37526,10 +37889,10 @@ const propsDoc$7 = {
|
|
|
37526
37889
|
};
|
|
37527
37890
|
const propTypes$7 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37528
37891
|
color: enumValue(TagKind),
|
|
37529
|
-
href: propTypes$
|
|
37892
|
+
href: propTypes$1N.exports.string,
|
|
37530
37893
|
icon: enumValue(SpsIcon),
|
|
37531
|
-
tagKey: propTypes$
|
|
37532
|
-
value: propTypes$
|
|
37894
|
+
tagKey: propTypes$1N.exports.string.isRequired,
|
|
37895
|
+
value: propTypes$1N.exports.string.isRequired
|
|
37533
37896
|
});
|
|
37534
37897
|
function SpsKeyValueTag(props2) {
|
|
37535
37898
|
const _a = props2, {
|
|
@@ -37622,8 +37985,8 @@ const propsDoc$6 = {
|
|
|
37622
37985
|
header: "string | () => string"
|
|
37623
37986
|
};
|
|
37624
37987
|
const propTypes$6 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37625
|
-
header: propTypes$
|
|
37626
|
-
propTypes$
|
|
37988
|
+
header: propTypes$1N.exports.oneOfType([
|
|
37989
|
+
propTypes$1N.exports.string,
|
|
37627
37990
|
fun()
|
|
37628
37991
|
])
|
|
37629
37992
|
});
|
|
@@ -37655,8 +38018,8 @@ const propsDoc$5 = {
|
|
|
37655
38018
|
backdrop: "string"
|
|
37656
38019
|
};
|
|
37657
38020
|
const propTypes$5 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37658
|
-
onOverlayClick: propTypes$
|
|
37659
|
-
backdrop: propTypes$
|
|
38021
|
+
onOverlayClick: propTypes$1N.exports.func,
|
|
38022
|
+
backdrop: propTypes$1N.exports.string
|
|
37660
38023
|
});
|
|
37661
38024
|
function SpsModalOverlay(props2) {
|
|
37662
38025
|
const _a = props2, {
|
|
@@ -37726,12 +38089,12 @@ const propsDoc$3 = {
|
|
|
37726
38089
|
closeModal: "() => void"
|
|
37727
38090
|
};
|
|
37728
38091
|
const propTypes$3 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37729
|
-
handleAsync: propTypes$
|
|
37730
|
-
turnAsyncOn: propTypes$
|
|
37731
|
-
turnAsyncOff: propTypes$
|
|
37732
|
-
isAsyncOn: propTypes$
|
|
38092
|
+
handleAsync: propTypes$1N.exports.shape({
|
|
38093
|
+
turnAsyncOn: propTypes$1N.exports.func,
|
|
38094
|
+
turnAsyncOff: propTypes$1N.exports.func,
|
|
38095
|
+
isAsyncOn: propTypes$1N.exports.bool
|
|
37733
38096
|
}),
|
|
37734
|
-
closeModal: propTypes$
|
|
38097
|
+
closeModal: propTypes$1N.exports.func
|
|
37735
38098
|
});
|
|
37736
38099
|
function SpsModalFooter(props2) {
|
|
37737
38100
|
const {
|
|
@@ -37773,10 +38136,10 @@ const propsDoc$2 = {
|
|
|
37773
38136
|
const propTypes$2 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37774
38137
|
kind: enumValue(ButtonKind),
|
|
37775
38138
|
closeModal: fun(),
|
|
37776
|
-
handleAsync: propTypes$
|
|
37777
|
-
turnAsyncOn: propTypes$
|
|
37778
|
-
turnAsyncOff: propTypes$
|
|
37779
|
-
isAsyncOn: propTypes$
|
|
38139
|
+
handleAsync: propTypes$1N.exports.shape({
|
|
38140
|
+
turnAsyncOn: propTypes$1N.exports.func,
|
|
38141
|
+
turnAsyncOff: propTypes$1N.exports.func,
|
|
38142
|
+
isAsyncOn: propTypes$1N.exports.bool
|
|
37780
38143
|
})
|
|
37781
38144
|
});
|
|
37782
38145
|
function SpsModalAction(props2) {
|
|
@@ -37831,18 +38194,18 @@ const propsDoc$1 = {
|
|
|
37831
38194
|
onClose: "Function"
|
|
37832
38195
|
};
|
|
37833
38196
|
const propTypes$1 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37834
|
-
kind: propTypes$
|
|
37835
|
-
id: propTypes$
|
|
37836
|
-
isOpen: propTypes$
|
|
37837
|
-
header: propTypes$
|
|
37838
|
-
propTypes$
|
|
38197
|
+
kind: propTypes$1N.exports.string,
|
|
38198
|
+
id: propTypes$1N.exports.string,
|
|
38199
|
+
isOpen: propTypes$1N.exports.bool,
|
|
38200
|
+
header: propTypes$1N.exports.oneOfType([
|
|
38201
|
+
propTypes$1N.exports.string,
|
|
37839
38202
|
fun()
|
|
37840
38203
|
]),
|
|
37841
|
-
onClose: propTypes$
|
|
37842
|
-
onOpen: propTypes$
|
|
37843
|
-
size: propTypes$
|
|
37844
|
-
backdrop: propTypes$
|
|
37845
|
-
actionRequired: propTypes$
|
|
38204
|
+
onClose: propTypes$1N.exports.func,
|
|
38205
|
+
onOpen: propTypes$1N.exports.func,
|
|
38206
|
+
size: propTypes$1N.exports.string,
|
|
38207
|
+
backdrop: propTypes$1N.exports.string,
|
|
38208
|
+
actionRequired: propTypes$1N.exports.bool
|
|
37846
38209
|
});
|
|
37847
38210
|
function SpsModal(modalProps) {
|
|
37848
38211
|
let lastFocusable;
|
|
@@ -38096,4 +38459,4 @@ Object.assign(SpsVr, {
|
|
|
38096
38459
|
propTypes,
|
|
38097
38460
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
38098
38461
|
});
|
|
38099
|
-
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, 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, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
|
38462
|
+
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSearchResultsBarV2, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|