@spscommerce/ds-react 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/filter-panel/SpsFilterPanel.d.ts +10 -0
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanel.test-unit.d.ts +1 -0
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -0
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -0
- package/lib/filter-panel/index.d.ts +4 -0
- package/lib/index.cjs.js +551 -459
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +548 -460
- package/package.json +9 -9
package/lib/index.esm.js
CHANGED
|
@@ -178,7 +178,7 @@ var spsGlobalPropTypes = {
|
|
|
178
178
|
|
|
179
179
|
var I18nContext = React.createContext(noI18nI18n);
|
|
180
180
|
|
|
181
|
-
var propsDoc$
|
|
181
|
+
var propsDoc$1u = {
|
|
182
182
|
disabled: 'boolean',
|
|
183
183
|
href: 'string',
|
|
184
184
|
icon: 'SpsIcon',
|
|
@@ -187,7 +187,7 @@ var propsDoc$1r = {
|
|
|
187
187
|
spinningTitle: 'string',
|
|
188
188
|
type: 'ButtonType',
|
|
189
189
|
};
|
|
190
|
-
var propTypes$
|
|
190
|
+
var propTypes$1z = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, href: string, icon: enumValue(SpsIcon$1), kind: enumValue(ButtonKind), spinning: bool, spinningTitle: string, type: enumValue(ButtonType) });
|
|
191
191
|
function SpsButton(props) {
|
|
192
192
|
var children = props.children, className = props.className, href = props.href, icon = props.icon, _a = props.kind, kind = _a === void 0 ? ButtonKind.DEFAULT : _a, spinning = props.spinning, spinningTitle = props.spinningTitle, _b = props.type, type = _b === void 0 ? ButtonType.BUTTON : _b, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "href", "icon", "kind", "spinning", "spinningTitle", "type", "unsafelyReplaceClassName"]);
|
|
193
193
|
var disabled = props.disabled;
|
|
@@ -211,8 +211,8 @@ function SpsButton(props) {
|
|
|
211
211
|
spinner))));
|
|
212
212
|
}
|
|
213
213
|
Object.assign(SpsButton, {
|
|
214
|
-
props: propsDoc$
|
|
215
|
-
propTypes: propTypes$
|
|
214
|
+
props: propsDoc$1u,
|
|
215
|
+
propTypes: propTypes$1z,
|
|
216
216
|
displayName: 'SpsButton',
|
|
217
217
|
});
|
|
218
218
|
|
|
@@ -249,8 +249,8 @@ function contentOf(nodeOrRenderFn) {
|
|
|
249
249
|
: nodeOrRenderFn;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
var propsDoc$
|
|
253
|
-
var propTypes$
|
|
252
|
+
var propsDoc$1t = __assign(__assign({}, spsFormProps), { controlsDisabled: 'boolean', footerLinks: 'ReactNodeOrRenderFn', formMeta: 'SpsFormArrayMeta<any> | SpsFormGroupMeta<any>', isOpen: 'boolean', onClear: '() => void', onSubmit: 'React.FormEventHandler', pinned: { type: 'boolean', deprecated: true } });
|
|
253
|
+
var propTypes$1y = __assign(__assign(__assign({}, spsGlobalPropTypes), spsFormPropTypes), { controlsDisabled: bool, footerLinks: nodeOrRenderFn, formArray: impl(), formGroup: impl(), formMeta: oneOfType([
|
|
254
254
|
impl(),
|
|
255
255
|
impl(),
|
|
256
256
|
]), isOpen: bool, onClear: fun(), onSubmit: fun(), pinned: bool });
|
|
@@ -276,8 +276,8 @@ function SpsAdvancedSearch(props) {
|
|
|
276
276
|
React.createElement(SpsButton, { kind: ButtonKind.KEY, type: ButtonType.SUBMIT, disabled: controlsDisabled }, t('design-system:advancedSearch.search')))))));
|
|
277
277
|
}
|
|
278
278
|
Object.assign(SpsAdvancedSearch, {
|
|
279
|
-
props: propsDoc$
|
|
280
|
-
propTypes: propTypes$
|
|
279
|
+
props: propsDoc$1t,
|
|
280
|
+
propTypes: propTypes$1y,
|
|
281
281
|
displayName: 'SpsAdvancedSearch',
|
|
282
282
|
});
|
|
283
283
|
|
|
@@ -286,7 +286,7 @@ var SpsAdvancedSearchExamples = {
|
|
|
286
286
|
label: 'Basic Usage',
|
|
287
287
|
examples: {
|
|
288
288
|
basic: {
|
|
289
|
-
react: code(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n function Component(props) {\n const [toolbarSearchText, setToolbarSearchText] = React.useState(\"\");\n const [advSearch, patchAdvSearch] = usePatchReducer({\n isOpen: true,\n enteredFields: 0,\n });\n\n const initValue = {\n sender: \"\",\n receiver: \"\",\n doctype: \"\",\n status: \"\",\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue);\n\n React.useEffect(() => {\n // Simulate that someone has entered a search term\n updateForm({\n ...formValue,\n receiver: \"Walmart\"\n });\n patchAdvSearch({ enteredFields: 1 });\n }, []);\n\n function handleToolbarSearchChange(event) {\n setToolbarSearchText(event.target.value);\n }\n\n function handleToggleAdvancedSearch(isOpen) {\n patchAdvSearch({ isOpen });\n }\n\n function handleAdvancedSearchSubmit() {\n patchAdvSearch({ enteredFields: diff(initValue, formValue).length });\n }\n\n function handleAdvancedSearchClear() {\n updateForm(initValue);\n patchAdvSearch({ enteredFields: 0 });\n }\n\n return <>\n <SpsListToolbar advancedSearch={advSearch}\n onToggleAdvancedSearch={handleToggleAdvancedSearch}\n >\n <SpsListToolbarSearch>\n <SpsTextInput value={toolbarSearchText}\n onChange={handleToolbarSearchChange}\n disabled={advSearch.isOpen}\n title=\"Search\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.SEARCH}\n disabled={advSearch.isOpen}\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n <SpsAdvancedSearch {...advSearch}\n formMeta={formMeta}\n onSubmit={handleAdvancedSearchSubmit}\n onClear={handleAdvancedSearchClear}\n >\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.sender}>Sender</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.sender}\n value={formValue.sender}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.receiver}>Receiver</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.receiver}\n value={formValue.receiver}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.doctype}>Document Type</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.doctype}\n value={formValue.doctype}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.status}>Status</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.status}\n value={formValue.status}\n />\n </div>\n </div>\n </SpsAdvancedSearch>\n </>;\n }\n "], ["\n function Component(props) {\n const [toolbarSearchText, setToolbarSearchText] = React.useState(\"\");\n const [advSearch, patchAdvSearch] = usePatchReducer({\n isOpen: true,\n enteredFields: 0,\n });\n\n const initValue = {\n sender: \"\",\n receiver: \"\",\n doctype: \"\",\n status: \"\",\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue);\n\n React.useEffect(() => {\n // Simulate that someone has entered a search term\n updateForm({\n ...formValue,\n receiver: \"Walmart\"\n });\n patchAdvSearch({ enteredFields: 1 });\n }, []);\n\n function handleToolbarSearchChange(event) {\n setToolbarSearchText(event.target.value);\n }\n\n function handleToggleAdvancedSearch(isOpen) {\n patchAdvSearch({ isOpen });\n }\n\n function handleAdvancedSearchSubmit() {\n patchAdvSearch({ enteredFields: diff(initValue, formValue).length });\n }\n\n function handleAdvancedSearchClear() {\n updateForm(initValue);\n patchAdvSearch({ enteredFields: 0 });\n }\n\n return <>\n <SpsListToolbar advancedSearch={advSearch}\n onToggleAdvancedSearch={handleToggleAdvancedSearch}\n >\n <SpsListToolbarSearch>\n <SpsTextInput value={toolbarSearchText}\n onChange={handleToolbarSearchChange}\n disabled={advSearch.isOpen}\n title=\"Search\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.SEARCH}\n disabled={advSearch.isOpen}\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n <SpsAdvancedSearch {...advSearch}\n formMeta={formMeta}\n onSubmit={handleAdvancedSearchSubmit}\n onClear={handleAdvancedSearchClear}\n >\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.sender}>Sender</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.sender}\n value={formValue.sender}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.receiver}>Receiver</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.receiver}\n value={formValue.receiver}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.doctype}>Document Type</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.doctype}\n value={formValue.doctype}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.status}>Status</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.status}\n value={formValue.status}\n />\n </div>\n </div>\n </SpsAdvancedSearch>\n </>;\n }\n "]))),
|
|
289
|
+
react: code(templateObject_1$S || (templateObject_1$S = __makeTemplateObject(["\n function Component(props) {\n const [toolbarSearchText, setToolbarSearchText] = React.useState(\"\");\n const [advSearch, patchAdvSearch] = usePatchReducer({\n isOpen: true,\n enteredFields: 0,\n });\n\n const initValue = {\n sender: \"\",\n receiver: \"\",\n doctype: \"\",\n status: \"\",\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue);\n\n React.useEffect(() => {\n // Simulate that someone has entered a search term\n updateForm({\n ...formValue,\n receiver: \"Walmart\"\n });\n patchAdvSearch({ enteredFields: 1 });\n }, []);\n\n function handleToolbarSearchChange(event) {\n setToolbarSearchText(event.target.value);\n }\n\n function handleToggleAdvancedSearch(isOpen) {\n patchAdvSearch({ isOpen });\n }\n\n function handleAdvancedSearchSubmit() {\n patchAdvSearch({ enteredFields: diff(initValue, formValue).length });\n }\n\n function handleAdvancedSearchClear() {\n updateForm(initValue);\n patchAdvSearch({ enteredFields: 0 });\n }\n\n return <>\n <SpsListToolbar advancedSearch={advSearch}\n onToggleAdvancedSearch={handleToggleAdvancedSearch}\n >\n <SpsListToolbarSearch>\n <SpsTextInput value={toolbarSearchText}\n onChange={handleToolbarSearchChange}\n disabled={advSearch.isOpen}\n title=\"Search\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.SEARCH}\n disabled={advSearch.isOpen}\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n <SpsAdvancedSearch {...advSearch}\n formMeta={formMeta}\n onSubmit={handleAdvancedSearchSubmit}\n onClear={handleAdvancedSearchClear}\n >\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.sender}>Sender</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.sender}\n value={formValue.sender}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.receiver}>Receiver</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.receiver}\n value={formValue.receiver}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.doctype}>Document Type</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.doctype}\n value={formValue.doctype}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.status}>Status</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.status}\n value={formValue.status}\n />\n </div>\n </div>\n </SpsAdvancedSearch>\n </>;\n }\n "], ["\n function Component(props) {\n const [toolbarSearchText, setToolbarSearchText] = React.useState(\"\");\n const [advSearch, patchAdvSearch] = usePatchReducer({\n isOpen: true,\n enteredFields: 0,\n });\n\n const initValue = {\n sender: \"\",\n receiver: \"\",\n doctype: \"\",\n status: \"\",\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue);\n\n React.useEffect(() => {\n // Simulate that someone has entered a search term\n updateForm({\n ...formValue,\n receiver: \"Walmart\"\n });\n patchAdvSearch({ enteredFields: 1 });\n }, []);\n\n function handleToolbarSearchChange(event) {\n setToolbarSearchText(event.target.value);\n }\n\n function handleToggleAdvancedSearch(isOpen) {\n patchAdvSearch({ isOpen });\n }\n\n function handleAdvancedSearchSubmit() {\n patchAdvSearch({ enteredFields: diff(initValue, formValue).length });\n }\n\n function handleAdvancedSearchClear() {\n updateForm(initValue);\n patchAdvSearch({ enteredFields: 0 });\n }\n\n return <>\n <SpsListToolbar advancedSearch={advSearch}\n onToggleAdvancedSearch={handleToggleAdvancedSearch}\n >\n <SpsListToolbarSearch>\n <SpsTextInput value={toolbarSearchText}\n onChange={handleToolbarSearchChange}\n disabled={advSearch.isOpen}\n title=\"Search\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.SEARCH}\n disabled={advSearch.isOpen}\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n <SpsAdvancedSearch {...advSearch}\n formMeta={formMeta}\n onSubmit={handleAdvancedSearchSubmit}\n onClear={handleAdvancedSearchClear}\n >\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.sender}>Sender</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.sender}\n value={formValue.sender}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.receiver}>Receiver</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.receiver}\n value={formValue.receiver}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.doctype}>Document Type</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.doctype}\n value={formValue.doctype}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.status}>Status</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.status}\n value={formValue.status}\n />\n </div>\n </div>\n </SpsAdvancedSearch>\n </>;\n }\n "]))),
|
|
290
290
|
},
|
|
291
291
|
},
|
|
292
292
|
},
|
|
@@ -317,7 +317,7 @@ var SpsAdvancedSearchExamples = {
|
|
|
317
317
|
},
|
|
318
318
|
},
|
|
319
319
|
};
|
|
320
|
-
var templateObject_1$
|
|
320
|
+
var templateObject_1$S, templateObject_2$M, templateObject_3$E, templateObject_4$w, templateObject_5$o, templateObject_6$j;
|
|
321
321
|
|
|
322
322
|
function useElementId(id) {
|
|
323
323
|
return useRef(id || nanoid());
|
|
@@ -600,7 +600,7 @@ var searchableOptionListProps = {
|
|
|
600
600
|
searchDebounce: number,
|
|
601
601
|
searchPlaceholder: string,
|
|
602
602
|
};
|
|
603
|
-
var propTypes$
|
|
603
|
+
var propTypes$1x = __assign(__assign(__assign(__assign({}, spsGlobalPropTypes), spsOptionListPassthroughProps.propTypes), searchableOptionListProps), { attachTo: ref().isRequired, conformWidth: bool, id: string.isRequired, isOpen: bool, keepOpen: bool, keyDown: impl(), nullOption: string, offsets: arrayOf(number), onOptionListChanged: fun(), onOptionSelected: fun(), onPositionFlip: fun(), onSelfToggle: fun(), optionRole: string, positionOverride: arrayOf(enumValue(Position)), selectedOption: any, specialAction: fun(), ignoreWidthStyles: bool });
|
|
604
604
|
|
|
605
605
|
function updateOptions(props, searchState, searchStatePatch, setOptionList, setAnyOptionHasIcon) {
|
|
606
606
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1072,7 +1072,7 @@ var SpsOptionList = React.forwardRef(function (props, ref) {
|
|
|
1072
1072
|
React.createElement("span", null, specialAction.label)))));
|
|
1073
1073
|
});
|
|
1074
1074
|
Object.assign(SpsOptionList, {
|
|
1075
|
-
propTypes: propTypes$
|
|
1075
|
+
propTypes: propTypes$1x,
|
|
1076
1076
|
displayName: 'SpsOptionList',
|
|
1077
1077
|
});
|
|
1078
1078
|
|
|
@@ -1211,7 +1211,7 @@ function useInputPopup(rootRef, popupRef, formMeta) {
|
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
var propsDoc$
|
|
1214
|
+
var propsDoc$1s = {
|
|
1215
1215
|
debounce: 'number',
|
|
1216
1216
|
disabled: 'boolean',
|
|
1217
1217
|
formMeta: 'SpsFormFieldMeta<string>',
|
|
@@ -1226,7 +1226,7 @@ var propsDoc$1p = {
|
|
|
1226
1226
|
value: 'string',
|
|
1227
1227
|
zeroState: 'string',
|
|
1228
1228
|
};
|
|
1229
|
-
var propTypes$
|
|
1229
|
+
var propTypes$1w = __assign(__assign({}, spsGlobalPropTypes), { debounce: number, disabled: bool, formControl: impl(), formMeta: impl(), icon: enumValue(SpsIcon$1), onChange: fun(), placeholder: string, suggestions: oneOfType([
|
|
1230
1230
|
arrayOf(string),
|
|
1231
1231
|
instanceOf(Promise),
|
|
1232
1232
|
fun(),
|
|
@@ -1294,8 +1294,8 @@ function SpsAutocomplete(_a) {
|
|
|
1294
1294
|
React.createElement(SpsOptionList, { id: wrapperId + "_options", ref: optionListRef, attachTo: rootRef, isOpen: showPopup, options: suggestions, hideInlineSearch: true, keyDown: state.keyDown, onOptionSelected: setAndPropagateValue, onPositionFlip: handlePositionFlip, onSelfToggle: handleSelfToggle, offsets: [1, 0], search: value, searchDebounce: debounce, tall: tallOptionList, zeroState: zeroState })));
|
|
1295
1295
|
}
|
|
1296
1296
|
Object.assign(SpsAutocomplete, {
|
|
1297
|
-
props: propsDoc$
|
|
1298
|
-
propTypes: propTypes$
|
|
1297
|
+
props: propsDoc$1s,
|
|
1298
|
+
propTypes: propTypes$1w,
|
|
1299
1299
|
displayName: 'SpsAutocomplete',
|
|
1300
1300
|
});
|
|
1301
1301
|
|
|
@@ -1304,7 +1304,7 @@ var SpsAutocompleteExamples = {
|
|
|
1304
1304
|
label: 'Basic',
|
|
1305
1305
|
examples: {
|
|
1306
1306
|
basic: {
|
|
1307
|
-
react: code(templateObject_1$
|
|
1307
|
+
react: code(templateObject_1$R || (templateObject_1$R = __makeTemplateObject(["\n function DemoComponent() {\n const [color, setColor] = React.useState();\n const colors = [\"red\", \"blue\", \"green\"];\n\n function handleChange(event) {\n setColor(event.target.value);\n }\n\n return (\n <SpsAutocomplete suggestions={colors}\n value={color}\n onChange={handleChange}\n placeholder=\"Enter a color\"\n />\n );\n }\n "], ["\n function DemoComponent() {\n const [color, setColor] = React.useState();\n const colors = [\"red\", \"blue\", \"green\"];\n\n function handleChange(event) {\n setColor(event.target.value);\n }\n\n return (\n <SpsAutocomplete suggestions={colors}\n value={color}\n onChange={handleChange}\n placeholder=\"Enter a color\"\n />\n );\n }\n "]))),
|
|
1308
1308
|
},
|
|
1309
1309
|
disabled: {
|
|
1310
1310
|
jsx: code(templateObject_2$L || (templateObject_2$L = __makeTemplateObject(["\n <SpsAutocomplete suggestions={[\"red\", \"blue\", \"green\"]} value=\"yellow\" disabled id=\"disabledAutocomplete\"/>\n "], ["\n <SpsAutocomplete suggestions={[\"red\", \"blue\", \"green\"]} value=\"yellow\" disabled id=\"disabledAutocomplete\"/>\n "]))),
|
|
@@ -1329,9 +1329,9 @@ var SpsAutocompleteExamples = {
|
|
|
1329
1329
|
},
|
|
1330
1330
|
},
|
|
1331
1331
|
};
|
|
1332
|
-
var templateObject_1$
|
|
1332
|
+
var templateObject_1$R, templateObject_2$L, templateObject_3$D, templateObject_4$v, templateObject_5$n, templateObject_6$i;
|
|
1333
1333
|
|
|
1334
|
-
var propsDoc$
|
|
1334
|
+
var propsDoc$1r = {
|
|
1335
1335
|
alignLeft: 'boolean',
|
|
1336
1336
|
disabled: 'boolean',
|
|
1337
1337
|
icon: 'SpsIcon',
|
|
@@ -1344,7 +1344,7 @@ var propsDoc$1o = {
|
|
|
1344
1344
|
onOpen: '() => void',
|
|
1345
1345
|
onClose: '() => void',
|
|
1346
1346
|
};
|
|
1347
|
-
var propTypes$
|
|
1347
|
+
var propTypes$1v = __assign(__assign({}, spsGlobalPropTypes), { alignLeft: bool, disabled: bool, icon: enumValue(SpsIcon$1), kind: enumValue(DropdownKind), label: string,
|
|
1348
1348
|
// eslint thinks there is a space between the name and open paren below for some reason
|
|
1349
1349
|
// eslint-disable-next-line no-spaced-func
|
|
1350
1350
|
options: arrayOf(oneOfType([func, any])).isRequired, spinning: bool, spinningTitle: string, tallOptionList: bool, onOpen: fun(), onClose: fun() });
|
|
@@ -1439,13 +1439,13 @@ function SpsDropdown(props) {
|
|
|
1439
1439
|
spinning && (React.createElement("div", { className: "sps-spinner", key: 1 }, spinningTitle || t('design-system:button.spinningTitle')))))));
|
|
1440
1440
|
}
|
|
1441
1441
|
Object.assign(SpsDropdown, {
|
|
1442
|
-
props: propsDoc$
|
|
1443
|
-
propTypes: propTypes$
|
|
1442
|
+
props: propsDoc$1r,
|
|
1443
|
+
propTypes: propTypes$1v,
|
|
1444
1444
|
displayName: 'SpsDropdown',
|
|
1445
1445
|
});
|
|
1446
1446
|
|
|
1447
|
-
var propsDoc$
|
|
1448
|
-
var propTypes$
|
|
1447
|
+
var propsDoc$1q = {};
|
|
1448
|
+
var propTypes$1u = __assign({}, spsGlobalPropTypes);
|
|
1449
1449
|
function SpsButtonGroup(props) {
|
|
1450
1450
|
var children = props.children, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "unsafelyReplaceClassName"]);
|
|
1451
1451
|
var _a = __read(selectChildren(children, [
|
|
@@ -1463,8 +1463,8 @@ function SpsButtonGroup(props) {
|
|
|
1463
1463
|
others.length > 0 && others));
|
|
1464
1464
|
}
|
|
1465
1465
|
Object.assign(SpsButtonGroup, {
|
|
1466
|
-
props: propsDoc$
|
|
1467
|
-
propTypes: propTypes$
|
|
1466
|
+
props: propsDoc$1q,
|
|
1467
|
+
propTypes: propTypes$1u,
|
|
1468
1468
|
displayName: 'SpsButtonGroup',
|
|
1469
1469
|
});
|
|
1470
1470
|
|
|
@@ -1481,7 +1481,7 @@ var SpsButtonExamples = {
|
|
|
1481
1481
|
examples: {
|
|
1482
1482
|
basic: {
|
|
1483
1483
|
description: 'Without Icons',
|
|
1484
|
-
jsx: code(templateObject_1$
|
|
1484
|
+
jsx: code(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n <>\n <SpsButton className=\"mr-1 mb-1\">Default</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.KEY}>Key</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.CONFIRM}>Confirm</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.DELETE}>Delete</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" disabled>Disabled</SpsButton>\n </>\n "], ["\n <>\n <SpsButton className=\"mr-1 mb-1\">Default</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.KEY}>Key</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.CONFIRM}>Confirm</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" kind={ButtonKind.DELETE}>Delete</SpsButton>\n <SpsButton className=\"mr-1 mb-1\" disabled>Disabled</SpsButton>\n </>\n "]))),
|
|
1485
1485
|
},
|
|
1486
1486
|
buttonsWithIcons: {
|
|
1487
1487
|
description: 'With Icons',
|
|
@@ -1659,14 +1659,14 @@ var SpsButtonExamples = {
|
|
|
1659
1659
|
},
|
|
1660
1660
|
},
|
|
1661
1661
|
};
|
|
1662
|
-
var templateObject_1$
|
|
1662
|
+
var templateObject_1$Q, templateObject_2$K, templateObject_3$C, templateObject_4$u, templateObject_5$m, templateObject_6$h, templateObject_7$e, templateObject_8$d, templateObject_9$a, templateObject_10$8, templateObject_11$6, templateObject_12$4, templateObject_13$4, templateObject_14$4, templateObject_15$3, templateObject_16$2, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1;
|
|
1663
1663
|
|
|
1664
|
-
var propsDoc$
|
|
1664
|
+
var propsDoc$1p = {
|
|
1665
1665
|
content: 'ReactNodeLike',
|
|
1666
1666
|
icon: 'SpsIcon',
|
|
1667
1667
|
title: 'string',
|
|
1668
1668
|
};
|
|
1669
|
-
var propTypes$
|
|
1669
|
+
var propTypes$1t = __assign(__assign({}, spsGlobalPropTypes), { content: node, icon: enumValue(SpsIcon$1), title: string });
|
|
1670
1670
|
function SpsCardHeader(props) {
|
|
1671
1671
|
var content = props.content, className = props.className, icon = props.icon, title = props.title; props["data-testid"]; var unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["content", "className", "icon", "title", 'data-testid', "unsafelyReplaceClassName"]);
|
|
1672
1672
|
var classes = clsx(unsafelyReplaceClassName || 'sps-card__header', className);
|
|
@@ -1679,16 +1679,16 @@ function SpsCardHeader(props) {
|
|
|
1679
1679
|
React.createElement("div", { className: "sps-card__header-content" }, content)));
|
|
1680
1680
|
}
|
|
1681
1681
|
Object.assign(SpsCardHeader, {
|
|
1682
|
-
props: propsDoc$
|
|
1683
|
-
propTypes: propTypes$
|
|
1682
|
+
props: propsDoc$1p,
|
|
1683
|
+
propTypes: propTypes$1t,
|
|
1684
1684
|
displayName: 'SpsCardHeader',
|
|
1685
1685
|
});
|
|
1686
1686
|
|
|
1687
|
-
var propsDoc$
|
|
1687
|
+
var propsDoc$1o = {
|
|
1688
1688
|
icon: 'SpsIcon',
|
|
1689
1689
|
kind: 'TagKind',
|
|
1690
1690
|
};
|
|
1691
|
-
var propTypes$
|
|
1691
|
+
var propTypes$1s = __assign(__assign({}, spsGlobalPropTypes), { icon: enumValue(SpsIcon$1), kind: enumValue(TagKind) });
|
|
1692
1692
|
function SpsTag(props) {
|
|
1693
1693
|
var children = props.children, className = props.className, icon = props.icon, _a = props.kind, kind = _a === void 0 ? TagKind.DEFAULT : _a, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "icon", "kind", 'data-testid', "unsafelyReplaceClassName"]);
|
|
1694
1694
|
var title = React.Children.toArray(children)
|
|
@@ -1700,12 +1700,12 @@ function SpsTag(props) {
|
|
|
1700
1700
|
children));
|
|
1701
1701
|
}
|
|
1702
1702
|
Object.assign(SpsTag, {
|
|
1703
|
-
props: propsDoc$
|
|
1704
|
-
propTypes: propTypes$
|
|
1703
|
+
props: propsDoc$1o,
|
|
1704
|
+
propTypes: propTypes$1s,
|
|
1705
1705
|
displayName: 'SpsTag',
|
|
1706
1706
|
});
|
|
1707
1707
|
|
|
1708
|
-
var propsDoc$
|
|
1708
|
+
var propsDoc$1n = {
|
|
1709
1709
|
activateTab: 'Function',
|
|
1710
1710
|
active: 'boolean',
|
|
1711
1711
|
icon: 'SpsIcon',
|
|
@@ -1715,7 +1715,7 @@ var propsDoc$1k = {
|
|
|
1715
1715
|
tagKind: 'TagKind',
|
|
1716
1716
|
tagIcon: 'SpsIcon',
|
|
1717
1717
|
};
|
|
1718
|
-
var propTypes$
|
|
1718
|
+
var propTypes$1r = __assign(__assign({}, spsGlobalPropTypes), { activateTab: func, active: bool, icon: enumValue(SpsIcon$1), label: string, index: number, tag: string, tagKind: enumValue(TagKind), tagIcon: enumValue(SpsIcon$1) });
|
|
1719
1719
|
function SpsCardTabbedPane(props) {
|
|
1720
1720
|
var _this = this;
|
|
1721
1721
|
var activateTab = props.activateTab, active = props.active, children = props.children, className = props.className, label = props.label, icon = props.icon, id = props.id, index = props.index, tag = props.tag, tagKind = props.tagKind, tagIcon = props.tagIcon; props["data-testid"]; var unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["activateTab", "active", "children", "className", "label", "icon", "id", "index", "tag", "tagKind", "tagIcon", 'data-testid', "unsafelyReplaceClassName"]);
|
|
@@ -1736,8 +1736,8 @@ function SpsCardTabbedPane(props) {
|
|
|
1736
1736
|
tag && React.createElement(SpsTag, { kind: tagKind || TagKind.KEY, icon: tagIcon }, tag)));
|
|
1737
1737
|
}
|
|
1738
1738
|
Object.assign(SpsCardTabbedPane, {
|
|
1739
|
-
props: propsDoc$
|
|
1740
|
-
propTypes: propTypes$
|
|
1739
|
+
props: propsDoc$1n,
|
|
1740
|
+
propTypes: propTypes$1r,
|
|
1741
1741
|
displayName: 'SpsCardTabbedPane',
|
|
1742
1742
|
});
|
|
1743
1743
|
|
|
@@ -1812,14 +1812,14 @@ function useTab$1(children, activeTab, isTabbedCard) {
|
|
|
1812
1812
|
return [currentlyActiveTab, activateTab];
|
|
1813
1813
|
}
|
|
1814
1814
|
|
|
1815
|
-
var propsDoc$
|
|
1815
|
+
var propsDoc$1m = {
|
|
1816
1816
|
activeTab: 'string',
|
|
1817
1817
|
footer: 'ReactNodeOrRenderFn',
|
|
1818
1818
|
headerContent: 'ReactNodeOrRenderFn',
|
|
1819
1819
|
headerIcon: 'SpsIcon',
|
|
1820
1820
|
headerTitle: 'string',
|
|
1821
1821
|
};
|
|
1822
|
-
var propTypes$
|
|
1822
|
+
var propTypes$1q = __assign(__assign({}, spsGlobalPropTypes), { activeTab: string, footer: nodeOrRenderFn, headerContent: nodeOrRenderFn, headerIcon: enumValue(SpsIcon$1), headerTitle: string });
|
|
1823
1823
|
function SpsCard(props) {
|
|
1824
1824
|
React.useEffect(function () {
|
|
1825
1825
|
console.log([
|
|
@@ -1850,8 +1850,8 @@ function SpsCard(props) {
|
|
|
1850
1850
|
footer && (React.createElement("div", { className: "sps-card__footer", "data-testid": testId + "__footer" }, contentOf(footer)))));
|
|
1851
1851
|
}
|
|
1852
1852
|
Object.assign(SpsCard, {
|
|
1853
|
-
props: propsDoc$
|
|
1854
|
-
propTypes: propTypes$
|
|
1853
|
+
props: propsDoc$1m,
|
|
1854
|
+
propTypes: propTypes$1q,
|
|
1855
1855
|
displayName: 'SpsCard',
|
|
1856
1856
|
});
|
|
1857
1857
|
|
|
@@ -1861,7 +1861,7 @@ var SpsCardExamples = {
|
|
|
1861
1861
|
description: '<p>Basic Cards can include any type of content, such as tables, forms, description lists, or general copy</p>',
|
|
1862
1862
|
examples: {
|
|
1863
1863
|
basic: {
|
|
1864
|
-
jsx: code(templateObject_1$
|
|
1864
|
+
jsx: code(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n <SpsCardV2>\n <p>Plain card.</p>\n </SpsCardV2>\n "], ["\n <SpsCardV2>\n <p>Plain card.</p>\n </SpsCardV2>\n "]))),
|
|
1865
1865
|
},
|
|
1866
1866
|
sections: {
|
|
1867
1867
|
jsx: code(templateObject_2$J || (templateObject_2$J = __makeTemplateObject(["\n <SpsCardV2>\n <section>\n <h3>Description</h3>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt\n ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in\n voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat\n non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </section>\n <section>\n <h3>Usage Guidelines</h3>\n <p>\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque\n laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi\n architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit\n aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione\n voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,\n consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et\n dolore magnam aliquam quaerat voluptatem.\n </p>\n </section>\n </SpsCardV2>\n "], ["\n <SpsCardV2>\n <section>\n <h3>Description</h3>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt\n ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco\n laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in\n voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat\n non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </section>\n <section>\n <h3>Usage Guidelines</h3>\n <p>\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque\n laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi\n architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit\n aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione\n voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet,\n consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et\n dolore magnam aliquam quaerat voluptatem.\n </p>\n </section>\n </SpsCardV2>\n "]))),
|
|
@@ -1923,9 +1923,9 @@ var SpsCardExamples = {
|
|
|
1923
1923
|
},
|
|
1924
1924
|
},
|
|
1925
1925
|
};
|
|
1926
|
-
var templateObject_1$
|
|
1926
|
+
var templateObject_1$P, templateObject_2$J, templateObject_3$B, templateObject_4$t, templateObject_5$l, templateObject_6$g, templateObject_7$d, templateObject_8$c, templateObject_9$9, templateObject_10$7, templateObject_11$5, templateObject_12$3, templateObject_13$3, templateObject_14$3, templateObject_15$2;
|
|
1927
1927
|
|
|
1928
|
-
var propsDoc$
|
|
1928
|
+
var propsDoc$1l = {
|
|
1929
1929
|
checked: 'boolean',
|
|
1930
1930
|
disabled: 'boolean',
|
|
1931
1931
|
formMeta: 'SpsFormFieldMeta<boolean>',
|
|
@@ -1934,7 +1934,7 @@ var propsDoc$1i = {
|
|
|
1934
1934
|
label: 'string',
|
|
1935
1935
|
onChange: 'ChangeEventHandler',
|
|
1936
1936
|
};
|
|
1937
|
-
var propTypes$
|
|
1937
|
+
var propTypes$1p = __assign(__assign({}, spsGlobalPropTypes), { checked: bool, disabled: bool, formControl: impl(), formMeta: impl(), indeterminate: bool, inline: bool, label: string, onChange: fun() });
|
|
1938
1938
|
function SpsCheckbox(_a) {
|
|
1939
1939
|
var checkedProp = _a.checked, className = _a.className, disabled = _a.disabled, formControl = _a.formControl, formMeta = _a.formMeta, id = _a.id, indeterminateProp = _a.indeterminate, inline = _a.inline, label = _a.label, onChange = _a.onChange, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, rest = __rest(_a, ["checked", "className", "disabled", "formControl", "formMeta", "id", "indeterminate", "inline", "label", "onChange", 'data-testid', "unsafelyReplaceClassName"]);
|
|
1940
1940
|
var meta = formMeta || formControl;
|
|
@@ -1965,15 +1965,15 @@ function SpsCheckbox(_a) {
|
|
|
1965
1965
|
React.createElement("label", { className: "sps-checkable__label", htmlFor: controlId }, label || '')));
|
|
1966
1966
|
}
|
|
1967
1967
|
Object.assign(SpsCheckbox, {
|
|
1968
|
-
props: propsDoc$
|
|
1969
|
-
propTypes: propTypes$
|
|
1968
|
+
props: propsDoc$1l,
|
|
1969
|
+
propTypes: propTypes$1p,
|
|
1970
1970
|
displayName: 'SpsCheckbox',
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
1973
|
var SpsCheckboxExamples = {
|
|
1974
1974
|
labels: {
|
|
1975
1975
|
label: 'Labels',
|
|
1976
|
-
description: code(templateObject_1$
|
|
1976
|
+
description: code(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n <p>An individual checkbox should be labeled with its own <code>label</code> prop,\n not the <code><SpsLabel></code> component.</p>\n "], ["\n <p>An individual checkbox should be labeled with its own <code>label</code> prop,\n not the <code><SpsLabel></code> component.</p>\n "]))),
|
|
1977
1977
|
examples: {
|
|
1978
1978
|
label: {
|
|
1979
1979
|
react: code(templateObject_2$I || (templateObject_2$I = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n red: true,\n blue: false,\n green: false,\n })\n\n return <>\n <SpsCheckbox\n name=\"red\"\n label=\"Red\"\n checked={formValue.red}\n formMeta={formMeta.fields.red}\n />\n <SpsCheckbox\n name=\"blue\"\n label=\"Blue\"\n checked={formValue.blue}\n formMeta={formMeta.fields.blue}\n />\n <SpsCheckbox\n name=\"green\"\n label=\"Green\"\n checked={formValue.green}\n formMeta={formMeta.fields.green}\n indeterminate\n />\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n red: true,\n blue: false,\n green: false,\n })\n\n return <>\n <SpsCheckbox\n name=\"red\"\n label=\"Red\"\n checked={formValue.red}\n formMeta={formMeta.fields.red}\n />\n <SpsCheckbox\n name=\"blue\"\n label=\"Blue\"\n checked={formValue.blue}\n formMeta={formMeta.fields.blue}\n />\n <SpsCheckbox\n name=\"green\"\n label=\"Green\"\n checked={formValue.green}\n formMeta={formMeta.fields.green}\n indeterminate\n />\n </>\n }\n "]))),
|
|
@@ -1998,16 +1998,16 @@ var SpsCheckboxExamples = {
|
|
|
1998
1998
|
},
|
|
1999
1999
|
},
|
|
2000
2000
|
};
|
|
2001
|
-
var templateObject_1$
|
|
2001
|
+
var templateObject_1$O, templateObject_2$I, templateObject_3$A, templateObject_4$s, templateObject_5$k;
|
|
2002
2002
|
|
|
2003
|
-
var propsDoc$
|
|
2003
|
+
var propsDoc$1k = {
|
|
2004
2004
|
disabled: 'boolean',
|
|
2005
2005
|
href: 'string',
|
|
2006
2006
|
kind: 'ClickableTagKind',
|
|
2007
2007
|
onAdd: '() => void',
|
|
2008
2008
|
onRemove: '() => void',
|
|
2009
2009
|
};
|
|
2010
|
-
var propTypes$
|
|
2010
|
+
var propTypes$1o = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, href: string, kind: enumValue(ClickableTagKind), onAdd: fun(), onRemove: fun() });
|
|
2011
2011
|
function SpsClickableTag(props) {
|
|
2012
2012
|
var children = props.children, className = props.className, disabled = props.disabled, href = props.href, _a = props.kind, kind = _a === void 0 ? ClickableTagKind.BLUE : _a, onAdd = props.onAdd, onRemove = props.onRemove, onClick = props.onClick, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "disabled", "href", "kind", "onAdd", "onRemove", "onClick", 'data-testid', "unsafelyReplaceClassName"]);
|
|
2013
2013
|
var classes = clsx(unsafelyReplaceClassName || 'sps-clickable-tag', "sps-clickable-tag--" + kind, className, disabled && 'sps-clickable-tag--disabled', (onAdd || onRemove) && 'sps-clickable-tag--icon');
|
|
@@ -2062,8 +2062,8 @@ function SpsMultiSelectTag(props) {
|
|
|
2062
2062
|
return React.createElement(SpsClickableTag, __assign({}, clickableTagProps), children);
|
|
2063
2063
|
}
|
|
2064
2064
|
Object.assign(SpsClickableTag, {
|
|
2065
|
-
props: propsDoc$
|
|
2066
|
-
propTypes: propTypes$
|
|
2065
|
+
props: propsDoc$1k,
|
|
2066
|
+
propTypes: propTypes$1o,
|
|
2067
2067
|
displayName: 'SpsClickableTag',
|
|
2068
2068
|
});
|
|
2069
2069
|
|
|
@@ -2072,7 +2072,7 @@ var SpsClickableTagExamples = {
|
|
|
2072
2072
|
label: 'Basic',
|
|
2073
2073
|
examples: {
|
|
2074
2074
|
basic: {
|
|
2075
|
-
react: code(templateObject_1$
|
|
2075
|
+
react: code(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n import { SpsClickableTag } from \"@spscommerce/ds-react\";\n import { ClickableTagKind } from \"@spscommerce/ds-shared\";\n function Component() {\n return (\n <>\n <SpsClickableTag className=\"mt-1 ml-1\">Blue</SpsClickableTag>\n <SpsClickableTag className=\"mt-1 ml-1\" kind={ClickableTagKind.GRAY}>\n Gray\n </SpsClickableTag>\n </>\n );\n }\n "], ["\n import { SpsClickableTag } from \"@spscommerce/ds-react\";\n import { ClickableTagKind } from \"@spscommerce/ds-shared\";\n function Component() {\n return (\n <>\n <SpsClickableTag className=\"mt-1 ml-1\">Blue</SpsClickableTag>\n <SpsClickableTag className=\"mt-1 ml-1\" kind={ClickableTagKind.GRAY}>\n Gray\n </SpsClickableTag>\n </>\n );\n }\n "]))),
|
|
2076
2076
|
},
|
|
2077
2077
|
disabled: {
|
|
2078
2078
|
react: code(templateObject_2$H || (templateObject_2$H = __makeTemplateObject(["\n import { SpsClickableTag } from \"@spscommerce/ds-react\";\n function Component() {\n return (\n <SpsClickableTag className=\"mt-1 ml-1\" disabled>\n Disabled\n </SpsClickableTag>\n );\n }\n "], ["\n import { SpsClickableTag } from \"@spscommerce/ds-react\";\n function Component() {\n return (\n <SpsClickableTag className=\"mt-1 ml-1\" disabled>\n Disabled\n </SpsClickableTag>\n );\n }\n "]))),
|
|
@@ -2102,9 +2102,9 @@ var SpsClickableTagExamples = {
|
|
|
2102
2102
|
},
|
|
2103
2103
|
},
|
|
2104
2104
|
};
|
|
2105
|
-
var templateObject_1$
|
|
2105
|
+
var templateObject_1$N, templateObject_2$H, templateObject_3$z, templateObject_4$r, templateObject_5$j, templateObject_6$f;
|
|
2106
2106
|
|
|
2107
|
-
var propsDoc$
|
|
2107
|
+
var propsDoc$1j = {
|
|
2108
2108
|
index: 'number',
|
|
2109
2109
|
key: 'string',
|
|
2110
2110
|
columnId: 'string',
|
|
@@ -2113,7 +2113,7 @@ var propsDoc$1g = {
|
|
|
2113
2113
|
onDelete: '(columnValue: string) => void',
|
|
2114
2114
|
mandatory: 'boolean',
|
|
2115
2115
|
};
|
|
2116
|
-
var propTypes$
|
|
2116
|
+
var propTypes$1n = __assign(__assign({}, spsGlobalPropTypes), { index: number, key: string, columnId: string, name: string, value: string, onDelete: fun(), mandatory: bool });
|
|
2117
2117
|
function SpsColumnChooserColumn(props) {
|
|
2118
2118
|
var index = props.index; props.key; var columnId = props.columnId, name = props.name, value = props.value, onDelete = props.onDelete, mandatory = props.mandatory, rest = __rest(props, ["index", "key", "columnId", "name", "value", "onDelete", "mandatory"]);
|
|
2119
2119
|
var t = React.useContext(I18nContext).t;
|
|
@@ -2132,19 +2132,19 @@ function SpsColumnChooserColumn(props) {
|
|
|
2132
2132
|
} })))))); }));
|
|
2133
2133
|
}
|
|
2134
2134
|
Object.assign(SpsColumnChooserColumn, {
|
|
2135
|
-
props: propsDoc$
|
|
2136
|
-
propTypes: propTypes$
|
|
2135
|
+
props: propsDoc$1j,
|
|
2136
|
+
propTypes: propTypes$1n,
|
|
2137
2137
|
displayName: 'SpsColumnChooserColumn',
|
|
2138
2138
|
});
|
|
2139
2139
|
|
|
2140
2140
|
// TODO: Put English strings into i18n system
|
|
2141
|
-
var propsDoc$
|
|
2141
|
+
var propsDoc$1i = {
|
|
2142
2142
|
maxSelectedColumns: 'number',
|
|
2143
2143
|
unselectedColumns: 'ColumnProps[]',
|
|
2144
2144
|
selectedColumns: 'ColumnProps[]',
|
|
2145
2145
|
onApplyChanges: '(selectedColumns: ColumnProps[]) => void',
|
|
2146
2146
|
};
|
|
2147
|
-
var propTypes$
|
|
2147
|
+
var propTypes$1m = __assign(__assign({}, spsGlobalPropTypes), { maxSelectedColumns: number, unselectedColumns: array, selectedColumns: array, onApplyChanges: fun() });
|
|
2148
2148
|
function SpsColumnChooser(props) {
|
|
2149
2149
|
var unselectedColumns = props.unselectedColumns, selectedColumns = props.selectedColumns, maxSelectedColumns = props.maxSelectedColumns, onApplyChanges = props.onApplyChanges, className = props.className; props.unsafelyReplaceClassName; var rest = __rest(props, ["unselectedColumns", "selectedColumns", "maxSelectedColumns", "onApplyChanges", "className", "unsafelyReplaceClassName"]);
|
|
2150
2150
|
var _a = __read(usePatchReducer({
|
|
@@ -2232,8 +2232,8 @@ function SpsColumnChooser(props) {
|
|
|
2232
2232
|
provided.placeholder)); }))))));
|
|
2233
2233
|
}
|
|
2234
2234
|
Object.assign(SpsColumnChooser, {
|
|
2235
|
-
props: propsDoc$
|
|
2236
|
-
propTypes: propTypes$
|
|
2235
|
+
props: propsDoc$1i,
|
|
2236
|
+
propTypes: propTypes$1m,
|
|
2237
2237
|
displayName: 'SpsColumnChooser',
|
|
2238
2238
|
});
|
|
2239
2239
|
|
|
@@ -2243,45 +2243,45 @@ var SpsColumnChooserExamples = {
|
|
|
2243
2243
|
description: 'Column chooser component',
|
|
2244
2244
|
examples: {
|
|
2245
2245
|
basic: {
|
|
2246
|
-
react: code(templateObject_1$
|
|
2246
|
+
react: code(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n function DemoComponent() {\n const unselectedCols = [\n { name: \"Red Fish\", value: \"Red\" },\n { name: \"Blue Fish\", value: \"Blue\" }\n ];\n const selectedCols = [\n { name: \"One Fish\", value: \"One\" },\n { name: \"Two Fish\", value: \"Two\" }\n ]\n return (\n <SpsColumnChooser\n unselectedColumns={unselectedCols}\n selectedColumns={selectedCols}\n onApplyChanges={(selectedColumns) => {console.log(selectedColumns)}}\n />\n );\n }\n "], ["\n function DemoComponent() {\n const unselectedCols = [\n { name: \"Red Fish\", value: \"Red\" },\n { name: \"Blue Fish\", value: \"Blue\" }\n ];\n const selectedCols = [\n { name: \"One Fish\", value: \"One\" },\n { name: \"Two Fish\", value: \"Two\" }\n ]\n return (\n <SpsColumnChooser\n unselectedColumns={unselectedCols}\n selectedColumns={selectedCols}\n onApplyChanges={(selectedColumns) => {console.log(selectedColumns)}}\n />\n );\n }\n "]))),
|
|
2247
2247
|
},
|
|
2248
2248
|
},
|
|
2249
2249
|
},
|
|
2250
2250
|
};
|
|
2251
|
-
var templateObject_1$
|
|
2251
|
+
var templateObject_1$M;
|
|
2252
2252
|
|
|
2253
|
-
var propsDoc$
|
|
2253
|
+
var propsDoc$1h = {
|
|
2254
2254
|
icon: { type: 'SpsIcon', required: true },
|
|
2255
2255
|
size: 'SpsIconSize',
|
|
2256
2256
|
};
|
|
2257
|
-
var propTypes$
|
|
2257
|
+
var propTypes$1l = __assign(__assign({}, spsGlobalPropTypes), { icon: enumValue(SpsIcon$1).isRequired, size: enumValue(SpsIconSize) });
|
|
2258
2258
|
function SpsIcon(props) {
|
|
2259
2259
|
var className = props.className, testId = props["data-testid"], icon = props.icon, _a = props.size, size = _a === void 0 ? SpsIconSize.MEDIUM : _a, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["className", 'data-testid', "icon", "size", "unsafelyReplaceClassName"]);
|
|
2260
2260
|
var classes = clsx(unsafelyReplaceClassName || 'sps-icon', "sps-icon-" + icon, "sps-icon--" + size, className);
|
|
2261
2261
|
return React.createElement("i", __assign({ className: classes, "aria-hidden": "true", "data-testid": testId }, rest));
|
|
2262
2262
|
}
|
|
2263
2263
|
Object.assign(SpsIcon, {
|
|
2264
|
-
props: propsDoc$
|
|
2265
|
-
propTypes: propTypes$
|
|
2264
|
+
props: propsDoc$1h,
|
|
2265
|
+
propTypes: propTypes$1l,
|
|
2266
2266
|
displayName: 'SpsI',
|
|
2267
2267
|
});
|
|
2268
2268
|
function SpsI(props) {
|
|
2269
2269
|
return React.createElement(SpsIcon, __assign({}, props));
|
|
2270
2270
|
}
|
|
2271
2271
|
Object.assign(SpsI, {
|
|
2272
|
-
props: propsDoc$
|
|
2273
|
-
propTypes: propTypes$
|
|
2272
|
+
props: propsDoc$1h,
|
|
2273
|
+
propTypes: propTypes$1l,
|
|
2274
2274
|
displayName: 'SpsI',
|
|
2275
2275
|
});
|
|
2276
2276
|
|
|
2277
|
-
var propsDoc$
|
|
2277
|
+
var propsDoc$1g = {
|
|
2278
2278
|
borderless: 'boolean',
|
|
2279
2279
|
lean: 'boolean',
|
|
2280
2280
|
leaner: { type: 'boolean', deprecated: true },
|
|
2281
2281
|
widthPx: 'number',
|
|
2282
2282
|
widthRem: 'number',
|
|
2283
2283
|
};
|
|
2284
|
-
var propTypes$
|
|
2284
|
+
var propTypes$1k = __assign(__assign({}, spsGlobalPropTypes), { borderless: bool, lean: bool, leaner: bool, widthPx: number, widthRem: number });
|
|
2285
2285
|
function SpsContentRowCol(props) {
|
|
2286
2286
|
var borderless = props.borderless, children = props.children; props.className; var lean = props.lean, leaner = props.leaner, style = props.style, unsafelyReplaceClassName = props.unsafelyReplaceClassName, widthPx = props.widthPx, widthRem = props.widthRem, rest = __rest(props, ["borderless", "children", "className", "lean", "leaner", "style", "unsafelyReplaceClassName", "widthPx", "widthRem"]);
|
|
2287
2287
|
React.useEffect(function () {
|
|
@@ -2301,25 +2301,25 @@ function SpsContentRowCol(props) {
|
|
|
2301
2301
|
return (React.createElement("div", __assign({}, rest, { className: classes, style: inlineStyles }), children));
|
|
2302
2302
|
}
|
|
2303
2303
|
Object.assign(SpsContentRowCol, {
|
|
2304
|
-
props: propsDoc$
|
|
2305
|
-
propTypes: propTypes$
|
|
2304
|
+
props: propsDoc$1g,
|
|
2305
|
+
propTypes: propTypes$1k,
|
|
2306
2306
|
displayName: 'SpsContentRowCol',
|
|
2307
2307
|
});
|
|
2308
2308
|
|
|
2309
|
-
var propsDoc$
|
|
2310
|
-
var propTypes$
|
|
2309
|
+
var propsDoc$1f = {};
|
|
2310
|
+
var propTypes$1j = __assign({}, spsGlobalPropTypes);
|
|
2311
2311
|
function SpsContentRowExpansion(props) {
|
|
2312
2312
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
2313
2313
|
var classes = clsx(unsafelyReplaceClassName || 'sps-content-row__expansion', className);
|
|
2314
2314
|
return (React.createElement("div", __assign({ className: classes }, rest, { "data-testid": testId + "__expansion" }), children));
|
|
2315
2315
|
}
|
|
2316
2316
|
Object.assign(SpsContentRowExpansion, {
|
|
2317
|
-
props: propsDoc$
|
|
2318
|
-
propTypes: propTypes$
|
|
2317
|
+
props: propsDoc$1f,
|
|
2318
|
+
propTypes: propTypes$1j,
|
|
2319
2319
|
displayName: 'SpsContentRowExpansion',
|
|
2320
2320
|
});
|
|
2321
2321
|
|
|
2322
|
-
var propsDoc$
|
|
2322
|
+
var propsDoc$1e = {
|
|
2323
2323
|
alternateLayout: 'boolean',
|
|
2324
2324
|
initiallyExpanded: 'boolean',
|
|
2325
2325
|
cardSpacing: 'boolean',
|
|
@@ -2331,7 +2331,7 @@ var propsDoc$1b = {
|
|
|
2331
2331
|
selectable: 'boolean',
|
|
2332
2332
|
selected: 'boolean',
|
|
2333
2333
|
};
|
|
2334
|
-
var propTypes$
|
|
2334
|
+
var propTypes$1i = __assign(__assign({}, spsGlobalPropTypes), { alternateLayout: bool, cardSpacing: bool, initiallyExpanded: bool, onBeforeCollapsed: fun(), onBeforeExpanded: fun(), onSelectionChange: fun(), onCollapsed: fun(), onExpanded: fun(), selectable: bool, selected: bool });
|
|
2335
2335
|
function SpsContentRow(props) {
|
|
2336
2336
|
var _a = props.alternateLayout, alternateLayout = _a === void 0 ? false : _a, children = props.children, className = props.className, onBeforeCollapsed = props.onBeforeCollapsed, onBeforeExpanded = props.onBeforeExpanded, onSelectionChange = props.onSelectionChange, onCollapsed = props.onCollapsed, onExpanded = props.onExpanded, _b = props.initiallyExpanded, initiallyExpanded = _b === void 0 ? false : _b, _c = props.cardSpacing, cardSpacing = _c === void 0 ? false : _c, _d = props.selectable, selectable = _d === void 0 ? false : _d, selected = props.selected, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["alternateLayout", "children", "className", "onBeforeCollapsed", "onBeforeExpanded", "onSelectionChange", "onCollapsed", "onExpanded", "initiallyExpanded", "cardSpacing", "selectable", "selected", "unsafelyReplaceClassName"]);
|
|
2337
2337
|
var t = React.useContext(I18nContext).t;
|
|
@@ -2374,8 +2374,8 @@ function SpsContentRow(props) {
|
|
|
2374
2374
|
expansion));
|
|
2375
2375
|
}
|
|
2376
2376
|
Object.assign(SpsContentRow, {
|
|
2377
|
-
props: propsDoc$
|
|
2378
|
-
propTypes: propTypes$
|
|
2377
|
+
props: propsDoc$1e,
|
|
2378
|
+
propTypes: propTypes$1i,
|
|
2379
2379
|
displayName: 'SpsContentRow',
|
|
2380
2380
|
});
|
|
2381
2381
|
|
|
@@ -2384,7 +2384,7 @@ var SpsContentRowExamples = {
|
|
|
2384
2384
|
label: 'Content rows',
|
|
2385
2385
|
examples: {
|
|
2386
2386
|
basic: {
|
|
2387
|
-
react: code(templateObject_1$
|
|
2387
|
+
react: code(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n function DemoComponent() {\n return (\n <SpsContentRow>\n <SpsContentRowCol>\n <SpsI icon={SpsIcon.STATUS_IN_PROCESS} size={SpsIconSize.LARGE} className=\"mr-2\" />\n <a href=\"#\" className=\"fs-14\">3532379</a>\n </SpsContentRowCol>\n <SpsContentRowCol widthPx={150}>\n May 23, 2018 @ 4:38 PM\n </SpsContentRowCol>\n </SpsContentRow>\n )\n }\n "], ["\n function DemoComponent() {\n return (\n <SpsContentRow>\n <SpsContentRowCol>\n <SpsI icon={SpsIcon.STATUS_IN_PROCESS} size={SpsIconSize.LARGE} className=\"mr-2\" />\n <a href=\"#\" className=\"fs-14\">3532379</a>\n </SpsContentRowCol>\n <SpsContentRowCol widthPx={150}>\n May 23, 2018 @ 4:38 PM\n </SpsContentRowCol>\n </SpsContentRow>\n )\n }\n "]))),
|
|
2388
2388
|
},
|
|
2389
2389
|
withCheckbox: {
|
|
2390
2390
|
react: code(templateObject_2$G || (templateObject_2$G = __makeTemplateObject(["\n function DemoComponent() {\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n selected: false\n });\n\n function selectRow() {\n updateForm({ selected: !formValue.selected })\n }\n\n return (\n <>\n <SpsContentRow\n selectable\n selected={formValue.selected}\n onSelect={selectRow}\n >\n <SpsContentRowCol>\n <SpsI icon={SpsIcon.STATUS_IN_PROCESS} size={SpsIconSize.LARGE} className=\"mr-2\" />\n <a href=\"#\" className=\"fs-14\">3532379</a>\n </SpsContentRowCol>\n <SpsContentRowCol widthPx={150}>\n May 23, 2018 @ 4:38 PM\n </SpsContentRowCol>\n </SpsContentRow>\n </>\n )\n }\n "], ["\n function DemoComponent() {\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n selected: false\n });\n\n function selectRow() {\n updateForm({ selected: !formValue.selected })\n }\n\n return (\n <>\n <SpsContentRow\n selectable\n selected={formValue.selected}\n onSelect={selectRow}\n >\n <SpsContentRowCol>\n <SpsI icon={SpsIcon.STATUS_IN_PROCESS} size={SpsIconSize.LARGE} className=\"mr-2\" />\n <a href=\"#\" className=\"fs-14\">3532379</a>\n </SpsContentRowCol>\n <SpsContentRowCol widthPx={150}>\n May 23, 2018 @ 4:38 PM\n </SpsContentRowCol>\n </SpsContentRow>\n </>\n )\n }\n "]))),
|
|
@@ -2423,7 +2423,7 @@ var SpsContentRowExamples = {
|
|
|
2423
2423
|
},
|
|
2424
2424
|
},
|
|
2425
2425
|
};
|
|
2426
|
-
var templateObject_1$
|
|
2426
|
+
var templateObject_1$L, templateObject_2$G, templateObject_3$y, templateObject_4$q, templateObject_5$i, templateObject_6$e, templateObject_7$c, templateObject_8$b, templateObject_9$8;
|
|
2427
2427
|
|
|
2428
2428
|
var moment$5 = moment$6.default || moment$6;
|
|
2429
2429
|
function newWeekArray$1() {
|
|
@@ -2455,7 +2455,7 @@ function parse(value) {
|
|
|
2455
2455
|
function weekOfMonth$1(date) {
|
|
2456
2456
|
return Math.floor((date.clone().date(1).day() + date.date() - 1) / 7);
|
|
2457
2457
|
}
|
|
2458
|
-
var propsDoc$
|
|
2458
|
+
var propsDoc$1d = {
|
|
2459
2459
|
disabled: 'boolean',
|
|
2460
2460
|
format: 'string',
|
|
2461
2461
|
maxDate: 'string',
|
|
@@ -2465,7 +2465,7 @@ var propsDoc$1a = {
|
|
|
2465
2465
|
placeholder: 'string',
|
|
2466
2466
|
value: 'string',
|
|
2467
2467
|
};
|
|
2468
|
-
var propTypes$
|
|
2468
|
+
var propTypes$1h = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, format: string, maxDate: string, minDate: string, onChange: fun(), onClickOutside: fun(), placeholder: string, value: string });
|
|
2469
2469
|
function SpsDatepicker(props) {
|
|
2470
2470
|
var className = props.className, disabled = props.disabled, _a = props.format, format = _a === void 0 ? moment$5.localeData().longDateFormat('MM/DD/YYYY') || 'MM/DD/YYYY' : _a, maxDate = props.maxDate, minDate = props.minDate, onChange = props.onChange, onClickOutside = props.onClickOutside, _b = props.placeholder, placeholder = _b === void 0 ? 'MM/DD/YYYY' : _b, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, value = props.value, id = props.id, rest = __rest(props, ["className", "disabled", "format", "maxDate", "minDate", "onChange", "onClickOutside", "placeholder", 'data-testid', "unsafelyReplaceClassName", "value", "id"]);
|
|
2471
2471
|
var calendarRef = React.useRef();
|
|
@@ -2800,8 +2800,8 @@ function SpsDatepicker(props) {
|
|
|
2800
2800
|
!disabled && (inputRef && inputRef.current && inputRef.current.value) && (React.createElement("i", { className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn", onClick: handleClearClick }))))));
|
|
2801
2801
|
}
|
|
2802
2802
|
Object.assign(SpsDatepicker, {
|
|
2803
|
-
props: propsDoc$
|
|
2804
|
-
propTypes: propTypes$
|
|
2803
|
+
props: propsDoc$1d,
|
|
2804
|
+
propTypes: propTypes$1h,
|
|
2805
2805
|
displayName: 'SpsDatepicker',
|
|
2806
2806
|
});
|
|
2807
2807
|
|
|
@@ -2810,7 +2810,7 @@ var SpsDatepickerExamples = {
|
|
|
2810
2810
|
label: 'Basic',
|
|
2811
2811
|
examples: {
|
|
2812
2812
|
basic: {
|
|
2813
|
-
react: code(templateObject_1$
|
|
2813
|
+
react: code(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n date: { year: 2018, month: 10, date: 31 },\n }, {\n \"date\": [SpsValidators.date]\n });\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\">\n <SpsLabel for={formMeta.fields.date}>Date</SpsLabel>\n <SpsDatepickerV2\n value={formValue.date}\n formMeta={formMeta.fields.date}\n />\n </div>\n </div>\n );\n }\n "], ["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n date: { year: 2018, month: 10, date: 31 },\n }, {\n \"date\": [SpsValidators.date]\n });\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\">\n <SpsLabel for={formMeta.fields.date}>Date</SpsLabel>\n <SpsDatepickerV2\n value={formValue.date}\n formMeta={formMeta.fields.date}\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
2814
2814
|
},
|
|
2815
2815
|
},
|
|
2816
2816
|
},
|
|
@@ -2831,9 +2831,9 @@ var SpsDatepickerExamples = {
|
|
|
2831
2831
|
},
|
|
2832
2832
|
},
|
|
2833
2833
|
};
|
|
2834
|
-
var templateObject_1$
|
|
2834
|
+
var templateObject_1$K, templateObject_2$F, templateObject_3$x;
|
|
2835
2835
|
|
|
2836
|
-
var propsDoc$
|
|
2836
|
+
var propsDoc$1c = {
|
|
2837
2837
|
placeholder: 'string',
|
|
2838
2838
|
disabled: 'boolean',
|
|
2839
2839
|
format: 'string',
|
|
@@ -2844,7 +2844,7 @@ var propsDoc$19 = {
|
|
|
2844
2844
|
value: 'MomentRange',
|
|
2845
2845
|
preset: 'Duration',
|
|
2846
2846
|
};
|
|
2847
|
-
var propTypes$
|
|
2847
|
+
var propTypes$1g = __assign(__assign({}, spsGlobalPropTypes), { placeholder: string, disabled: bool, format: string, minDate: string, maxDate: string, availablePresets: array, onChange: fun(), value: impl(), preset: impl() });
|
|
2848
2848
|
function weekOfMonth(mmt) {
|
|
2849
2849
|
return Math.floor((mmt.clone().date(1).day() + mmt.date() - 1) / 7);
|
|
2850
2850
|
}
|
|
@@ -3418,8 +3418,8 @@ function SpsDateRangePicker(props) {
|
|
|
3418
3418
|
(currentValue && currentValue.start && currentValue.end && !disabled) ? (React.createElement("i", { className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn", onClick: clear })) : ''))));
|
|
3419
3419
|
}
|
|
3420
3420
|
Object.assign(SpsDateRangePicker, {
|
|
3421
|
-
props: propsDoc$
|
|
3422
|
-
propTypes: propTypes$
|
|
3421
|
+
props: propsDoc$1c,
|
|
3422
|
+
propTypes: propTypes$1g,
|
|
3423
3423
|
displayName: 'SpsDateRangePicker',
|
|
3424
3424
|
});
|
|
3425
3425
|
|
|
@@ -3428,7 +3428,7 @@ var SpsDateRangePickerExamples = {
|
|
|
3428
3428
|
label: 'Basic',
|
|
3429
3429
|
examples: {
|
|
3430
3430
|
basic: {
|
|
3431
|
-
react: code(templateObject_1$
|
|
3431
|
+
react: code(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n dateRange: [\n { year: 2021, month: 4, date: 10 },\n { year: 2021, month: 4, date: 18 }\n ]\n }, {\n \"dateRange\": [SpsValidators.dateRange]\n });\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\">\n <SpsLabel for={formMeta.fields.dateRange}>Date</SpsLabel>\n <SpsDateRangePickerV2\n value={formValue.dateRange}\n formMeta={formMeta.fields.dateRange}\n />\n </div>\n </div>\n );\n }\n "], ["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n dateRange: [\n { year: 2021, month: 4, date: 10 },\n { year: 2021, month: 4, date: 18 }\n ]\n }, {\n \"dateRange\": [SpsValidators.dateRange]\n });\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\">\n <SpsLabel for={formMeta.fields.dateRange}>Date</SpsLabel>\n <SpsDateRangePickerV2\n value={formValue.dateRange}\n formMeta={formMeta.fields.dateRange}\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
3432
3432
|
},
|
|
3433
3433
|
},
|
|
3434
3434
|
},
|
|
@@ -3458,7 +3458,7 @@ var SpsDateRangePickerExamples = {
|
|
|
3458
3458
|
},
|
|
3459
3459
|
},
|
|
3460
3460
|
};
|
|
3461
|
-
var templateObject_1$
|
|
3461
|
+
var templateObject_1$J, templateObject_2$E, templateObject_3$w, templateObject_4$p;
|
|
3462
3462
|
|
|
3463
3463
|
var currentLocale = moment__default.locale();
|
|
3464
3464
|
require('moment/locale/en-au');
|
|
@@ -3556,7 +3556,7 @@ var formatMaps = {
|
|
|
3556
3556
|
LONG_FULLDATETIME: 'LLLL',
|
|
3557
3557
|
LONG_FULLDATETIME_ZONE: 'LLLL z', // Monday February 29, 2016 3:03 PM CST
|
|
3558
3558
|
};
|
|
3559
|
-
var propsDoc$
|
|
3559
|
+
var propsDoc$1b = {
|
|
3560
3560
|
currentUser: 'any',
|
|
3561
3561
|
dateToFormat: 'string | Date',
|
|
3562
3562
|
format: 'string',
|
|
@@ -3565,7 +3565,7 @@ var propsDoc$18 = {
|
|
|
3565
3565
|
relativeHrs: 'number',
|
|
3566
3566
|
tz: 'string',
|
|
3567
3567
|
};
|
|
3568
|
-
var propTypes$
|
|
3568
|
+
var propTypes$1f = __assign(__assign({}, spsGlobalPropTypes), { currentUser: any, dateToFormat: oneOfType([
|
|
3569
3569
|
string,
|
|
3570
3570
|
instanceOf(Date),
|
|
3571
3571
|
]), format: string, locale: string, relative: bool, relativeHrs: number, tz: string });
|
|
@@ -3622,8 +3622,8 @@ function SpsDateTime(props) {
|
|
|
3622
3622
|
})));
|
|
3623
3623
|
}
|
|
3624
3624
|
Object.assign(SpsDateTime, {
|
|
3625
|
-
props: propsDoc$
|
|
3626
|
-
propTypes: propTypes$
|
|
3625
|
+
props: propsDoc$1b,
|
|
3626
|
+
propTypes: propTypes$1f,
|
|
3627
3627
|
displayName: 'SpsDateTime',
|
|
3628
3628
|
});
|
|
3629
3629
|
|
|
@@ -3633,7 +3633,7 @@ var SpsDatetimeExamples = {
|
|
|
3633
3633
|
description: '<p>Formats dates</p>',
|
|
3634
3634
|
examples: {
|
|
3635
3635
|
basicAttribute: {
|
|
3636
|
-
jsx: code(templateObject_1$
|
|
3636
|
+
jsx: code(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n <SpsDateTime dateToFormat=\"2018-09-11T16:32:52.822000Z\" />\n "], ["\n <SpsDateTime dateToFormat=\"2018-09-11T16:32:52.822000Z\" />\n "]))),
|
|
3637
3637
|
},
|
|
3638
3638
|
basicChild: {
|
|
3639
3639
|
jsx: code(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n <SpsDateTime>2018-09-11T16:32:52.822000Z</SpsDateTime>\n "], ["\n <SpsDateTime>2018-09-11T16:32:52.822000Z</SpsDateTime>\n "]))),
|
|
@@ -3641,14 +3641,14 @@ var SpsDatetimeExamples = {
|
|
|
3641
3641
|
},
|
|
3642
3642
|
},
|
|
3643
3643
|
};
|
|
3644
|
-
var templateObject_1$
|
|
3644
|
+
var templateObject_1$I, templateObject_2$D;
|
|
3645
3645
|
|
|
3646
|
-
var propsDoc$
|
|
3646
|
+
var propsDoc$1a = {
|
|
3647
3647
|
compact: 'boolean',
|
|
3648
3648
|
wideTerms: 'boolean',
|
|
3649
3649
|
widerTerms: 'boolean',
|
|
3650
3650
|
};
|
|
3651
|
-
var propTypes$
|
|
3651
|
+
var propTypes$1e = __assign(__assign({}, spsGlobalPropTypes), { compact: bool, wideTerms: bool, widerTerms: bool });
|
|
3652
3652
|
function SpsDescriptionList(props) {
|
|
3653
3653
|
var children = props.children, className = props.className, _a = props.compact, compact = _a === void 0 ? false : _a, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, _b = props.wideTerms, wideTerms = _b === void 0 ? false : _b, _c = props.widerTerms, widerTerms = _c === void 0 ? false : _c, rest = __rest(props, ["children", "className", "compact", 'data-testid', "unsafelyReplaceClassName", "wideTerms", "widerTerms"]);
|
|
3654
3654
|
/** holy shit this is awful. TODO: fix this garbage */
|
|
@@ -3670,37 +3670,37 @@ function SpsDescriptionList(props) {
|
|
|
3670
3670
|
return (React.createElement("dl", __assign({ className: classes, "data-testid": "" + testId }, rest), childrenWithProps));
|
|
3671
3671
|
}
|
|
3672
3672
|
Object.assign(SpsDescriptionList, {
|
|
3673
|
-
props: propsDoc$
|
|
3674
|
-
propTypes: propTypes$
|
|
3673
|
+
props: propsDoc$1a,
|
|
3674
|
+
propTypes: propTypes$1e,
|
|
3675
3675
|
displayName: 'SpsDescriptionList / SpsDl',
|
|
3676
3676
|
});
|
|
3677
3677
|
function SpsDl(p) {
|
|
3678
3678
|
return SpsDescriptionList(p);
|
|
3679
3679
|
}
|
|
3680
3680
|
Object.assign(SpsDl, {
|
|
3681
|
-
props: propsDoc$
|
|
3682
|
-
propTypes: propTypes$
|
|
3681
|
+
props: propsDoc$1a,
|
|
3682
|
+
propTypes: propTypes$1e,
|
|
3683
3683
|
displayName: 'SpsDescriptionList / SpsDl',
|
|
3684
3684
|
});
|
|
3685
3685
|
|
|
3686
|
-
var propsDoc$
|
|
3687
|
-
var propTypes$
|
|
3686
|
+
var propsDoc$19 = {};
|
|
3687
|
+
var propTypes$1d = __assign({}, spsGlobalPropTypes);
|
|
3688
3688
|
function SpsDescriptionListDefinition(props) {
|
|
3689
3689
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
3690
3690
|
var classes = clsx(unsafelyReplaceClassName || 'sps-description-list__definition', className);
|
|
3691
3691
|
return (React.createElement("dd", __assign({ className: classes, "data-testid": "" + testId }, rest), children));
|
|
3692
3692
|
}
|
|
3693
3693
|
Object.assign(SpsDescriptionListDefinition, {
|
|
3694
|
-
props: propsDoc$
|
|
3695
|
-
propTypes: propTypes$
|
|
3694
|
+
props: propsDoc$19,
|
|
3695
|
+
propTypes: propTypes$1d,
|
|
3696
3696
|
displayName: 'SpsDescriptionListDefinition / SpsDd',
|
|
3697
3697
|
});
|
|
3698
3698
|
function SpsDd(p) {
|
|
3699
3699
|
return SpsDescriptionListDefinition(p);
|
|
3700
3700
|
}
|
|
3701
3701
|
Object.assign(SpsDd, {
|
|
3702
|
-
props: propsDoc$
|
|
3703
|
-
propTypes: propTypes$
|
|
3702
|
+
props: propsDoc$19,
|
|
3703
|
+
propTypes: propTypes$1d,
|
|
3704
3704
|
displayName: 'SpsDescriptionListDefinition / SpsDd',
|
|
3705
3705
|
});
|
|
3706
3706
|
|
|
@@ -3718,7 +3718,7 @@ function toggleTooltipState(state) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
var CARET_SPACING_PX = 13;
|
|
3720
3720
|
var openTips = new Map();
|
|
3721
|
-
var propsDoc$
|
|
3721
|
+
var propsDoc$18 = {
|
|
3722
3722
|
for: { type: 'React.MutableRefObject<any> | string', required: true },
|
|
3723
3723
|
hideDelay: 'number',
|
|
3724
3724
|
isShown: 'TooltipVisibility',
|
|
@@ -3730,7 +3730,7 @@ var propsDoc$15 = {
|
|
|
3730
3730
|
showOn: 'TooltipShowTrigger',
|
|
3731
3731
|
title: 'string',
|
|
3732
3732
|
};
|
|
3733
|
-
var propTypes$
|
|
3733
|
+
var propTypes$1c = __assign(__assign({}, spsGlobalPropTypes), { for: oneOfType([ref(), string]).isRequired, hideDelay: number, isShown: enumValue(TooltipVisibility), kind: enumValue(TooltipKind), offsets: arrayOf(number), onDeferred: fun(), position: enumValue(Position), altPosition: enumValue(Position), showOn: enumValue(TooltipShowTrigger), title: string });
|
|
3734
3734
|
function SpsTooltip(_a) {
|
|
3735
3735
|
var children = _a.children, className = _a.className, forProp = _a.for, testId = _a["data-testid"], _b = _a.hideDelay, hideDelay = _b === void 0 ? TOOLTIP_HIDE_DELAY_MS_DEFAULT : _b, isShown = _a.isShown, _c = _a.kind, kind = _c === void 0 ? TooltipKind.DEFAULT : _c, _d = _a.offsets, offsets = _d === void 0 ? [0, 0] : _d, onDeferred = _a.onDeferred, _e = _a.position, position = _e === void 0 ? Position.TOP_MIDDLE : _e, _f = _a.altPosition, altPosition = _f === void 0 ? flipPosition(position) : _f, _g = _a.showOn, showOn = _g === void 0 ? TooltipShowTrigger.MOUSEOVER : _g, style = _a.style, title = _a.title, unsafelyReplaceClassName = _a.unsafelyReplaceClassName;
|
|
3736
3736
|
var iref = React.useRef({
|
|
@@ -3888,19 +3888,19 @@ function SpsTooltip(_a) {
|
|
|
3888
3888
|
React.createElement("span", { className: "sps-tooltip__caret" })));
|
|
3889
3889
|
}
|
|
3890
3890
|
Object.assign(SpsTooltip, {
|
|
3891
|
-
props: propsDoc$
|
|
3892
|
-
propTypes: propTypes$
|
|
3891
|
+
props: propsDoc$18,
|
|
3892
|
+
propTypes: propTypes$1c,
|
|
3893
3893
|
displayName: 'SpsTooltip',
|
|
3894
3894
|
});
|
|
3895
3895
|
|
|
3896
|
-
var propsDoc$
|
|
3896
|
+
var propsDoc$17 = {
|
|
3897
3897
|
error: 'boolean',
|
|
3898
3898
|
errors: 'ReactNodeOrRenderFn',
|
|
3899
3899
|
help: 'ReactNodeOrRenderFn',
|
|
3900
3900
|
labelFor: 'SpsFormFieldMeta<any>',
|
|
3901
3901
|
required: 'boolean',
|
|
3902
3902
|
};
|
|
3903
|
-
var propTypes$
|
|
3903
|
+
var propTypes$1b = __assign(__assign({}, spsGlobalPropTypes), { error: bool, errors: nodeOrRenderFn, help: nodeOrRenderFn, labelFor: oneOfType([
|
|
3904
3904
|
impl(),
|
|
3905
3905
|
impl(),
|
|
3906
3906
|
]), required: bool });
|
|
@@ -3929,16 +3929,16 @@ function SpsDescriptionListTerm(props) {
|
|
|
3929
3929
|
React.createElement(SpsTooltip, { kind: tipKind, for: dtElement, showOn: TooltipShowTrigger.MANUAL, isShown: showTip }, contentOf(tipKind === TooltipKind.ERROR ? errors : help))));
|
|
3930
3930
|
}
|
|
3931
3931
|
Object.assign(SpsDescriptionListTerm, {
|
|
3932
|
-
props: propsDoc$
|
|
3933
|
-
propTypes: propTypes$
|
|
3932
|
+
props: propsDoc$17,
|
|
3933
|
+
propTypes: propTypes$1b,
|
|
3934
3934
|
displayName: 'SpsDescriptionListTerm / SpsDt',
|
|
3935
3935
|
});
|
|
3936
3936
|
function SpsDt(p) {
|
|
3937
3937
|
return SpsDescriptionListTerm(p);
|
|
3938
3938
|
}
|
|
3939
3939
|
Object.assign(SpsDt, {
|
|
3940
|
-
props: propsDoc$
|
|
3941
|
-
propTypes: propTypes$
|
|
3940
|
+
props: propsDoc$17,
|
|
3941
|
+
propTypes: propTypes$1b,
|
|
3942
3942
|
displayName: 'SpsDescriptionListTerm / SpsDt',
|
|
3943
3943
|
});
|
|
3944
3944
|
|
|
@@ -3947,7 +3947,7 @@ var SpsDescriptionListExamples = {
|
|
|
3947
3947
|
label: 'Basic Description List',
|
|
3948
3948
|
examples: {
|
|
3949
3949
|
basic: {
|
|
3950
|
-
jsx: code(templateObject_1$
|
|
3950
|
+
jsx: code(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n <SpsDl>\n <SpsDt>Term 1</SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>Term</SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>\n Term that wraps to the next line cause it's got so dang much text in it.\n </SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>Term</SpsDt>\n <SpsDd>\n Definition that has a LOOOOOOOOOOT of text in it.\n Definition that has a LOOOOOOOOOOT of text in it.\n </SpsDd>\n </SpsDl>\n "], ["\n <SpsDl>\n <SpsDt>Term 1</SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>Term</SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>\n Term that wraps to the next line cause it's got so dang much text in it.\n </SpsDt>\n <SpsDd>Definition</SpsDd>\n <SpsDt>Term</SpsDt>\n <SpsDd>\n Definition that has a LOOOOOOOOOOT of text in it.\n Definition that has a LOOOOOOOOOOT of text in it.\n </SpsDd>\n </SpsDl>\n "]))),
|
|
3951
3951
|
},
|
|
3952
3952
|
dynamic: {
|
|
3953
3953
|
react: code(templateObject_2$C || (templateObject_2$C = __makeTemplateObject(["\n function DemoComponent() {\n const list = [\n { term: \"Term 1\", definition: \"Definition 1\" },\n { term: \"Term 2\", definition: \"Definition 2\" },\n { term: \"Term 3\", definition: \"Definition 3\" },\n ];\n\n return (\n <SpsDl>\n {list.map((item, i) => (\n <React.Fragment>\n <SpsDt>{item.term}</SpsDt>\n <SpsDd>{item.definition}</SpsDd>\n </React.Fragment>\n ))}\n </SpsDl>\n );\n }\n "], ["\n function DemoComponent() {\n const list = [\n { term: \"Term 1\", definition: \"Definition 1\" },\n { term: \"Term 2\", definition: \"Definition 2\" },\n { term: \"Term 3\", definition: \"Definition 3\" },\n ];\n\n return (\n <SpsDl>\n {list.map((item, i) => (\n <React.Fragment>\n <SpsDt>{item.term}</SpsDt>\n <SpsDd>{item.definition}</SpsDd>\n </React.Fragment>\n ))}\n </SpsDl>\n );\n }\n "]))),
|
|
@@ -3982,7 +3982,7 @@ var SpsDescriptionListExamples = {
|
|
|
3982
3982
|
},
|
|
3983
3983
|
},
|
|
3984
3984
|
};
|
|
3985
|
-
var templateObject_1$
|
|
3985
|
+
var templateObject_1$H, templateObject_2$C, templateObject_3$v, templateObject_4$o, templateObject_5$h, templateObject_6$d;
|
|
3986
3986
|
|
|
3987
3987
|
var SpsDropdownExamples = {
|
|
3988
3988
|
labelled: {
|
|
@@ -3990,7 +3990,7 @@ var SpsDropdownExamples = {
|
|
|
3990
3990
|
examples: {
|
|
3991
3991
|
default: {
|
|
3992
3992
|
description: '<h3> Default Dropdown</h3>',
|
|
3993
|
-
react: code(templateObject_1$
|
|
3993
|
+
react: code(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n function SpsDropdownBasicDefault(props) {\n const [action, updateAction] = useSpsAction({\n label: \"Option B\"\n }, () => console.log(\"Option B\"));\n return (\n <SpsDropdown id=\"regular\" label=\"Dropdown\" options={[\n [{ label: \"Option A\" }, () => console.log(\"Option A\")],\n action,\n ]}/>\n );\n }\n "], ["\n function SpsDropdownBasicDefault(props) {\n const [action, updateAction] = useSpsAction({\n label: \"Option B\"\n }, () => console.log(\"Option B\"));\n return (\n <SpsDropdown id=\"regular\" label=\"Dropdown\" options={[\n [{ label: \"Option A\" }, () => console.log(\"Option A\")],\n action,\n ]}/>\n );\n }\n "]))),
|
|
3994
3994
|
},
|
|
3995
3995
|
key: {
|
|
3996
3996
|
description: '<h3> Key Dropdown</h3>',
|
|
@@ -4072,16 +4072,16 @@ var SpsDropdownExamples = {
|
|
|
4072
4072
|
},
|
|
4073
4073
|
},
|
|
4074
4074
|
};
|
|
4075
|
-
var templateObject_1$
|
|
4075
|
+
var templateObject_1$G, templateObject_2$B, templateObject_3$u, templateObject_4$n, templateObject_5$g, templateObject_6$c, templateObject_7$b, templateObject_8$a, templateObject_9$7, templateObject_10$6, templateObject_11$4, templateObject_12$2, templateObject_13$2, templateObject_14$2;
|
|
4076
4076
|
|
|
4077
|
-
var propsDoc$
|
|
4077
|
+
var propsDoc$16 = {
|
|
4078
4078
|
checked: 'boolean',
|
|
4079
4079
|
onChange: 'ChangeEventHandler',
|
|
4080
4080
|
indeterminate: 'boolean',
|
|
4081
4081
|
disabled: 'boolean',
|
|
4082
4082
|
options: 'Array<SpsActionMethod | [SpsActionDescriptor, () => void]>',
|
|
4083
4083
|
};
|
|
4084
|
-
var propTypes$
|
|
4084
|
+
var propTypes$1a = __assign(__assign({}, spsGlobalPropTypes), { checked: bool, onChange: fun(), indeterminate: bool,
|
|
4085
4085
|
// the type arg to PropTypes.arrayOf<T>() here confuses eslint greatly
|
|
4086
4086
|
/* eslint-disable */
|
|
4087
4087
|
options: arrayOf(oneOfType([func, any])).isRequired,
|
|
@@ -4095,15 +4095,15 @@ function SpsCheckboxDropdown(props) {
|
|
|
4095
4095
|
React.createElement(SpsDropdown, { disabled: disabled, options: options, icon: SpsIcon$1.CHEVRON_DOWN })));
|
|
4096
4096
|
}
|
|
4097
4097
|
Object.assign(SpsCheckboxDropdown, {
|
|
4098
|
-
props: propsDoc$
|
|
4099
|
-
propTypes: propTypes$
|
|
4098
|
+
props: propsDoc$16,
|
|
4099
|
+
propTypes: propTypes$1a,
|
|
4100
4100
|
displayName: 'SpsCheckboxDropdown',
|
|
4101
4101
|
});
|
|
4102
4102
|
|
|
4103
|
-
var propsDoc$
|
|
4103
|
+
var propsDoc$15 = {
|
|
4104
4104
|
kind: 'FeedbackBlockKind',
|
|
4105
4105
|
};
|
|
4106
|
-
var propTypes$
|
|
4106
|
+
var propTypes$19 = __assign(__assign({}, spsGlobalPropTypes), { kind: enumValue(FeedbackBlockKind) });
|
|
4107
4107
|
function SpsFeedbackBlock(props) {
|
|
4108
4108
|
var children = props.children, className = props.className, _a = props.kind, kind = _a === void 0 ? FeedbackBlockKind.TIP : _a, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "kind", 'data-testid', "unsafelyReplaceClassName"]);
|
|
4109
4109
|
var classes = clsx(unsafelyReplaceClassName || 'sps-feedback-block', "sps-feedback-block--" + kind, className);
|
|
@@ -4112,8 +4112,8 @@ function SpsFeedbackBlock(props) {
|
|
|
4112
4112
|
React.createElement("span", { className: "sps-feedback-block__content", "data-testid": testId + "__text" }, children)));
|
|
4113
4113
|
}
|
|
4114
4114
|
Object.assign(SpsFeedbackBlock, {
|
|
4115
|
-
props: propsDoc$
|
|
4116
|
-
propTypes: propTypes$
|
|
4115
|
+
props: propsDoc$15,
|
|
4116
|
+
propTypes: propTypes$19,
|
|
4117
4117
|
displayName: 'SpsFeedbackBlock',
|
|
4118
4118
|
});
|
|
4119
4119
|
|
|
@@ -4124,7 +4124,7 @@ var SpsFeedbackBlockExamples = {
|
|
|
4124
4124
|
examples: {
|
|
4125
4125
|
error: {
|
|
4126
4126
|
description: 'Error',
|
|
4127
|
-
jsx: code(templateObject_1$
|
|
4127
|
+
jsx: code(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n <SpsFeedbackBlock kind={FeedbackBlockKind.ERROR}>\n We are experiencing difficulties communicating to the server. Please try again later.\n </SpsFeedbackBlock>\n "], ["\n <SpsFeedbackBlock kind={FeedbackBlockKind.ERROR}>\n We are experiencing difficulties communicating to the server. Please try again later.\n </SpsFeedbackBlock>\n "]))),
|
|
4128
4128
|
},
|
|
4129
4129
|
info: {
|
|
4130
4130
|
description: 'Information',
|
|
@@ -4171,9 +4171,9 @@ var SpsFeedbackBlockExamples = {
|
|
|
4171
4171
|
},
|
|
4172
4172
|
},
|
|
4173
4173
|
};
|
|
4174
|
-
var templateObject_1$
|
|
4174
|
+
var templateObject_1$F, templateObject_2$A, templateObject_3$t, templateObject_4$m, templateObject_5$f, templateObject_6$b, templateObject_7$a, templateObject_8$9, templateObject_9$6, templateObject_10$5;
|
|
4175
4175
|
|
|
4176
|
-
var propsDoc$
|
|
4176
|
+
var propsDoc$14 = {
|
|
4177
4177
|
errors: 'ReactNodeOrRenderFn',
|
|
4178
4178
|
formMeta: 'SpsFormSetMeta<any>',
|
|
4179
4179
|
legend: 'string',
|
|
@@ -4182,7 +4182,7 @@ var propsDoc$11 = {
|
|
|
4182
4182
|
onToggled: '(isEnabled: boolean) => void',
|
|
4183
4183
|
tooltip: 'string',
|
|
4184
4184
|
};
|
|
4185
|
-
var propTypes$
|
|
4185
|
+
var propTypes$18 = __assign(__assign({}, spsGlobalPropTypes), { errors: nodeOrRenderFn, formArray: impl(), formGroup: impl(), formMeta: impl(), legend: string, optional: bool, enabled: bool, onToggled: fun(), tooltip: string });
|
|
4186
4186
|
function SpsFieldset(_a) {
|
|
4187
4187
|
var children = _a.children, className = _a.className, errors = _a.errors, formArray = _a.formArray, formGroup = _a.formGroup, formMeta = _a.formMeta, legend = _a.legend, unsafelyReplaceClassName = _a.unsafelyReplaceClassName, _b = _a.optional, optional = _b === void 0 ? false : _b, enabled = _a.enabled, onToggled = _a.onToggled, tooltip = _a.tooltip;
|
|
4188
4188
|
var formControlSet = formGroup || formArray;
|
|
@@ -4232,8 +4232,8 @@ function SpsFieldset(_a) {
|
|
|
4232
4232
|
children)));
|
|
4233
4233
|
}
|
|
4234
4234
|
Object.assign(SpsFieldset, {
|
|
4235
|
-
props: propsDoc$
|
|
4236
|
-
propTypes: propTypes$
|
|
4235
|
+
props: propsDoc$14,
|
|
4236
|
+
propTypes: propTypes$18,
|
|
4237
4237
|
displayName: 'SpsFieldset',
|
|
4238
4238
|
});
|
|
4239
4239
|
|
|
@@ -4243,7 +4243,7 @@ var SpsFieldsetExamples = {
|
|
|
4243
4243
|
description: 'info about basic fieldsets',
|
|
4244
4244
|
examples: {
|
|
4245
4245
|
basic: {
|
|
4246
|
-
react: code(templateObject_1$
|
|
4246
|
+
react: code(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n function DemoComponent() {\n const RADIO_OPTIONS = [\n { value: \"a\", label: \"Option A\" },\n { value: \"b\", label: \"Option B\" }\n ];\n const { formValue, formMeta, updateForm } = useSpsForm({\n myFieldset: {\n foo: \"\",\n bar: \"\",\n baz: RADIO_OPTIONS[0].value\n }\n });\n\n return <>\n <SpsFieldset formMeta={formMeta.fields.myFieldset} legend=\"Fieldset Legend\" tooltip=\"Add a Tooltip\">\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.foo}>Foo</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.myFieldset.fields.foo}\n value={formValue.myFieldset.foo}\n ></SpsTextInput>\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.bar}>Bar</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.myFieldset.fields.bar}\n value={formValue.myFieldset.bar}\n ></SpsTextInput>\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.baz}>Baz</SpsLabel>\n {RADIO_OPTIONS.map(option => (\n <SpsRadioButton key={option.value} name=\"baz\"\n label={option.label} value={option.value}\n formMeta={formMeta.fields.myFieldset.fields.baz}\n checked={formValue.myFieldset.baz === option.value}\n />\n ))}\n </div>\n </div>\n </SpsFieldset>\n </>\n }\n "], ["\n function DemoComponent() {\n const RADIO_OPTIONS = [\n { value: \"a\", label: \"Option A\" },\n { value: \"b\", label: \"Option B\" }\n ];\n const { formValue, formMeta, updateForm } = useSpsForm({\n myFieldset: {\n foo: \"\",\n bar: \"\",\n baz: RADIO_OPTIONS[0].value\n }\n });\n\n return <>\n <SpsFieldset formMeta={formMeta.fields.myFieldset} legend=\"Fieldset Legend\" tooltip=\"Add a Tooltip\">\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.foo}>Foo</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.myFieldset.fields.foo}\n value={formValue.myFieldset.foo}\n ></SpsTextInput>\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.bar}>Bar</SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.myFieldset.fields.bar}\n value={formValue.myFieldset.bar}\n ></SpsTextInput>\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.myFieldset.fields.baz}>Baz</SpsLabel>\n {RADIO_OPTIONS.map(option => (\n <SpsRadioButton key={option.value} name=\"baz\"\n label={option.label} value={option.value}\n formMeta={formMeta.fields.myFieldset.fields.baz}\n checked={formValue.myFieldset.baz === option.value}\n />\n ))}\n </div>\n </div>\n </SpsFieldset>\n </>\n }\n "]))),
|
|
4247
4247
|
},
|
|
4248
4248
|
},
|
|
4249
4249
|
},
|
|
@@ -4284,10 +4284,10 @@ var SpsFieldsetExamples = {
|
|
|
4284
4284
|
},
|
|
4285
4285
|
},
|
|
4286
4286
|
};
|
|
4287
|
-
var templateObject_1$
|
|
4287
|
+
var templateObject_1$E, templateObject_2$z, templateObject_3$s, templateObject_4$l, templateObject_5$e;
|
|
4288
4288
|
|
|
4289
|
-
var propsDoc$
|
|
4290
|
-
var propTypes$
|
|
4289
|
+
var propsDoc$13 = {};
|
|
4290
|
+
var propTypes$17 = __assign({}, spsGlobalPropTypes);
|
|
4291
4291
|
function SpsFocusedTaskActions(props) {
|
|
4292
4292
|
var children = props.children, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "unsafelyReplaceClassName"]);
|
|
4293
4293
|
var classes = clsx(unsafelyReplaceClassName || 'sps-list-action-bar-container', 'z-stratum-bar', className);
|
|
@@ -4296,17 +4296,17 @@ function SpsFocusedTaskActions(props) {
|
|
|
4296
4296
|
React.createElement("div", { className: "sps-list-action-bar__actions" }, children))));
|
|
4297
4297
|
}
|
|
4298
4298
|
Object.assign(SpsFocusedTaskActions, {
|
|
4299
|
-
props: propsDoc$
|
|
4300
|
-
propTypes: propTypes$
|
|
4299
|
+
props: propsDoc$13,
|
|
4300
|
+
propTypes: propTypes$17,
|
|
4301
4301
|
displayName: 'SpsFocusedTaskActions',
|
|
4302
4302
|
});
|
|
4303
4303
|
|
|
4304
|
-
var propsDoc
|
|
4304
|
+
var propsDoc$12 = {
|
|
4305
4305
|
fullWidth: 'boolean',
|
|
4306
4306
|
isOpen: 'boolean',
|
|
4307
4307
|
onClose: '() => void',
|
|
4308
4308
|
};
|
|
4309
|
-
var propTypes$
|
|
4309
|
+
var propTypes$16 = __assign(__assign({}, spsGlobalPropTypes), { fullWidth: bool, isOpen: bool, onClose: fun() });
|
|
4310
4310
|
function SpsFocusedTask(props) {
|
|
4311
4311
|
var children = props.children, className = props.className, fullWidth = props.fullWidth, isOpen = props.isOpen, onClose = props.onClose; props.title; var testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "fullWidth", "isOpen", "onClose", "title", 'data-testid', "unsafelyReplaceClassName"]);
|
|
4312
4312
|
var rootRef = React.useRef();
|
|
@@ -4329,8 +4329,8 @@ function SpsFocusedTask(props) {
|
|
|
4329
4329
|
actions));
|
|
4330
4330
|
}
|
|
4331
4331
|
Object.assign(SpsFocusedTask, {
|
|
4332
|
-
props: propsDoc
|
|
4333
|
-
propTypes: propTypes$
|
|
4332
|
+
props: propsDoc$12,
|
|
4333
|
+
propTypes: propTypes$16,
|
|
4334
4334
|
displayName: 'SpsFocusedTask',
|
|
4335
4335
|
});
|
|
4336
4336
|
|
|
@@ -4338,7 +4338,7 @@ var SpsFocusedTaskExamples = {
|
|
|
4338
4338
|
basic: {
|
|
4339
4339
|
examples: {
|
|
4340
4340
|
basic: {
|
|
4341
|
-
react: code(templateObject_1$
|
|
4341
|
+
react: code(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n function SpsFocusedTaskBasic() {\n const [showFocusedTask, setShowFocusedTask] = React.useState(false);\n\n function onClose() {\n setShowFocusedTask(false);\n console.log(\"onClose called\");\n }\n\n function onFormSubmit() {\n setShowFocusedTask(false);\n }\n\n return (\n <>\n <SpsButton onClick={() => setShowFocusedTask(true)}>\n Open Focused Task\n </SpsButton>\n <SpsFocusedTask isOpen={showFocusedTask} onClose={onClose}>\n <h2>Focused Task</h2>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\"></div>\n <div className=\"sfg-col-6\">\n <SpsCard>\n <i>pretend there's a form here</i>\n </SpsCard>\n </div>\n <div className=\"sfg-col-3\"></div>\n </div>\n <SpsFocusedTaskActions>\n <SpsButton kind=\"confirm\" onClick={onFormSubmit}>\n Submit\n </SpsButton>\n </SpsFocusedTaskActions>\n </SpsFocusedTask>\n </>\n );\n }\n "], ["\n function SpsFocusedTaskBasic() {\n const [showFocusedTask, setShowFocusedTask] = React.useState(false);\n\n function onClose() {\n setShowFocusedTask(false);\n console.log(\"onClose called\");\n }\n\n function onFormSubmit() {\n setShowFocusedTask(false);\n }\n\n return (\n <>\n <SpsButton onClick={() => setShowFocusedTask(true)}>\n Open Focused Task\n </SpsButton>\n <SpsFocusedTask isOpen={showFocusedTask} onClose={onClose}>\n <h2>Focused Task</h2>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\"></div>\n <div className=\"sfg-col-6\">\n <SpsCard>\n <i>pretend there's a form here</i>\n </SpsCard>\n </div>\n <div className=\"sfg-col-3\"></div>\n </div>\n <SpsFocusedTaskActions>\n <SpsButton kind=\"confirm\" onClick={onFormSubmit}>\n Submit\n </SpsButton>\n </SpsFocusedTaskActions>\n </SpsFocusedTask>\n </>\n );\n }\n "]))),
|
|
4342
4342
|
},
|
|
4343
4343
|
fullWidth: {
|
|
4344
4344
|
react: code(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n function SpsFocusedTaskFullWidth() {\n const [showFocusedTask, setShowFocusedTask] = React.useState(false);\n\n function onClose() {\n setShowFocusedTask(false);\n console.log(\"onClose called\");\n }\n\n function onFormSubmit() {\n setShowFocusedTask(false);\n }\n\n return (\n <>\n <SpsButton onClick={() => setShowFocusedTask(true)}>\n Open Focused Task\n </SpsButton>\n <SpsFocusedTask fullWidth isOpen={showFocusedTask} onClose={onClose}>\n <h2>Focused Task</h2>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\"></div>\n <div className=\"sfg-col-6\">\n <SpsCard>\n <i>pretend there's a form here</i>\n </SpsCard>\n </div>\n <div className=\"sfg-col-3\"></div>\n </div>\n <SpsFocusedTaskActions>\n <SpsButton kind=\"confirm\" onClick={onFormSubmit}>\n Submit\n </SpsButton>\n </SpsFocusedTaskActions>\n </SpsFocusedTask>\n </>\n );\n }\n "], ["\n function SpsFocusedTaskFullWidth() {\n const [showFocusedTask, setShowFocusedTask] = React.useState(false);\n\n function onClose() {\n setShowFocusedTask(false);\n console.log(\"onClose called\");\n }\n\n function onFormSubmit() {\n setShowFocusedTask(false);\n }\n\n return (\n <>\n <SpsButton onClick={() => setShowFocusedTask(true)}>\n Open Focused Task\n </SpsButton>\n <SpsFocusedTask fullWidth isOpen={showFocusedTask} onClose={onClose}>\n <h2>Focused Task</h2>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-3\"></div>\n <div className=\"sfg-col-6\">\n <SpsCard>\n <i>pretend there's a form here</i>\n </SpsCard>\n </div>\n <div className=\"sfg-col-3\"></div>\n </div>\n <SpsFocusedTaskActions>\n <SpsButton kind=\"confirm\" onClick={onFormSubmit}>\n Submit\n </SpsButton>\n </SpsFocusedTaskActions>\n </SpsFocusedTask>\n </>\n );\n }\n "]))),
|
|
@@ -4346,7 +4346,7 @@ var SpsFocusedTaskExamples = {
|
|
|
4346
4346
|
},
|
|
4347
4347
|
},
|
|
4348
4348
|
};
|
|
4349
|
-
var templateObject_1$
|
|
4349
|
+
var templateObject_1$D, templateObject_2$y;
|
|
4350
4350
|
|
|
4351
4351
|
var OnBlurErrorKeys = new Set();
|
|
4352
4352
|
|
|
@@ -5654,7 +5654,7 @@ var SpsFormExamples = {
|
|
|
5654
5654
|
description: '',
|
|
5655
5655
|
examples: {
|
|
5656
5656
|
basic: {
|
|
5657
|
-
react: code(templateObject_1$
|
|
5657
|
+
react: code(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n function DemoComponent() {\n const COLOR_OPTIONS = [\"red\", \"blue\", \"green\"];\n const initValue = {\n name: \"Foo\",\n color: COLOR_OPTIONS[0],\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue, {\n \"name\": value => value.color === COLOR_OPTIONS[0] ? [SpsValidators.required] : []\n });\n\n function handleSubmit() {\n console.log(\"submit\", formValue);\n }\n function reset() {\n updateForm(initValue);\n }\n\n return <>\n <SpsForm formMeta={formMeta} onSubmit={handleSubmit}>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-8\">\n <SpsLabel for={formMeta.fields.name}>Name</SpsLabel>\n <SpsTextInput\n value={formValue.name}\n formMeta={formMeta.fields.name}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.color}>Color</SpsLabel>\n {COLOR_OPTIONS.map(color =>\n <SpsRadioButton key={color} name={color} value={color} label={color}\n checked={color === formValue.color}\n formMeta={formMeta.fields.color}\n />\n )}\n </div>\n </div>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton className=\"mr-1\" onClick={reset}>Reset</SpsButton>\n <SpsButton type={ButtonType.SUBMIT} kind={ButtonKind.CONFIRM}>Submit</SpsButton>\n </div>\n </div>\n </SpsForm>\n <br/>\n {JSON.stringify(formValue)}\n </>;\n }\n "], ["\n function DemoComponent() {\n const COLOR_OPTIONS = [\"red\", \"blue\", \"green\"];\n const initValue = {\n name: \"Foo\",\n color: COLOR_OPTIONS[0],\n };\n const { formValue, formMeta, updateForm } = useSpsForm(initValue, {\n \"name\": value => value.color === COLOR_OPTIONS[0] ? [SpsValidators.required] : []\n });\n\n function handleSubmit() {\n console.log(\"submit\", formValue);\n }\n function reset() {\n updateForm(initValue);\n }\n\n return <>\n <SpsForm formMeta={formMeta} onSubmit={handleSubmit}>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-8\">\n <SpsLabel for={formMeta.fields.name}>Name</SpsLabel>\n <SpsTextInput\n value={formValue.name}\n formMeta={formMeta.fields.name}\n />\n </div>\n <div className=\"sfg-col-4\">\n <SpsLabel for={formMeta.fields.color}>Color</SpsLabel>\n {COLOR_OPTIONS.map(color =>\n <SpsRadioButton key={color} name={color} value={color} label={color}\n checked={color === formValue.color}\n formMeta={formMeta.fields.color}\n />\n )}\n </div>\n </div>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton className=\"mr-1\" onClick={reset}>Reset</SpsButton>\n <SpsButton type={ButtonType.SUBMIT} kind={ButtonKind.CONFIRM}>Submit</SpsButton>\n </div>\n </div>\n </SpsForm>\n <br/>\n {JSON.stringify(formValue)}\n </>;\n }\n "]))),
|
|
5658
5658
|
},
|
|
5659
5659
|
},
|
|
5660
5660
|
},
|
|
@@ -5677,14 +5677,14 @@ var SpsFormExamples = {
|
|
|
5677
5677
|
},
|
|
5678
5678
|
},
|
|
5679
5679
|
};
|
|
5680
|
-
var templateObject_1$
|
|
5680
|
+
var templateObject_1$C, templateObject_2$x, templateObject_3$r;
|
|
5681
5681
|
|
|
5682
5682
|
var SpsAddRemoveFormRowExamples = {
|
|
5683
5683
|
ideal: {
|
|
5684
5684
|
label: 'Ideal',
|
|
5685
5685
|
examples: {
|
|
5686
5686
|
ideal: {
|
|
5687
|
-
react: code(templateObject_1$
|
|
5687
|
+
react: code(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n function DemoComponent() {\n const initValue = {\n names: [\"Foo\"],\n }\n const { formValue, formMeta, updateForm } = useSpsForm(initValue, {\n \"names.*\": [SpsValidators.required]\n });\n\n function addName() {\n updateForm({ names: [...formValue.names, \"\"] })\n }\n\n function removeName(index) {\n updateForm({\n names: formValue.names.filter((_, i) => i !== index),\n })\n }\n\n function reset() {\n updateForm(initValue)\n }\n\n return (\n <>\n <SpsForm formMeta={formMeta}>\n {formMeta.fields.names.fields.map((meta, i) => (\n <div className=\"sfg-row\" key={i}>\n <div className=\"sfg-col-6\">\n <SpsLabel for={meta}>Name</SpsLabel>\n <div className=\"d-flex align-items-center\">\n <SpsTextInput\n value={formValue.names[i]}\n formMeta={meta}\n className=\"flex-grow-1 mr-2\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.X}\n onClick={() => removeName(i)}\n />\n </div>\n </div>\n </div>\n ))}\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton\n kind={ButtonKind.LINK}\n icon={SpsIcon.PLUS_SIGN}\n onClick={addName}\n >\n Add Another\n </SpsButton>\n </div>\n </div>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton onClick={reset}>Reset</SpsButton>\n </div>\n </div>\n </SpsForm>\n <br />\n {JSON.stringify(formValue)}\n </>\n )\n }\n "], ["\n function DemoComponent() {\n const initValue = {\n names: [\"Foo\"],\n }\n const { formValue, formMeta, updateForm } = useSpsForm(initValue, {\n \"names.*\": [SpsValidators.required]\n });\n\n function addName() {\n updateForm({ names: [...formValue.names, \"\"] })\n }\n\n function removeName(index) {\n updateForm({\n names: formValue.names.filter((_, i) => i !== index),\n })\n }\n\n function reset() {\n updateForm(initValue)\n }\n\n return (\n <>\n <SpsForm formMeta={formMeta}>\n {formMeta.fields.names.fields.map((meta, i) => (\n <div className=\"sfg-row\" key={i}>\n <div className=\"sfg-col-6\">\n <SpsLabel for={meta}>Name</SpsLabel>\n <div className=\"d-flex align-items-center\">\n <SpsTextInput\n value={formValue.names[i]}\n formMeta={meta}\n className=\"flex-grow-1 mr-2\"\n />\n <SpsButton kind={ButtonKind.ICON}\n icon={SpsIcon.X}\n onClick={() => removeName(i)}\n />\n </div>\n </div>\n </div>\n ))}\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton\n kind={ButtonKind.LINK}\n icon={SpsIcon.PLUS_SIGN}\n onClick={addName}\n >\n Add Another\n </SpsButton>\n </div>\n </div>\n <div className=\"sfg-row\">\n <div className=\"sfg-col-12\">\n <SpsButton onClick={reset}>Reset</SpsButton>\n </div>\n </div>\n </SpsForm>\n <br />\n {JSON.stringify(formValue)}\n </>\n )\n }\n "]))),
|
|
5688
5688
|
},
|
|
5689
5689
|
},
|
|
5690
5690
|
},
|
|
@@ -5697,16 +5697,16 @@ var SpsAddRemoveFormRowExamples = {
|
|
|
5697
5697
|
},
|
|
5698
5698
|
},
|
|
5699
5699
|
};
|
|
5700
|
-
var templateObject_1$
|
|
5700
|
+
var templateObject_1$B, templateObject_2$w;
|
|
5701
5701
|
|
|
5702
|
-
var propsDoc$
|
|
5702
|
+
var propsDoc$11 = {
|
|
5703
5703
|
imgSrc: 'string',
|
|
5704
5704
|
kind: 'GrowlerKind',
|
|
5705
5705
|
onClose: '() => void',
|
|
5706
5706
|
persist: 'boolean',
|
|
5707
5707
|
title: 'string',
|
|
5708
5708
|
};
|
|
5709
|
-
var propTypes$
|
|
5709
|
+
var propTypes$15 = __assign(__assign({}, spsGlobalPropTypes), { imgSrc: string, kind: enumValue(GrowlerKind), onClose: fun(), persist: bool, title: string });
|
|
5710
5710
|
function SpsGrowler(props) {
|
|
5711
5711
|
var children = props.children, className = props.className, imgSrc = props.imgSrc, _a = props.kind, kind = _a === void 0 ? GrowlerKind.INFO : _a, onClose = props.onClose, persist = props.persist, title = props.title, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "imgSrc", "kind", "onClose", "persist", "title", "unsafelyReplaceClassName"]);
|
|
5712
5712
|
var closeCallback = React.useRef(onClose);
|
|
@@ -5786,8 +5786,8 @@ function SpsGrowler(props) {
|
|
|
5786
5786
|
React.createElement("i", { className: "sps-icon sps-icon-x", title: t('design-system:growler.dismiss') })))));
|
|
5787
5787
|
}
|
|
5788
5788
|
Object.assign(SpsGrowler, {
|
|
5789
|
-
props: propsDoc$
|
|
5790
|
-
propTypes: propTypes$
|
|
5789
|
+
props: propsDoc$11,
|
|
5790
|
+
propTypes: propTypes$15,
|
|
5791
5791
|
displayName: 'SpsGrowler',
|
|
5792
5792
|
});
|
|
5793
5793
|
|
|
@@ -5819,7 +5819,7 @@ var SpsGrowlerExamples = {
|
|
|
5819
5819
|
examples: {
|
|
5820
5820
|
primary: {
|
|
5821
5821
|
description: 'Primary Message Only',
|
|
5822
|
-
react: code(templateObject_1$
|
|
5822
|
+
react: code(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n import { SpsButton, SpsGrowler } from \"@spscommerce/ds-react\";\n import { ButtonKind, GrowlerKind } from \"@spscommerce/ds-shared\";\n\n function SpsGrowlerError() {\n const [growl, setGrowl] = React.useState(false);\n\n return (\n <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setGrowl(true)} disabled={growl}>\n Show Growler\n </SpsButton>\n {growl && (\n <SpsGrowler\n kind={GrowlerKind.ERROR}\n onClose={() => {\n console.log(\"Growler closed.\");\n setGrowl(false);\n }}\n title=\"Document ABC123 has not been sent.\"\n />\n )}\n </>\n );\n }\n "], ["\n import { SpsButton, SpsGrowler } from \"@spscommerce/ds-react\";\n import { ButtonKind, GrowlerKind } from \"@spscommerce/ds-shared\";\n\n function SpsGrowlerError() {\n const [growl, setGrowl] = React.useState(false);\n\n return (\n <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setGrowl(true)} disabled={growl}>\n Show Growler\n </SpsButton>\n {growl && (\n <SpsGrowler\n kind={GrowlerKind.ERROR}\n onClose={() => {\n console.log(\"Growler closed.\");\n setGrowl(false);\n }}\n title=\"Document ABC123 has not been sent.\"\n />\n )}\n </>\n );\n }\n "]))),
|
|
5823
5823
|
},
|
|
5824
5824
|
primaryAndSecondary: {
|
|
5825
5825
|
description: 'Primary and Secondary Messages',
|
|
@@ -5903,16 +5903,16 @@ var SpsGrowlerExamples = {
|
|
|
5903
5903
|
},
|
|
5904
5904
|
},
|
|
5905
5905
|
};
|
|
5906
|
-
var templateObject_1$
|
|
5906
|
+
var templateObject_1$A, templateObject_2$v, templateObject_3$q, templateObject_4$k, templateObject_5$d, templateObject_6$a, templateObject_7$9, templateObject_8$8, templateObject_9$5, templateObject_10$4, templateObject_11$3;
|
|
5907
5907
|
|
|
5908
|
-
var propsDoc$
|
|
5908
|
+
var propsDoc$10 = {
|
|
5909
5909
|
disabled: 'boolean',
|
|
5910
5910
|
min: 'number',
|
|
5911
5911
|
max: 'number',
|
|
5912
5912
|
step: 'number',
|
|
5913
5913
|
onValueChange: '(newValue: number) => void',
|
|
5914
5914
|
};
|
|
5915
|
-
var propTypes$
|
|
5915
|
+
var propTypes$14 = __assign({ disabled: bool, min: number, max: number, step: number, onValueChange: fun() }, spsGlobalPropTypes);
|
|
5916
5916
|
function SpsIncrementor(props) {
|
|
5917
5917
|
var disabled = props.disabled, min = props.min, max = props.max, _a = props.step, step = _a === void 0 ? 1 : _a, onValueChange = props.onValueChange, unsafelyReplaceClassName = props.unsafelyReplaceClassName, className = props.className, testId = props["data-testid"], rest = __rest(props, ["disabled", "min", "max", "step", "onValueChange", "unsafelyReplaceClassName", "className", 'data-testid']);
|
|
5918
5918
|
var _b = __read(React.useState(min || 0), 2), value = _b[0], setValue = _b[1];
|
|
@@ -5972,8 +5972,8 @@ function SpsIncrementor(props) {
|
|
|
5972
5972
|
React.createElement("i", { className: "sps-icon sps-icon-plus-sign", "aria-hidden": "true" })))));
|
|
5973
5973
|
}
|
|
5974
5974
|
Object.assign(SpsIncrementor, {
|
|
5975
|
-
props: propsDoc$
|
|
5976
|
-
propTypes: propTypes$
|
|
5975
|
+
props: propsDoc$10,
|
|
5976
|
+
propTypes: propTypes$14,
|
|
5977
5977
|
displayName: 'SpsIncrementor',
|
|
5978
5978
|
});
|
|
5979
5979
|
|
|
@@ -5983,32 +5983,32 @@ var SpsIncrementorExamples = {
|
|
|
5983
5983
|
description: 'info about incrementor',
|
|
5984
5984
|
examples: {
|
|
5985
5985
|
stacked: {
|
|
5986
|
-
react: code(templateObject_1$
|
|
5986
|
+
react: code(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n function Component () {\n const [value, setValue] = React.useState(\"\");\n const handleChange = val => {\n setValue(val);\n };\n return (\n <React.Fragment>\n <SpsIncrementor\n min={0}\n max={10}\n step={2}\n id=\"basicIncrementor\"\n onValueChange={handleChange}\n />\n Value: {value}\n </React.Fragment>\n );\n }\n "], ["\n function Component () {\n const [value, setValue] = React.useState(\"\");\n const handleChange = val => {\n setValue(val);\n };\n return (\n <React.Fragment>\n <SpsIncrementor\n min={0}\n max={10}\n step={2}\n id=\"basicIncrementor\"\n onValueChange={handleChange}\n />\n Value: {value}\n </React.Fragment>\n );\n }\n "]))),
|
|
5987
5987
|
},
|
|
5988
5988
|
},
|
|
5989
5989
|
},
|
|
5990
5990
|
};
|
|
5991
|
-
var templateObject_1$
|
|
5991
|
+
var templateObject_1$z;
|
|
5992
5992
|
|
|
5993
|
-
var propsDoc
|
|
5993
|
+
var propsDoc$$ = {
|
|
5994
5994
|
inline: 'boolean',
|
|
5995
5995
|
};
|
|
5996
|
-
var propTypes$
|
|
5996
|
+
var propTypes$13 = __assign(__assign({}, spsGlobalPropTypes), { inline: bool });
|
|
5997
5997
|
function SpsKeyValueList(props) {
|
|
5998
5998
|
var children = props.children, className = props.className, inline = props.inline, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "inline", 'data-testid', "unsafelyReplaceClassName"]);
|
|
5999
5999
|
var keyValueListClass = clsx(unsafelyReplaceClassName || 'sps-key-value-list', inline && 'sps-key-value-list--inline', className);
|
|
6000
6000
|
return (React.createElement("div", __assign({ className: keyValueListClass, "data-testid": "" + testId }, rest), children));
|
|
6001
6001
|
}
|
|
6002
6002
|
Object.assign(SpsKeyValueList, {
|
|
6003
|
-
props: propsDoc
|
|
6004
|
-
propTypes: propTypes$
|
|
6003
|
+
props: propsDoc$$,
|
|
6004
|
+
propTypes: propTypes$13,
|
|
6005
6005
|
displayName: 'SpsKeyValueList',
|
|
6006
6006
|
});
|
|
6007
6007
|
|
|
6008
|
-
var propsDoc$
|
|
6008
|
+
var propsDoc$_ = {
|
|
6009
6009
|
itemKey: { type: 'string', required: true },
|
|
6010
6010
|
};
|
|
6011
|
-
var propTypes
|
|
6011
|
+
var propTypes$12 = __assign(__assign({}, spsGlobalPropTypes), { itemKey: string.isRequired });
|
|
6012
6012
|
function SpsKeyValueListItem(props) {
|
|
6013
6013
|
var children = props.children, className = props.className, itemKey = props.itemKey, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "itemKey", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6014
6014
|
var classes = clsx(unsafelyReplaceClassName || 'sps-key-value-list__item', className);
|
|
@@ -6017,8 +6017,8 @@ function SpsKeyValueListItem(props) {
|
|
|
6017
6017
|
React.createElement("span", { className: "sps-key-value-list__value", "data-testid": testId + "__value" }, children)));
|
|
6018
6018
|
}
|
|
6019
6019
|
Object.assign(SpsKeyValueListItem, {
|
|
6020
|
-
props: propsDoc$
|
|
6021
|
-
propTypes: propTypes
|
|
6020
|
+
props: propsDoc$_,
|
|
6021
|
+
propTypes: propTypes$12,
|
|
6022
6022
|
displayName: 'SpsKeyValueListItem',
|
|
6023
6023
|
});
|
|
6024
6024
|
|
|
@@ -6027,7 +6027,7 @@ var SpsKeyValueListExamples = {
|
|
|
6027
6027
|
label: 'Stacked',
|
|
6028
6028
|
examples: {
|
|
6029
6029
|
stacked: {
|
|
6030
|
-
jsx: code(templateObject_1$
|
|
6030
|
+
jsx: code(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <span className=\"font-weight-light d-block\">38 of 75 Operational</span>\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Some Other Key\">Its Value</SpsKeyValueListItem>\n </SpsKeyValueList>\n "], ["\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <span className=\"font-weight-light d-block\">38 of 75 Operational</span>\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Some Other Key\">Its Value</SpsKeyValueListItem>\n </SpsKeyValueList>\n "]))),
|
|
6031
6031
|
},
|
|
6032
6032
|
},
|
|
6033
6033
|
},
|
|
@@ -6040,9 +6040,9 @@ var SpsKeyValueListExamples = {
|
|
|
6040
6040
|
},
|
|
6041
6041
|
},
|
|
6042
6042
|
};
|
|
6043
|
-
var templateObject_1$
|
|
6043
|
+
var templateObject_1$y, templateObject_2$u;
|
|
6044
6044
|
|
|
6045
|
-
var propsDoc$
|
|
6045
|
+
var propsDoc$Z = {
|
|
6046
6046
|
for: { type: 'SpsFormMetaBase<any>', required: true },
|
|
6047
6047
|
description: 'string',
|
|
6048
6048
|
stronglySuggested: 'boolean',
|
|
@@ -6051,7 +6051,7 @@ var propsDoc$W = {
|
|
|
6051
6051
|
helpIconColor: 'string',
|
|
6052
6052
|
errors: 'ReactNodeOrRenderFn',
|
|
6053
6053
|
};
|
|
6054
|
-
var propTypes$
|
|
6054
|
+
var propTypes$11 = __assign(__assign({}, spsGlobalPropTypes), { description: string, for: oneOfType([
|
|
6055
6055
|
impl(),
|
|
6056
6056
|
impl(),
|
|
6057
6057
|
]).isRequired, stronglySuggested: bool, help: nodeOrRenderFn, helpIcon: enumValue(SpsIcon$1), helpIconColor: string, errors: nodeOrRenderFn });
|
|
@@ -6168,8 +6168,8 @@ function SpsLabel(_a) {
|
|
|
6168
6168
|
description && React.createElement("div", { className: "sps-form-control__description" }, description)));
|
|
6169
6169
|
}
|
|
6170
6170
|
Object.assign(SpsLabel, {
|
|
6171
|
-
props: propsDoc$
|
|
6172
|
-
propTypes: propTypes$
|
|
6171
|
+
props: propsDoc$Z,
|
|
6172
|
+
propTypes: propTypes$11,
|
|
6173
6173
|
displayName: 'SpsLabel',
|
|
6174
6174
|
});
|
|
6175
6175
|
|
|
@@ -6178,7 +6178,7 @@ var SpsLabelExamples = {
|
|
|
6178
6178
|
label: 'Basic',
|
|
6179
6179
|
examples: {
|
|
6180
6180
|
basic: {
|
|
6181
|
-
react: code(templateObject_1$
|
|
6181
|
+
react: code(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n companyName: \"\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.companyName}>\n Company Name\n </SpsLabel>\n <SpsTextInput value={formValue.companyName}\n formMeta={formMeta.fields.companyName}\n ></SpsTextInput>\n </>;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n companyName: \"\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.companyName}>\n Company Name\n </SpsLabel>\n <SpsTextInput value={formValue.companyName}\n formMeta={formMeta.fields.companyName}\n ></SpsTextInput>\n </>;\n }\n "]))),
|
|
6182
6182
|
},
|
|
6183
6183
|
},
|
|
6184
6184
|
},
|
|
@@ -6231,13 +6231,13 @@ var SpsLabelExamples = {
|
|
|
6231
6231
|
},
|
|
6232
6232
|
},
|
|
6233
6233
|
};
|
|
6234
|
-
var templateObject_1$
|
|
6234
|
+
var templateObject_1$x, templateObject_2$t, templateObject_3$p, templateObject_4$j, templateObject_5$c, templateObject_6$9, templateObject_7$8, templateObject_8$7;
|
|
6235
6235
|
|
|
6236
|
-
var propsDoc$
|
|
6236
|
+
var propsDoc$Y = {
|
|
6237
6237
|
clearSelected: { type: '() => void', required: true },
|
|
6238
6238
|
itemsSelected: { type: 'string | number', required: true },
|
|
6239
6239
|
};
|
|
6240
|
-
var propTypes$
|
|
6240
|
+
var propTypes$10 = __assign(__assign({}, spsGlobalPropTypes), { clearSelected: fun().isRequired, itemsSelected: oneOfType([string, number]) });
|
|
6241
6241
|
function SpsListActionBar(props) {
|
|
6242
6242
|
var itemsSelected = props.itemsSelected, clearSelected = props.clearSelected, children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["itemsSelected", "clearSelected", "children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6243
6243
|
var t = React.useContext(I18nContext).t;
|
|
@@ -6258,8 +6258,8 @@ function SpsListActionBar(props) {
|
|
|
6258
6258
|
React.createElement(SpsButton, { kind: ButtonKind.LINK, icon: SpsIcon$1.X, onClick: handleClearClick, "data-testid": testId + "__clear-button" }, t('design-system:listActionBar.clearSelected'))))))));
|
|
6259
6259
|
}
|
|
6260
6260
|
Object.assign(SpsListActionBar, {
|
|
6261
|
-
props: propsDoc$
|
|
6262
|
-
propTypes: propTypes$
|
|
6261
|
+
props: propsDoc$Y,
|
|
6262
|
+
propTypes: propTypes$10,
|
|
6263
6263
|
displayName: 'SpsListActionBar',
|
|
6264
6264
|
});
|
|
6265
6265
|
|
|
@@ -6475,13 +6475,13 @@ var usePinnedTableHeadStyle = function (containerRef) {
|
|
|
6475
6475
|
});
|
|
6476
6476
|
};
|
|
6477
6477
|
|
|
6478
|
-
var propsDoc$
|
|
6478
|
+
var propsDoc$X = {
|
|
6479
6479
|
controlCell: 'boolean',
|
|
6480
6480
|
currentSort: 'Array<SortedColumn>',
|
|
6481
6481
|
onSortChange: 'SortChangeHandler',
|
|
6482
6482
|
sortKey: 'string',
|
|
6483
6483
|
};
|
|
6484
|
-
var propTypes
|
|
6484
|
+
var propTypes$$ = __assign(__assign({}, spsGlobalPropTypes), { controlCell: bool, currentSort: arrayOf(impl()), onSortChange: fun(), sortKey: string, pinned: bool });
|
|
6485
6485
|
function SpsTableHeader(props) {
|
|
6486
6486
|
var children = props.children, className = props.className, controlCell = props.controlCell, currentSort = props.currentSort, onSortChange = props.onSortChange, sortKey = props.sortKey, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, pinned = props.pinned, rest = __rest(props, ["children", "className", "controlCell", "currentSort", "onSortChange", "sortKey", 'data-testid', "unsafelyReplaceClassName", "pinned"]);
|
|
6487
6487
|
var _a = __read(React.useState(), 2), sort = _a[0], setSort = _a[1];
|
|
@@ -6510,24 +6510,24 @@ function SpsTableHeader(props) {
|
|
|
6510
6510
|
React.createElement("span", { className: "sps-table__header-cell-body", "data-testid": testId + "__header-cell-body", onClick: flipSort, tabIndex: sortKey ? 0 : null, onKeyDown: handleKeyEvent }, children)));
|
|
6511
6511
|
}
|
|
6512
6512
|
Object.assign(SpsTableHeader, {
|
|
6513
|
-
props: propsDoc$
|
|
6514
|
-
propTypes: propTypes
|
|
6513
|
+
props: propsDoc$X,
|
|
6514
|
+
propTypes: propTypes$$,
|
|
6515
6515
|
displayName: 'SpsTableHeader',
|
|
6516
6516
|
});
|
|
6517
6517
|
function SpsTh(props) {
|
|
6518
6518
|
return SpsTableHeader(props);
|
|
6519
6519
|
}
|
|
6520
6520
|
Object.assign(SpsTh, {
|
|
6521
|
-
props: propsDoc$
|
|
6522
|
-
propTypes: propTypes
|
|
6521
|
+
props: propsDoc$X,
|
|
6522
|
+
propTypes: propTypes$$,
|
|
6523
6523
|
displayName: 'SpsTh',
|
|
6524
6524
|
});
|
|
6525
6525
|
|
|
6526
|
-
var propsDoc$
|
|
6526
|
+
var propsDoc$W = {
|
|
6527
6527
|
currentSort: 'Array<SortedColumn>',
|
|
6528
6528
|
onSortChange: 'SortChangeHandler',
|
|
6529
6529
|
};
|
|
6530
|
-
var propTypes$
|
|
6530
|
+
var propTypes$_ = __assign(__assign({}, spsGlobalPropTypes), { currentSort: arrayOf(impl()), onSortChange: fun() });
|
|
6531
6531
|
function SpsTableRow(props) {
|
|
6532
6532
|
var children = props.children, className = props.className, currentSort = props.currentSort, onSortChange = props.onSortChange, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "currentSort", "onSortChange", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6533
6533
|
var newProps = {
|
|
@@ -6543,24 +6543,24 @@ function SpsTableRow(props) {
|
|
|
6543
6543
|
})));
|
|
6544
6544
|
}
|
|
6545
6545
|
Object.assign(SpsTableRow, {
|
|
6546
|
-
props: propsDoc$
|
|
6547
|
-
propTypes: propTypes$
|
|
6546
|
+
props: propsDoc$W,
|
|
6547
|
+
propTypes: propTypes$_,
|
|
6548
6548
|
displayName: 'SpsTableRow',
|
|
6549
6549
|
});
|
|
6550
6550
|
function SpsTr(props) {
|
|
6551
6551
|
return SpsTableRow(props);
|
|
6552
6552
|
}
|
|
6553
6553
|
Object.assign(SpsTr, {
|
|
6554
|
-
props: propsDoc$
|
|
6555
|
-
propTypes: propTypes$
|
|
6554
|
+
props: propsDoc$W,
|
|
6555
|
+
propTypes: propTypes$_,
|
|
6556
6556
|
displayName: 'SpsTr',
|
|
6557
6557
|
});
|
|
6558
6558
|
|
|
6559
|
-
var propsDoc$
|
|
6559
|
+
var propsDoc$V = {
|
|
6560
6560
|
currentSort: 'Array<SortedColumn>',
|
|
6561
6561
|
onSortChange: 'SortChangeHandler',
|
|
6562
6562
|
};
|
|
6563
|
-
var propTypes$
|
|
6563
|
+
var propTypes$Z = __assign(__assign({}, spsGlobalPropTypes), { onSortChange: fun(), currentSort: arrayOf(impl()), pinned: bool });
|
|
6564
6564
|
function SpsTableHead(props) {
|
|
6565
6565
|
var children = props.children, className = props.className, currentSort = props.currentSort, onSortChange = props.onSortChange, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, pinned = props.pinned, rest = __rest(props, ["children", "className", "currentSort", "onSortChange", 'data-testid', "unsafelyReplaceClassName", "pinned"]);
|
|
6566
6566
|
var newProps = {
|
|
@@ -6576,25 +6576,25 @@ function SpsTableHead(props) {
|
|
|
6576
6576
|
})));
|
|
6577
6577
|
}
|
|
6578
6578
|
Object.assign(SpsTableHead, {
|
|
6579
|
-
props: propsDoc$
|
|
6580
|
-
propTypes: propTypes$
|
|
6579
|
+
props: propsDoc$V,
|
|
6580
|
+
propTypes: propTypes$Z,
|
|
6581
6581
|
displayName: 'SpsTableHead',
|
|
6582
6582
|
});
|
|
6583
6583
|
function SpsThead(props) {
|
|
6584
6584
|
return SpsTableHead(props);
|
|
6585
6585
|
}
|
|
6586
6586
|
Object.assign(SpsThead, {
|
|
6587
|
-
props: propsDoc$
|
|
6588
|
-
propTypes: propTypes$
|
|
6587
|
+
props: propsDoc$V,
|
|
6588
|
+
propTypes: propTypes$Z,
|
|
6589
6589
|
displayName: 'SpsThead',
|
|
6590
6590
|
});
|
|
6591
6591
|
|
|
6592
|
-
var propsDoc$
|
|
6592
|
+
var propsDoc$U = {
|
|
6593
6593
|
sort: 'SortedColumn',
|
|
6594
6594
|
onSortChange: 'SortChangeHandler',
|
|
6595
6595
|
selectable: 'boolean',
|
|
6596
6596
|
};
|
|
6597
|
-
var propTypes$
|
|
6597
|
+
var propTypes$Y = __assign(__assign({}, spsGlobalPropTypes), { onSortChange: fun(), sort: arrayOf(impl()), selectable: bool });
|
|
6598
6598
|
function SpsTable(props) {
|
|
6599
6599
|
var children = props.children, className = props.className, onSortChange = props.onSortChange, sort = props.sort, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "onSortChange", "sort", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6600
6600
|
var _a = __read(React.useState(sort), 2), currentSort = _a[0], setSort = _a[1];
|
|
@@ -6629,38 +6629,38 @@ function SpsTable(props) {
|
|
|
6629
6629
|
}))));
|
|
6630
6630
|
}
|
|
6631
6631
|
Object.assign(SpsTable, {
|
|
6632
|
-
props: propsDoc$
|
|
6633
|
-
propTypes: propTypes$
|
|
6632
|
+
props: propsDoc$U,
|
|
6633
|
+
propTypes: propTypes$Y,
|
|
6634
6634
|
displayName: 'SpsTable',
|
|
6635
6635
|
});
|
|
6636
6636
|
|
|
6637
|
-
var propsDoc$
|
|
6638
|
-
var propTypes$
|
|
6637
|
+
var propsDoc$T = {};
|
|
6638
|
+
var propTypes$X = __assign({}, spsGlobalPropTypes);
|
|
6639
6639
|
function SpsTableBody(props) {
|
|
6640
6640
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6641
6641
|
var classes = clsx(unsafelyReplaceClassName || 'sps-table__body', className);
|
|
6642
6642
|
return (React.createElement("tbody", __assign({ className: classes, "data-testid": testId + "__body" }, rest), children));
|
|
6643
6643
|
}
|
|
6644
6644
|
Object.assign(SpsTableBody, {
|
|
6645
|
-
props: propsDoc$
|
|
6646
|
-
propTypes: propTypes$
|
|
6645
|
+
props: propsDoc$T,
|
|
6646
|
+
propTypes: propTypes$X,
|
|
6647
6647
|
displayName: 'SpsTableBody',
|
|
6648
6648
|
});
|
|
6649
6649
|
function SpsTbody(props) {
|
|
6650
6650
|
return SpsTableBody(props);
|
|
6651
6651
|
}
|
|
6652
6652
|
Object.assign(SpsTbody, {
|
|
6653
|
-
props: propsDoc$
|
|
6654
|
-
propTypes: propTypes$
|
|
6653
|
+
props: propsDoc$T,
|
|
6654
|
+
propTypes: propTypes$X,
|
|
6655
6655
|
displayName: 'SpsTbody',
|
|
6656
6656
|
});
|
|
6657
6657
|
|
|
6658
|
-
var propsDoc$
|
|
6658
|
+
var propsDoc$S = {
|
|
6659
6659
|
buttonCell: 'boolean',
|
|
6660
6660
|
controlCell: 'boolean',
|
|
6661
6661
|
wrap: 'SpsTableCellWrapWidth',
|
|
6662
6662
|
};
|
|
6663
|
-
var propTypes$
|
|
6663
|
+
var propTypes$W = __assign(__assign({}, spsGlobalPropTypes), { buttonCell: bool, controlCell: bool, wrap: oneOf([200, 300, 400, 500, 600]), pinned: bool });
|
|
6664
6664
|
function SpsTableCell(props) {
|
|
6665
6665
|
var buttonCell = props.buttonCell, children = props.children, className = props.className, controlCell = props.controlCell, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, wrap = props.wrap, pinned = props.pinned, rest = __rest(props, ["buttonCell", "children", "className", "controlCell", 'data-testid', "unsafelyReplaceClassName", "wrap", "pinned"]);
|
|
6666
6666
|
var classes = clsx(unsafelyReplaceClassName || 'sps-table__cell', buttonCell && 'sps-table__cell--button-cell', controlCell && 'sps-table__cell--control', wrap && "sps-table__cell--text-wrap-" + wrap, pinned && 'sps-table__cell--pinned', className);
|
|
@@ -6669,21 +6669,21 @@ function SpsTableCell(props) {
|
|
|
6669
6669
|
return (React.createElement("td", __assign({ className: classes, ref: tableCellRef, role: "cell", "data-testid": testId + "__cell" }, rest), children));
|
|
6670
6670
|
}
|
|
6671
6671
|
Object.assign(SpsTableCell, {
|
|
6672
|
-
props: propsDoc$
|
|
6673
|
-
propTypes: propTypes$
|
|
6672
|
+
props: propsDoc$S,
|
|
6673
|
+
propTypes: propTypes$W,
|
|
6674
6674
|
displayName: 'SpsTableCell',
|
|
6675
6675
|
});
|
|
6676
6676
|
function SpsTd(props) {
|
|
6677
6677
|
return SpsTableCell(props);
|
|
6678
6678
|
}
|
|
6679
6679
|
Object.assign(SpsTd, {
|
|
6680
|
-
props: propsDoc$
|
|
6681
|
-
propTypes: propTypes$
|
|
6680
|
+
props: propsDoc$S,
|
|
6681
|
+
propTypes: propTypes$W,
|
|
6682
6682
|
displayName: 'SpsTd',
|
|
6683
6683
|
});
|
|
6684
6684
|
|
|
6685
|
-
var propsDoc$
|
|
6686
|
-
var propTypes$
|
|
6685
|
+
var propsDoc$R = {};
|
|
6686
|
+
var propTypes$V = __assign({}, spsGlobalPropTypes);
|
|
6687
6687
|
var CSS_BLOCK$3 = 'sps-icon-button-panel';
|
|
6688
6688
|
function SpsIconButtonPanel(_a) {
|
|
6689
6689
|
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
@@ -6694,8 +6694,8 @@ function SpsIconButtonPanel(_a) {
|
|
|
6694
6694
|
return (React.createElement("div", __assign({ className: classes }, rest), iconButtons));
|
|
6695
6695
|
}
|
|
6696
6696
|
Object.assign(SpsIconButtonPanel, {
|
|
6697
|
-
props: propsDoc$
|
|
6698
|
-
propTypes: propTypes$
|
|
6697
|
+
props: propsDoc$R,
|
|
6698
|
+
propTypes: propTypes$V,
|
|
6699
6699
|
displayName: 'SpsIconButtonPanel',
|
|
6700
6700
|
});
|
|
6701
6701
|
|
|
@@ -6737,7 +6737,7 @@ var SpsTableExamples = {
|
|
|
6737
6737
|
},
|
|
6738
6738
|
examples: {
|
|
6739
6739
|
basic: {
|
|
6740
|
-
react: code(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n function DemoComponent() {\n const items = [\n {\n spine: 2,\n title: \"Seven Samurai\",\n year: 1954,\n director: \"Akira Kurosawa\",\n countries: [\"Japan\"],\n price: \"$39.96\"\n },\n {\n spine: 29,\n title: \"Picnic at Hanging Rock\",\n year: 1975,\n director: \"Peter Weir\",\n countries: [\"Australia\"],\n price: \"$39.95\"\n },\n {\n spine: 62,\n title: \"The Passion of Joan of Arc\",\n year: 1928,\n director: \"Carl Theodor Dreyer\",\n countries: [\"France\"],\n price: \"$31.96\"\n },\n {\n spine: 484,\n title: \"Jeanne Dielman, 23, quai du Commerce, 1080 Bruxelles\",\n year: 1975,\n director: \"Chantal Akerman\",\n countries: [\"France\", \"Belgium\"],\n price: \"$31.96\"\n },\n {\n spine: 701,\n title: \"Persona\",\n year: 1966,\n director: \"Ingmar Bergman\",\n countries: [\"Sweden\"],\n price: \"$31.96\"\n },\n {\n spine: 740,\n title: \"The Bitter Tears of Petra von Kant\",\n year: 1972,\n director: \"Rainer Werner Fassbinder\",\n countries: [\"West Germany\"],\n price: \"$31.96\"\n },\n {\n spine: 782,\n title: \"The Apu Trilogy\",\n year: 1959,\n director: \"Satyajit Ray\",\n countries: [\"India\"],\n price: \"$79.96\"\n },\n {\n spine: 888,\n title: \"Stalker\",\n year: 1979,\n director: \"Andrei Tarkovsky\",\n countries: [\"Soviet Union\"],\n price: \"$31.96\"\n }\n ];\n\n return (\n <>\n <h5>Building Standard Tables</h5>\n <SpsTable>\n <SpsTableHead>\n <SpsTableRow>\n <SpsTableHeader>Spine#</SpsTableHeader>\n <SpsTableHeader>Title</SpsTableHeader>\n <SpsTableHeader>Year</SpsTableHeader>\n <SpsTableHeader>Director</SpsTableHeader>\n <SpsTableHeader>Countries</SpsTableHeader>\n <SpsTableHeader className=\"text-right\">Price</SpsTableHeader>\n </SpsTableRow>\n </SpsTableHead>\n <SpsTableBody>\n {items.map((row, index) => {\n return (\n <SpsTableRow key={index}>\n <SpsTableCell>{row[\"spine\"]}</SpsTableCell>\n <SpsTableCell>{row[\"title\"]}</SpsTableCell>\n <SpsTableCell>{row[\"year\"]}</SpsTableCell>\n <SpsTableCell>{row[\"director\"]}</SpsTableCell>\n <SpsTableCell>{row[\"countries\"]}</SpsTableCell>\n <SpsTableCell className=\"text-right\">{row[\"price\"]}</SpsTableCell>\n </SpsTableRow>\n );\n })}\n </SpsTableBody>\n </SpsTable>\n </>\n );\n }\n "], ["\n function DemoComponent() {\n const items = [\n {\n spine: 2,\n title: \"Seven Samurai\",\n year: 1954,\n director: \"Akira Kurosawa\",\n countries: [\"Japan\"],\n price: \"$39.96\"\n },\n {\n spine: 29,\n title: \"Picnic at Hanging Rock\",\n year: 1975,\n director: \"Peter Weir\",\n countries: [\"Australia\"],\n price: \"$39.95\"\n },\n {\n spine: 62,\n title: \"The Passion of Joan of Arc\",\n year: 1928,\n director: \"Carl Theodor Dreyer\",\n countries: [\"France\"],\n price: \"$31.96\"\n },\n {\n spine: 484,\n title: \"Jeanne Dielman, 23, quai du Commerce, 1080 Bruxelles\",\n year: 1975,\n director: \"Chantal Akerman\",\n countries: [\"France\", \"Belgium\"],\n price: \"$31.96\"\n },\n {\n spine: 701,\n title: \"Persona\",\n year: 1966,\n director: \"Ingmar Bergman\",\n countries: [\"Sweden\"],\n price: \"$31.96\"\n },\n {\n spine: 740,\n title: \"The Bitter Tears of Petra von Kant\",\n year: 1972,\n director: \"Rainer Werner Fassbinder\",\n countries: [\"West Germany\"],\n price: \"$31.96\"\n },\n {\n spine: 782,\n title: \"The Apu Trilogy\",\n year: 1959,\n director: \"Satyajit Ray\",\n countries: [\"India\"],\n price: \"$79.96\"\n },\n {\n spine: 888,\n title: \"Stalker\",\n year: 1979,\n director: \"Andrei Tarkovsky\",\n countries: [\"Soviet Union\"],\n price: \"$31.96\"\n }\n ];\n\n return (\n <>\n <h5>Building Standard Tables</h5>\n <SpsTable>\n <SpsTableHead>\n <SpsTableRow>\n <SpsTableHeader>Spine#</SpsTableHeader>\n <SpsTableHeader>Title</SpsTableHeader>\n <SpsTableHeader>Year</SpsTableHeader>\n <SpsTableHeader>Director</SpsTableHeader>\n <SpsTableHeader>Countries</SpsTableHeader>\n <SpsTableHeader className=\"text-right\">Price</SpsTableHeader>\n </SpsTableRow>\n </SpsTableHead>\n <SpsTableBody>\n {items.map((row, index) => {\n return (\n <SpsTableRow key={index}>\n <SpsTableCell>{row[\"spine\"]}</SpsTableCell>\n <SpsTableCell>{row[\"title\"]}</SpsTableCell>\n <SpsTableCell>{row[\"year\"]}</SpsTableCell>\n <SpsTableCell>{row[\"director\"]}</SpsTableCell>\n <SpsTableCell>{row[\"countries\"]}</SpsTableCell>\n <SpsTableCell className=\"text-right\">{row[\"price\"]}</SpsTableCell>\n </SpsTableRow>\n );\n })}\n </SpsTableBody>\n </SpsTable>\n </>\n );\n }\n "]))),
|
|
6740
|
+
react: code(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n function DemoComponent() {\n const items = [\n {\n spine: 2,\n title: \"Seven Samurai\",\n year: 1954,\n director: \"Akira Kurosawa\",\n countries: [\"Japan\"],\n price: \"$39.96\"\n },\n {\n spine: 29,\n title: \"Picnic at Hanging Rock\",\n year: 1975,\n director: \"Peter Weir\",\n countries: [\"Australia\"],\n price: \"$39.95\"\n },\n {\n spine: 62,\n title: \"The Passion of Joan of Arc\",\n year: 1928,\n director: \"Carl Theodor Dreyer\",\n countries: [\"France\"],\n price: \"$31.96\"\n },\n {\n spine: 484,\n title: \"Jeanne Dielman, 23, quai du Commerce, 1080 Bruxelles\",\n year: 1975,\n director: \"Chantal Akerman\",\n countries: [\"France\", \"Belgium\"],\n price: \"$31.96\"\n },\n {\n spine: 701,\n title: \"Persona\",\n year: 1966,\n director: \"Ingmar Bergman\",\n countries: [\"Sweden\"],\n price: \"$31.96\"\n },\n {\n spine: 740,\n title: \"The Bitter Tears of Petra von Kant\",\n year: 1972,\n director: \"Rainer Werner Fassbinder\",\n countries: [\"West Germany\"],\n price: \"$31.96\"\n },\n {\n spine: 782,\n title: \"The Apu Trilogy\",\n year: 1959,\n director: \"Satyajit Ray\",\n countries: [\"India\"],\n price: \"$79.96\"\n },\n {\n spine: 888,\n title: \"Stalker\",\n year: 1979,\n director: \"Andrei Tarkovsky\",\n countries: [\"Soviet Union\"],\n price: \"$31.96\"\n }\n ];\n\n return (\n <>\n <h5>Building Standard Tables</h5>\n <SpsTable>\n <SpsTableHead>\n <SpsTableRow>\n <SpsTableHeader>Spine#</SpsTableHeader>\n <SpsTableHeader>Title</SpsTableHeader>\n <SpsTableHeader>Year</SpsTableHeader>\n <SpsTableHeader>Director</SpsTableHeader>\n <SpsTableHeader>Countries</SpsTableHeader>\n <SpsTableHeader className=\"text-right\">Price</SpsTableHeader>\n </SpsTableRow>\n </SpsTableHead>\n <SpsTableBody>\n {items.map((row, index) => {\n return (\n <SpsTableRow key={index}>\n <SpsTableCell>{row[\"spine\"]}</SpsTableCell>\n <SpsTableCell>{row[\"title\"]}</SpsTableCell>\n <SpsTableCell>{row[\"year\"]}</SpsTableCell>\n <SpsTableCell>{row[\"director\"]}</SpsTableCell>\n <SpsTableCell>{row[\"countries\"]}</SpsTableCell>\n <SpsTableCell className=\"text-right\">{row[\"price\"]}</SpsTableCell>\n </SpsTableRow>\n );\n })}\n </SpsTableBody>\n </SpsTable>\n </>\n );\n }\n "], ["\n function DemoComponent() {\n const items = [\n {\n spine: 2,\n title: \"Seven Samurai\",\n year: 1954,\n director: \"Akira Kurosawa\",\n countries: [\"Japan\"],\n price: \"$39.96\"\n },\n {\n spine: 29,\n title: \"Picnic at Hanging Rock\",\n year: 1975,\n director: \"Peter Weir\",\n countries: [\"Australia\"],\n price: \"$39.95\"\n },\n {\n spine: 62,\n title: \"The Passion of Joan of Arc\",\n year: 1928,\n director: \"Carl Theodor Dreyer\",\n countries: [\"France\"],\n price: \"$31.96\"\n },\n {\n spine: 484,\n title: \"Jeanne Dielman, 23, quai du Commerce, 1080 Bruxelles\",\n year: 1975,\n director: \"Chantal Akerman\",\n countries: [\"France\", \"Belgium\"],\n price: \"$31.96\"\n },\n {\n spine: 701,\n title: \"Persona\",\n year: 1966,\n director: \"Ingmar Bergman\",\n countries: [\"Sweden\"],\n price: \"$31.96\"\n },\n {\n spine: 740,\n title: \"The Bitter Tears of Petra von Kant\",\n year: 1972,\n director: \"Rainer Werner Fassbinder\",\n countries: [\"West Germany\"],\n price: \"$31.96\"\n },\n {\n spine: 782,\n title: \"The Apu Trilogy\",\n year: 1959,\n director: \"Satyajit Ray\",\n countries: [\"India\"],\n price: \"$79.96\"\n },\n {\n spine: 888,\n title: \"Stalker\",\n year: 1979,\n director: \"Andrei Tarkovsky\",\n countries: [\"Soviet Union\"],\n price: \"$31.96\"\n }\n ];\n\n return (\n <>\n <h5>Building Standard Tables</h5>\n <SpsTable>\n <SpsTableHead>\n <SpsTableRow>\n <SpsTableHeader>Spine#</SpsTableHeader>\n <SpsTableHeader>Title</SpsTableHeader>\n <SpsTableHeader>Year</SpsTableHeader>\n <SpsTableHeader>Director</SpsTableHeader>\n <SpsTableHeader>Countries</SpsTableHeader>\n <SpsTableHeader className=\"text-right\">Price</SpsTableHeader>\n </SpsTableRow>\n </SpsTableHead>\n <SpsTableBody>\n {items.map((row, index) => {\n return (\n <SpsTableRow key={index}>\n <SpsTableCell>{row[\"spine\"]}</SpsTableCell>\n <SpsTableCell>{row[\"title\"]}</SpsTableCell>\n <SpsTableCell>{row[\"year\"]}</SpsTableCell>\n <SpsTableCell>{row[\"director\"]}</SpsTableCell>\n <SpsTableCell>{row[\"countries\"]}</SpsTableCell>\n <SpsTableCell className=\"text-right\">{row[\"price\"]}</SpsTableCell>\n </SpsTableRow>\n );\n })}\n </SpsTableBody>\n </SpsTable>\n </>\n );\n }\n "]))),
|
|
6741
6741
|
},
|
|
6742
6742
|
},
|
|
6743
6743
|
},
|
|
@@ -6827,14 +6827,14 @@ var SpsTableExamples = {
|
|
|
6827
6827
|
},
|
|
6828
6828
|
},
|
|
6829
6829
|
};
|
|
6830
|
-
var templateObject_1$
|
|
6830
|
+
var templateObject_1$w, templateObject_2$s, templateObject_3$o, templateObject_4$i, templateObject_5$b, templateObject_6$8, templateObject_7$7, templateObject_8$6;
|
|
6831
6831
|
|
|
6832
6832
|
var SpsTagExamples = {
|
|
6833
6833
|
basic: {
|
|
6834
6834
|
label: 'Basic Tag',
|
|
6835
6835
|
examples: {
|
|
6836
6836
|
basic: {
|
|
6837
|
-
react: code(templateObject_1$
|
|
6837
|
+
react: code(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n import { SpsTag } from \"@spscommerce/ds-react\";\n import { TagKind } from \"@spscommerce/ds-shared\";\n function Component() {\n return (\n <>\n <SpsTag className=\"mr-1 mb-1\">Default</SpsTag>\n <SpsTag kind={TagKind.KEY} className=\"mr-1 mb-1\">\n Key\n </SpsTag>\n <SpsTag kind={TagKind.WARNING} className=\"mr-1 mb-1\">\n Warning\n </SpsTag>\n <SpsTag kind={TagKind.ERROR} className=\"mr-1 mb-1\">\n Error\n </SpsTag>\n <SpsTag kind={TagKind.PENDING} className=\"mr-1 mb-1\">\n Pending\n </SpsTag>\n <SpsTag kind={TagKind.SUCCESS} className=\"mr-1 mb-1\">\n Success\n </SpsTag>\n <SpsTag kind={TagKind.INFO} className=\"mr-1 mb-1\">\n Info\n </SpsTag>\n </>\n );\n }\n "], ["\n import { SpsTag } from \"@spscommerce/ds-react\";\n import { TagKind } from \"@spscommerce/ds-shared\";\n function Component() {\n return (\n <>\n <SpsTag className=\"mr-1 mb-1\">Default</SpsTag>\n <SpsTag kind={TagKind.KEY} className=\"mr-1 mb-1\">\n Key\n </SpsTag>\n <SpsTag kind={TagKind.WARNING} className=\"mr-1 mb-1\">\n Warning\n </SpsTag>\n <SpsTag kind={TagKind.ERROR} className=\"mr-1 mb-1\">\n Error\n </SpsTag>\n <SpsTag kind={TagKind.PENDING} className=\"mr-1 mb-1\">\n Pending\n </SpsTag>\n <SpsTag kind={TagKind.SUCCESS} className=\"mr-1 mb-1\">\n Success\n </SpsTag>\n <SpsTag kind={TagKind.INFO} className=\"mr-1 mb-1\">\n Info\n </SpsTag>\n </>\n );\n }\n "]))),
|
|
6838
6838
|
},
|
|
6839
6839
|
},
|
|
6840
6840
|
},
|
|
@@ -6847,7 +6847,7 @@ var SpsTagExamples = {
|
|
|
6847
6847
|
},
|
|
6848
6848
|
},
|
|
6849
6849
|
};
|
|
6850
|
-
var templateObject_1$
|
|
6850
|
+
var templateObject_1$v, templateObject_2$r;
|
|
6851
6851
|
|
|
6852
6852
|
var SpsListActionBarExamples = {
|
|
6853
6853
|
general: {
|
|
@@ -6893,14 +6893,14 @@ var SpsListActionBarExamples = {
|
|
|
6893
6893
|
description: 'This example makes use of the Text Buttons + Icon Buttons + Basic Buttons Group.',
|
|
6894
6894
|
examples: {
|
|
6895
6895
|
basic: {
|
|
6896
|
-
react: code(templateObject_1$
|
|
6896
|
+
react: code(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n function SpsActionBarExample() {\n const [itemsSelected, setItemsSelected] = React.useState(0);\n\n function handleClear() {\n setItemsSelected(0);\n }\n\n function showExample() {\n setItemsSelected(3);\n }\n\n return (\n <>\n <SpsButton kind={ButtonKind.LINK} onClick={showExample}>Show Action Bar</SpsButton>\n <SpsListActionBar itemsSelected={itemsSelected} clearSelected={handleClear}>\n <SpsButton kind={ButtonKind.LINK}>Text Button</SpsButton>\n <SpsVr style={{ marginLeft: \"15px\" }} />\n <SpsButton kind={ButtonKind.ICON} icon={SpsIcon.PRINTER} aria-label=\"Print\" />\n <SpsButton kind={ButtonKind.ICON} icon={SpsIcon.DOWNLOAD_CLOUD} aria-label=\"Download\" />\n <SpsVr style={{ marginRight: \"15px\" }} />\n <SpsButton className=\"mr-1\">Button</SpsButton>\n <SpsButton kind={ButtonKind.KEY} className=\"mr-1\">Button</SpsButton>\n <SpsButton kind={ButtonKind.CONFIRM} className=\"mr-1\">Button</SpsButton>\n </SpsListActionBar>\n </>\n )\n }\n "], ["\n function SpsActionBarExample() {\n const [itemsSelected, setItemsSelected] = React.useState(0);\n\n function handleClear() {\n setItemsSelected(0);\n }\n\n function showExample() {\n setItemsSelected(3);\n }\n\n return (\n <>\n <SpsButton kind={ButtonKind.LINK} onClick={showExample}>Show Action Bar</SpsButton>\n <SpsListActionBar itemsSelected={itemsSelected} clearSelected={handleClear}>\n <SpsButton kind={ButtonKind.LINK}>Text Button</SpsButton>\n <SpsVr style={{ marginLeft: \"15px\" }} />\n <SpsButton kind={ButtonKind.ICON} icon={SpsIcon.PRINTER} aria-label=\"Print\" />\n <SpsButton kind={ButtonKind.ICON} icon={SpsIcon.DOWNLOAD_CLOUD} aria-label=\"Download\" />\n <SpsVr style={{ marginRight: \"15px\" }} />\n <SpsButton className=\"mr-1\">Button</SpsButton>\n <SpsButton kind={ButtonKind.KEY} className=\"mr-1\">Button</SpsButton>\n <SpsButton kind={ButtonKind.CONFIRM} className=\"mr-1\">Button</SpsButton>\n </SpsListActionBar>\n </>\n )\n }\n "]))),
|
|
6897
6897
|
},
|
|
6898
6898
|
},
|
|
6899
6899
|
},
|
|
6900
6900
|
};
|
|
6901
|
-
var templateObject_1$
|
|
6901
|
+
var templateObject_1$u;
|
|
6902
6902
|
|
|
6903
|
-
var propTypes$
|
|
6903
|
+
var propTypes$U = __assign(__assign({}, spsGlobalPropTypes), { tabs: arrayOf(impl()).isRequired, activeTab: impl(), onTabChange: fun() });
|
|
6904
6904
|
function SpsTabs(props) {
|
|
6905
6905
|
var tabs = props.tabs, activeTab = props.activeTab, onTabChange = props.onTabChange, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, testId = props["data-testid"], rest = __rest(props, ["tabs", "activeTab", "onTabChange", "className", "unsafelyReplaceClassName", 'data-testid']);
|
|
6906
6906
|
var _a = __read(React.useState(null), 2), activeTabState = _a[0], setActiveTabState = _a[1];
|
|
@@ -6932,15 +6932,15 @@ function SpsTabs(props) {
|
|
|
6932
6932
|
tab.tag && React.createElement("span", { className: "sps-tag sps-tag--key" }, tab.tag))); }))));
|
|
6933
6933
|
}
|
|
6934
6934
|
Object.assign(SpsTabs, {
|
|
6935
|
-
propTypes: propTypes$
|
|
6935
|
+
propTypes: propTypes$U,
|
|
6936
6936
|
displayName: 'SpsTabs',
|
|
6937
6937
|
});
|
|
6938
6938
|
|
|
6939
|
-
var propsDoc$
|
|
6939
|
+
var propsDoc$Q = {
|
|
6940
6940
|
formMeta: 'SpsFormSetMeta<any>',
|
|
6941
6941
|
stacked: 'boolean',
|
|
6942
6942
|
};
|
|
6943
|
-
var propTypes$
|
|
6943
|
+
var propTypes$T = __assign(__assign({}, spsGlobalPropTypes), { formArray: impl(), formGroup: impl(), formMeta: impl(), stacked: bool });
|
|
6944
6944
|
function SpsInputGroup(_a) {
|
|
6945
6945
|
var children = _a.children, className = _a.className, formArray = _a.formArray, formGroup = _a.formGroup, formMeta = _a.formMeta, stacked = _a.stacked, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, rest = __rest(_a, ["children", "className", "formArray", "formGroup", "formMeta", "stacked", 'data-testid', "unsafelyReplaceClassName"]);
|
|
6946
6946
|
var formControlSet = formGroup || formArray;
|
|
@@ -6964,15 +6964,15 @@ function SpsInputGroup(_a) {
|
|
|
6964
6964
|
React.createElement("div", { className: clsx('sps-input-group', stacked && 'sps-input-group--stacked') }, children)));
|
|
6965
6965
|
}
|
|
6966
6966
|
Object.assign(SpsInputGroup, {
|
|
6967
|
-
props: propsDoc$
|
|
6968
|
-
propTypes: propTypes$
|
|
6967
|
+
props: propsDoc$Q,
|
|
6968
|
+
propTypes: propTypes$T,
|
|
6969
6969
|
displayName: 'SpsInputGroup',
|
|
6970
6970
|
});
|
|
6971
6971
|
|
|
6972
|
-
var propsDoc$
|
|
6972
|
+
var propsDoc$P = {
|
|
6973
6973
|
onSubmit: 'FormEventHandler',
|
|
6974
6974
|
};
|
|
6975
|
-
var propTypes$
|
|
6975
|
+
var propTypes$S = __assign(__assign({}, spsGlobalPropTypes), { onSubmit: fun() });
|
|
6976
6976
|
function SpsListToolbarSearch(props) {
|
|
6977
6977
|
var children = props.children, onSubmit = props.onSubmit;
|
|
6978
6978
|
function handleSubmit(event) {
|
|
@@ -6985,12 +6985,12 @@ function SpsListToolbarSearch(props) {
|
|
|
6985
6985
|
React.createElement(SpsInputGroup, { className: "sps-list-toolbar__search-field" }, children)));
|
|
6986
6986
|
}
|
|
6987
6987
|
Object.assign(SpsListToolbarSearch, {
|
|
6988
|
-
props: propsDoc$
|
|
6989
|
-
propTypes: propTypes$
|
|
6988
|
+
props: propsDoc$P,
|
|
6989
|
+
propTypes: propTypes$S,
|
|
6990
6990
|
displayName: 'SpsListToolbarSearch',
|
|
6991
6991
|
});
|
|
6992
6992
|
|
|
6993
|
-
var propsDoc$
|
|
6993
|
+
var propsDoc$O = {
|
|
6994
6994
|
activeTab: 'SpsTab',
|
|
6995
6995
|
advancedSearch: '{ isOpen: boolean, enteredFields: number }',
|
|
6996
6996
|
onToggleAdvancedSearch: '(boolean) => void',
|
|
@@ -7003,7 +7003,7 @@ var propsDoc$L = {
|
|
|
7003
7003
|
isIndeterminate: 'boolean',
|
|
7004
7004
|
onSelectionChange: '(boolean) => void',
|
|
7005
7005
|
};
|
|
7006
|
-
var propTypes$
|
|
7006
|
+
var propTypes$R = __assign(__assign({}, spsGlobalPropTypes), { activeTab: impl(), advancedSearch: shape({
|
|
7007
7007
|
isOpen: bool,
|
|
7008
7008
|
enteredFields: number,
|
|
7009
7009
|
}), onToggleAdvancedSearch: fun(), onTabChange: fun(), title: string, tabs: arrayOf(impl()), onToolbarPinned: fun(), selectable: bool, isSelected: bool, isIndeterminate: bool, onSelectionChange: fun() });
|
|
@@ -7079,8 +7079,8 @@ function SpsListToolbar(props) {
|
|
|
7079
7079
|
React.createElement(PortalContext.Provider, { value: { fixed: true } }, otherChildren))) : (React.createElement("div", { className: "sps-list-toolbar__header-content" }, otherChildren))));
|
|
7080
7080
|
}
|
|
7081
7081
|
Object.assign(SpsListToolbar, {
|
|
7082
|
-
props: propsDoc$
|
|
7083
|
-
propTypes: propTypes$
|
|
7082
|
+
props: propsDoc$O,
|
|
7083
|
+
propTypes: propTypes$R,
|
|
7084
7084
|
displayName: 'SpsListToolbar',
|
|
7085
7085
|
});
|
|
7086
7086
|
|
|
@@ -7176,7 +7176,7 @@ var SpsListToolbarExamples = {
|
|
|
7176
7176
|
},
|
|
7177
7177
|
examples: {
|
|
7178
7178
|
checkbox: {
|
|
7179
|
-
react: code(templateObject_1$
|
|
7179
|
+
react: code(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n searchText: \"\",\n });\n\n const [isSelected, setIsSelected] = React.useState(false);\n\n function handleSearch(event) {\n console.log(event, formValue.searchText)\n }\n\n return (\n <SpsListToolbar \n selectable \n onSelectionChange={setIsSelected} \n isSelected={isSelected}\n >\n <SpsListToolbarSearch onSubmit={handleSearch}>\n <SpsTextInput\n value={formValue.searchText}\n formMeta={formMeta.fields.searchText}\n icon={SpsIcon.FILTER}\n placeholder=\"Filter fields\"\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n )\n }\n "], ["\n function Component() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n searchText: \"\",\n });\n\n const [isSelected, setIsSelected] = React.useState(false);\n\n function handleSearch(event) {\n console.log(event, formValue.searchText)\n }\n\n return (\n <SpsListToolbar \n selectable \n onSelectionChange={setIsSelected} \n isSelected={isSelected}\n >\n <SpsListToolbarSearch onSubmit={handleSearch}>\n <SpsTextInput\n value={formValue.searchText}\n formMeta={formMeta.fields.searchText}\n icon={SpsIcon.FILTER}\n placeholder=\"Filter fields\"\n />\n </SpsListToolbarSearch>\n </SpsListToolbar>\n )\n }\n "]))),
|
|
7180
7180
|
},
|
|
7181
7181
|
},
|
|
7182
7182
|
},
|
|
@@ -7436,13 +7436,13 @@ var SpsListToolbarExamples = {
|
|
|
7436
7436
|
},
|
|
7437
7437
|
},
|
|
7438
7438
|
};
|
|
7439
|
-
var templateObject_1$
|
|
7439
|
+
var templateObject_1$t, templateObject_2$q, templateObject_3$n, templateObject_4$h, templateObject_5$a, templateObject_6$7, templateObject_7$6, templateObject_8$5, templateObject_9$4, templateObject_10$3;
|
|
7440
7440
|
|
|
7441
|
-
var propsDoc$
|
|
7441
|
+
var propsDoc$N = {
|
|
7442
7442
|
kind: 'FeedbackBlockKind',
|
|
7443
7443
|
message: { type: 'string', required: true },
|
|
7444
7444
|
};
|
|
7445
|
-
var propTypes$
|
|
7445
|
+
var propTypes$Q = __assign(__assign({}, spsGlobalPropTypes), { kind: enumValue(FeedbackBlockKind), message: node.isRequired });
|
|
7446
7446
|
function SpsMicroBlock(props) {
|
|
7447
7447
|
var className = props.className, _a = props.kind, kind = _a === void 0 ? FeedbackBlockKind.INFO : _a, message = props.message, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["className", "kind", "message", 'data-testid', "unsafelyReplaceClassName"]);
|
|
7448
7448
|
var classes = clsx(unsafelyReplaceClassName || 'sps-micro-block', "sps-micro-block--" + kind, className);
|
|
@@ -7451,8 +7451,8 @@ function SpsMicroBlock(props) {
|
|
|
7451
7451
|
React.createElement("span", null, message)));
|
|
7452
7452
|
}
|
|
7453
7453
|
Object.assign(SpsMicroBlock, {
|
|
7454
|
-
props: propsDoc$
|
|
7455
|
-
propTypes: propTypes$
|
|
7454
|
+
props: propsDoc$N,
|
|
7455
|
+
propTypes: propTypes$Q,
|
|
7456
7456
|
displayName: 'SpsMicroBlock',
|
|
7457
7457
|
});
|
|
7458
7458
|
|
|
@@ -7461,7 +7461,7 @@ var SpsMicroBlockExamples = {
|
|
|
7461
7461
|
label: 'Info Micro Block',
|
|
7462
7462
|
examples: {
|
|
7463
7463
|
infoBlock: {
|
|
7464
|
-
jsx: code(templateObject_1$
|
|
7464
|
+
jsx: code(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n <SpsMicroBlock kind={FeedbackBlockKind.INFO} message=\"Hey, here's something neat.\"/>\n "], ["\n <SpsMicroBlock kind={FeedbackBlockKind.INFO} message=\"Hey, here's something neat.\"/>\n "]))),
|
|
7465
7465
|
},
|
|
7466
7466
|
},
|
|
7467
7467
|
},
|
|
@@ -7498,16 +7498,16 @@ var SpsMicroBlockExamples = {
|
|
|
7498
7498
|
},
|
|
7499
7499
|
},
|
|
7500
7500
|
};
|
|
7501
|
-
var templateObject_1$
|
|
7501
|
+
var templateObject_1$s, templateObject_2$p, templateObject_3$m, templateObject_4$g, templateObject_5$9;
|
|
7502
7502
|
|
|
7503
|
-
var propsDoc$
|
|
7503
|
+
var propsDoc$M = {
|
|
7504
7504
|
kind: 'ModalKind',
|
|
7505
7505
|
size: 'ModalSize',
|
|
7506
7506
|
title: 'string',
|
|
7507
7507
|
onClose: '() => void',
|
|
7508
7508
|
focusElementOnOpen: 'React.MutableRefObject<HTMLElement>',
|
|
7509
7509
|
};
|
|
7510
|
-
var propTypes$
|
|
7510
|
+
var propTypes$P = __assign(__assign({}, spsGlobalPropTypes), { kind: enumValue(ModalKind), size: enumValue(ModalSize), title: string, onClose: fun(), focusElementOnOpen: ref() });
|
|
7511
7511
|
function SpsModalV2Footer(_a) {
|
|
7512
7512
|
var children = _a.children;
|
|
7513
7513
|
return React.createElement("div", { className: "sps-modal__footer" }, children);
|
|
@@ -7577,8 +7577,8 @@ function SpsModalV2(_a) {
|
|
|
7577
7577
|
: React.createElement(React.Fragment, null);
|
|
7578
7578
|
}
|
|
7579
7579
|
Object.assign(SpsModalV2, {
|
|
7580
|
-
props: propsDoc$
|
|
7581
|
-
propTypes: propTypes$
|
|
7580
|
+
props: propsDoc$M,
|
|
7581
|
+
propTypes: propTypes$P,
|
|
7582
7582
|
displayName: 'SpsModalV2',
|
|
7583
7583
|
});
|
|
7584
7584
|
|
|
@@ -7611,7 +7611,7 @@ var SpsModalExamples = {
|
|
|
7611
7611
|
description: function () { return (React.createElement(React.Fragment, null,
|
|
7612
7612
|
React.createElement("h5", null, "Close Button"),
|
|
7613
7613
|
React.createElement("p", null, "Remove the Close Button in the upper right of the Modal if the user must choose the course of action before proceeding."))); },
|
|
7614
|
-
react: code(templateObject_1$
|
|
7614
|
+
react: code(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n function secondaryAction() {\n console.log(\"Secondary action invoked\");\n setShowModal(false);\n }\n \n function primaryAction() {\n console.log(\"Primary action invoked\");\n setShowModal(false);\n }\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <SpsModalV2Footer>\n <SpsButton onClick={secondaryAction}>Secondary Action</SpsButton>\n <SpsButton kind={ButtonKind.KEY} onClick={primaryAction}>Primary Action</SpsButton>\n </SpsModalV2Footer>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n function secondaryAction() {\n console.log(\"Secondary action invoked\");\n setShowModal(false);\n }\n \n function primaryAction() {\n console.log(\"Primary action invoked\");\n setShowModal(false);\n }\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <SpsModalV2Footer>\n <SpsButton onClick={secondaryAction}>Secondary Action</SpsButton>\n <SpsButton kind={ButtonKind.KEY} onClick={primaryAction}>Primary Action</SpsButton>\n </SpsModalV2Footer>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
7615
7615
|
},
|
|
7616
7616
|
},
|
|
7617
7617
|
},
|
|
@@ -7710,9 +7710,9 @@ var SpsModalExamples = {
|
|
|
7710
7710
|
},
|
|
7711
7711
|
},
|
|
7712
7712
|
};
|
|
7713
|
-
var templateObject_1$
|
|
7713
|
+
var templateObject_1$r, templateObject_2$o, templateObject_3$l, templateObject_4$f, templateObject_5$8, templateObject_6$6, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1;
|
|
7714
7714
|
|
|
7715
|
-
var propsDoc$
|
|
7715
|
+
var propsDoc$L = {
|
|
7716
7716
|
captionKey: 'string',
|
|
7717
7717
|
debounce: 'number',
|
|
7718
7718
|
disabled: 'boolean',
|
|
@@ -7728,7 +7728,7 @@ var propsDoc$I = {
|
|
|
7728
7728
|
value: 'any',
|
|
7729
7729
|
zeroState: 'string',
|
|
7730
7730
|
};
|
|
7731
|
-
var propTypes$
|
|
7731
|
+
var propTypes$O = __assign(__assign({}, spsGlobalPropTypes), { action: fun(), captionKey: string, debounce: number, disabled: bool, disableSelected: bool, formControl: impl(), formMeta: impl(), hideSelected: bool, icon: enumValue(SpsIcon$1), onChange: fun(), options: oneOfType([
|
|
7732
7732
|
array,
|
|
7733
7733
|
instanceOf(Promise),
|
|
7734
7734
|
fun(),
|
|
@@ -7878,8 +7878,8 @@ function SpsMultiSelect(_a) {
|
|
|
7878
7878
|
React.createElement(SpsOptionList, { id: wrapperId + "_options", ref: optionListRef, attachTo: inputVisual, captionKey: captionKey, disabledOptions: disableSelected ? value : null, isOpen: showPopup, keepOpen: true, keyDown: state.keyDown, options: options, specialAction: action, onOptionSelected: selectOption, onPositionFlip: handlePositionFlip, hideInlineSearch: true, optionRole: "option", onOptionListChanged: handleOptionListChanged, searchDebounce: debounce, search: state.searchText, tall: tallOptionList, textKey: textKey, zeroState: zeroState })));
|
|
7879
7879
|
}
|
|
7880
7880
|
Object.assign(SpsMultiSelect, {
|
|
7881
|
-
props: propsDoc$
|
|
7882
|
-
propTypes: propTypes$
|
|
7881
|
+
props: propsDoc$L,
|
|
7882
|
+
propTypes: propTypes$O,
|
|
7883
7883
|
displayName: 'SpsMultiSelect',
|
|
7884
7884
|
});
|
|
7885
7885
|
|
|
@@ -7889,7 +7889,7 @@ var SpsMultiSelectExamples = {
|
|
|
7889
7889
|
description: '<p>Multi select component</p>',
|
|
7890
7890
|
examples: {
|
|
7891
7891
|
a_basic: {
|
|
7892
|
-
react: code(templateObject_1$
|
|
7892
|
+
react: code(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n function Component() {\n const [opts] = React.useState([\"foo\", \"bar\", \"baz\", \"orp\"])\n const { formValue, formMeta, updateForm } = useSpsForm({\n things: [ opts[0] ]\n })\n\n return <>\n <SpsLabel for={formMeta.fields.things}>Things</SpsLabel>\n <SpsMultiSelect\n options={opts}\n formMeta={formMeta.fields.things}\n value={formValue.things}\n />\n <br />\n {JSON.stringify(formValue)}\n </>\n }\n "], ["\n function Component() {\n const [opts] = React.useState([\"foo\", \"bar\", \"baz\", \"orp\"])\n const { formValue, formMeta, updateForm } = useSpsForm({\n things: [ opts[0] ]\n })\n\n return <>\n <SpsLabel for={formMeta.fields.things}>Things</SpsLabel>\n <SpsMultiSelect\n options={opts}\n formMeta={formMeta.fields.things}\n value={formValue.things}\n />\n <br />\n {JSON.stringify(formValue)}\n </>\n }\n "]))),
|
|
7893
7893
|
},
|
|
7894
7894
|
b_disabled: {
|
|
7895
7895
|
react: code(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n function Component() {\n const [opts] = React.useState([\"foo\", \"bar\", \"baz\", \"orp\"])\n const { formValue, formMeta, updateForm } = useSpsForm({\n things: [ opts[0] ]\n })\n\n return <>\n <SpsLabel for={formMeta.fields.things}>Things</SpsLabel>\n <SpsMultiSelect disabled\n options={opts}\n formMeta={formMeta.fields.things}\n value={formValue.things}\n />\n <br />\n {JSON.stringify(formValue)}\n </>\n }\n "], ["\n function Component() {\n const [opts] = React.useState([\"foo\", \"bar\", \"baz\", \"orp\"])\n const { formValue, formMeta, updateForm } = useSpsForm({\n things: [ opts[0] ]\n })\n\n return <>\n <SpsLabel for={formMeta.fields.things}>Things</SpsLabel>\n <SpsMultiSelect disabled\n options={opts}\n formMeta={formMeta.fields.things}\n value={formValue.things}\n />\n <br />\n {JSON.stringify(formValue)}\n </>\n }\n "]))),
|
|
@@ -7909,10 +7909,10 @@ var SpsMultiSelectExamples = {
|
|
|
7909
7909
|
},
|
|
7910
7910
|
},
|
|
7911
7911
|
};
|
|
7912
|
-
var templateObject_1$
|
|
7912
|
+
var templateObject_1$q, templateObject_2$n, templateObject_3$k, templateObject_4$e, templateObject_5$7, templateObject_6$5;
|
|
7913
7913
|
|
|
7914
|
-
var propsDoc$
|
|
7915
|
-
var propTypes$
|
|
7914
|
+
var propsDoc$K = {};
|
|
7915
|
+
var propTypes$N = __assign({}, spsGlobalPropTypes);
|
|
7916
7916
|
function SpsPageTitle(props) {
|
|
7917
7917
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
7918
7918
|
var icon;
|
|
@@ -7931,21 +7931,21 @@ function SpsPageTitle(props) {
|
|
|
7931
7931
|
React.createElement("div", { className: "sps-page-title__text", "data-testid": testId + "__text" }, otherChildren)));
|
|
7932
7932
|
}
|
|
7933
7933
|
Object.assign(SpsPageTitle, {
|
|
7934
|
-
props: propsDoc$
|
|
7935
|
-
propTypes: propTypes$
|
|
7934
|
+
props: propsDoc$K,
|
|
7935
|
+
propTypes: propTypes$N,
|
|
7936
7936
|
displayName: 'SpsPageTitle',
|
|
7937
7937
|
});
|
|
7938
7938
|
|
|
7939
|
-
var propsDoc$
|
|
7940
|
-
var propTypes$
|
|
7939
|
+
var propsDoc$J = {};
|
|
7940
|
+
var propTypes$M = __assign({}, spsGlobalPropTypes);
|
|
7941
7941
|
function SpsPageSubtitle(props) {
|
|
7942
7942
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
7943
7943
|
var classes = clsx(unsafelyReplaceClassName || 'sps-page-title__subtitle', className);
|
|
7944
7944
|
return (React.createElement("div", __assign({ className: classes, "data-testid": testId }, rest), children));
|
|
7945
7945
|
}
|
|
7946
7946
|
Object.assign(SpsPageSubtitle, {
|
|
7947
|
-
props: propsDoc$
|
|
7948
|
-
propTypes: propTypes$
|
|
7947
|
+
props: propsDoc$J,
|
|
7948
|
+
propTypes: propTypes$M,
|
|
7949
7949
|
displayName: 'SpsPageSubtitle',
|
|
7950
7950
|
});
|
|
7951
7951
|
|
|
@@ -7954,7 +7954,7 @@ var SpsPageTitleExamples = {
|
|
|
7954
7954
|
label: 'Basic',
|
|
7955
7955
|
examples: {
|
|
7956
7956
|
basic: {
|
|
7957
|
-
jsx: code(templateObject_1$
|
|
7957
|
+
jsx: code(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n <SpsPageTitle>\n Cabela's Purchase Order #123456789012\n </SpsPageTitle>\n "], ["\n <SpsPageTitle>\n Cabela's Purchase Order #123456789012\n </SpsPageTitle>\n "]))),
|
|
7958
7958
|
},
|
|
7959
7959
|
},
|
|
7960
7960
|
},
|
|
@@ -7983,9 +7983,9 @@ var SpsPageTitleExamples = {
|
|
|
7983
7983
|
},
|
|
7984
7984
|
},
|
|
7985
7985
|
};
|
|
7986
|
-
var templateObject_1$
|
|
7986
|
+
var templateObject_1$p, templateObject_2$m, templateObject_3$j, templateObject_4$d;
|
|
7987
7987
|
|
|
7988
|
-
var propsDoc$
|
|
7988
|
+
var propsDoc$I = {
|
|
7989
7989
|
action: 'SpsActionMethod',
|
|
7990
7990
|
captionKey: 'string',
|
|
7991
7991
|
comparisonKey: 'string',
|
|
@@ -8004,7 +8004,7 @@ var propsDoc$F = {
|
|
|
8004
8004
|
zeroState: 'string',
|
|
8005
8005
|
autoFixWidth: 'boolean',
|
|
8006
8006
|
};
|
|
8007
|
-
var propTypes$
|
|
8007
|
+
var propTypes$L = __assign(__assign({}, spsGlobalPropTypes), { action: fun(), captionKey: string, comparisonKey: string, disabled: bool, formControl: impl(), formMeta: impl(), notClearable: bool, options: oneOfType([
|
|
8008
8008
|
array,
|
|
8009
8009
|
instanceOf(Promise),
|
|
8010
8010
|
fun(),
|
|
@@ -8130,18 +8130,18 @@ var SpsSelect = React.forwardRef(function (props, ref) {
|
|
|
8130
8130
|
React.createElement(SpsOptionList, { id: wrapperId + "-options", ref: optionsList, attachTo: controlButton, captionKey: captionKey, comparisonKey: comparisonKey, isOpen: state.isOpen, keyDown: state.keyDown, nullOption: state.value && !notClearable ? placeholder : null, options: options, onOptionSelected: updateValue, onPositionFlip: handlePositionFlip, onSelfToggle: handleSelfToggle, searchDebounce: searchDebounce, searchPlaceholder: searchPlaceholder, selectedOption: state.value, specialAction: action, tall: tallOptionList, textKey: textKey, optionRole: "option", valueKey: valueKey, onOptionListChanged: handleOptionListChanged, zeroState: zeroState, ignoreWidthStyles: autoFixWidth })));
|
|
8131
8131
|
});
|
|
8132
8132
|
Object.assign(SpsSelect, {
|
|
8133
|
-
props: propsDoc$
|
|
8134
|
-
propTypes: propTypes$
|
|
8133
|
+
props: propsDoc$I,
|
|
8134
|
+
propTypes: propTypes$L,
|
|
8135
8135
|
displayName: 'SpsSelect',
|
|
8136
8136
|
});
|
|
8137
8137
|
|
|
8138
|
-
var propsDoc$
|
|
8138
|
+
var propsDoc$H = {
|
|
8139
8139
|
page: 'number',
|
|
8140
8140
|
numPages: 'number',
|
|
8141
8141
|
onPageChange: '(number) => void',
|
|
8142
8142
|
disabled: 'boolean',
|
|
8143
8143
|
};
|
|
8144
|
-
var propTypes$
|
|
8144
|
+
var propTypes$K = __assign({ numPages: number, onPageChange: fun(), page: number, disabled: bool }, spsGlobalPropTypes);
|
|
8145
8145
|
function SpsPageSelector(props) {
|
|
8146
8146
|
var _a = props.numPages, numPages = _a === void 0 ? 0 : _a, onPageChange = props.onPageChange, _b = props.page, pageProp = _b === void 0 ? 1 : _b, unsafelyReplaceClassName = props.unsafelyReplaceClassName, className = props.className, testId = props["data-testid"], _c = props.disabled, disabled = _c === void 0 ? false : _c, rest = __rest(props, ["numPages", "onPageChange", "page", "unsafelyReplaceClassName", "className", 'data-testid', "disabled"]);
|
|
8147
8147
|
var t = React.useContext(I18nContext).t;
|
|
@@ -8185,12 +8185,12 @@ function SpsPageSelector(props) {
|
|
|
8185
8185
|
React.createElement("i", { className: "sps-icon sps-icon-chevron-right", "aria-hidden": "true" }))))));
|
|
8186
8186
|
}
|
|
8187
8187
|
Object.assign(SpsPageSelector, {
|
|
8188
|
-
props: propsDoc$
|
|
8189
|
-
propTypes: propTypes$
|
|
8188
|
+
props: propsDoc$H,
|
|
8189
|
+
propTypes: propTypes$K,
|
|
8190
8190
|
displayName: 'SpsPageSelector',
|
|
8191
8191
|
});
|
|
8192
8192
|
|
|
8193
|
-
var propsDoc$
|
|
8193
|
+
var propsDoc$G = {
|
|
8194
8194
|
page: 'number',
|
|
8195
8195
|
pageSize: 'number',
|
|
8196
8196
|
pageSizeOptions: 'Array<number>',
|
|
@@ -8198,7 +8198,7 @@ var propsDoc$D = {
|
|
|
8198
8198
|
onPageChange: '(page: number, pageSize: number, indices: [number, number]) => void',
|
|
8199
8199
|
disabled: 'boolean',
|
|
8200
8200
|
};
|
|
8201
|
-
var propTypes$
|
|
8201
|
+
var propTypes$J = __assign({ onPageChange: fun()
|
|
8202
8202
|
.isRequired, page: number, pageSize: number, pageSizeOptions: arrayOf(number), totalResults: number, disabled: bool }, spsGlobalPropTypes);
|
|
8203
8203
|
function SpsPagination(props) {
|
|
8204
8204
|
var className = props.className, onPageChange = props.onPageChange, _a = props.page, pageProp = _a === void 0 ? 1 : _a, _b = props.pageSizeOptions, pageSizeOptions = _b === void 0 ? DEFAULT_PAGE_SIZE_OPTIONS : _b, _c = props.pageSize, pageSizeProp = _c === void 0 ? pageSizeOptions[0] : _c, testId = props["data-testid"], totalResults = props.totalResults, unsafelyReplaceClassName = props.unsafelyReplaceClassName, _d = props.disabled, disabled = _d === void 0 ? false : _d, rest = __rest(props, ["className", "onPageChange", "page", "pageSizeOptions", "pageSize", 'data-testid', "totalResults", "unsafelyReplaceClassName", "disabled"]);
|
|
@@ -8278,8 +8278,8 @@ function SpsPagination(props) {
|
|
|
8278
8278
|
React.createElement(SpsPageSelector, { numPages: state.numPages, page: state.page, onPageChange: handlePageChange, disabled: disabled })));
|
|
8279
8279
|
}
|
|
8280
8280
|
Object.assign(SpsPagination, {
|
|
8281
|
-
props: propsDoc$
|
|
8282
|
-
propTypes: propTypes$
|
|
8281
|
+
props: propsDoc$G,
|
|
8282
|
+
propTypes: propTypes$J,
|
|
8283
8283
|
displayName: 'SpsPagination',
|
|
8284
8284
|
});
|
|
8285
8285
|
|
|
@@ -8289,7 +8289,7 @@ var SpsPaginationExamples = {
|
|
|
8289
8289
|
description: 'info about pagination',
|
|
8290
8290
|
examples: {
|
|
8291
8291
|
basic: {
|
|
8292
|
-
react: code(templateObject_1$
|
|
8292
|
+
react: code(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n function Component() {\n const [page, setPage] = React.useState(2);\n const [pageSize, setPageSize] = React.useState(25);\n\n function handlePageChange(newPage, newPageSize) {\n console.log(\"change\", newPage, newPageSize);\n setPage(newPage);\n setPageSize(newPageSize);\n }\n\n return (\n <React.Fragment>\n <SpsPagination id=\"basic\"\n totalResults={123}\n page={page}\n pageSize={pageSize}\n onPageChange={handlePageChange}\n />\n <span className=\"mr-2\">page: {page}</span>\n <span>pageSize: {pageSize}</span>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const [page, setPage] = React.useState(2);\n const [pageSize, setPageSize] = React.useState(25);\n\n function handlePageChange(newPage, newPageSize) {\n console.log(\"change\", newPage, newPageSize);\n setPage(newPage);\n setPageSize(newPageSize);\n }\n\n return (\n <React.Fragment>\n <SpsPagination id=\"basic\"\n totalResults={123}\n page={page}\n pageSize={pageSize}\n onPageChange={handlePageChange}\n />\n <span className=\"mr-2\">page: {page}</span>\n <span>pageSize: {pageSize}</span>\n </React.Fragment>\n );\n }\n "]))),
|
|
8293
8293
|
},
|
|
8294
8294
|
disabled: {
|
|
8295
8295
|
description: 'Disabled state',
|
|
@@ -8311,24 +8311,24 @@ var SpsPaginationExamples = {
|
|
|
8311
8311
|
},
|
|
8312
8312
|
},
|
|
8313
8313
|
};
|
|
8314
|
-
var templateObject_1$
|
|
8314
|
+
var templateObject_1$o, templateObject_2$l, templateObject_3$i, templateObject_4$c;
|
|
8315
8315
|
|
|
8316
|
-
var propsDoc$
|
|
8316
|
+
var propsDoc$F = {
|
|
8317
8317
|
active: 'boolean',
|
|
8318
8318
|
};
|
|
8319
|
-
var propTypes$
|
|
8319
|
+
var propTypes$I = __assign(__assign({}, spsGlobalPropTypes), { active: bool });
|
|
8320
8320
|
function SpsProductBarTab(props) {
|
|
8321
8321
|
var children = props.children, active = props.active; props.className; var unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "active", "className", "unsafelyReplaceClassName"]);
|
|
8322
8322
|
var classes = clsx(unsafelyReplaceClassName || 'sps-nav__item', 'sps-nav__link', active && 'active');
|
|
8323
8323
|
return (React.createElement("a", __assign({ className: classes }, rest), children));
|
|
8324
8324
|
}
|
|
8325
8325
|
Object.assign(SpsProductBarTab, {
|
|
8326
|
-
props: propsDoc$
|
|
8327
|
-
propTypes: propTypes$
|
|
8326
|
+
props: propsDoc$F,
|
|
8327
|
+
propTypes: propTypes$I,
|
|
8328
8328
|
displayName: 'SpsProductBarTab',
|
|
8329
8329
|
});
|
|
8330
8330
|
|
|
8331
|
-
var propsDoc$
|
|
8331
|
+
var propsDoc$E = {
|
|
8332
8332
|
activeTab: 'string',
|
|
8333
8333
|
fullWidth: 'boolean',
|
|
8334
8334
|
onTabChange: '(newTab: string) => void',
|
|
@@ -8338,7 +8338,7 @@ var propsDoc$B = {
|
|
|
8338
8338
|
productNameHref: 'string',
|
|
8339
8339
|
tabs: 'Array<string>',
|
|
8340
8340
|
};
|
|
8341
|
-
var propTypes$
|
|
8341
|
+
var propTypes$H = __assign(__assign({}, spsGlobalPropTypes), { activeTab: string, fullWidth: bool, onTabChange: fun(), onProductNameClick: fun(), productLogoSrc: string, productName: string.isRequired, productNameHref: string, tabs: arrayOf(string) });
|
|
8342
8342
|
function SpsProductBar(props) {
|
|
8343
8343
|
var activeTabInit = props.activeTab, children = props.children, className = props.className, fullWidth = props.fullWidth, onProductNameClick = props.onProductNameClick, onTabChange = props.onTabChange, productLogoSrc = props.productLogoSrc, productName = props.productName, productNameHref = props.productNameHref, _a = props.tabs, tabs = _a === void 0 ? [] : _a, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["activeTab", "children", "className", "fullWidth", "onProductNameClick", "onTabChange", "productLogoSrc", "productName", "productNameHref", "tabs", "unsafelyReplaceClassName"]);
|
|
8344
8344
|
var rootElement = React.useRef();
|
|
@@ -8369,15 +8369,15 @@ function SpsProductBar(props) {
|
|
|
8369
8369
|
React.createElement(PortalContext.Provider, { value: { parentElementRef: rootElement, fixed: true } }, otherChildren)))));
|
|
8370
8370
|
}
|
|
8371
8371
|
Object.assign(SpsProductBar, {
|
|
8372
|
-
props: propsDoc$
|
|
8373
|
-
propTypes: propTypes$
|
|
8372
|
+
props: propsDoc$E,
|
|
8373
|
+
propTypes: propTypes$H,
|
|
8374
8374
|
displayName: 'SpsProductBar',
|
|
8375
8375
|
});
|
|
8376
8376
|
|
|
8377
8377
|
var SpsProductBarExamples = {
|
|
8378
8378
|
basic: {
|
|
8379
8379
|
label: 'Basic',
|
|
8380
|
-
description: code(templateObject_1$
|
|
8380
|
+
description: code(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n <p>Product navigation bar</p>\n "], ["\n <p>Product navigation bar</p>\n "]))),
|
|
8381
8381
|
examples: {
|
|
8382
8382
|
basic: {
|
|
8383
8383
|
react: code(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n function DemoComponent() {\n const navTabs = [\"Foo\", \"Bar\", \"Baz\"];\n function handleTabChange(newTab) {\n alert(newTab);\n }\n\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={navTabs}\n activeTab=\"Bar\"\n onTabChange={handleTabChange}\n fullWidth\n style={{ position: \"relative\", zIndex: \"auto\" }} // display this example in its place instead of at the top\n ><SpsButton>do the thing</SpsButton></SpsProductBar>\n );\n }\n "], ["\n function DemoComponent() {\n const navTabs = [\"Foo\", \"Bar\", \"Baz\"];\n function handleTabChange(newTab) {\n alert(newTab);\n }\n\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={navTabs}\n activeTab=\"Bar\"\n onTabChange={handleTabChange}\n fullWidth\n style={{ position: \"relative\", zIndex: \"auto\" }} // display this example in its place instead of at the top\n ><SpsButton>do the thing</SpsButton></SpsProductBar>\n );\n }\n "]))),
|
|
@@ -8409,16 +8409,16 @@ var SpsProductBarExamples = {
|
|
|
8409
8409
|
},
|
|
8410
8410
|
},
|
|
8411
8411
|
};
|
|
8412
|
-
var templateObject_1$
|
|
8412
|
+
var templateObject_1$n, templateObject_2$k, templateObject_3$h, templateObject_4$b, templateObject_5$6;
|
|
8413
8413
|
|
|
8414
|
-
var propsDoc$
|
|
8414
|
+
var propsDoc$D = {
|
|
8415
8415
|
percentComplete: 'number',
|
|
8416
8416
|
title: 'string',
|
|
8417
8417
|
detail: 'string',
|
|
8418
8418
|
disabled: 'boolean',
|
|
8419
8419
|
onClose: '() => void',
|
|
8420
8420
|
};
|
|
8421
|
-
var propTypes$
|
|
8421
|
+
var propTypes$G = __assign(__assign({}, spsGlobalPropTypes), { percentComplete: number, title: string, detail: string, disabled: bool, onClose: fun() });
|
|
8422
8422
|
function SpsProgressBar(props) {
|
|
8423
8423
|
props.children; var className = props.className, detail = props.detail, disabled = props.disabled, onClose = props.onClose, percentComplete = props.percentComplete, title = props.title; props["data-testid"]; var unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "detail", "disabled", "onClose", "percentComplete", "title", 'data-testid', "unsafelyReplaceClassName"]);
|
|
8424
8424
|
var t = React.useContext(I18nContext).t;
|
|
@@ -8437,8 +8437,8 @@ function SpsProgressBar(props) {
|
|
|
8437
8437
|
React.createElement(SpsButton, { kind: ButtonKind.ICON, icon: SpsIcon$1.X, onClick: onClose, title: t('design-system:progressBar.closeButtonTitle') })))));
|
|
8438
8438
|
}
|
|
8439
8439
|
Object.assign(SpsProgressBar, {
|
|
8440
|
-
props: propsDoc$
|
|
8441
|
-
propTypes: propTypes$
|
|
8440
|
+
props: propsDoc$D,
|
|
8441
|
+
propTypes: propTypes$G,
|
|
8442
8442
|
displayName: 'SpsProgressBar',
|
|
8443
8443
|
});
|
|
8444
8444
|
|
|
@@ -8497,7 +8497,7 @@ var SpsProgressBarExamples = {
|
|
|
8497
8497
|
standard: {
|
|
8498
8498
|
label: 'Building Standard Progress Bars',
|
|
8499
8499
|
description: function () { return (React.createElement("p", null, "The Standard Progress Bar is designed to expand to fit the entire width of its container. View the diagram above for rules regarding including or excluding certain elements.")); },
|
|
8500
|
-
react: code(templateObject_1$
|
|
8500
|
+
react: code(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n function Component() {\n function handleClose() {\n console.log(\"closed\");\n }\n\n return (\n <SpsCard>\n <SpsProgressBar\n title=\"File Name\"\n detail=\"Step 3 of 5: Verifying Headers\"\n percentComplete={0.5}\n onClose={handleClose}\n />\n </SpsCard>\n )\n }\n "], ["\n function Component() {\n function handleClose() {\n console.log(\"closed\");\n }\n\n return (\n <SpsCard>\n <SpsProgressBar\n title=\"File Name\"\n detail=\"Step 3 of 5: Verifying Headers\"\n percentComplete={0.5}\n onClose={handleClose}\n />\n </SpsCard>\n )\n }\n "]))),
|
|
8501
8501
|
},
|
|
8502
8502
|
completed: {
|
|
8503
8503
|
label: 'Completed State',
|
|
@@ -8512,9 +8512,9 @@ var SpsProgressBarExamples = {
|
|
|
8512
8512
|
},
|
|
8513
8513
|
},
|
|
8514
8514
|
};
|
|
8515
|
-
var templateObject_1$
|
|
8515
|
+
var templateObject_1$m, templateObject_2$j, templateObject_3$g;
|
|
8516
8516
|
|
|
8517
|
-
var propsDoc$
|
|
8517
|
+
var propsDoc$C = {
|
|
8518
8518
|
checked: 'boolean',
|
|
8519
8519
|
disabled: 'boolean',
|
|
8520
8520
|
formMeta: 'SpsFormFieldMeta<any>',
|
|
@@ -8524,7 +8524,7 @@ var propsDoc$z = {
|
|
|
8524
8524
|
onChange: 'ChangeEventHandler',
|
|
8525
8525
|
value: 'any',
|
|
8526
8526
|
};
|
|
8527
|
-
var propTypes$
|
|
8527
|
+
var propTypes$F = __assign(__assign({}, spsGlobalPropTypes), { checked: bool, disabled: bool, formControl: impl(), formMeta: impl(), inline: bool, label: string, name: string.isRequired, onChange: fun(), ref: ref(), value: any });
|
|
8528
8528
|
function SpsRadioButton(_a) {
|
|
8529
8529
|
var checked = _a.checked, className = _a.className, testId = _a["data-testid"], disabled = _a.disabled, formControl = _a.formControl, formMeta = _a.formMeta, id = _a.id, inline = _a.inline, label = _a.label, name = _a.name, onChange = _a.onChange, ref = _a.ref, unsafelyReplaceClassName = _a.unsafelyReplaceClassName, value = _a.value, rest = __rest(_a, ["checked", "className", 'data-testid', "disabled", "formControl", "formMeta", "id", "inline", "label", "name", "onChange", "ref", "unsafelyReplaceClassName", "value"]);
|
|
8530
8530
|
var meta = formMeta || formControl;
|
|
@@ -8546,8 +8546,8 @@ function SpsRadioButton(_a) {
|
|
|
8546
8546
|
React.createElement("label", { className: "sps-checkable__label", htmlFor: controlId }, label || '')));
|
|
8547
8547
|
}
|
|
8548
8548
|
Object.assign(SpsRadioButton, {
|
|
8549
|
-
props: propsDoc$
|
|
8550
|
-
propTypes: propTypes$
|
|
8549
|
+
props: propsDoc$C,
|
|
8550
|
+
propTypes: propTypes$F,
|
|
8551
8551
|
displayName: 'SpsRadioButton',
|
|
8552
8552
|
});
|
|
8553
8553
|
|
|
@@ -8557,7 +8557,7 @@ var SpsRadioButtonExamples = {
|
|
|
8557
8557
|
description: 'info about radio buttons with labels',
|
|
8558
8558
|
examples: {
|
|
8559
8559
|
label: {
|
|
8560
|
-
react: code(templateObject_1$
|
|
8560
|
+
react: code(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n color: \"blue\"\n });\n\n return <SpsForm formMeta={formMeta} id=\"labelRadioButton\">\n <SpsRadioButton name=\"blue\" value=\"blue\" label=\"Blue\"\n formMeta={formMeta.fields.color}\n checked={formValue.color === \"blue\"}\n ></SpsRadioButton>\n <SpsRadioButton name=\"green\" value=\"green\" label=\"Green\"\n formMeta={formMeta.fields.color}\n checked={formValue.color === \"green\"}\n ></SpsRadioButton>\n </SpsForm>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n color: \"blue\"\n });\n\n return <SpsForm formMeta={formMeta} id=\"labelRadioButton\">\n <SpsRadioButton name=\"blue\" value=\"blue\" label=\"Blue\"\n formMeta={formMeta.fields.color}\n checked={formValue.color === \"blue\"}\n ></SpsRadioButton>\n <SpsRadioButton name=\"green\" value=\"green\" label=\"Green\"\n formMeta={formMeta.fields.color}\n checked={formValue.color === \"green\"}\n ></SpsRadioButton>\n </SpsForm>\n }\n "]))),
|
|
8561
8561
|
},
|
|
8562
8562
|
},
|
|
8563
8563
|
},
|
|
@@ -8580,19 +8580,19 @@ var SpsRadioButtonExamples = {
|
|
|
8580
8580
|
},
|
|
8581
8581
|
},
|
|
8582
8582
|
};
|
|
8583
|
-
var templateObject_1$
|
|
8583
|
+
var templateObject_1$l, templateObject_2$i, templateObject_3$f;
|
|
8584
8584
|
|
|
8585
|
-
var propsDoc$
|
|
8585
|
+
var propsDoc$B = {
|
|
8586
8586
|
maxHeight: 'string',
|
|
8587
8587
|
};
|
|
8588
|
-
var propTypes$
|
|
8588
|
+
var propTypes$E = __assign(__assign({}, spsGlobalPropTypes), { maxHeight: string });
|
|
8589
8589
|
function SpsScrollableContainer(props) {
|
|
8590
8590
|
var children = props.children, maxHeight = props.maxHeight;
|
|
8591
8591
|
return (React.createElement("div", { className: "sps-scrollable-container", style: { maxHeight: maxHeight } }, children));
|
|
8592
8592
|
}
|
|
8593
8593
|
Object.assign(SpsScrollableContainer, {
|
|
8594
|
-
props: propsDoc$
|
|
8595
|
-
propTypes: propTypes$
|
|
8594
|
+
props: propsDoc$B,
|
|
8595
|
+
propTypes: propTypes$E,
|
|
8596
8596
|
displayName: 'SpsScrollableContainer',
|
|
8597
8597
|
});
|
|
8598
8598
|
|
|
@@ -8602,7 +8602,7 @@ var SpsScrollableContainerExamples = {
|
|
|
8602
8602
|
description: 'basic scrollable container',
|
|
8603
8603
|
examples: {
|
|
8604
8604
|
text: {
|
|
8605
|
-
jsx: code(templateObject_1$
|
|
8605
|
+
jsx: code(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n <SpsCard>\n <SpsScrollableContainer maxHeight='100px'>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris\n sit amet molestie metus. Phasellus dignissim interdum arcu. Sed\n in nunc id sapien porta mollis eleifend nec mauris. Nulla\n molestie pulvinar velit eget fringilla. Pellentesque habitant\n morbi tristique senectus et netus et malesuada fames ac turpis\n egestas. Nam eu sem ut neque condimentum tempor. Integer\n bibendum in velit at consectetur. Nunc ut velit ac magna sodales\n tempor. Ut tempor rhoncus mi, eget feugiat nisi finibus at.\n Pellentesque habitant morbi tristique senectus et netus et\n malesuada fames ac turpis egestas. Vestibulum nunc ipsum,\n elementum consectetur urna a, sodales pellentesque nibh. Nullam\n in dui dolor. Vivamus sapien enim, tristique accumsan finibus\n nec, fringilla eget tellus. Duis sed pulvinar ipsum. Donec\n convallis aliquet dui, nec ullamcorper nulla tincidunt ac. Fusce\n tempus neque sit amet libero vestibulum maximus. Praesent id dui\n sed diam scelerisque pretium id vitae ante. Sed ullamcorper\n ligula quis mi vehicula, in interdum purus suscipit.\n Pellentesque venenatis velit nunc, quis tincidunt ligula egestas\n id. Praesent sollicitudin et mauris et auctor. Nullam diam erat,\n tincidunt at odio non, tincidunt laoreet quam. In consequat\n pulvinar sapien vel varius. Suspendisse potenti. Aenean pharetra\n felis sit amet tempus consequat. Donec eu molestie mauris. Nunc\n scelerisque ex id vehicula semper. Nunc eu interdum ante. Etiam\n in metus ante. Nulla ac turpis vel sem fermentum mattis. Nam\n elit mi, pretium a tristique vitae, vestibulum id tellus. In\n vitae nisl lectus. Sed fringilla eget velit quis aliquet.\n Vestibulum euismod, leo ut egestas dictum, mi quam euismod\n velit, nec iaculis elit mi a orci. Duis volutpat purus lacus. Ut\n sit amet semper ipsum. Sed aliquam, quam ac placerat facilisis,\n nulla odio vulputate erat, id condimentum sem arcu vel turpis.\n Fusce finibus tortor ac viverra semper. Pellentesque convallis\n mi sed metus finibus molestie. Duis vehicula dolor consequat\n placerat sollicitudin. Phasellus sed sagittis ligula, in\n molestie velit. In scelerisque maximus metus, ac convallis nisi\n dignissim non.\n </p>\n </SpsScrollableContainer>\n </SpsCard>\n "], ["\n <SpsCard>\n <SpsScrollableContainer maxHeight='100px'>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris\n sit amet molestie metus. Phasellus dignissim interdum arcu. Sed\n in nunc id sapien porta mollis eleifend nec mauris. Nulla\n molestie pulvinar velit eget fringilla. Pellentesque habitant\n morbi tristique senectus et netus et malesuada fames ac turpis\n egestas. Nam eu sem ut neque condimentum tempor. Integer\n bibendum in velit at consectetur. Nunc ut velit ac magna sodales\n tempor. Ut tempor rhoncus mi, eget feugiat nisi finibus at.\n Pellentesque habitant morbi tristique senectus et netus et\n malesuada fames ac turpis egestas. Vestibulum nunc ipsum,\n elementum consectetur urna a, sodales pellentesque nibh. Nullam\n in dui dolor. Vivamus sapien enim, tristique accumsan finibus\n nec, fringilla eget tellus. Duis sed pulvinar ipsum. Donec\n convallis aliquet dui, nec ullamcorper nulla tincidunt ac. Fusce\n tempus neque sit amet libero vestibulum maximus. Praesent id dui\n sed diam scelerisque pretium id vitae ante. Sed ullamcorper\n ligula quis mi vehicula, in interdum purus suscipit.\n Pellentesque venenatis velit nunc, quis tincidunt ligula egestas\n id. Praesent sollicitudin et mauris et auctor. Nullam diam erat,\n tincidunt at odio non, tincidunt laoreet quam. In consequat\n pulvinar sapien vel varius. Suspendisse potenti. Aenean pharetra\n felis sit amet tempus consequat. Donec eu molestie mauris. Nunc\n scelerisque ex id vehicula semper. Nunc eu interdum ante. Etiam\n in metus ante. Nulla ac turpis vel sem fermentum mattis. Nam\n elit mi, pretium a tristique vitae, vestibulum id tellus. In\n vitae nisl lectus. Sed fringilla eget velit quis aliquet.\n Vestibulum euismod, leo ut egestas dictum, mi quam euismod\n velit, nec iaculis elit mi a orci. Duis volutpat purus lacus. Ut\n sit amet semper ipsum. Sed aliquam, quam ac placerat facilisis,\n nulla odio vulputate erat, id condimentum sem arcu vel turpis.\n Fusce finibus tortor ac viverra semper. Pellentesque convallis\n mi sed metus finibus molestie. Duis vehicula dolor consequat\n placerat sollicitudin. Phasellus sed sagittis ligula, in\n molestie velit. In scelerisque maximus metus, ac convallis nisi\n dignissim non.\n </p>\n </SpsScrollableContainer>\n </SpsCard>\n "]))),
|
|
8606
8606
|
},
|
|
8607
8607
|
components: {
|
|
8608
8608
|
react: code(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n function Component() {\n function buildTags() {\n let tagNames = [];\n for (let i = 0; i < 150; i++) {\n tagNames.push('tagName ' + i);\n }\n return tagNames;\n }\n return <SpsCard>\n <SpsScrollableContainer maxHeight='8.5rem'>\n {buildTags().map((name, index) => {\n return (\n <SpsClickableTag key={index} className=\"mt-1 ml-1\">\n {name}\n </SpsClickableTag>\n );\n })}\n </SpsScrollableContainer>\n </SpsCard>\n }\n "], ["\n function Component() {\n function buildTags() {\n let tagNames = [];\n for (let i = 0; i < 150; i++) {\n tagNames.push('tagName ' + i);\n }\n return tagNames;\n }\n return <SpsCard>\n <SpsScrollableContainer maxHeight='8.5rem'>\n {buildTags().map((name, index) => {\n return (\n <SpsClickableTag key={index} className=\"mt-1 ml-1\">\n {name}\n </SpsClickableTag>\n );\n })}\n </SpsScrollableContainer>\n </SpsCard>\n }\n "]))),
|
|
@@ -8610,14 +8610,14 @@ var SpsScrollableContainerExamples = {
|
|
|
8610
8610
|
},
|
|
8611
8611
|
},
|
|
8612
8612
|
};
|
|
8613
|
-
var templateObject_1$
|
|
8613
|
+
var templateObject_1$k, templateObject_2$h;
|
|
8614
8614
|
|
|
8615
|
-
var propsDoc$
|
|
8615
|
+
var propsDoc$A = {
|
|
8616
8616
|
resultsCount: 'number',
|
|
8617
8617
|
totalResults: 'number',
|
|
8618
8618
|
onClear: '() => void',
|
|
8619
8619
|
};
|
|
8620
|
-
var propTypes$
|
|
8620
|
+
var propTypes$D = __assign(__assign({}, spsGlobalPropTypes), { resultsCount: number, totalResults: number, onClear: fun() });
|
|
8621
8621
|
function SpsSearchResultsBar(props) {
|
|
8622
8622
|
props.children; var className = props.className, resultsCount = props.resultsCount, totalResults = props.totalResults, onClear = props.onClear, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "resultsCount", "totalResults", "onClear", 'data-testid', "unsafelyReplaceClassName"]);
|
|
8623
8623
|
var t = React.useContext(I18nContext).t;
|
|
@@ -8639,8 +8639,8 @@ function SpsSearchResultsBar(props) {
|
|
|
8639
8639
|
React.createElement("button", { type: "button", onClick: onClear }, t('design-system:searchResultsBar.clear')))));
|
|
8640
8640
|
}
|
|
8641
8641
|
Object.assign(SpsSearchResultsBar, {
|
|
8642
|
-
props: propsDoc$
|
|
8643
|
-
propTypes: propTypes$
|
|
8642
|
+
props: propsDoc$A,
|
|
8643
|
+
propTypes: propTypes$D,
|
|
8644
8644
|
displayName: 'SpsSearchResultsBar',
|
|
8645
8645
|
});
|
|
8646
8646
|
|
|
@@ -8650,7 +8650,7 @@ var SpsSearchResultsBarExamples = {
|
|
|
8650
8650
|
description: '<p>Info about Basic Search Result Bars</p>',
|
|
8651
8651
|
examples: {
|
|
8652
8652
|
noCount: {
|
|
8653
|
-
react: code(templateObject_1$
|
|
8653
|
+
react: code(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n function SpsSearchResultsBarBasic() {\n function clearHandler() {\n console.log(\"change handler called\");\n }\n return (\n <SpsSearchResultsBar onClear={clearHandler}/>\n );\n }\n "], ["\n function SpsSearchResultsBarBasic() {\n function clearHandler() {\n console.log(\"change handler called\");\n }\n return (\n <SpsSearchResultsBar onClear={clearHandler}/>\n );\n }\n "]))),
|
|
8654
8654
|
},
|
|
8655
8655
|
},
|
|
8656
8656
|
},
|
|
@@ -8673,7 +8673,7 @@ var SpsSearchResultsBarExamples = {
|
|
|
8673
8673
|
},
|
|
8674
8674
|
},
|
|
8675
8675
|
};
|
|
8676
|
-
var templateObject_1$
|
|
8676
|
+
var templateObject_1$j, templateObject_2$g, templateObject_3$e;
|
|
8677
8677
|
|
|
8678
8678
|
var SpsSelectExamples = {
|
|
8679
8679
|
basic: {
|
|
@@ -8682,7 +8682,7 @@ var SpsSelectExamples = {
|
|
|
8682
8682
|
examples: {
|
|
8683
8683
|
a_simple: {
|
|
8684
8684
|
description: 'Simple value options',
|
|
8685
|
-
react: code(templateObject_1$
|
|
8685
|
+
react: code(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n function DemoComponent() {\n const colors = [\"red\", \"blue\", \"green\"];\n\n return (\n <SpsSelect id=\"basic\" options={colors}/>\n )\n }\n "], ["\n function DemoComponent() {\n const colors = [\"red\", \"blue\", \"green\"];\n\n return (\n <SpsSelect id=\"basic\" options={colors}/>\n )\n }\n "]))),
|
|
8686
8686
|
},
|
|
8687
8687
|
b_formHooks: {
|
|
8688
8688
|
description: 'Form hooks',
|
|
@@ -8745,7 +8745,7 @@ var SpsSelectExamples = {
|
|
|
8745
8745
|
},
|
|
8746
8746
|
},
|
|
8747
8747
|
};
|
|
8748
|
-
var templateObject_1$
|
|
8748
|
+
var templateObject_1$i, templateObject_2$f, templateObject_3$d, templateObject_4$a, templateObject_5$5, templateObject_6$4, templateObject_7$4, templateObject_8$3, templateObject_9$2, templateObject_10$1, templateObject_11$1;
|
|
8749
8749
|
|
|
8750
8750
|
var SpsSideNavBranch = function (_a) {
|
|
8751
8751
|
var branch = _a.branch, setActiveBranch = _a.setActiveBranch, activeBranch = _a.activeBranch;
|
|
@@ -8891,7 +8891,7 @@ var SpsSideNavExamples = {
|
|
|
8891
8891
|
description: 'Use Filters when the Side Navigation benefits from filtering, usually when it contains a long list of navigation items.',
|
|
8892
8892
|
examples: {
|
|
8893
8893
|
simple: {
|
|
8894
|
-
react: code(templateObject_1$
|
|
8894
|
+
react: code(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"A Multiple Line Navigation Item That Has to Wrap Because it\u2019s so Long\",\n },\n {\n name: \"Navigation Item 2\",\n },\n {\n name: \"Navigation Item 3\",\n },\n {\n name: \"Navigation Item 4\",\n },\n {\n name: \"Navigation Item 5\",\n },\n {\n name: \"Navigation Item 6\",\n },\n {\n name: \"Navigation Item 7\",\n },\n {\n name: \"Navigation Item 8\",\n },\n {\n name: \"Navigation Item 9\",\n },\n {\n name: \"Navigation Item 10\",\n },\n {\n name: \"Navigation Item 11\",\n },\n {\n name: \"Navigation Item 12\",\n },\n {\n name: \"Navigation Item 13\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n activeNavItem=\"Navigation Item 2\"\n onNavChange={onChange}\n filterable={true}\n filterInputPlaceholder=\"Filter\"\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"A Multiple Line Navigation Item That Has to Wrap Because it\u2019s so Long\",\n },\n {\n name: \"Navigation Item 2\",\n },\n {\n name: \"Navigation Item 3\",\n },\n {\n name: \"Navigation Item 4\",\n },\n {\n name: \"Navigation Item 5\",\n },\n {\n name: \"Navigation Item 6\",\n },\n {\n name: \"Navigation Item 7\",\n },\n {\n name: \"Navigation Item 8\",\n },\n {\n name: \"Navigation Item 9\",\n },\n {\n name: \"Navigation Item 10\",\n },\n {\n name: \"Navigation Item 11\",\n },\n {\n name: \"Navigation Item 12\",\n },\n {\n name: \"Navigation Item 13\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n activeNavItem=\"Navigation Item 2\"\n onNavChange={onChange}\n filterable={true}\n filterInputPlaceholder=\"Filter\"\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
8895
8895
|
},
|
|
8896
8896
|
},
|
|
8897
8897
|
},
|
|
@@ -8938,9 +8938,9 @@ var SpsSideNavExamples = {
|
|
|
8938
8938
|
},
|
|
8939
8939
|
},
|
|
8940
8940
|
};
|
|
8941
|
-
var templateObject_1$
|
|
8941
|
+
var templateObject_1$h, templateObject_2$e, templateObject_3$c, templateObject_4$9, templateObject_5$4;
|
|
8942
8942
|
|
|
8943
|
-
var propsDoc$
|
|
8943
|
+
var propsDoc$z = {
|
|
8944
8944
|
sortKey: 'string',
|
|
8945
8945
|
sortDisabled: 'boolean',
|
|
8946
8946
|
sort: 'SortedColumn[]',
|
|
@@ -8948,7 +8948,7 @@ var propsDoc$w = {
|
|
|
8948
8948
|
widthPx: 'number',
|
|
8949
8949
|
widthRem: 'number',
|
|
8950
8950
|
};
|
|
8951
|
-
var propTypes$
|
|
8951
|
+
var propTypes$C = __assign({ sortKey: string, sortDisabled: bool, sort: arrayOf(impl()), onSortChange: fun(), widthPx: number, widthRem: number }, spsGlobalPropTypes);
|
|
8952
8952
|
function SpsSortingHeaderCell(_a) {
|
|
8953
8953
|
var className = _a.className, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, sortKey = _a.sortKey, sort = _a.sort, sortDisabled = _a.sortDisabled, onSortChange = _a.onSortChange, onClick = _a.onClick, children = _a.children, widthPx = _a.widthPx, widthRem = _a.widthRem, style = _a.style, rest = __rest(_a, ["className", 'data-testid', "unsafelyReplaceClassName", "sortKey", "sort", "sortDisabled", "onSortChange", "onClick", "children", "widthPx", "widthRem", "style"]);
|
|
8954
8954
|
var sortDirection = React.useMemo(function () {
|
|
@@ -8978,16 +8978,16 @@ function SpsSortingHeaderCell(_a) {
|
|
|
8978
8978
|
}, "data-testid": testId, style: inlineStyles }, rest), children));
|
|
8979
8979
|
}
|
|
8980
8980
|
Object.assign(SpsSortingHeaderCell, {
|
|
8981
|
-
props: propsDoc$
|
|
8982
|
-
propTypes: propTypes$
|
|
8981
|
+
props: propsDoc$z,
|
|
8982
|
+
propTypes: propTypes$C,
|
|
8983
8983
|
displayName: 'SpsSortingHeaderCell',
|
|
8984
8984
|
});
|
|
8985
8985
|
|
|
8986
|
-
var propsDoc$
|
|
8986
|
+
var propsDoc$y = {
|
|
8987
8987
|
sort: 'SortedColumn[]',
|
|
8988
8988
|
onSortChange: 'SortChangeHandler',
|
|
8989
8989
|
};
|
|
8990
|
-
var propTypes$
|
|
8990
|
+
var propTypes$B = __assign(__assign({}, spsGlobalPropTypes), { sort: arrayOf(impl()), onSortChange: fun() });
|
|
8991
8991
|
function SpsSortingHeader(_a) {
|
|
8992
8992
|
var className = _a.className; _a["data-testid"]; var unsafelyReplaceClassName = _a.unsafelyReplaceClassName, sort = _a.sort, onSortChange = _a.onSortChange, children = _a.children, rest = __rest(_a, ["className", 'data-testid', "unsafelyReplaceClassName", "sort", "onSortChange", "children"]);
|
|
8993
8993
|
var classes = clsx(unsafelyReplaceClassName || 'sps-sorting-header', className);
|
|
@@ -9003,17 +9003,17 @@ function SpsSortingHeader(_a) {
|
|
|
9003
9003
|
})));
|
|
9004
9004
|
}
|
|
9005
9005
|
Object.assign(SpsSortingHeader, {
|
|
9006
|
-
props: propsDoc$
|
|
9007
|
-
propTypes: propTypes$
|
|
9006
|
+
props: propsDoc$y,
|
|
9007
|
+
propTypes: propTypes$B,
|
|
9008
9008
|
displayName: 'SpsSortingHeader',
|
|
9009
9009
|
});
|
|
9010
9010
|
|
|
9011
|
-
var propsDoc$
|
|
9011
|
+
var propsDoc$x = {
|
|
9012
9012
|
alt: 'string',
|
|
9013
9013
|
size: 'SpinnerSize',
|
|
9014
9014
|
title: 'string',
|
|
9015
9015
|
};
|
|
9016
|
-
var propTypes$
|
|
9016
|
+
var propTypes$A = __assign(__assign({}, spsGlobalPropTypes), { alt: string, size: enumValue(SpinnerSize), title: string });
|
|
9017
9017
|
function SpsSpinner(props) {
|
|
9018
9018
|
var alt = props.alt, className = props.className, _a = props.size, size = _a === void 0 ? SpinnerSize.MEDIUM : _a, testId = props["data-testid"], title = props.title, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["alt", "className", "size", 'data-testid', "title", "unsafelyReplaceClassName"]);
|
|
9019
9019
|
var t = React.useContext(I18nContext).t;
|
|
@@ -9022,8 +9022,8 @@ function SpsSpinner(props) {
|
|
|
9022
9022
|
return (React.createElement("i", __assign({ className: spinnerClasses, "data-testid": testId, title: altText }, rest)));
|
|
9023
9023
|
}
|
|
9024
9024
|
Object.assign(SpsSpinner, {
|
|
9025
|
-
props: propsDoc$
|
|
9026
|
-
propTypes: propTypes$
|
|
9025
|
+
props: propsDoc$x,
|
|
9026
|
+
propTypes: propTypes$A,
|
|
9027
9027
|
displayName: 'SpsSpinner',
|
|
9028
9028
|
});
|
|
9029
9029
|
|
|
@@ -9031,7 +9031,7 @@ var SpsSpinnerExamples = {
|
|
|
9031
9031
|
basic: {
|
|
9032
9032
|
examples: {
|
|
9033
9033
|
small: {
|
|
9034
|
-
jsx: code(templateObject_1$
|
|
9034
|
+
jsx: code(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n <React.Fragment>\n <SpsSpinner size=\"small\"/>\n <SpsSpinner size={SpinnerSize.SMALL}/>\n </React.Fragment>\n "], ["\n <React.Fragment>\n <SpsSpinner size=\"small\"/>\n <SpsSpinner size={SpinnerSize.SMALL}/>\n </React.Fragment>\n "]))),
|
|
9035
9035
|
},
|
|
9036
9036
|
medium: {
|
|
9037
9037
|
jsx: code(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n <React.Fragment>\n <SpsSpinner />\n <SpsSpinner size=\"medium\" title=\"Please wait\u2026\"/>\n <SpsSpinner size={SpinnerSize.MEDIUM}/>\n </React.Fragment>\n "], ["\n <React.Fragment>\n <SpsSpinner />\n <SpsSpinner size=\"medium\" title=\"Please wait\u2026\"/>\n <SpsSpinner size={SpinnerSize.MEDIUM}/>\n </React.Fragment>\n "]))),
|
|
@@ -9042,9 +9042,9 @@ var SpsSpinnerExamples = {
|
|
|
9042
9042
|
},
|
|
9043
9043
|
},
|
|
9044
9044
|
};
|
|
9045
|
-
var templateObject_1$
|
|
9045
|
+
var templateObject_1$g, templateObject_2$d, templateObject_3$b;
|
|
9046
9046
|
|
|
9047
|
-
var propsDoc$
|
|
9047
|
+
var propsDoc$w = {
|
|
9048
9048
|
disabled: 'boolean',
|
|
9049
9049
|
href: 'string',
|
|
9050
9050
|
label: 'string',
|
|
@@ -9052,7 +9052,7 @@ var propsDoc$t = {
|
|
|
9052
9052
|
kind: 'StdButtonKind',
|
|
9053
9053
|
options: 'Array<SpsActionMethod | [SpsActionDescriptor, () => void]>',
|
|
9054
9054
|
};
|
|
9055
|
-
var propTypes$
|
|
9055
|
+
var propTypes$z = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, href: string, label: string, icon: enumValue(SpsIcon$1), kind: enumValue(StdButtonKind),
|
|
9056
9056
|
// eslint thinks there is a space between the name and open paren below for some reason
|
|
9057
9057
|
// eslint-disable-next-line no-spaced-func
|
|
9058
9058
|
options: arrayOf(oneOfType([func, any])) });
|
|
@@ -9071,15 +9071,15 @@ function SpsSplitButton(props) {
|
|
|
9071
9071
|
React.createElement(SpsDropdown, { kind: kind, options: options, disabled: disabled, onOpen: setOpen, onClose: setClose })));
|
|
9072
9072
|
}
|
|
9073
9073
|
Object.assign(SpsSplitButton, {
|
|
9074
|
-
props: propsDoc$
|
|
9075
|
-
propTypes: propTypes$
|
|
9074
|
+
props: propsDoc$w,
|
|
9075
|
+
propTypes: propTypes$z,
|
|
9076
9076
|
displayName: 'SpsSplitButton',
|
|
9077
9077
|
});
|
|
9078
9078
|
|
|
9079
9079
|
var SpsSplitButtonExamples = {
|
|
9080
9080
|
kinds: {
|
|
9081
9081
|
label: 'Regular Split Buttons',
|
|
9082
|
-
description: code(templateObject_1$
|
|
9082
|
+
description: code(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["<p>info about split buttons</p>"], ["<p>info about split buttons</p>"]))),
|
|
9083
9083
|
examples: {
|
|
9084
9084
|
basic: {
|
|
9085
9085
|
description: code(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["<p>Basic</p>"], ["<p>Basic</p>"]))),
|
|
@@ -9108,12 +9108,12 @@ var SpsSplitButtonExamples = {
|
|
|
9108
9108
|
},
|
|
9109
9109
|
},
|
|
9110
9110
|
};
|
|
9111
|
-
var templateObject_1$
|
|
9111
|
+
var templateObject_1$f, templateObject_2$c, templateObject_3$a, templateObject_4$8, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$2, templateObject_9$1;
|
|
9112
9112
|
|
|
9113
|
-
var propsDoc$
|
|
9113
|
+
var propsDoc$v = {
|
|
9114
9114
|
channelId: { type: 'string', required: true },
|
|
9115
9115
|
};
|
|
9116
|
-
var propTypes$
|
|
9116
|
+
var propTypes$y = __assign(__assign({}, spsGlobalPropTypes), { channelId: string.isRequired });
|
|
9117
9117
|
function SpsSlackLink(props) {
|
|
9118
9118
|
var channelId = props.channelId, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["channelId", "className", "unsafelyReplaceClassName"]);
|
|
9119
9119
|
var t = React.useContext(I18nContext).t;
|
|
@@ -9123,8 +9123,8 @@ function SpsSlackLink(props) {
|
|
|
9123
9123
|
React.createElement("span", null, t('design-system:slackLink.label'))));
|
|
9124
9124
|
}
|
|
9125
9125
|
Object.assign(SpsSlackLink, {
|
|
9126
|
-
props: propsDoc$
|
|
9127
|
-
propTypes: propTypes$
|
|
9126
|
+
props: propsDoc$v,
|
|
9127
|
+
propTypes: propTypes$y,
|
|
9128
9128
|
displayName: 'SpsSlackLink',
|
|
9129
9129
|
});
|
|
9130
9130
|
|
|
@@ -9132,32 +9132,32 @@ var SpsSlackLinkExamples = {
|
|
|
9132
9132
|
basic: {
|
|
9133
9133
|
examples: {
|
|
9134
9134
|
basic: {
|
|
9135
|
-
react: code(templateObject_1$
|
|
9135
|
+
react: code(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n function DemoComponent() {\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={[\"Foo\", \"Bar\", \"Baz\"]}\n activeTab=\"Bar\"\n fullWidth\n style={{ position: \"relative\" }} // display this example in its place instead of at the top\n ><SpsSlackLink channelId=\"CELEGDK4Y\" /></SpsProductBar>\n );\n }\n "], ["\n function DemoComponent() {\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={[\"Foo\", \"Bar\", \"Baz\"]}\n activeTab=\"Bar\"\n fullWidth\n style={{ position: \"relative\" }} // display this example in its place instead of at the top\n ><SpsSlackLink channelId=\"CELEGDK4Y\" /></SpsProductBar>\n );\n }\n "]))),
|
|
9136
9136
|
},
|
|
9137
9137
|
},
|
|
9138
9138
|
},
|
|
9139
9139
|
};
|
|
9140
|
-
var templateObject_1$
|
|
9140
|
+
var templateObject_1$e;
|
|
9141
9141
|
|
|
9142
|
-
var propsDoc$
|
|
9143
|
-
var propTypes$
|
|
9142
|
+
var propsDoc$u = {};
|
|
9143
|
+
var propTypes$x = __assign({}, spsGlobalPropTypes);
|
|
9144
9144
|
function SpsSummaryListExpansion(props) {
|
|
9145
9145
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
9146
9146
|
var classes = clsx(unsafelyReplaceClassName || 'sps-content-row__expansion', className);
|
|
9147
9147
|
return (React.createElement("div", __assign({ className: classes }, rest, { "data-testid": testId + "__expansion" }), children));
|
|
9148
9148
|
}
|
|
9149
9149
|
Object.assign(SpsSummaryListExpansion, {
|
|
9150
|
-
props: propsDoc$
|
|
9151
|
-
propTypes: propTypes$
|
|
9150
|
+
props: propsDoc$u,
|
|
9151
|
+
propTypes: propTypes$x,
|
|
9152
9152
|
displayName: 'SpsSummaryListExpansion',
|
|
9153
9153
|
});
|
|
9154
9154
|
|
|
9155
|
-
var propsDoc$
|
|
9155
|
+
var propsDoc$t = {
|
|
9156
9156
|
expanded: 'boolean',
|
|
9157
9157
|
selected: 'boolean',
|
|
9158
9158
|
onToggle: '(isExpanded: boolean) => void',
|
|
9159
9159
|
};
|
|
9160
|
-
var propTypes$
|
|
9160
|
+
var propTypes$w = __assign(__assign({}, spsGlobalPropTypes), { expanded: bool, selected: bool, onToggle: fun() });
|
|
9161
9161
|
function SpsSummaryListRow(props) {
|
|
9162
9162
|
var children = props.children, className = props.className, expanded = props.expanded, onToggle = props.onToggle, selected = props.selected, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "expanded", "onToggle", "selected", 'data-testid', "unsafelyReplaceClassName"]);
|
|
9163
9163
|
var _a = __read(usePatchReducer({
|
|
@@ -9201,26 +9201,26 @@ function SpsSummaryListRow(props) {
|
|
|
9201
9201
|
expansion));
|
|
9202
9202
|
}
|
|
9203
9203
|
Object.assign(SpsSummaryListRow, {
|
|
9204
|
-
props: propsDoc$
|
|
9205
|
-
propTypes: propTypes$
|
|
9204
|
+
props: propsDoc$t,
|
|
9205
|
+
propTypes: propTypes$w,
|
|
9206
9206
|
displayName: 'SpsSummaryListRow',
|
|
9207
9207
|
});
|
|
9208
9208
|
|
|
9209
|
-
var propsDoc$
|
|
9209
|
+
var propsDoc$s = {
|
|
9210
9210
|
borderless: 'boolean',
|
|
9211
9211
|
lean: 'boolean',
|
|
9212
9212
|
leaner: 'boolean',
|
|
9213
9213
|
width: 'string',
|
|
9214
9214
|
};
|
|
9215
|
-
var propTypes$
|
|
9215
|
+
var propTypes$v = __assign(__assign({}, spsGlobalPropTypes), { borderless: bool, lean: bool, leaner: bool, width: string });
|
|
9216
9216
|
function SpsSummaryListColumn(props) {
|
|
9217
9217
|
var className = props.className, children = props.children, borderless = props.borderless, lean = props.lean, leaner = props.leaner, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, width = props.width, rest = __rest(props, ["className", "children", "borderless", "lean", "leaner", 'data-testid', "unsafelyReplaceClassName", "width"]);
|
|
9218
9218
|
var classes = clsx(unsafelyReplaceClassName || 'sps-content-row__col', lean && 'sps-content-row__col--lean', leaner && 'sps-content-row__col--leaner', borderless && 'sps-content-row__col--borderless', className);
|
|
9219
9219
|
return (React.createElement("div", __assign({ className: classes, style: { width: width } }, rest, { "data-testid": testId + "__col" }), children));
|
|
9220
9220
|
}
|
|
9221
9221
|
Object.assign(SpsSummaryListColumn, {
|
|
9222
|
-
props: propsDoc$
|
|
9223
|
-
propTypes: propTypes$
|
|
9222
|
+
props: propsDoc$s,
|
|
9223
|
+
propTypes: propTypes$v,
|
|
9224
9224
|
displayName: 'SpsSummaryListColumn',
|
|
9225
9225
|
});
|
|
9226
9226
|
|
|
@@ -9229,7 +9229,7 @@ var SpsSummaryListExamples = {
|
|
|
9229
9229
|
label: 'Basic Usage',
|
|
9230
9230
|
examples: {
|
|
9231
9231
|
basic: {
|
|
9232
|
-
jsx: code(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n <>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Long Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Long Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n </>"], ["\n <>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Long Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Long Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n </>"]))),
|
|
9232
|
+
jsx: code(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n <>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Long Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Long Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n </>"], ["\n <>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Long Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey={\"Title\"}>\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n <SpsSummaryListRow>\n <SpsSummaryListColumn width=\"2.8rem\" lean>\n <SpsI icon={SpsIcon.STAR} size={SpsIconSize.MEDIUM} className=\"d-block mb-2 yellow300\" />\n <SpsI icon={SpsIcon.FLAG} size={SpsIconSize.MEDIUM} className=\"d-block yellow300\" />\n </SpsSummaryListColumn>\n <SpsSummaryListColumn>\n <SpsI icon={SpsIcon.STATUS_ERROR} size={SpsIconSize.LARGE} className=\"align-middle mr-2 pr-1\" />\n <div className=\"d-inline-block align-middle\">\n <div className=\"fs-18\">\n <a href=\"#\">Heading</a>\n </div>\n <div className=\"fs-14\">Sub Heading</div>\n </div>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"13.5rem\">\n <SpsKeyValueList inline>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Long Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n <SpsKeyValueListItem itemKey=\"Title\">\n Sub copy goes here\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"9rem\">\n <SpsKeyValueList>\n <SpsKeyValueListItem itemKey=\"Buying From\">\n 75 Companies\n <div className=\"font-weight-light\">38 of 75 Operational</div>\n </SpsKeyValueListItem>\n </SpsKeyValueList>\n </SpsSummaryListColumn>\n <SpsSummaryListColumn width=\"3.6rem\" leaner>\n <SpsDropdown\n label=\"\"\n icon=\"ellipses\"\n options={[[{ label: \"Option A\" }, () => console.log(\"Option A\")], [{ label: \"Option B\" }, () => console.log(\"Option B\")]]}\n />\n </SpsSummaryListColumn>\n </SpsSummaryListRow>\n </>"]))),
|
|
9233
9233
|
},
|
|
9234
9234
|
},
|
|
9235
9235
|
},
|
|
@@ -9261,7 +9261,7 @@ var SpsSummaryListExamples = {
|
|
|
9261
9261
|
},
|
|
9262
9262
|
},
|
|
9263
9263
|
};
|
|
9264
|
-
var templateObject_1$
|
|
9264
|
+
var templateObject_1$d, templateObject_2$b, templateObject_3$9, templateObject_4$7, templateObject_5$2, templateObject_6$2, templateObject_7$2;
|
|
9265
9265
|
|
|
9266
9266
|
var props = {
|
|
9267
9267
|
tasks: 'ReactSpsTask[]',
|
|
@@ -9273,7 +9273,7 @@ var props = {
|
|
|
9273
9273
|
onClearCompleted: '() => void',
|
|
9274
9274
|
suppressTooltips: 'boolean',
|
|
9275
9275
|
};
|
|
9276
|
-
var propTypes$
|
|
9276
|
+
var propTypes$u = __assign(__assign({}, spsGlobalPropTypes), { tasks: arrayOf(any), taskQueuePosition: enumValue(Position), notificationText: string, tooltipConfig: shape({
|
|
9277
9277
|
position: enumValue(Position),
|
|
9278
9278
|
kind: enumValue(TooltipKind),
|
|
9279
9279
|
}), onClose: fun(), onOpen: fun(), onClearCompleted: fun(), suppressTooltips: bool });
|
|
@@ -9427,7 +9427,7 @@ function SpsTaskQueue(_a) {
|
|
|
9427
9427
|
}
|
|
9428
9428
|
Object.assign(SpsTaskQueue, {
|
|
9429
9429
|
props: props,
|
|
9430
|
-
propTypes: propTypes$
|
|
9430
|
+
propTypes: propTypes$u,
|
|
9431
9431
|
displayName: 'SpsTaskQueue',
|
|
9432
9432
|
});
|
|
9433
9433
|
|
|
@@ -9437,7 +9437,7 @@ var SpsTaskQueueExamples = {
|
|
|
9437
9437
|
description: '<p>Info about Task Queue</p>',
|
|
9438
9438
|
examples: {
|
|
9439
9439
|
inProgress: {
|
|
9440
|
-
react: code(templateObject_1$
|
|
9440
|
+
react: code(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n function SpsTaskQueueInProgress() {\n const [tasks, setTasks] = React.useState([\n {\n status: SpsTaskStatus.IN_PROGRESS,\n unread: false,\n heading: \"Downloading 245 transactions\",\n subheading: \"processing\u2026\",\n actions: [\n {\n icon: SpsIcon.X,\n onClick: task => {\n console.log(\"cancel\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.COMPLETED,\n unread: false,\n heading: \"Document Upload - 02/21/2021\",\n subheading: \"Lamps Plus | VY1X_Williams Sonoma Iventory Upload Spreadsheet (846).xls\",\n actions: [\n {\n icon: SpsIcon.X,\n onClick: task => {\n console.log(\"remove\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.COMPLETED,\n unread: true,\n heading: \"Document Download - 02/21/2019\",\n subheading: \"245 transactions | Expires in 2 days\",\n actions: [\n {\n icon: SpsIcon.SEARCH,\n onClick: task => {\n console.log(\"view\", task);\n }\n },\n {\n icon: SpsIcon.DOWNLOAD_CLOUD,\n onClick: task => {\n console.log(\"download\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.ERRORED,\n unread: true,\n heading: \"Data XREF Test.xls\",\n subheading: \"Failed | Reason it failed\u2026\",\n actions: [\n {\n icon: SpsIcon.REFRESH,\n onClick: task => {\n console.log(\"retry\", task);\n }\n }\n ]\n }\n ]);\n\n function handleOpen() {\n console.log(\"opened\");\n }\n\n function handleClose() {\n console.log(\"closed (we mark all tasks as read)\");\n setTasks(currentTasks => currentTasks.map(task => ({ ...task, unread: false })));\n }\n\n function handleClearCompleted() {\n setTasks(currentTasks =>\n currentTasks.filter(task => task.status === SpsTaskStatus.IN_PROGRESS)\n );\n }\n\n return (\n <SpsTaskQueue\n tasks={tasks}\n onOpen={handleOpen}\n onClose={handleClose}\n onClearCompleted={handleClearCompleted}\n />\n );\n }\n "], ["\n function SpsTaskQueueInProgress() {\n const [tasks, setTasks] = React.useState([\n {\n status: SpsTaskStatus.IN_PROGRESS,\n unread: false,\n heading: \"Downloading 245 transactions\",\n subheading: \"processing\u2026\",\n actions: [\n {\n icon: SpsIcon.X,\n onClick: task => {\n console.log(\"cancel\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.COMPLETED,\n unread: false,\n heading: \"Document Upload - 02/21/2021\",\n subheading: \"Lamps Plus | VY1X_Williams Sonoma Iventory Upload Spreadsheet (846).xls\",\n actions: [\n {\n icon: SpsIcon.X,\n onClick: task => {\n console.log(\"remove\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.COMPLETED,\n unread: true,\n heading: \"Document Download - 02/21/2019\",\n subheading: \"245 transactions | Expires in 2 days\",\n actions: [\n {\n icon: SpsIcon.SEARCH,\n onClick: task => {\n console.log(\"view\", task);\n }\n },\n {\n icon: SpsIcon.DOWNLOAD_CLOUD,\n onClick: task => {\n console.log(\"download\", task);\n }\n }\n ]\n },\n {\n status: SpsTaskStatus.ERRORED,\n unread: true,\n heading: \"Data XREF Test.xls\",\n subheading: \"Failed | Reason it failed\u2026\",\n actions: [\n {\n icon: SpsIcon.REFRESH,\n onClick: task => {\n console.log(\"retry\", task);\n }\n }\n ]\n }\n ]);\n\n function handleOpen() {\n console.log(\"opened\");\n }\n\n function handleClose() {\n console.log(\"closed (we mark all tasks as read)\");\n setTasks(currentTasks => currentTasks.map(task => ({ ...task, unread: false })));\n }\n\n function handleClearCompleted() {\n setTasks(currentTasks =>\n currentTasks.filter(task => task.status === SpsTaskStatus.IN_PROGRESS)\n );\n }\n\n return (\n <SpsTaskQueue\n tasks={tasks}\n onOpen={handleOpen}\n onClose={handleClose}\n onClearCompleted={handleClearCompleted}\n />\n );\n }\n "]))),
|
|
9441
9441
|
},
|
|
9442
9442
|
},
|
|
9443
9443
|
},
|
|
@@ -9469,9 +9469,9 @@ var SpsTaskQueueExamples = {
|
|
|
9469
9469
|
},
|
|
9470
9470
|
},
|
|
9471
9471
|
};
|
|
9472
|
-
var templateObject_1$
|
|
9472
|
+
var templateObject_1$c, templateObject_2$a, templateObject_3$8, templateObject_4$6;
|
|
9473
9473
|
|
|
9474
|
-
var propsDoc$
|
|
9474
|
+
var propsDoc$r = {
|
|
9475
9475
|
disabled: 'boolean',
|
|
9476
9476
|
formMeta: 'SpsFormFieldMeta<string>',
|
|
9477
9477
|
icon: 'SpsIcon',
|
|
@@ -9480,7 +9480,7 @@ var propsDoc$o = {
|
|
|
9480
9480
|
placeholder: 'string',
|
|
9481
9481
|
value: 'string',
|
|
9482
9482
|
};
|
|
9483
|
-
var propTypes$
|
|
9483
|
+
var propTypes$t = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, formControl: impl(), formMeta: impl(), icon: enumValue(SpsIcon$1), name: string, onChange: fun(), placeholder: string, value: string });
|
|
9484
9484
|
var SpsTextInput = React.forwardRef(function (_a, ref) {
|
|
9485
9485
|
var className = _a.className, _b = _a.disabled, disabled = _b === void 0 ? false : _b, formControl = _a.formControl, formMeta = _a.formMeta, icon = _a.icon, id = _a.id, name = _a.name, onChange = _a.onChange, placeholder = _a.placeholder, testId = _a["data-testid"], title = _a.title, unsafelyReplaceClassName = _a.unsafelyReplaceClassName, _c = _a.value, value = _c === void 0 ? '' : _c, rest = __rest(_a, ["className", "disabled", "formControl", "formMeta", "icon", "id", "name", "onChange", "placeholder", 'data-testid', "title", "unsafelyReplaceClassName", "value"]);
|
|
9486
9486
|
var meta = formMeta || formControl;
|
|
@@ -9510,8 +9510,8 @@ var SpsTextInput = React.forwardRef(function (_a, ref) {
|
|
|
9510
9510
|
value && !disabled && (React.createElement("i", { className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn", onClick: clear })))));
|
|
9511
9511
|
});
|
|
9512
9512
|
Object.assign(SpsTextInput, {
|
|
9513
|
-
props: propsDoc$
|
|
9514
|
-
propTypes: propTypes$
|
|
9513
|
+
props: propsDoc$r,
|
|
9514
|
+
propTypes: propTypes$t,
|
|
9515
9515
|
displayName: 'SpsTextInput',
|
|
9516
9516
|
});
|
|
9517
9517
|
|
|
@@ -9521,7 +9521,7 @@ var SpsTextInputExamples = {
|
|
|
9521
9521
|
description: 'info about standard text inputs',
|
|
9522
9522
|
examples: {
|
|
9523
9523
|
standard: {
|
|
9524
|
-
react: code(templateObject_1$
|
|
9524
|
+
react: code(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>Foo</SpsLabel>\n <SpsTextInput\n value={formValue.foo}\n formMeta={formMeta.fields.foo}\n />\n </>;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>Foo</SpsLabel>\n <SpsTextInput\n value={formValue.foo}\n formMeta={formMeta.fields.foo}\n />\n </>;\n }\n "]))),
|
|
9525
9525
|
},
|
|
9526
9526
|
},
|
|
9527
9527
|
},
|
|
@@ -9553,9 +9553,9 @@ var SpsTextInputExamples = {
|
|
|
9553
9553
|
},
|
|
9554
9554
|
},
|
|
9555
9555
|
};
|
|
9556
|
-
var templateObject_1$
|
|
9556
|
+
var templateObject_1$b, templateObject_2$9, templateObject_3$7, templateObject_4$5;
|
|
9557
9557
|
|
|
9558
|
-
var propsDoc$
|
|
9558
|
+
var propsDoc$q = {
|
|
9559
9559
|
disabled: 'boolean',
|
|
9560
9560
|
formMeta: 'SpsFormFieldMeta<string>',
|
|
9561
9561
|
name: 'string',
|
|
@@ -9564,7 +9564,7 @@ var propsDoc$n = {
|
|
|
9564
9564
|
rows: 'number',
|
|
9565
9565
|
value: 'string',
|
|
9566
9566
|
};
|
|
9567
|
-
var propTypes$
|
|
9567
|
+
var propTypes$s = __assign(__assign({}, spsGlobalPropTypes), { disabled: bool, formControl: impl(), formMeta: impl(), name: string, onChange: fun(), placeholder: string, ref: ref(), rows: number, value: string });
|
|
9568
9568
|
function SpsTextarea(_a) {
|
|
9569
9569
|
var className = _a.className, _b = _a.disabled, disabled = _b === void 0 ? false : _b, formControl = _a.formControl, formMeta = _a.formMeta, id = _a.id, name = _a.name, onChange = _a.onChange, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, ref = _a.ref, _d = _a.rows, rows = _d === void 0 ? 2 : _d, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, _e = _a.value, value = _e === void 0 ? '' : _e, rest = __rest(_a, ["className", "disabled", "formControl", "formMeta", "id", "name", "onChange", "placeholder", "ref", "rows", 'data-testid', "unsafelyReplaceClassName", "value"]);
|
|
9570
9570
|
var meta = formMeta || formControl;
|
|
@@ -9593,8 +9593,8 @@ function SpsTextarea(_a) {
|
|
|
9593
9593
|
value && !disabled && (React.createElement("i", { className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn", onClick: clear })))));
|
|
9594
9594
|
}
|
|
9595
9595
|
Object.assign(SpsTextarea, {
|
|
9596
|
-
props: propsDoc$
|
|
9597
|
-
propTypes: propTypes$
|
|
9596
|
+
props: propsDoc$q,
|
|
9597
|
+
propTypes: propTypes$s,
|
|
9598
9598
|
displayName: 'SpsTextarea',
|
|
9599
9599
|
});
|
|
9600
9600
|
|
|
@@ -9604,7 +9604,7 @@ var SpsTextareaExamples = {
|
|
|
9604
9604
|
description: 'info about basic text areas',
|
|
9605
9605
|
examples: {
|
|
9606
9606
|
basic: {
|
|
9607
|
-
react: code(templateObject_1$
|
|
9607
|
+
react: code(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n function DemoComponent() {\n function numLinesValidator(n) {\n return function(value) {\n const lines = typeof value === \"string\" ? value.split(\"\\n\").length : 0;\n if (lines !== n) {\n return {\n numLines: {\n actualLines: lines,\n requiredLines: n\n }\n };\n }\n return null;\n };\n }\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n haiku: \"\"\n }, {\n \"haiku\": [numLinesValidator(3)]\n });\n\n return <>\n <SpsLabel for={formMeta.fields.haiku}\n help=\"A haiku is a three-line poem of 5, 7, and 5 syllables respectively.\"\n errors={() =>\n formMeta.fields.haiku.hasError(\"numLines\") && (\n <>\n You need {formMeta.fields.haiku.errors[\"numLines\"].requiredLines} lines,\n but you've only written {formMeta.fields.haiku.errors[\"numLines\"].actualLines} lines!\n </>\n )\n }>\n Haiku\n </SpsLabel>\n <SpsTextarea placeholder=\"Write a haiku\" rows={3}\n formMeta={formMeta.fields.haiku}\n value={formValue.haiku}\n ></SpsTextarea>\n </>\n }\n "], ["\n function DemoComponent() {\n function numLinesValidator(n) {\n return function(value) {\n const lines = typeof value === \"string\" ? value.split(\"\\\\n\").length : 0;\n if (lines !== n) {\n return {\n numLines: {\n actualLines: lines,\n requiredLines: n\n }\n };\n }\n return null;\n };\n }\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n haiku: \"\"\n }, {\n \"haiku\": [numLinesValidator(3)]\n });\n\n return <>\n <SpsLabel for={formMeta.fields.haiku}\n help=\"A haiku is a three-line poem of 5, 7, and 5 syllables respectively.\"\n errors={() =>\n formMeta.fields.haiku.hasError(\"numLines\") && (\n <>\n You need {formMeta.fields.haiku.errors[\"numLines\"].requiredLines} lines,\n but you've only written {formMeta.fields.haiku.errors[\"numLines\"].actualLines} lines!\n </>\n )\n }>\n Haiku\n </SpsLabel>\n <SpsTextarea placeholder=\"Write a haiku\" rows={3}\n formMeta={formMeta.fields.haiku}\n value={formValue.haiku}\n ></SpsTextarea>\n </>\n }\n "]))),
|
|
9608
9608
|
},
|
|
9609
9609
|
},
|
|
9610
9610
|
},
|
|
@@ -9627,16 +9627,16 @@ var SpsTextareaExamples = {
|
|
|
9627
9627
|
},
|
|
9628
9628
|
},
|
|
9629
9629
|
};
|
|
9630
|
-
var templateObject_1$
|
|
9630
|
+
var templateObject_1$a, templateObject_2$8, templateObject_3$6;
|
|
9631
9631
|
|
|
9632
|
-
var propsDoc$
|
|
9632
|
+
var propsDoc$p = {
|
|
9633
9633
|
href: 'string',
|
|
9634
9634
|
icon: { type: 'ReactNodeOrRenderFn', required: 'true' },
|
|
9635
9635
|
error: 'boolean',
|
|
9636
9636
|
title: { type: 'string', required: 'true' },
|
|
9637
9637
|
warning: 'boolean',
|
|
9638
9638
|
};
|
|
9639
|
-
var propTypes$
|
|
9639
|
+
var propTypes$r = __assign(__assign({}, spsGlobalPropTypes), { href: string, target: string, icon: nodeOrRenderFn.isRequired, error: bool, title: string.isRequired, warning: bool });
|
|
9640
9640
|
function SpsTile(props) {
|
|
9641
9641
|
var className = props.className, href = props.href, target = props.target, icon = props.icon, _a = props.error, error = _a === void 0 ? false : _a, title = props.title, unsafelyReplaceClassName = props.unsafelyReplaceClassName, _b = props.warning, warning = _b === void 0 ? false : _b, rest = __rest(props, ["className", "href", "target", "icon", "error", "title", "unsafelyReplaceClassName", "warning"]);
|
|
9642
9642
|
var classes = clsx(unsafelyReplaceClassName || 'sps-tile', className, error && 'sps-tile--error', warning && 'sps-tile--warning');
|
|
@@ -9658,21 +9658,21 @@ function SpsTile(props) {
|
|
|
9658
9658
|
target === '_blank' && (React.createElement("i", { className: clsx('sps-icon', 'sps-icon-tabs') }))))))));
|
|
9659
9659
|
}
|
|
9660
9660
|
Object.assign(SpsTile, {
|
|
9661
|
-
props: propsDoc$
|
|
9662
|
-
propTypes: propTypes$
|
|
9661
|
+
props: propsDoc$p,
|
|
9662
|
+
propTypes: propTypes$r,
|
|
9663
9663
|
displayName: 'SpsTile',
|
|
9664
9664
|
});
|
|
9665
9665
|
|
|
9666
|
-
var propsDoc$
|
|
9667
|
-
var propTypes$
|
|
9666
|
+
var propsDoc$o = {};
|
|
9667
|
+
var propTypes$q = __assign({}, spsGlobalPropTypes);
|
|
9668
9668
|
function SpsTileList(props) {
|
|
9669
9669
|
var children = props.children, unsafelyReplaceClassName = props.unsafelyReplaceClassName; props["data-testid"]; var className = props.className, rest = __rest(props, ["children", "unsafelyReplaceClassName", 'data-testid', "className"]);
|
|
9670
9670
|
var classes = clsx(unsafelyReplaceClassName || 'sps-tile-list', className || 'sfg-row');
|
|
9671
9671
|
return (React.createElement("div", __assign({ className: classes }, rest), children));
|
|
9672
9672
|
}
|
|
9673
9673
|
Object.assign(SpsTileList, {
|
|
9674
|
-
props: propsDoc$
|
|
9675
|
-
propTypes: propTypes$
|
|
9674
|
+
props: propsDoc$o,
|
|
9675
|
+
propTypes: propTypes$q,
|
|
9676
9676
|
displayName: 'SpsTileList',
|
|
9677
9677
|
});
|
|
9678
9678
|
|
|
@@ -9681,7 +9681,7 @@ var SpsTileListExamples = {
|
|
|
9681
9681
|
label: 'Basic',
|
|
9682
9682
|
examples: {
|
|
9683
9683
|
basic: {
|
|
9684
|
-
react: code(templateObject_1$
|
|
9684
|
+
react: code(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n function Component() {\n const apps = [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ];\n\n return (\n <>\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "], ["\n function Component() {\n const apps = [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ];\n\n return (\n <>\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "]))),
|
|
9685
9685
|
},
|
|
9686
9686
|
},
|
|
9687
9687
|
},
|
|
@@ -9705,9 +9705,9 @@ var SpsTileListExamples = {
|
|
|
9705
9705
|
},
|
|
9706
9706
|
},
|
|
9707
9707
|
};
|
|
9708
|
-
var templateObject_1$
|
|
9708
|
+
var templateObject_1$9, templateObject_2$7, templateObject_3$5, templateObject_4$4;
|
|
9709
9709
|
|
|
9710
|
-
var propsDoc$
|
|
9710
|
+
var propsDoc$n = {
|
|
9711
9711
|
active: 'boolean',
|
|
9712
9712
|
activeDescription: { type: 'string', deprecated: true },
|
|
9713
9713
|
activeLabel: { type: 'string', deprecated: true },
|
|
@@ -9720,10 +9720,10 @@ var propsDoc$k = {
|
|
|
9720
9720
|
large: 'boolean',
|
|
9721
9721
|
onChange: '(isActive: boolean) => void',
|
|
9722
9722
|
};
|
|
9723
|
-
var propTypes$
|
|
9723
|
+
var propTypes$p = __assign(__assign({}, spsGlobalPropTypes), { active: bool, activeDescription: deprecated(string), activeLabel: deprecated(string), description: string, disabled: bool, formControl: impl(), formMeta: impl(), id: string, inactiveDescription: deprecated(string), inactiveLabel: deprecated(string), label: string, large: bool, onChange: fun(), ref: ref() });
|
|
9724
9724
|
function SpsToggle(props) {
|
|
9725
9725
|
var activeProp = props.active, activeDescription = props.activeDescription, activeLabel = props.activeLabel, className = props.className, _a = props.description, description = _a === void 0 ? activeDescription : _a, disabled = props.disabled, formControl = props.formControl, formMeta = props.formMeta, id = props.id; props.inactiveDescription; props.inactiveLabel; var _b = props.label, label = _b === void 0 ? activeLabel : _b, large = props.large, onChange = props.onChange, ref = props.ref, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["active", "activeDescription", "activeLabel", "className", "description", "disabled", "formControl", "formMeta", "id", "inactiveDescription", "inactiveLabel", "label", "large", "onChange", "ref", 'data-testid', "unsafelyReplaceClassName"]);
|
|
9726
|
-
useCheckDeprecatedProps('SpsToggle', propsDoc$
|
|
9726
|
+
useCheckDeprecatedProps('SpsToggle', propsDoc$n, props);
|
|
9727
9727
|
var meta = formMeta || formControl;
|
|
9728
9728
|
var _c = __read(React.useState(activeProp), 2), active = _c[0], setActive = _c[1];
|
|
9729
9729
|
var _d = useFormControlId(id, meta), wrapperId = _d.wrapperId, controlId = _d.controlId;
|
|
@@ -9753,8 +9753,8 @@ function SpsToggle(props) {
|
|
|
9753
9753
|
&& (React.createElement("span", { className: "sps-toggle__description", id: descriptionID }, description)))));
|
|
9754
9754
|
}
|
|
9755
9755
|
Object.assign(SpsToggle, {
|
|
9756
|
-
props: propsDoc$
|
|
9757
|
-
propTypes: propTypes$
|
|
9756
|
+
props: propsDoc$n,
|
|
9757
|
+
propTypes: propTypes$p,
|
|
9758
9758
|
displayName: 'SpsToggle',
|
|
9759
9759
|
});
|
|
9760
9760
|
|
|
@@ -9763,7 +9763,7 @@ var SpsToggleExamples = {
|
|
|
9763
9763
|
label: 'Small',
|
|
9764
9764
|
examples: {
|
|
9765
9765
|
a_small: {
|
|
9766
|
-
react: code(templateObject_1$
|
|
9766
|
+
react: code(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: false\n });\n\n return <SpsToggle formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n />;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: false\n });\n\n return <SpsToggle formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n />;\n }\n "]))),
|
|
9767
9767
|
},
|
|
9768
9768
|
b_changeHandler: {
|
|
9769
9769
|
description: 'With UseState',
|
|
@@ -9788,7 +9788,7 @@ var SpsToggleExamples = {
|
|
|
9788
9788
|
},
|
|
9789
9789
|
},
|
|
9790
9790
|
};
|
|
9791
|
-
var templateObject_1$
|
|
9791
|
+
var templateObject_1$8, templateObject_2$6, templateObject_3$4, templateObject_4$3;
|
|
9792
9792
|
|
|
9793
9793
|
var SpsTooltipExamples = {
|
|
9794
9794
|
basic: {
|
|
@@ -9796,7 +9796,7 @@ var SpsTooltipExamples = {
|
|
|
9796
9796
|
description: 'Info about basic usage of tooltip',
|
|
9797
9797
|
examples: {
|
|
9798
9798
|
basic: {
|
|
9799
|
-
description: code(templateObject_1$
|
|
9799
|
+
description: code(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n <p>There are two ways to tell the tooltip what to attach to. The first is to\n pass in a ref.</p>\n "], ["\n <p>There are two ways to tell the tooltip what to attach to. The first is to\n pass in a ref.</p>\n "]))),
|
|
9800
9800
|
react: code(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "]))),
|
|
9801
9801
|
},
|
|
9802
9802
|
withElementId: {
|
|
@@ -9894,13 +9894,13 @@ var SpsTooltipExamples = {
|
|
|
9894
9894
|
},
|
|
9895
9895
|
},
|
|
9896
9896
|
};
|
|
9897
|
-
var templateObject_1$
|
|
9897
|
+
var templateObject_1$7, templateObject_2$5, templateObject_3$3, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25;
|
|
9898
9898
|
|
|
9899
|
-
var propsDoc$
|
|
9899
|
+
var propsDoc$m = {
|
|
9900
9900
|
heading: 'string',
|
|
9901
9901
|
icon: 'SpsIcon',
|
|
9902
9902
|
};
|
|
9903
|
-
var propTypes$
|
|
9903
|
+
var propTypes$o = __assign(__assign({}, spsGlobalPropTypes), { heading: string, icon: enumValue(SpsIcon$1) });
|
|
9904
9904
|
function SpsWorkflow(props) {
|
|
9905
9905
|
var children = props.children, className = props.className, icon = props.icon, title = props.title, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "icon", "title", 'data-testid', "unsafelyReplaceClassName"]);
|
|
9906
9906
|
var classes = clsx(unsafelyReplaceClassName || 'sps-workflow', className);
|
|
@@ -9913,24 +9913,24 @@ function SpsWorkflow(props) {
|
|
|
9913
9913
|
children));
|
|
9914
9914
|
}
|
|
9915
9915
|
Object.assign(SpsWorkflow, {
|
|
9916
|
-
props: propsDoc$
|
|
9917
|
-
propTypes: propTypes$
|
|
9916
|
+
props: propsDoc$m,
|
|
9917
|
+
propTypes: propTypes$o,
|
|
9918
9918
|
displayName: 'SpsWorkflow',
|
|
9919
9919
|
});
|
|
9920
9920
|
function SpsWf(props) {
|
|
9921
9921
|
return SpsWorkflow(props);
|
|
9922
9922
|
}
|
|
9923
9923
|
Object.assign(SpsWf, {
|
|
9924
|
-
props: propsDoc$
|
|
9925
|
-
propTypes: propTypes$
|
|
9924
|
+
props: propsDoc$m,
|
|
9925
|
+
propTypes: propTypes$o,
|
|
9926
9926
|
displayName: 'SpsWf',
|
|
9927
9927
|
});
|
|
9928
9928
|
|
|
9929
|
-
var propsDoc$
|
|
9929
|
+
var propsDoc$l = {
|
|
9930
9930
|
size: 'RingSize',
|
|
9931
9931
|
progress: 'number',
|
|
9932
9932
|
};
|
|
9933
|
-
var propTypes$
|
|
9933
|
+
var propTypes$n = __assign(__assign({}, spsGlobalPropTypes), { progress: number, size: enumValue(RingSize) });
|
|
9934
9934
|
function SpsProgressRing(_a) {
|
|
9935
9935
|
var _b = _a.size, size = _b === void 0 ? RingSize.SMALL : _b, _c = _a.progress, progress = _c === void 0 ? 0 : _c;
|
|
9936
9936
|
var stroke = 4;
|
|
@@ -9943,15 +9943,15 @@ function SpsProgressRing(_a) {
|
|
|
9943
9943
|
React.createElement("circle", { stroke: colors.purple200, fill: "transparent", strokeWidth: stroke, strokeDasharray: circumference + " " + circumference, style: { strokeDashoffset: strokeDashoffset }, r: normalizedRadius, cx: size, cy: size }))));
|
|
9944
9944
|
}
|
|
9945
9945
|
Object.assign(SpsProgressRing, {
|
|
9946
|
-
props: propsDoc$
|
|
9947
|
-
propTypes: propTypes$
|
|
9946
|
+
props: propsDoc$l,
|
|
9947
|
+
propTypes: propTypes$n,
|
|
9948
9948
|
displayName: 'SpsProgressRing',
|
|
9949
9949
|
});
|
|
9950
9950
|
|
|
9951
|
-
var propsDoc$
|
|
9951
|
+
var propsDoc$k = {
|
|
9952
9952
|
phases: 'WizardPhase[]',
|
|
9953
9953
|
};
|
|
9954
|
-
var propTypes$
|
|
9954
|
+
var propTypes$m = __assign(__assign({}, spsGlobalPropTypes), { phases: arrayOf(impl()) });
|
|
9955
9955
|
var CSS_BLOCK$2 = 'sps-wizard-sidebar';
|
|
9956
9956
|
function SpsWizardSidebar(_a) {
|
|
9957
9957
|
var className = _a.className, phases = _a.phases;
|
|
@@ -9970,17 +9970,17 @@ function SpsWizardSidebar(_a) {
|
|
|
9970
9970
|
})));
|
|
9971
9971
|
}
|
|
9972
9972
|
Object.assign(SpsWizardSidebar, {
|
|
9973
|
-
props: propsDoc$
|
|
9974
|
-
propTypes: propTypes$
|
|
9973
|
+
props: propsDoc$k,
|
|
9974
|
+
propTypes: propTypes$m,
|
|
9975
9975
|
displayName: 'SpsWizardSidebar',
|
|
9976
9976
|
});
|
|
9977
9977
|
|
|
9978
|
-
var propsDoc$
|
|
9978
|
+
var propsDoc$j = {
|
|
9979
9979
|
display: 'string',
|
|
9980
9980
|
condition: 'WizardSubstepConditions',
|
|
9981
9981
|
orderPosition: 'string | number',
|
|
9982
9982
|
};
|
|
9983
|
-
var propTypes$
|
|
9983
|
+
var propTypes$l = __assign(__assign({}, spsGlobalPropTypes), { condition: enumValue(WizardSubstepConditions).isRequired, display: string.isRequired, orderPosition: oneOfType([
|
|
9984
9984
|
string,
|
|
9985
9985
|
number,
|
|
9986
9986
|
]).isRequired });
|
|
@@ -9993,8 +9993,8 @@ function SpsWizardSubstep(props) {
|
|
|
9993
9993
|
React.createElement("div", { className: clsx('sps-wizard-substep__body', "sps-wizard-substep__body--" + condition) }, children)));
|
|
9994
9994
|
}
|
|
9995
9995
|
Object.assign(SpsWizardSubstep, {
|
|
9996
|
-
props: propsDoc$
|
|
9997
|
-
propTypes: propTypes$
|
|
9996
|
+
props: propsDoc$j,
|
|
9997
|
+
propTypes: propTypes$l,
|
|
9998
9998
|
displayName: 'SpsWizardSubstep',
|
|
9999
9999
|
});
|
|
10000
10000
|
|
|
@@ -10003,7 +10003,7 @@ var SpsWizardExamples = {
|
|
|
10003
10003
|
label: 'Substep',
|
|
10004
10004
|
examples: {
|
|
10005
10005
|
completed: {
|
|
10006
|
-
jsx: code(templateObject_1$
|
|
10006
|
+
jsx: code(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n <SpsWizardSubstep condition={WizardSubstepConditions.COMPLETED} orderPosition=\"1\" display=\"Payment Options\">\n <div>Put a Route here</div>\n </SpsWizardSubstep>\n "], ["\n <SpsWizardSubstep condition={WizardSubstepConditions.COMPLETED} orderPosition=\"1\" display=\"Payment Options\">\n <div>Put a Route here</div>\n </SpsWizardSubstep>\n "]))),
|
|
10007
10007
|
},
|
|
10008
10008
|
active: {
|
|
10009
10009
|
jsx: code(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n <SpsWizardSubstep condition={WizardSubstepConditions.ACTIVE} orderPosition=\"2\" display=\"Payment Options\">\n <div>Put a Route here</div>\n </SpsWizardSubstep>\n "], ["\n <SpsWizardSubstep condition={WizardSubstepConditions.ACTIVE} orderPosition=\"2\" display=\"Payment Options\">\n <div>Put a Route here</div>\n </SpsWizardSubstep>\n "]))),
|
|
@@ -10022,33 +10022,33 @@ var SpsWizardExamples = {
|
|
|
10022
10022
|
},
|
|
10023
10023
|
},
|
|
10024
10024
|
};
|
|
10025
|
-
var templateObject_1$
|
|
10025
|
+
var templateObject_1$6, templateObject_2$4, templateObject_3$2, templateObject_4$1;
|
|
10026
10026
|
|
|
10027
|
-
var propsDoc$
|
|
10028
|
-
var propTypes$
|
|
10027
|
+
var propsDoc$i = {};
|
|
10028
|
+
var propTypes$k = __assign({}, spsGlobalPropTypes);
|
|
10029
10029
|
function SpsWorkflowDocument(props) {
|
|
10030
10030
|
var children = props.children, className = props.className, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", 'data-testid', "unsafelyReplaceClassName"]);
|
|
10031
10031
|
var classes = clsx(unsafelyReplaceClassName || 'sps-workflow__document', className);
|
|
10032
10032
|
return (React.createElement("span", __assign({ className: classes, "data-testid": testId + "__document" }, rest), children));
|
|
10033
10033
|
}
|
|
10034
10034
|
Object.assign(SpsWorkflowDocument, {
|
|
10035
|
-
props: propsDoc$
|
|
10036
|
-
propTypes: propTypes$
|
|
10035
|
+
props: propsDoc$i,
|
|
10036
|
+
propTypes: propTypes$k,
|
|
10037
10037
|
displayName: 'SpsWorkflowDocument',
|
|
10038
10038
|
});
|
|
10039
10039
|
function SpsWfDoc(props) {
|
|
10040
10040
|
return SpsWorkflowDocument(props);
|
|
10041
10041
|
}
|
|
10042
10042
|
Object.assign(SpsWfDoc, {
|
|
10043
|
-
props: propsDoc$
|
|
10044
|
-
propTypes: propTypes$
|
|
10043
|
+
props: propsDoc$i,
|
|
10044
|
+
propTypes: propTypes$k,
|
|
10045
10045
|
displayName: 'SpsWfDoc',
|
|
10046
10046
|
});
|
|
10047
10047
|
|
|
10048
|
-
var propsDoc$
|
|
10048
|
+
var propsDoc$h = {
|
|
10049
10049
|
icon: 'SpsIcon',
|
|
10050
10050
|
};
|
|
10051
|
-
var propTypes$
|
|
10051
|
+
var propTypes$j = __assign(__assign({}, spsGlobalPropTypes), { icon: enumValue(SpsIcon$1) });
|
|
10052
10052
|
function SpsWorkflowDocumentStatus(props) {
|
|
10053
10053
|
var children = props.children, className = props.className, icon = props.icon, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "icon", 'data-testid', "unsafelyReplaceClassName"]);
|
|
10054
10054
|
var classes = clsx(unsafelyReplaceClassName || 'sps-workflow__document-status', className);
|
|
@@ -10058,24 +10058,24 @@ function SpsWorkflowDocumentStatus(props) {
|
|
|
10058
10058
|
children));
|
|
10059
10059
|
}
|
|
10060
10060
|
Object.assign(SpsWorkflowDocumentStatus, {
|
|
10061
|
-
props: propsDoc$
|
|
10062
|
-
propTypes: propTypes$
|
|
10061
|
+
props: propsDoc$h,
|
|
10062
|
+
propTypes: propTypes$j,
|
|
10063
10063
|
displayName: 'SpsWorkflowDocumentStatus',
|
|
10064
10064
|
});
|
|
10065
10065
|
function SpsWfDs(props) {
|
|
10066
10066
|
return SpsWorkflowDocumentStatus(props);
|
|
10067
10067
|
}
|
|
10068
10068
|
Object.assign(SpsWfDs, {
|
|
10069
|
-
props: propsDoc$
|
|
10070
|
-
propTypes: propTypes$
|
|
10069
|
+
props: propsDoc$h,
|
|
10070
|
+
propTypes: propTypes$j,
|
|
10071
10071
|
displayName: 'SpsWfDs',
|
|
10072
10072
|
});
|
|
10073
10073
|
|
|
10074
|
-
var propsDoc$
|
|
10074
|
+
var propsDoc$g = {
|
|
10075
10075
|
icon: { type: 'SpsIcon', required: true },
|
|
10076
10076
|
title: { type: 'string', required: true },
|
|
10077
10077
|
};
|
|
10078
|
-
var propTypes$
|
|
10078
|
+
var propTypes$i = __assign(__assign({}, spsGlobalPropTypes), { icon: enumValue(SpsIcon$1).isRequired, title: string.isRequired });
|
|
10079
10079
|
function SpsWorkflowStep(props) {
|
|
10080
10080
|
var children = props.children, className = props.className, icon = props.icon, title = props.title, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "icon", "title", 'data-testid', "unsafelyReplaceClassName"]);
|
|
10081
10081
|
var classes = clsx(unsafelyReplaceClassName || 'sps-workflow__step', className);
|
|
@@ -10085,16 +10085,16 @@ function SpsWorkflowStep(props) {
|
|
|
10085
10085
|
children));
|
|
10086
10086
|
}
|
|
10087
10087
|
Object.assign(SpsWorkflowStep, {
|
|
10088
|
-
props: propsDoc$
|
|
10089
|
-
propTypes: propTypes$
|
|
10088
|
+
props: propsDoc$g,
|
|
10089
|
+
propTypes: propTypes$i,
|
|
10090
10090
|
displayName: 'SpsWorkflowStep',
|
|
10091
10091
|
});
|
|
10092
10092
|
function SpsWfStep(props) {
|
|
10093
10093
|
return SpsWorkflowStep(props);
|
|
10094
10094
|
}
|
|
10095
10095
|
Object.assign(SpsWfStep, {
|
|
10096
|
-
props: propsDoc$
|
|
10097
|
-
propTypes: propTypes$
|
|
10096
|
+
props: propsDoc$g,
|
|
10097
|
+
propTypes: propTypes$i,
|
|
10098
10098
|
displayName: 'SpsWfStep',
|
|
10099
10099
|
});
|
|
10100
10100
|
|
|
@@ -10103,7 +10103,7 @@ var SpsWorkflowExamples = {
|
|
|
10103
10103
|
label: 'Basic Usage',
|
|
10104
10104
|
examples: {
|
|
10105
10105
|
basic: {
|
|
10106
|
-
jsx: code(templateObject_1$
|
|
10106
|
+
jsx: code(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n <div className=\"col-4\">\n <SpsWorkflow icon=\"list-summary\" title=\"Workflow\">\n <SpsWorkflowStep icon=\"heart\" title=\"Name of Step\">\n <SpsWorkflowDocument>\n <a href=\"https://github.com/SPSCommerce/ui-angular\" target=\"_blank\">\n Document Name\n </a>\n <SpsWorkflowDocumentStatus icon=\"status-error\">\n Status\n </SpsWorkflowDocumentStatus>\n </SpsWorkflowDocument>\n <SpsWorkflowDocument>\n Document Name\n <SpsWorkflowDocumentStatus>\n Status\n </SpsWorkflowDocumentStatus>\n </SpsWorkflowDocument>\n </SpsWorkflowStep>\n <SpsWorkflowStep icon=\"heart\" title=\"Done\">\n </SpsWorkflowStep>\n </SpsWorkflow>\n </div>\n "], ["\n <div className=\"col-4\">\n <SpsWorkflow icon=\"list-summary\" title=\"Workflow\">\n <SpsWorkflowStep icon=\"heart\" title=\"Name of Step\">\n <SpsWorkflowDocument>\n <a href=\"https://github.com/SPSCommerce/ui-angular\" target=\"_blank\">\n Document Name\n </a>\n <SpsWorkflowDocumentStatus icon=\"status-error\">\n Status\n </SpsWorkflowDocumentStatus>\n </SpsWorkflowDocument>\n <SpsWorkflowDocument>\n Document Name\n <SpsWorkflowDocumentStatus>\n Status\n </SpsWorkflowDocumentStatus>\n </SpsWorkflowDocument>\n </SpsWorkflowStep>\n <SpsWorkflowStep icon=\"heart\" title=\"Done\">\n </SpsWorkflowStep>\n </SpsWorkflow>\n </div>\n "]))),
|
|
10107
10107
|
},
|
|
10108
10108
|
},
|
|
10109
10109
|
},
|
|
@@ -10116,14 +10116,14 @@ var SpsWorkflowExamples = {
|
|
|
10116
10116
|
},
|
|
10117
10117
|
},
|
|
10118
10118
|
};
|
|
10119
|
-
var templateObject_1$
|
|
10119
|
+
var templateObject_1$5, templateObject_2$3;
|
|
10120
10120
|
|
|
10121
|
-
var propsDoc$
|
|
10121
|
+
var propsDoc$f = {
|
|
10122
10122
|
artwork: { type: 'string', required: true },
|
|
10123
10123
|
heading: { type: 'string', required: true },
|
|
10124
10124
|
subHeading: 'string',
|
|
10125
10125
|
};
|
|
10126
|
-
var propTypes$
|
|
10126
|
+
var propTypes$h = __assign(__assign({}, spsGlobalPropTypes), { artwork: string.isRequired, heading: string.isRequired, subHeading: string });
|
|
10127
10127
|
function SpsZeroState(props) {
|
|
10128
10128
|
var artwork = props.artwork, children = props.children, className = props.className, heading = props.heading, subHeading = props.subHeading, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["artwork", "children", "className", "heading", "subHeading", 'data-testid', "unsafelyReplaceClassName"]);
|
|
10129
10129
|
var classes = clsx(unsafelyReplaceClassName || 'sps-zero-state', className);
|
|
@@ -10135,17 +10135,17 @@ function SpsZeroState(props) {
|
|
|
10135
10135
|
React.createElement("div", { className: "sps-zero-state__content", "data-testid": testId + "__content" }, children))));
|
|
10136
10136
|
}
|
|
10137
10137
|
Object.assign(SpsZeroState, {
|
|
10138
|
-
props: propsDoc$
|
|
10139
|
-
propTypes: propTypes$
|
|
10138
|
+
props: propsDoc$f,
|
|
10139
|
+
propTypes: propTypes$h,
|
|
10140
10140
|
displayName: 'SpsZeroState',
|
|
10141
10141
|
});
|
|
10142
10142
|
|
|
10143
|
-
var propsDoc$
|
|
10143
|
+
var propsDoc$e = {
|
|
10144
10144
|
icon: { type: 'SpsIcon', required: true },
|
|
10145
10145
|
heading: 'ReactNodeOrRenderFn',
|
|
10146
10146
|
subHeading: 'ReactNodeOrRenderFn',
|
|
10147
10147
|
};
|
|
10148
|
-
var propTypes$
|
|
10148
|
+
var propTypes$g = __assign(__assign({}, spsGlobalPropTypes), { icon: enumValue(SpsIcon$1).isRequired, heading: nodeOrRenderFn, subHeading: nodeOrRenderFn });
|
|
10149
10149
|
function SpsMicroZeroState(props) {
|
|
10150
10150
|
var className = props.className, heading = props.heading, icon = props.icon, subHeading = props.subHeading, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["className", "heading", "icon", "subHeading", 'data-testid', "unsafelyReplaceClassName"]);
|
|
10151
10151
|
var classes = clsx(unsafelyReplaceClassName || 'sps-zero-state', 'sps-zero-state--micro', className);
|
|
@@ -10155,8 +10155,8 @@ function SpsMicroZeroState(props) {
|
|
|
10155
10155
|
subHeading && React.createElement("h2", { className: "sps-zero-state__subheading", "data-testid": testId + "__subheading" }, subHeading)));
|
|
10156
10156
|
}
|
|
10157
10157
|
Object.assign(SpsMicroZeroState, {
|
|
10158
|
-
props: propsDoc$
|
|
10159
|
-
propTypes: propTypes$
|
|
10158
|
+
props: propsDoc$e,
|
|
10159
|
+
propTypes: propTypes$g,
|
|
10160
10160
|
displayName: 'SpsMicroZeroState',
|
|
10161
10161
|
});
|
|
10162
10162
|
|
|
@@ -10190,7 +10190,7 @@ var SpsZeroStateExamples = {
|
|
|
10190
10190
|
examples: {
|
|
10191
10191
|
illustrationAndHeading: {
|
|
10192
10192
|
description: 'Illustration + Heading',
|
|
10193
|
-
jsx: code(templateObject_1$
|
|
10193
|
+
jsx: code(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n <SpsCard>\n <SpsZeroState\n heading=\"Search for a record\"\n artwork=\"https://cdn.prod.spsc.io/web/framework/assets/18.03.02/images/icon-empty-search@2x.svg\"\n />\n </SpsCard>\n "], ["\n <SpsCard>\n <SpsZeroState\n heading=\"Search for a record\"\n artwork=\"https://cdn.prod.spsc.io/web/framework/assets/18.03.02/images/icon-empty-search@2x.svg\"\n />\n </SpsCard>\n "]))),
|
|
10194
10194
|
},
|
|
10195
10195
|
illustrationHeadingAndSubtitle: {
|
|
10196
10196
|
description: 'Illustration + Heading + Subtitle',
|
|
@@ -10229,7 +10229,91 @@ var SpsZeroStateExamples = {
|
|
|
10229
10229
|
},
|
|
10230
10230
|
},
|
|
10231
10231
|
};
|
|
10232
|
-
var templateObject_1$
|
|
10232
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$1, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
10233
|
+
|
|
10234
|
+
var propsDoc$d = {};
|
|
10235
|
+
var propTypes$f = __assign({}, spsGlobalPropTypes);
|
|
10236
|
+
function SpsFilterPanel(_a) {
|
|
10237
|
+
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
10238
|
+
return (React.createElement("div", __assign({ className: clsx('sps-filter-panel', className) }, rest), children));
|
|
10239
|
+
}
|
|
10240
|
+
Object.assign(SpsFilterPanel, {
|
|
10241
|
+
props: propsDoc$d,
|
|
10242
|
+
propTypes: propTypes$f,
|
|
10243
|
+
displayName: 'SpsFilterPanel',
|
|
10244
|
+
});
|
|
10245
|
+
|
|
10246
|
+
var propsDoc$c = {
|
|
10247
|
+
title: 'string',
|
|
10248
|
+
expanded: 'boolean',
|
|
10249
|
+
heightPx: 'number',
|
|
10250
|
+
heightRem: 'number',
|
|
10251
|
+
onExpand: '() => void',
|
|
10252
|
+
onCollapse: '() => void',
|
|
10253
|
+
};
|
|
10254
|
+
var propTypes$e = __assign(__assign({}, spsGlobalPropTypes), { title: string, expanded: bool, heightPx: number, heightRem: number, onExpand: fun(), onCollapse: fun() });
|
|
10255
|
+
function SpsFilterPanelSection(_a) {
|
|
10256
|
+
var children = _a.children, className = _a.className, title = _a.title, expanded = _a.expanded, heightPx = _a.heightPx, heightRem = _a.heightRem, onExpand = _a.onExpand, onCollapse = _a.onCollapse, rest = __rest(_a, ["children", "className", "title", "expanded", "heightPx", "heightRem", "onExpand", "onCollapse"]);
|
|
10257
|
+
var _b = __read(React.useState(expanded), 2), localExpanded = _b[0], setLocalExpanded = _b[1];
|
|
10258
|
+
var isExpanded = typeof expanded !== 'undefined' ? expanded : localExpanded;
|
|
10259
|
+
var height = heightPx ? heightPx / 16 : heightRem;
|
|
10260
|
+
var inlineStyles = height ? { overflowY: 'scroll', height: height + "rem" } : {};
|
|
10261
|
+
var ExpandHideButton = function () { return (React.createElement("button", { type: "button", className: "sps-filter-panel__section__expand-btn", onClick: function () {
|
|
10262
|
+
setLocalExpanded(!isExpanded);
|
|
10263
|
+
if (!isExpanded && onExpand) {
|
|
10264
|
+
onExpand();
|
|
10265
|
+
}
|
|
10266
|
+
else if (isExpanded && onCollapse) {
|
|
10267
|
+
onCollapse();
|
|
10268
|
+
}
|
|
10269
|
+
} },
|
|
10270
|
+
React.createElement(SpsI, { icon: isExpanded ? SpsIcon$1.MINUS_CIRCLE : SpsIcon$1.PLUS_CIRCLE }))); };
|
|
10271
|
+
React.useEffect(function () {
|
|
10272
|
+
setLocalExpanded(expanded);
|
|
10273
|
+
}, [expanded]);
|
|
10274
|
+
return (React.createElement("div", __assign({ className: clsx('sps-filter-panel__section', className) }, rest),
|
|
10275
|
+
React.createElement("div", { className: "sps-filter-panel__section__title-wrapper" },
|
|
10276
|
+
React.createElement(ExpandHideButton, null),
|
|
10277
|
+
React.createElement("p", null, title)),
|
|
10278
|
+
isExpanded && (React.createElement("div", { className: "sps-filter-panel__section__content-wrapper", style: inlineStyles },
|
|
10279
|
+
React.createElement("div", { className: "sps-filter-panel__section__content" }, children)))));
|
|
10280
|
+
}
|
|
10281
|
+
Object.assign(SpsFilterPanelSection, {
|
|
10282
|
+
props: propsDoc$c,
|
|
10283
|
+
propTypes: propTypes$e,
|
|
10284
|
+
displayName: 'SpsFilterPanelSection',
|
|
10285
|
+
});
|
|
10286
|
+
|
|
10287
|
+
var propsDoc$b = {
|
|
10288
|
+
onClear: '() => void',
|
|
10289
|
+
};
|
|
10290
|
+
var propTypes$d = __assign(__assign({}, spsGlobalPropTypes), { onClear: fun() });
|
|
10291
|
+
function SpsFilterPanelCap(_a) {
|
|
10292
|
+
_a.children; var className = _a.className, onClear = _a.onClear, rest = __rest(_a, ["children", "className", "onClear"]);
|
|
10293
|
+
var t = React.useContext(I18nContext).t;
|
|
10294
|
+
return (React.createElement("div", __assign({ className: clsx('sps-filter-panel__cap', className) }, rest),
|
|
10295
|
+
React.createElement("div", { className: "sps-filter-panel__cap__title-wrapper" },
|
|
10296
|
+
React.createElement(SpsI, { icon: SpsIcon$1.FILTER, size: SpsIconSize.SMALL }),
|
|
10297
|
+
React.createElement("p", null, t('design-system:filterPanel.title'))),
|
|
10298
|
+
React.createElement(SpsButton, { kind: ButtonKind.LINK, onClick: onClear }, t('design-system:filterPanel.clear'))));
|
|
10299
|
+
}
|
|
10300
|
+
Object.assign(SpsFilterPanelCap, {
|
|
10301
|
+
props: propsDoc$b,
|
|
10302
|
+
propTypes: propTypes$d,
|
|
10303
|
+
displayName: 'SpsFilterPanelCap',
|
|
10304
|
+
});
|
|
10305
|
+
|
|
10306
|
+
var SpsFilterPanelExamples = {
|
|
10307
|
+
generalUsage: {
|
|
10308
|
+
label: 'General Usage',
|
|
10309
|
+
examples: {
|
|
10310
|
+
general: {
|
|
10311
|
+
react: code(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n function Component() {\n const initialValues = {\n colors: {\n red: false,\n blue: false,\n green: false,\n },\n options: {\n '1': false,\n '2': false,\n '3': false,\n '4': false,\n '5': false,\n '6': false,\n '7': false,\n '8': false,\n '9': false,\n '10': false,\n },\n radio: 'yes', \n }\n\n const { formValue, formMeta, updateForm } = useSpsForm(initialValues);\n\n const handleClear = () => {\n updateForm(initialValues);\n formMeta.markAsPristine();\n }\n\n const [expanded, setExpanded] = React.useState(true);\n \n const onExpand = () => {\n setExpanded(true);\n }\n \n const onCollapse = () => {\n setExpanded(false);\n }\n \n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsForm formMeta={formMeta}>\n <SpsFilterPanel>\n <SpsFilterPanelCap onClear={handleClear}/>\n <SpsFilterPanelSection title=\"Section one\">\n <SpsCheckbox\n name=\"red\"\n label=\"Red\"\n checked={formValue.colors.red}\n formMeta={formMeta.fields.colors.fields.red}\n />\n <SpsCheckbox\n name=\"blue\"\n label=\"Blue\"\n checked={formValue.colors.blue}\n formMeta={formMeta.fields.colors.fields.blue}\n />\n <SpsCheckbox\n name=\"green\"\n label=\"Green\"\n checked={formValue.colors.green}\n formMeta={formMeta.fields.colors.fields.green}\n />\n </SpsFilterPanelSection>\n <SpsFilterPanelSection title=\"Section two\"\n expanded={expanded}\n onExpand={onExpand}\n onCollapse={onCollapse}\n heightPx={150}\n >\n {Object.keys(initialValues.options).map((o) => (\n <SpsCheckbox\n name={`option_${o}`}\n label={`Option ${o}`}\n checked={formValue.options[o]}\n formMeta={formMeta.fields.options.fields[o]}\n />\n ))} \n </SpsFilterPanelSection>\n <SpsFilterPanelSection title=\"Section three\"> \n <SpsRadioButton name=\"yes\" value=\"yes\" label=\"Yes\"\n formMeta={formMeta.fields.radio}\n checked={formValue.radio === \"yes\"}\n ></SpsRadioButton>\n <SpsRadioButton name=\"no\" value=\"no\" label=\"No\"\n formMeta={formMeta.fields.radio}\n checked={formValue.radio === \"no\"}\n ></SpsRadioButton> \n </SpsFilterPanelSection>\n </SpsFilterPanel>\n </SpsForm>\n </div>\n </div>\n );\n }\n "], ["\n function Component() {\n const initialValues = {\n colors: {\n red: false,\n blue: false,\n green: false,\n },\n options: {\n '1': false,\n '2': false,\n '3': false,\n '4': false,\n '5': false,\n '6': false,\n '7': false,\n '8': false,\n '9': false,\n '10': false,\n },\n radio: 'yes', \n }\n\n const { formValue, formMeta, updateForm } = useSpsForm(initialValues);\n\n const handleClear = () => {\n updateForm(initialValues);\n formMeta.markAsPristine();\n }\n\n const [expanded, setExpanded] = React.useState(true);\n \n const onExpand = () => {\n setExpanded(true);\n }\n \n const onCollapse = () => {\n setExpanded(false);\n }\n \n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsForm formMeta={formMeta}>\n <SpsFilterPanel>\n <SpsFilterPanelCap onClear={handleClear}/>\n <SpsFilterPanelSection title=\"Section one\">\n <SpsCheckbox\n name=\"red\"\n label=\"Red\"\n checked={formValue.colors.red}\n formMeta={formMeta.fields.colors.fields.red}\n />\n <SpsCheckbox\n name=\"blue\"\n label=\"Blue\"\n checked={formValue.colors.blue}\n formMeta={formMeta.fields.colors.fields.blue}\n />\n <SpsCheckbox\n name=\"green\"\n label=\"Green\"\n checked={formValue.colors.green}\n formMeta={formMeta.fields.colors.fields.green}\n />\n </SpsFilterPanelSection>\n <SpsFilterPanelSection title=\"Section two\"\n expanded={expanded}\n onExpand={onExpand}\n onCollapse={onCollapse}\n heightPx={150}\n >\n {Object.keys(initialValues.options).map((o) => (\n <SpsCheckbox\n name={\\`option_\\${o}\\`}\n label={\\`Option \\${o}\\`}\n checked={formValue.options[o]}\n formMeta={formMeta.fields.options.fields[o]}\n />\n ))} \n </SpsFilterPanelSection>\n <SpsFilterPanelSection title=\"Section three\"> \n <SpsRadioButton name=\"yes\" value=\"yes\" label=\"Yes\"\n formMeta={formMeta.fields.radio}\n checked={formValue.radio === \"yes\"}\n ></SpsRadioButton>\n <SpsRadioButton name=\"no\" value=\"no\" label=\"No\"\n formMeta={formMeta.fields.radio}\n checked={formValue.radio === \"no\"}\n ></SpsRadioButton> \n </SpsFilterPanelSection>\n </SpsFilterPanel>\n </SpsForm>\n </div>\n </div>\n );\n }\n "]))),
|
|
10312
|
+
},
|
|
10313
|
+
},
|
|
10314
|
+
},
|
|
10315
|
+
};
|
|
10316
|
+
var templateObject_1$3;
|
|
10233
10317
|
|
|
10234
10318
|
/* eslint-disable react/prop-types */
|
|
10235
10319
|
var MANIFEST = {
|
|
@@ -10340,6 +10424,10 @@ var MANIFEST = {
|
|
|
10340
10424
|
components: [SpsFieldset],
|
|
10341
10425
|
examples: SpsFieldsetExamples,
|
|
10342
10426
|
},
|
|
10427
|
+
'Filter Panel': {
|
|
10428
|
+
components: [SpsFilterPanel, SpsFilterPanelSection, SpsFilterPanelCap],
|
|
10429
|
+
examples: SpsFilterPanelExamples,
|
|
10430
|
+
},
|
|
10343
10431
|
'Focused Task': {
|
|
10344
10432
|
components: [SpsFocusedTask, SpsFocusedTaskActions],
|
|
10345
10433
|
examples: SpsFocusedTaskExamples,
|
|
@@ -14552,4 +14640,4 @@ Object.assign(SpsVr, {
|
|
|
14552
14640
|
displayName: 'SpsDescriptionListTerm / SpsDt',
|
|
14553
14641
|
});
|
|
14554
14642
|
|
|
14555
|
-
export { ContentOrderExample, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, 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, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIcon, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsMultiSelectTag, 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, 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, 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 };
|
|
14643
|
+
export { ContentOrderExample, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, 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, SpsFilterPanelSection, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIcon, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsMultiSelectTag, 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, 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, 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 };
|