@spscommerce/ds-react 5.10.4 → 5.10.5-ie
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/package.json +13 -19
- package/rollup.config.js +22 -0
- package/vite.config.js +1 -1
- package/lib/_template/SpsComponent.d.ts +0 -15
- package/lib/_template/SpsComponent.examples.d.ts +0 -2
- package/lib/_template/index.d.ts +0 -2
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +0 -22
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +0 -2
- package/lib/advanced-search/index.d.ts +0 -2
- package/lib/autocomplete/SpsAutocomplete.d.ts +0 -27
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +0 -2
- package/lib/autocomplete/index.d.ts +0 -2
- package/lib/button/SpsButton.d.ts +0 -18
- package/lib/button/SpsButton.examples.d.ts +0 -2
- package/lib/button/SpsButtonGroup.d.ts +0 -10
- package/lib/button/SpsIconButtonPanel.d.ts +0 -10
- package/lib/button/index.d.ts +0 -4
- package/lib/card/SpsCard.d.ts +0 -16
- package/lib/card/SpsCard.examples.d.ts +0 -2
- package/lib/card/SpsCardHeader.d.ts +0 -14
- package/lib/card/SpsCardTabbedPane.d.ts +0 -19
- package/lib/card/index.d.ts +0 -3
- package/lib/card/useTab.d.ts +0 -18
- package/lib/card-v2/SpsCardV2.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Footer.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Header.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Title.d.ts +0 -2
- package/lib/card-v2/index.d.ts +0 -5
- package/lib/checkbox/SpsCheckbox.d.ts +0 -21
- package/lib/checkbox/SpsCheckbox.examples.d.ts +0 -2
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +0 -17
- package/lib/checkbox-dropdown/index.d.ts +0 -1
- package/lib/clickable-tag/SpsClickableTag.d.ts +0 -16
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +0 -2
- package/lib/clickable-tag/index.d.ts +0 -2
- package/lib/column-chooser/SpsColumnChooser.d.ts +0 -19
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +0 -2
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +0 -17
- package/lib/column-chooser/index.d.ts +0 -3
- package/lib/conditional-field/SpsConditionalField.d.ts +0 -11
- package/lib/conditional-field/SpsConditionalField.examples.d.ts +0 -2
- package/lib/conditional-field/index.d.ts +0 -2
- package/lib/content-row/SpsContentRow.d.ts +0 -22
- package/lib/content-row/SpsContentRow.examples.d.ts +0 -2
- package/lib/content-row/SpsContentRowCol.d.ts +0 -15
- package/lib/content-row/SpsContentRowExpansion.d.ts +0 -10
- package/lib/content-row/index.d.ts +0 -4
- package/lib/currency-input/SpsCurrencyInput.d.ts +0 -18
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +0 -2
- package/lib/currency-input/index.d.ts +0 -2
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +0 -23
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +0 -2
- package/lib/dateRangePicker/index.d.ts +0 -2
- package/lib/datepicker/SpsDatepicker.d.ts +0 -19
- package/lib/datepicker/SpsDatepicker.examples.d.ts +0 -2
- package/lib/datepicker/index.d.ts +0 -2
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +0 -21
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +0 -18
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +0 -13
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +0 -18
- package/lib/datepicker-v2/index.d.ts +0 -4
- package/lib/datepicker-v2/useCalendar.d.ts +0 -2
- package/lib/datepicker-v2/useMoment.d.ts +0 -3
- package/lib/datepicker-v2/utils.d.ts +0 -23
- package/lib/datepicker-v2/validation.d.ts +0 -10
- package/lib/datetime/SpsDateTime.d.ts +0 -26
- package/lib/datetime/SpsDateTime.examples.d.ts +0 -2
- package/lib/datetime/index.d.ts +0 -2
- package/lib/description-list/SpsDescriptionList.d.ts +0 -14
- package/lib/description-list/SpsDescriptionList.examples.d.ts +0 -2
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +0 -11
- package/lib/description-list/SpsDescriptionListTerm.d.ts +0 -18
- package/lib/description-list/index.d.ts +0 -4
- package/lib/dropdown/SpsDropdown.d.ts +0 -24
- package/lib/dropdown/SpsDropdown.examples.d.ts +0 -2
- package/lib/dropdown/index.d.ts +0 -2
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +0 -12
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +0 -2
- package/lib/feedback-block/index.d.ts +0 -2
- package/lib/fieldset/SpsFieldset.d.ts +0 -22
- package/lib/fieldset/SpsFieldset.examples.d.ts +0 -2
- package/lib/fieldset/index.d.ts +0 -2
- package/lib/filter-panel/SpsFilterPanel.d.ts +0 -10
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +0 -2
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +0 -11
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +0 -16
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +0 -16
- package/lib/filter-panel/index.d.ts +0 -5
- package/lib/filter-tile-list/SpsFilterTile.d.ts +0 -15
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +0 -10
- package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +0 -2
- package/lib/filter-tile-list/index.d.ts +0 -3
- package/lib/focused-task/SpsFocusedTask.d.ts +0 -13
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +0 -2
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +0 -10
- package/lib/focused-task/index.d.ts +0 -3
- package/lib/form/AddRemoveFormRows.examples.d.ts +0 -18
- package/lib/form/SpsForm.d.ts +0 -24
- package/lib/form/SpsForm.examples.d.ts +0 -41
- package/lib/form/SpsFormComponentWrapper.d.ts +0 -19
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +0 -24
- package/lib/form/hooks/SpsControlSet.interface.d.ts +0 -7
- package/lib/form/hooks/formArray.d.ts +0 -12
- package/lib/form/hooks/formControl.d.ts +0 -9
- package/lib/form/hooks/formGroup.d.ts +0 -10
- package/lib/form/hooks/useForm.d.ts +0 -2
- package/lib/form/hooks/useFormControlId.d.ts +0 -4
- package/lib/form/hooks/useServerSideValidation.d.ts +0 -3
- package/lib/form/hooks/useSpsForm.d.ts +0 -77
- package/lib/form/index.d.ts +0 -15
- package/lib/form/validation/SpsValidators.d.ts +0 -16
- package/lib/form/validation/types.d.ts +0 -7
- package/lib/form/validation/validate.d.ts +0 -2
- package/lib/growler/SpsGrowler.d.ts +0 -17
- package/lib/growler/SpsGrowler.examples.d.ts +0 -2
- package/lib/growler/index.d.ts +0 -3
- package/lib/growler/useGrowlers.d.ts +0 -12
- package/lib/i18n.d.ts +0 -3
- package/lib/icon/SpsIcon.d.ts +0 -13
- package/lib/icon/index.d.ts +0 -1
- package/lib/incrementor/SpsIncrementor.d.ts +0 -15
- package/lib/incrementor/SpsIncrementor.examples.d.ts +0 -2
- package/lib/incrementor/index.d.ts +0 -2
- package/lib/index.cjs.js +0 -8473
- package/lib/index.d.ts +0 -71
- package/lib/index.es.js +0 -38081
- package/lib/input-group/SpsInputGroup.d.ts +0 -17
- package/lib/input-group/index.d.ts +0 -1
- package/lib/insight-tile/SpsInsightTile.d.ts +0 -18
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +0 -2
- package/lib/insight-tile/SpsInsights.d.ts +0 -10
- package/lib/insight-tile/index.d.ts +0 -2
- package/lib/key-value-list/SpsKeyValueList.d.ts +0 -11
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +0 -2
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +0 -13
- package/lib/key-value-list/index.d.ts +0 -3
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +0 -16
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +0 -2
- package/lib/key-value-tag/index.d.ts +0 -2
- package/lib/label/SpsLabel.d.ts +0 -20
- package/lib/label/SpsLabel.examples.d.ts +0 -2
- package/lib/label/index.d.ts +0 -2
- package/lib/list-action-bar/SpsListActionBar.d.ts +0 -12
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +0 -2
- package/lib/list-action-bar/index.d.ts +0 -2
- package/lib/list-toolbar/SpsListToolbar.d.ts +0 -25
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +0 -3
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +0 -12
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +0 -10
- package/lib/list-toolbar/index.d.ts +0 -4
- package/lib/manifest.d.ts +0 -2
- package/lib/micro-block/SpsMicroBlock.d.ts +0 -13
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +0 -2
- package/lib/micro-block/index.d.ts +0 -2
- package/lib/modal/SpsModal.d.ts +0 -25
- package/lib/modal/SpsModal.examples.d.ts +0 -2
- package/lib/modal/SpsModalAction.d.ts +0 -18
- package/lib/modal/SpsModalBody.d.ts +0 -10
- package/lib/modal/SpsModalFooter.d.ts +0 -16
- package/lib/modal/SpsModalHeader.d.ts +0 -11
- package/lib/modal/SpsModalOverlay.d.ts +0 -12
- package/lib/modal/index.d.ts +0 -2
- package/lib/modal-v2/SpsModalV2.d.ts +0 -18
- package/lib/modal-v2/index.d.ts +0 -1
- package/lib/multi-select/SpsMultiSelect.d.ts +0 -34
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +0 -2
- package/lib/multi-select/index.d.ts +0 -2
- package/lib/option-list/SpsOptionList.d.ts +0 -3
- package/lib/option-list/SpsOptionListProps.d.ts +0 -75
- package/lib/option-list/index.d.ts +0 -1
- package/lib/option-list/useOptionListOptions.d.ts +0 -8
- package/lib/option-list/useOptionListSearch.d.ts +0 -13
- package/lib/option-list/useSpsAction.d.ts +0 -2
- package/lib/page-title/SpsPageSubtitle.d.ts +0 -10
- package/lib/page-title/SpsPageTitle.d.ts +0 -10
- package/lib/page-title/SpsPageTitle.examples.d.ts +0 -2
- package/lib/page-title/index.d.ts +0 -3
- package/lib/pagination/SpsPageSelector.d.ts +0 -14
- package/lib/pagination/SpsPagination.d.ts +0 -16
- package/lib/pagination/SpsPagination.examples.d.ts +0 -2
- package/lib/pagination/index.d.ts +0 -3
- package/lib/product-bar/SpsProductBar.d.ts +0 -19
- package/lib/product-bar/SpsProductBar.examples.d.ts +0 -2
- package/lib/product-bar/SpsProductBarTab.d.ts +0 -6
- package/lib/product-bar/index.d.ts +0 -3
- package/lib/progress-bar/SpsProgressBar.d.ts +0 -15
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +0 -27
- package/lib/progress-bar/index.d.ts +0 -2
- package/lib/progress-ring/SpsProgressRing.d.ts +0 -13
- package/lib/progress-ring/index.d.ts +0 -1
- package/lib/prop-types.d.ts +0 -23
- package/lib/radio-button/SpsRadioButton.d.ts +0 -23
- package/lib/radio-button/SpsRadioButton.examples.d.ts +0 -2
- package/lib/radio-button/index.d.ts +0 -2
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +0 -11
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +0 -14
- package/lib/scrollable-container/index.d.ts +0 -2
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +0 -13
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +0 -2
- package/lib/search-results-bar/index.d.ts +0 -2
- package/lib/select/SpsSelect.d.ts +0 -37
- package/lib/select/SpsSelect.examples.d.ts +0 -2
- package/lib/select/index.d.ts +0 -2
- package/lib/side-nav/SpsSideNav.d.ts +0 -38
- package/lib/side-nav/SpsSideNav.examples.d.ts +0 -2
- package/lib/side-nav/SpsSideNavBranch.d.ts +0 -9
- package/lib/side-nav/index.d.ts +0 -2
- package/lib/slack-link/SpsSlackLink.d.ts +0 -11
- package/lib/slack-link/SpsSlackLink.examples.d.ts +0 -2
- package/lib/slack-link/index.d.ts +0 -2
- package/lib/sorting-header/SpsSortingHeader.d.ts +0 -13
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +0 -2
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +0 -17
- package/lib/sorting-header/index.d.ts +0 -3
- package/lib/spinner/SpsSpinner.d.ts +0 -14
- package/lib/spinner/SpsSpinner.examples.d.ts +0 -2
- package/lib/spinner/index.d.ts +0 -2
- package/lib/split-button/SpsSplitButton.d.ts +0 -18
- package/lib/split-button/SpsSplitButton.examples.d.ts +0 -2
- package/lib/split-button/index.d.ts +0 -2
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +0 -25
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +0 -24
- package/lib/stepped-progress-bar/index.d.ts +0 -2
- package/lib/summary-list/SpsSummaryList.examples.d.ts +0 -2
- package/lib/summary-list/SpsSummaryListColumn.d.ts +0 -14
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +0 -10
- package/lib/summary-list/SpsSummaryListRow.d.ts +0 -13
- package/lib/summary-list/index.d.ts +0 -4
- package/lib/table/SpsTable.d.ts +0 -14
- package/lib/table/SpsTable.examples.d.ts +0 -2
- package/lib/table/SpsTableBody.d.ts +0 -11
- package/lib/table/SpsTableCell.d.ts +0 -15
- package/lib/table/SpsTableHead.d.ts +0 -15
- package/lib/table/SpsTableHeader.d.ts +0 -17
- package/lib/table/SpsTableRow.d.ts +0 -14
- package/lib/table/index.d.ts +0 -7
- package/lib/table/usePinnedStyles.d.ts +0 -4
- package/lib/tabs/SpsTabs.d.ts +0 -14
- package/lib/tabs-v2/SpsTab.d.ts +0 -6
- package/lib/tabs-v2/SpsTabPanel.d.ts +0 -5
- package/lib/tabs-v2/SpsTabsV2.d.ts +0 -2
- package/lib/tabs-v2/index.d.ts +0 -4
- package/lib/tag/SpsTag.d.ts +0 -13
- package/lib/tag/SpsTag.examples.d.ts +0 -2
- package/lib/tag/index.d.ts +0 -2
- package/lib/task-queue/SpsTaskQueue.d.ts +0 -36
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +0 -2
- package/lib/task-queue/index.d.ts +0 -2
- package/lib/test-util.d.ts +0 -2
- package/lib/text-input/SpsTextInput.d.ts +0 -22
- package/lib/text-input/SpsTextInput.examples.d.ts +0 -2
- package/lib/text-input/index.d.ts +0 -2
- package/lib/textarea/SpsTextarea.d.ts +0 -22
- package/lib/textarea/SpsTextarea.examples.d.ts +0 -2
- package/lib/textarea/index.d.ts +0 -2
- package/lib/tile-list/SpsTile.d.ts +0 -16
- package/lib/tile-list/SpsTileList.d.ts +0 -10
- package/lib/tile-list/SpsTileList.examples.d.ts +0 -2
- package/lib/tile-list/index.d.ts +0 -3
- package/lib/toggle/SpsToggle.d.ts +0 -27
- package/lib/toggle/SpsToggle.examples.d.ts +0 -2
- package/lib/toggle/index.d.ts +0 -2
- package/lib/tooltip/SpsTooltip.d.ts +0 -29
- package/lib/tooltip/SpsTooltip.examples.d.ts +0 -2
- package/lib/tooltip/SpsTooltipTitle.d.ts +0 -13
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/utils/FauxChangeEvent.d.ts +0 -20
- package/lib/utils/contentOf.d.ts +0 -2
- package/lib/utils/getPosition.d.ts +0 -11
- package/lib/utils/getScrollParent.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -11
- package/lib/utils/selectChildren.d.ts +0 -5
- package/lib/utils/useCheckDeprecatedProps.d.ts +0 -2
- package/lib/utils/useDidUpdateEffect.d.ts +0 -2
- package/lib/utils/useDocumentEventListener.d.ts +0 -1
- package/lib/utils/useElementId.d.ts +0 -2
- package/lib/utils/useInputPopup.d.ts +0 -6
- package/lib/utils/usePatchReducer.d.ts +0 -2
- package/lib/utils/usePortal.d.ts +0 -6
- package/lib/vertical-rule/SpsVerticalRule.d.ts +0 -11
- package/lib/vertical-rule/index.d.ts +0 -1
- package/lib/wizard/SpsWizard.examples.d.ts +0 -2
- package/lib/wizard/SpsWizardSidebar.d.ts +0 -23
- package/lib/wizard/SpsWizardSubstep.d.ts +0 -14
- package/lib/wizard/index.d.ts +0 -3
- package/lib/workflow/SpsWorkflow.d.ts +0 -14
- package/lib/workflow/SpsWorkflow.examples.d.ts +0 -2
- package/lib/workflow/SpsWorkflowDocument.d.ts +0 -11
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +0 -13
- package/lib/workflow/SpsWorkflowStep.d.ts +0 -14
- package/lib/workflow/index.d.ts +0 -5
- package/lib/zero-state/SpsMicroZeroState.d.ts +0 -14
- package/lib/zero-state/SpsZeroState.d.ts +0 -13
- package/lib/zero-state/SpsZeroState.examples.d.ts +0 -2
- package/lib/zero-state/index.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "5.10.
|
|
4
|
+
"version": "5.10.5-ie",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@react-aria/tabs": "^3.0.1",
|
|
17
|
-
"@react-stately/tabs": "^3.0.1",
|
|
18
|
-
"@react-types/shared": "^3.8.0",
|
|
19
|
-
"@react-types/tabs": "^3.0.1",
|
|
20
16
|
"axe-prop-types": "^1.0.9",
|
|
21
17
|
"clsx": "^1.0.3",
|
|
22
18
|
"lodash.isplainobject": "^4.0.6",
|
|
@@ -27,22 +23,20 @@
|
|
|
27
23
|
"tiny-invariant": "^1.0.4"
|
|
28
24
|
},
|
|
29
25
|
"peerDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"@spscommerce/ds-
|
|
32
|
-
"@spscommerce/
|
|
33
|
-
"@spscommerce/
|
|
34
|
-
"@spscommerce/utils": "5.10.4",
|
|
26
|
+
"@spscommerce/ds-colors": "5.10.5-ie",
|
|
27
|
+
"@spscommerce/ds-shared": "5.10.5-ie",
|
|
28
|
+
"@spscommerce/positioning": "5.10.5-ie",
|
|
29
|
+
"@spscommerce/utils": "5.10.5-ie",
|
|
35
30
|
"moment": "^2.25.3",
|
|
36
31
|
"moment-timezone": "^0.5.28",
|
|
37
32
|
"react": "^16.9.0",
|
|
38
33
|
"react-dom": "^16.9.0"
|
|
39
34
|
},
|
|
40
35
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@spscommerce/ds-
|
|
43
|
-
"@spscommerce/
|
|
44
|
-
"@spscommerce/
|
|
45
|
-
"@spscommerce/utils": "5.10.4",
|
|
36
|
+
"@spscommerce/ds-colors": "5.10.5-ie",
|
|
37
|
+
"@spscommerce/ds-shared": "5.10.5-ie",
|
|
38
|
+
"@spscommerce/positioning": "5.10.5-ie",
|
|
39
|
+
"@spscommerce/utils": "5.10.5-ie",
|
|
46
40
|
"@testing-library/react": "^9.3.2",
|
|
47
41
|
"@types/prop-types": "^15.7.1",
|
|
48
42
|
"@types/react": "^16.9.0",
|
|
@@ -56,12 +50,12 @@
|
|
|
56
50
|
"typescript": "^4.4.4"
|
|
57
51
|
},
|
|
58
52
|
"scripts": {
|
|
59
|
-
"build": "pnpm run build:js && pnpm run build:types",
|
|
60
|
-
"build:
|
|
53
|
+
"build": "pnpm run build:es5 && pnpm run build:js && pnpm run build:types",
|
|
54
|
+
"build:es5": "tsc -p tsconfig.json",
|
|
55
|
+
"build:js": "rollup -c rollup.config.js",
|
|
61
56
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
|
|
62
57
|
"watch": "vite build --watch",
|
|
63
58
|
"clean": "git clean -fdX",
|
|
64
59
|
"pub": "pnpm pack && node ../../scripts/publish-package.js"
|
|
65
|
-
}
|
|
66
|
-
"readme": "[//]: # \"START_AUTOGENERATED\"\n\n## [@spscommerce/ds-react](https://github.com/spscommerce/ui-angular/tree/master/packages/@spscommerce/ds-react#readme)\n\n\n\n\n\nSPS Design System React components \n \n ### Installation \n \n ```shell\nnpm install --save @spscommerce/ds-react\n```\n\n#### Peer Dependencies\n\n<div class=\"row\">\n <div class=\"col-5\"> \n <table class=\"sps-table\">\n <thead class=\"sps-table__head\">\n <tr class=\"sps-table__row\">\n <th class=\"sps-table__header\">\n <span class=\"sps-table__header-cell-body\"> \n Package\n </span>\n </th>\n <th class=\"sps-table__header text-right\">\n <span class=\"sps-table__header-cell-body\"> \n Version\n </span>\n </th>\n </tr>\n </thead>\n <tbody class=\"sps-table__body\">\n <tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-shared#readme\">@spscommerce/ds-shared</a></td><td class=\"sps-table__cell text-right\">^1.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/positioning#readme\">@spscommerce/positioning</a></td><td class=\"sps-table__cell text-right\">^1.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils#readme\">@spscommerce/utils</a></td><td class=\"sps-table__cell text-right\">^1.1.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"lukeed/clsx\">clsx</a></td><td class=\"sps-table__cell text-right\">^1.0.3</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://momentjs.com\">moment</a></td><td class=\"sps-table__cell text-right\">^2.25.3</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"http://momentjs.com/timezone/\">moment-timezone</a></td><td class=\"sps-table__cell text-right\">^0.5.28</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"ai/nanoid\">nanoid</a></td><td class=\"sps-table__cell text-right\">^2.1.6</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://facebook.github.io/react/\">prop-types</a></td><td class=\"sps-table__cell text-right\">^15.7.2</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://reactjs.org/\">react</a></td><td class=\"sps-table__cell text-right\">^16.9.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://reactjs.org/\">react-dom</a></td><td class=\"sps-table__cell text-right\">^16.9.0</td></tr>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"https://scroll-into-view-if-needed.netlify.com\">scroll-into-view-if-needed</a></td><td class=\"sps-table__cell text-right\">^2.2.20</td></tr>\n </tbody>\n </table>\n </div>\n <div class=\"col-7\">\n \n </div>\n</div>\n\n[//]: # \"END_AUTOGENERATED\"\n"
|
|
60
|
+
}
|
|
67
61
|
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
2
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
3
|
+
import pkg from "./package.json";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: "dist/out-tsc/index.js",
|
|
7
|
+
output: [
|
|
8
|
+
{
|
|
9
|
+
file: pkg.main,
|
|
10
|
+
format: "cjs",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
file: pkg.module,
|
|
14
|
+
format: "es",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
external: Object.keys(pkg.peerDependencies || {}),
|
|
18
|
+
plugins: [
|
|
19
|
+
resolve(),
|
|
20
|
+
commonjs(),
|
|
21
|
+
],
|
|
22
|
+
};
|
package/vite.config.js
CHANGED
|
@@ -7,7 +7,7 @@ import pkg from './package.json';
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
build: {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(__dirname, '
|
|
10
|
+
entry: path.resolve(__dirname, 'dist/out-tsc/index.js'),
|
|
11
11
|
formats: ['es', 'cjs'],
|
|
12
12
|
fileName: (format) => `index.${format}.js`,
|
|
13
13
|
},
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
someProp: PropTypes.Requireable<boolean>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* replace HTMLDivElement with appropriate specific type
|
|
11
|
-
* e.g. HTMLButtonElement, or generic HTMLElement as applicable
|
|
12
|
-
*/
|
|
13
|
-
export declare type SpsComponentProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
14
|
-
export declare function SpsComponent({ children, className, someProp, ...rest }: SpsComponentProps): JSX.Element;
|
|
15
|
-
export {};
|
package/lib/_template/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { SpsFormArrayMeta, SpsFormGroupMeta } from "../form/hooks/useSpsForm";
|
|
3
|
-
import type { SpsFormArray } from "../form/hooks/formArray";
|
|
4
|
-
import type { SpsFormGroup } from "../form/hooks/formGroup";
|
|
5
|
-
import * as PropTypes from "../prop-types";
|
|
6
|
-
declare const propTypes: {
|
|
7
|
-
controlsDisabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
footerLinks: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
|
|
9
|
-
formArray: PropTypes.Requireable<SpsFormArray<any>>;
|
|
10
|
-
formGroup: PropTypes.Requireable<SpsFormGroup>;
|
|
11
|
-
formMeta: PropTypes.Requireable<SpsFormArrayMeta<any> | SpsFormGroupMeta<any>>;
|
|
12
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
13
|
-
onClear: PropTypes.Requireable<() => void>;
|
|
14
|
-
onSubmit: PropTypes.Requireable<React.FormEventHandler<Element>>;
|
|
15
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
-
className: PropTypes.Requireable<string>;
|
|
17
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
18
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
|
-
};
|
|
20
|
-
export declare type SpsAdvancedSearchProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
21
|
-
export declare function SpsAdvancedSearch(props: SpsAdvancedSearchProps): JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
-
import type { Eventually } from "@spscommerce/utils";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
|
-
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
6
|
-
import * as PropTypes from "../prop-types";
|
|
7
|
-
declare const propTypes: {
|
|
8
|
-
debounce: PropTypes.Requireable<number>;
|
|
9
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
10
|
-
formControl: PropTypes.Requireable<SpsFormControl<string>>;
|
|
11
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<string>>;
|
|
12
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
13
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
14
|
-
placeholder: PropTypes.Requireable<string>;
|
|
15
|
-
suggestions: PropTypes.Validator<string[] | Promise<string[]> | ((filter?: string) => Eventually<string[]>)>;
|
|
16
|
-
tallOptionList: PropTypes.Requireable<boolean>;
|
|
17
|
-
value: PropTypes.Requireable<string>;
|
|
18
|
-
zeroState: PropTypes.Requireable<string>;
|
|
19
|
-
loading: PropTypes.Requireable<boolean>;
|
|
20
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
-
className: PropTypes.Requireable<string>;
|
|
22
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
23
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
24
|
-
};
|
|
25
|
-
export declare type SpsAutocompleteProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
26
|
-
export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, loading, ...rest }: SpsAutocompleteProps): JSX.Element;
|
|
27
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonKind, ButtonType, SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
5
|
-
href: PropTypes.Requireable<string>;
|
|
6
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
7
|
-
kind: PropTypes.Requireable<ButtonKind>;
|
|
8
|
-
spinning: PropTypes.Requireable<boolean>;
|
|
9
|
-
spinningTitle: PropTypes.Requireable<string>;
|
|
10
|
-
type: PropTypes.Requireable<ButtonType>;
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
export declare type SpsButtonProps = PropTypes.InferTS<typeof propTypes, HTMLButtonElement | HTMLAnchorElement>;
|
|
17
|
-
export declare function SpsButton(props: SpsButtonProps): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsButtonGroupProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsButtonGroup(props: SpsButtonGroupProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsIconButtonPanelProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsIconButtonPanel({ children, className, ...rest }: SpsIconButtonPanelProps): JSX.Element;
|
|
10
|
-
export {};
|
package/lib/button/index.d.ts
DELETED
package/lib/card/SpsCard.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SpsIcon } from '@spscommerce/ds-shared';
|
|
2
|
-
import * as PropTypes from '../prop-types';
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
activeTab: PropTypes.Requireable<string>;
|
|
5
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
|
|
6
|
-
headerContent: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
|
|
7
|
-
headerIcon: PropTypes.Requireable<SpsIcon>;
|
|
8
|
-
headerTitle: PropTypes.Requireable<string>;
|
|
9
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
12
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare type SpsCardProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
15
|
-
export declare function SpsCard(props: SpsCardProps): JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
6
|
-
title: PropTypes.Requireable<string>;
|
|
7
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsCardHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
13
|
-
export declare function SpsCardHeader(props: SpsCardHeaderProps): JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SpsIcon, TagKind } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
activateTab: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
|
-
active: PropTypes.Requireable<boolean>;
|
|
6
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
7
|
-
label: PropTypes.Requireable<string>;
|
|
8
|
-
index: PropTypes.Requireable<number>;
|
|
9
|
-
tag: PropTypes.Requireable<string>;
|
|
10
|
-
tagKind: PropTypes.Requireable<TagKind>;
|
|
11
|
-
tagIcon: PropTypes.Requireable<SpsIcon>;
|
|
12
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
15
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
export declare type SpsCardTabbedPaneProps = PropTypes.InferTS<typeof propTypes, HTMLAnchorElement>;
|
|
18
|
-
export declare function SpsCardTabbedPane(props: SpsCardTabbedPaneProps): JSX.Element;
|
|
19
|
-
export {};
|
package/lib/card/index.d.ts
DELETED
package/lib/card/useTab.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ActiveCardState {
|
|
2
|
-
index: any;
|
|
3
|
-
content: any;
|
|
4
|
-
}
|
|
5
|
-
export interface TabProps {
|
|
6
|
-
index: any;
|
|
7
|
-
active: any;
|
|
8
|
-
activateTab: any;
|
|
9
|
-
"data-testid"?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type TabHook = [ActiveCardState, any];
|
|
12
|
-
/**
|
|
13
|
-
* A react hook for tabs
|
|
14
|
-
* @param children
|
|
15
|
-
* @param activeTab
|
|
16
|
-
* @param isTabbedCard
|
|
17
|
-
*/
|
|
18
|
-
export declare function useTab(children: any, activeTab: any, isTabbedCard: any): TabHook;
|
package/lib/card-v2/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
|
-
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
-
declare const propTypes: {
|
|
6
|
-
checked: PropTypes.Requireable<boolean>;
|
|
7
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
formControl: PropTypes.Requireable<SpsFormControl<boolean>>;
|
|
9
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<boolean>>;
|
|
10
|
-
indeterminate: PropTypes.Requireable<boolean>;
|
|
11
|
-
inline: PropTypes.Requireable<boolean>;
|
|
12
|
-
label: PropTypes.Requireable<string>;
|
|
13
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
14
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
15
|
-
className: PropTypes.Requireable<string>;
|
|
16
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
17
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
18
|
-
};
|
|
19
|
-
export declare type SpsCheckboxProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
20
|
-
export declare function SpsCheckbox({ checked: checkedProp, className, disabled, formControl, formMeta, id, indeterminate: indeterminateProp, inline, label, onChange, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsCheckboxProps): JSX.Element;
|
|
21
|
-
export {};
|
package/lib/checkbox/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SpsActionMethod, SpsActionDescriptor } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as PropTypes from "../prop-types";
|
|
4
|
-
declare const propTypes: {
|
|
5
|
-
checked: PropTypes.Requireable<boolean>;
|
|
6
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
7
|
-
indeterminate: PropTypes.Requireable<boolean>;
|
|
8
|
-
options: PropTypes.Validator<(SpsActionMethod | [SpsActionDescriptor, () => void])[]>;
|
|
9
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
-
className: PropTypes.Requireable<string>;
|
|
12
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
13
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
export declare type SpsCheckboxDropdownProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
|
|
16
|
-
export declare function SpsCheckboxDropdown(props: SpsCheckboxDropdownProps): JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SpsCheckboxDropdown";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ClickableTagKind } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
5
|
-
href: PropTypes.Requireable<string>;
|
|
6
|
-
kind: PropTypes.Requireable<ClickableTagKind>;
|
|
7
|
-
onAdd: PropTypes.Requireable<() => void>;
|
|
8
|
-
onRemove: PropTypes.Requireable<() => void>;
|
|
9
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
12
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare type SpsClickableTagProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
15
|
-
export declare function SpsClickableTag(props: SpsClickableTagProps): JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
maxSelectedColumns: PropTypes.Requireable<number>;
|
|
4
|
-
unselectedColumns: PropTypes.Requireable<any[]>;
|
|
5
|
-
selectedColumns: PropTypes.Requireable<any[]>;
|
|
6
|
-
onApplyChanges: PropTypes.Requireable<(selectedColumns: ColumnProps[]) => void>;
|
|
7
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
|
-
className: PropTypes.Requireable<string>;
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsColumnChooserProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
13
|
-
export interface ColumnProps {
|
|
14
|
-
name: string;
|
|
15
|
-
value: string;
|
|
16
|
-
mandatory?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare function SpsColumnChooser(props: SpsColumnChooserProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
index: PropTypes.Requireable<number>;
|
|
4
|
-
key: PropTypes.Requireable<string>;
|
|
5
|
-
columnId: PropTypes.Requireable<string>;
|
|
6
|
-
name: PropTypes.Requireable<string>;
|
|
7
|
-
value: PropTypes.Requireable<string>;
|
|
8
|
-
onDelete: PropTypes.Requireable<(columnValue: string) => void>;
|
|
9
|
-
mandatory: PropTypes.Requireable<boolean>;
|
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
-
className: PropTypes.Requireable<string>;
|
|
12
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
13
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
export declare type SpsColumnChooserColumnProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
16
|
-
export declare function SpsColumnChooserColumn(props: SpsColumnChooserColumnProps): JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
showCondition: PropTypes.Requireable<boolean>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsConditionalFieldProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
10
|
-
export declare function SpsConditionalField({ showCondition, children, className, ...rest }: SpsConditionalFieldProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
alternateLayout: PropTypes.Requireable<boolean>;
|
|
5
|
-
cardSpacing: PropTypes.Requireable<boolean>;
|
|
6
|
-
expanded: PropTypes.Requireable<boolean>;
|
|
7
|
-
initiallyExpanded: PropTypes.Requireable<boolean>;
|
|
8
|
-
onBeforeCollapsed: PropTypes.Requireable<() => boolean>;
|
|
9
|
-
onBeforeExpanded: PropTypes.Requireable<() => boolean>;
|
|
10
|
-
onSelectionChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
11
|
-
onCollapsed: PropTypes.Requireable<() => void>;
|
|
12
|
-
onExpanded: PropTypes.Requireable<() => void>;
|
|
13
|
-
selectable: PropTypes.Requireable<boolean>;
|
|
14
|
-
selected: PropTypes.Requireable<boolean>;
|
|
15
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
-
className: PropTypes.Requireable<string>;
|
|
17
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
18
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
|
-
};
|
|
20
|
-
export declare type SpsContentRowProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
21
|
-
export declare function SpsContentRow(props: SpsContentRowProps): JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
borderless: PropTypes.Requireable<boolean>;
|
|
4
|
-
lean: PropTypes.Requireable<boolean>;
|
|
5
|
-
leaner: PropTypes.Requireable<boolean>;
|
|
6
|
-
widthPx: PropTypes.Requireable<number>;
|
|
7
|
-
widthRem: PropTypes.Requireable<number>;
|
|
8
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
9
|
-
className: PropTypes.Requireable<string>;
|
|
10
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
11
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
12
|
-
};
|
|
13
|
-
export declare type SpsContentRowColProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
14
|
-
export declare function SpsContentRowCol(props: SpsContentRowColProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsContentRowExpansionProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsContentRowExpansion(props: SpsContentRowExpansionProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
-
declare const propTypes: {
|
|
5
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
6
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<number>>;
|
|
7
|
-
name: PropTypes.Requireable<string>;
|
|
8
|
-
onChange: PropTypes.Requireable<(newValue: number) => void>;
|
|
9
|
-
ref: PropTypes.Requireable<React.MutableRefObject<HTMLDivElement>>;
|
|
10
|
-
value: PropTypes.Requireable<number>;
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
export declare type SpsCurrencyInputProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
17
|
-
export declare function SpsCurrencyInput({ className, disabled, formMeta, id, name, onChange, ref, title, value, ...rest }: SpsCurrencyInputProps): JSX.Element;
|
|
18
|
-
export {};
|