@spscommerce/ds-react 0.0.0-20260319-8230915ce
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/README.md +55 -0
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +10 -0
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -0
- package/lib/advanced-search/index.d.ts +2 -0
- package/lib/autocomplete/SpsAutocomplete.d.ts +31 -0
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
- package/lib/autocomplete/index.d.ts +2 -0
- package/lib/button/SpsButton.d.ts +14 -0
- package/lib/button/SpsButton.examples.d.ts +2 -0
- package/lib/button/SpsButtonGroup.d.ts +4 -0
- package/lib/button/SpsIconButtonPanel.d.ts +4 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/card/SpsCard.d.ts +11 -0
- package/lib/card/SpsCardHeader.d.ts +9 -0
- package/lib/card/SpsCardTabbedPane.d.ts +15 -0
- package/lib/card/index.d.ts +2 -0
- package/lib/card/useTab.d.ts +18 -0
- package/lib/card-v2/SpsCardV2.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Footer.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Header.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Title.d.ts +2 -0
- package/lib/card-v2/index.d.ts +5 -0
- package/lib/checkbox/SpsCheckbox.d.ts +17 -0
- package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -0
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +9 -0
- package/lib/checkbox-dropdown/index.d.ts +1 -0
- package/lib/clickable-tag/SpsClickableTag.d.ts +12 -0
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -0
- package/lib/clickable-tag/index.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooser.d.ts +16 -0
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +13 -0
- package/lib/column-chooser/index.d.ts +3 -0
- package/lib/conditional-field/SpsConditionalField.d.ts +6 -0
- package/lib/conditional-field/SpsConditionalField.examples.d.ts +2 -0
- package/lib/conditional-field/index.d.ts +2 -0
- package/lib/content-row/SpsContentRow.d.ts +16 -0
- package/lib/content-row/SpsContentRow.examples.d.ts +2 -0
- package/lib/content-row/SpsContentRowCol.d.ts +10 -0
- package/lib/content-row/SpsContentRowExpansion.d.ts +4 -0
- package/lib/content-row/index.d.ts +4 -0
- package/lib/context-bar/SpsContextBar.d.ts +6 -0
- package/lib/context-bar/index.d.ts +1 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +13 -0
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -0
- package/lib/currency-input/index.d.ts +2 -0
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +21 -0
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
- package/lib/dateRangePicker/index.d.ts +2 -0
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.d.ts +23 -0
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.examples.d.ts +2 -0
- package/lib/dateTimeRangePicker/index.d.ts +2 -0
- package/lib/datepicker/SpsDatepicker.d.ts +18 -0
- package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -0
- package/lib/datepicker/SpsDatepickerCalendar.d.ts +15 -0
- package/lib/datepicker/SpsDatepickerPopup.d.ts +11 -0
- package/lib/datepicker/index.d.ts +4 -0
- package/lib/datepicker/useCalendar.d.ts +2 -0
- package/lib/datepicker/useMoment.d.ts +3 -0
- package/lib/datepicker/utils.d.ts +38 -0
- package/lib/datepicker/validation.d.ts +11 -0
- package/lib/datetime/SpsDateTime.d.ts +11 -0
- package/lib/datetime/SpsDateTime.examples.d.ts +2 -0
- package/lib/datetime/SpsLocaleProvider.d.ts +7 -0
- package/lib/datetime/index.d.ts +3 -0
- package/lib/datetime/localeDefinitions.d.ts +20 -0
- package/lib/datetime/momentLocale.d.ts +3 -0
- package/lib/description-list/SpsDescriptionList.d.ts +9 -0
- package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -0
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +5 -0
- package/lib/description-list/SpsDescriptionListTerm.d.ts +13 -0
- package/lib/description-list/index.d.ts +4 -0
- package/lib/dropdown/SpsDropdown.d.ts +24 -0
- package/lib/dropdown/SpsDropdown.examples.d.ts +2 -0
- package/lib/dropdown/index.d.ts +2 -0
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +7 -0
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -0
- package/lib/feedback-block/index.d.ts +2 -0
- package/lib/fieldset/SpsFieldset.d.ts +22 -0
- package/lib/fieldset/SpsFieldset.examples.d.ts +2 -0
- package/lib/fieldset/index.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanel.d.ts +4 -0
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +6 -0
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +10 -0
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +11 -0
- package/lib/filter-panel/index.d.ts +5 -0
- package/lib/filter-tile-list/SpsFilterTile.d.ts +10 -0
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +4 -0
- package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
- package/lib/filter-tile-list/index.d.ts +3 -0
- package/lib/focused-task/SpsFocusedTask.d.ts +8 -0
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -0
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +4 -0
- package/lib/focused-task/index.d.ts +3 -0
- package/lib/form/AddRemoveFormRows.examples.d.ts +18 -0
- package/lib/form/SpsForm.d.ts +18 -0
- package/lib/form/SpsForm.examples.d.ts +1 -0
- package/lib/form/SpsFormComponentWrapper.d.ts +14 -0
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -0
- package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -0
- package/lib/form/hooks/formArray.d.ts +12 -0
- package/lib/form/hooks/formControl.d.ts +9 -0
- package/lib/form/hooks/formGroup.d.ts +10 -0
- package/lib/form/hooks/useCustomValidator.d.ts +7 -0
- package/lib/form/hooks/useForm.d.ts +2 -0
- package/lib/form/hooks/useFormControlId.d.ts +4 -0
- package/lib/form/hooks/useServerSideValidation.d.ts +3 -0
- package/lib/form/hooks/useSpsForm.d.ts +92 -0
- package/lib/form/index.d.ts +16 -0
- package/lib/form/validation/SpsValidators.d.ts +20 -0
- package/lib/form/validation/types.d.ts +10 -0
- package/lib/form/validation/validate.d.ts +2 -0
- package/lib/growler/SpsGrowler.d.ts +11 -0
- package/lib/growler/SpsGrowler.examples.d.ts +2 -0
- package/lib/growler/index.d.ts +3 -0
- package/lib/growler/useGrowlers.d.ts +13 -0
- package/lib/icon/SpsIcon.d.ts +9 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +12 -0
- package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -0
- package/lib/incrementor/index.d.ts +2 -0
- package/lib/index.d.ts +74 -0
- package/lib/index.js +35288 -0
- package/lib/index.umd.cjs +11826 -0
- package/lib/input-group/SpsInputGroup.d.ts +12 -0
- package/lib/input-group/index.d.ts +1 -0
- package/lib/insight-tile/SpsInsightTile.d.ts +13 -0
- package/lib/insight-tile/SpsInsights.d.ts +4 -0
- package/lib/insight-tile/index.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueList.d.ts +6 -0
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +8 -0
- package/lib/key-value-list/index.d.ts +2 -0
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +11 -0
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -0
- package/lib/key-value-tag/index.d.ts +2 -0
- package/lib/label/SpsLabel.d.ts +15 -0
- package/lib/label/SpsLabel.examples.d.ts +2 -0
- package/lib/label/index.d.ts +2 -0
- package/lib/list-action-bar/SpsListActionBar.d.ts +7 -0
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -0
- package/lib/list-action-bar/index.d.ts +2 -0
- package/lib/list-toolbar/SpsListToolbar.d.ts +22 -0
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +4 -0
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +6 -0
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +4 -0
- package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +16 -0
- package/lib/list-toolbar/index.d.ts +5 -0
- package/lib/manifest.d.ts +2 -0
- package/lib/micro-block/SpsMicroBlock.d.ts +8 -0
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -0
- package/lib/micro-block/index.d.ts +2 -0
- package/lib/modal/SpsModal.d.ts +13 -0
- package/lib/modal/SpsModal.examples.d.ts +2 -0
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/useModals.d.ts +15 -0
- package/lib/multi-select/SpsMultiSelect.d.ts +37 -0
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/lib/multi-select/index.d.ts +2 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +20 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.examples.d.ts +2 -0
- package/lib/multi-value-text-input/index.d.ts +2 -0
- package/lib/multi-value-text-input/splitStringByDelimiter.d.ts +2 -0
- package/lib/option-list/SpsOptionList.d.ts +3 -0
- package/lib/option-list/SpsOptionListProps.d.ts +89 -0
- package/lib/option-list/index.d.ts +1 -0
- package/lib/option-list/useOptionListOptions.d.ts +8 -0
- package/lib/option-list/useOptionListSearch.d.ts +13 -0
- package/lib/option-list/usePreventScroll.d.ts +7 -0
- package/lib/option-list/useSpsAction.d.ts +2 -0
- package/lib/option-list-v2/SpsOptionListV2.d.ts +0 -0
- package/lib/option-list-v2/index.d.ts +0 -0
- package/lib/page-title/SpsPageSubtitle.d.ts +4 -0
- package/lib/page-title/SpsPageTitle.d.ts +4 -0
- package/lib/page-title/SpsPageTitle.examples.d.ts +2 -0
- package/lib/page-title/index.d.ts +3 -0
- package/lib/pagination/SpsPageSelector.d.ts +12 -0
- package/lib/pagination/SpsPagination.d.ts +15 -0
- package/lib/pagination/SpsPagination.examples.d.ts +2 -0
- package/lib/pagination/index.d.ts +3 -0
- package/lib/product-bar/SpsProductBar.d.ts +13 -0
- package/lib/product-bar/SpsProductBar.examples.d.ts +2 -0
- package/lib/product-bar/SpsProductBarTab.d.ts +6 -0
- package/lib/product-bar/index.d.ts +3 -0
- package/lib/progress-bar/SpsProgressBar.d.ts +10 -0
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +28 -0
- package/lib/progress-bar/index.d.ts +2 -0
- package/lib/progress-ring/SpsProgressRing.d.ts +8 -0
- package/lib/progress-ring/index.d.ts +1 -0
- package/lib/prop-types.d.ts +4 -0
- package/lib/radio-button/SpsRadioButton.d.ts +19 -0
- package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -0
- package/lib/radio-button/index.d.ts +2 -0
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +6 -0
- package/lib/scrollable-container/index.d.ts +1 -0
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +8 -0
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
- package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +9 -0
- package/lib/search-results-bar/index.d.ts +3 -0
- package/lib/select/SpsSelect.d.ts +76 -0
- package/lib/select/SpsSelect.examples.d.ts +2 -0
- package/lib/select/index.d.ts +2 -0
- package/lib/side-nav/SpsSideNav.d.ts +38 -0
- package/lib/side-nav/SpsSideNav.examples.d.ts +2 -0
- package/lib/side-nav/SpsSideNavBranch.d.ts +9 -0
- package/lib/side-nav/index.d.ts +2 -0
- package/lib/slack-link/SpsSlackLink.d.ts +6 -0
- package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -0
- package/lib/slack-link/index.d.ts +2 -0
- package/lib/slide-in-panel/SpsSlideInPanel.d.ts +11 -0
- package/lib/slide-in-panel/SpsSlideInPanel.examples.d.ts +2 -0
- package/lib/slide-in-panel/index.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeader.d.ts +8 -0
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +12 -0
- package/lib/sorting-header/index.d.ts +3 -0
- package/lib/spinner/SpsSpinner.d.ts +9 -0
- package/lib/spinner/index.d.ts +1 -0
- package/lib/split-button/SpsSplitButton.d.ts +17 -0
- package/lib/split-button/SpsSplitButton.examples.d.ts +2 -0
- package/lib/split-button/index.d.ts +2 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +21 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +29 -0
- package/lib/stepped-progress-bar/index.d.ts +2 -0
- package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -0
- package/lib/summary-list/SpsSummaryListColumn.d.ts +9 -0
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +4 -0
- package/lib/summary-list/SpsSummaryListRow.d.ts +8 -0
- package/lib/summary-list/index.d.ts +4 -0
- package/lib/table/SpsTable.d.ts +14 -0
- package/lib/table/SpsTable.examples.d.ts +2 -0
- package/lib/table/SpsTableBody.d.ts +5 -0
- package/lib/table/SpsTableCell.d.ts +10 -0
- package/lib/table/SpsTableContext.d.ts +20 -0
- package/lib/table/SpsTableHead.d.ts +7 -0
- package/lib/table/SpsTableHeader.d.ts +10 -0
- package/lib/table/SpsTableRow.d.ts +5 -0
- package/lib/table/index.d.ts +8 -0
- package/lib/table/useColumnResizer.d.ts +9 -0
- package/lib/table/usePinnedStyles.d.ts +6 -0
- package/lib/tabs/SpsTabs.d.ts +9 -0
- package/lib/tabs-v2/SpsTab.d.ts +7 -0
- package/lib/tabs-v2/SpsTabPanel.d.ts +6 -0
- package/lib/tabs-v2/SpsTabsV2.d.ts +3 -0
- package/lib/tabs-v2/index.d.ts +4 -0
- package/lib/tag/SpsTag.d.ts +9 -0
- package/lib/tag/SpsTag.examples.d.ts +2 -0
- package/lib/tag/index.d.ts +2 -0
- package/lib/task-queue/SpsTaskQueue.d.ts +30 -0
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -0
- package/lib/task-queue/index.d.ts +2 -0
- package/lib/text-input/SpsTextInput.d.ts +33 -0
- package/lib/text-input/SpsTextInput.examples.d.ts +2 -0
- package/lib/text-input/index.d.ts +2 -0
- package/lib/textarea/SpsTextarea.d.ts +18 -0
- package/lib/textarea/SpsTextarea.examples.d.ts +2 -0
- package/lib/textarea/index.d.ts +2 -0
- package/lib/tile-list/SpsTile.d.ts +15 -0
- package/lib/tile-list/SpsTileList.d.ts +4 -0
- package/lib/tile-list/SpsTileList.examples.d.ts +2 -0
- package/lib/tile-list/index.d.ts +3 -0
- package/lib/time-input/SpsTimeInput.d.ts +18 -0
- package/lib/time-input/SpsTimeInput.examples.d.ts +2 -0
- package/lib/time-input/index.d.ts +2 -0
- package/lib/toggle/SpsToggle.d.ts +18 -0
- package/lib/toggle/SpsToggle.examples.d.ts +2 -0
- package/lib/toggle/index.d.ts +2 -0
- package/lib/tooltip/SpsTooltip.d.ts +23 -0
- package/lib/tooltip/SpsTooltip.examples.d.ts +2 -0
- package/lib/tooltip/SpsTooltipTitle.d.ts +9 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/utils/FauxChangeEvent.d.ts +20 -0
- package/lib/utils/Provide.d.ts +24 -0
- package/lib/utils/bindProps.d.ts +33 -0
- package/lib/utils/contentOf.d.ts +2 -0
- package/lib/utils/getPosition.d.ts +11 -0
- package/lib/utils/getScrollParent.d.ts +1 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/letterAndNumberKeys.d.ts +1 -0
- package/lib/utils/selectChildren.d.ts +5 -0
- package/lib/utils/useCheckDeprecatedProps.d.ts +1 -0
- package/lib/utils/useDidUpdateEffect.d.ts +11 -0
- package/lib/utils/useDocumentEventListener.d.ts +1 -0
- package/lib/utils/useElementId.d.ts +3 -0
- package/lib/utils/useInputPopup.d.ts +6 -0
- package/lib/utils/usePatchReducer.d.ts +2 -0
- package/lib/utils/usePortal.d.ts +6 -0
- package/lib/vertical-rule/SpsVerticalRule.d.ts +5 -0
- package/lib/vertical-rule/index.d.ts +1 -0
- package/lib/wizard/SpsWizard.examples.d.ts +2 -0
- package/lib/wizard/SpsWizardSidebar.d.ts +18 -0
- package/lib/wizard/SpsWizardSubstep.d.ts +9 -0
- package/lib/wizard/index.d.ts +3 -0
- package/lib/workflow/SpsWorkflow.DeprecationWarning.d.ts +2 -0
- package/lib/workflow/SpsWorkflow.d.ts +9 -0
- package/lib/workflow/SpsWorkflow.examples.d.ts +2 -0
- package/lib/workflow/SpsWorkflowDocument.d.ts +5 -0
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +8 -0
- package/lib/workflow/SpsWorkflowStep.d.ts +9 -0
- package/lib/workflow/index.d.ts +5 -0
- package/lib/zero-state/SpsMicroZeroState.d.ts +10 -0
- package/lib/zero-state/SpsZeroState.d.ts +9 -0
- package/lib/zero-state/SpsZeroState.examples.d.ts +2 -0
- package/lib/zero-state/index.d.ts +3 -0
- package/package.json +92 -0
- package/vite.config.mjs +20 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[//]: # "START_AUTOGENERATED"
|
|
2
|
+
|
|
3
|
+
## [@spscommerce/ds-react](https://github.com/spscommerce/ui-angular/tree/master/packages/@spscommerce/ds-react#readme)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
SPS Design System React components
|
|
10
|
+
|
|
11
|
+
### Installation
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
npm install --save @spscommerce/ds-react
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
#### Peer Dependencies
|
|
18
|
+
|
|
19
|
+
<div class="row">
|
|
20
|
+
<div class="col-5">
|
|
21
|
+
<table class="sps-table">
|
|
22
|
+
<thead class="sps-table__head">
|
|
23
|
+
<tr class="sps-table__row">
|
|
24
|
+
<th class="sps-table__header">
|
|
25
|
+
<span class="sps-table__header-cell-body">
|
|
26
|
+
Package
|
|
27
|
+
</span>
|
|
28
|
+
</th>
|
|
29
|
+
<th class="sps-table__header text-right">
|
|
30
|
+
<span class="sps-table__header-cell-body">
|
|
31
|
+
Version
|
|
32
|
+
</span>
|
|
33
|
+
</th>
|
|
34
|
+
</tr>
|
|
35
|
+
</thead>
|
|
36
|
+
<tbody class="sps-table__body">
|
|
37
|
+
<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>
|
|
38
|
+
<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>
|
|
39
|
+
<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>
|
|
40
|
+
<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>
|
|
41
|
+
<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>
|
|
42
|
+
<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>
|
|
43
|
+
<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>
|
|
44
|
+
<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>
|
|
45
|
+
<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>
|
|
46
|
+
<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>
|
|
47
|
+
</tbody>
|
|
48
|
+
</table>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-7">
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
[//]: # "END_AUTOGENERATED"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsFormProps } from "../form/SpsForm";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsAdvancedSearchProps = React.PropsWithChildren<SpsGlobalPropTypes & SpsFormProps & {
|
|
5
|
+
controlsDisabled?: boolean;
|
|
6
|
+
footerLinks?: React.ReactNode | (() => React.ReactNode);
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
onClear?: () => void;
|
|
9
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare function SpsAdvancedSearch(props: SpsAdvancedSearchProps): React.JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { 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 type { SpsGlobalPropTypes } from "../prop-types";
|
|
7
|
+
export type SpsAutocompleteProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
conformWidth?: boolean;
|
|
10
|
+
debounce?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
formControl?: SpsFormControl<string>;
|
|
13
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
14
|
+
icon?: SpsIcon;
|
|
15
|
+
onChange?: React.ChangeEventHandler;
|
|
16
|
+
onSelectionChange?: (newValue?: string) => void;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
suggestions: string[] | Promise<string[]> | ((filter?: string) => Eventually<string[]>);
|
|
19
|
+
textKey?: string;
|
|
20
|
+
captionKey?: string;
|
|
21
|
+
tallOptionList?: boolean;
|
|
22
|
+
value?: string;
|
|
23
|
+
zeroState?: string;
|
|
24
|
+
loading?: boolean;
|
|
25
|
+
maxHeightOptionListPx?: number;
|
|
26
|
+
maxHeightOptionListRem?: number;
|
|
27
|
+
disableOptionsMemoization?: boolean;
|
|
28
|
+
inputNotClearable?: boolean;
|
|
29
|
+
autoFocusOnSelection?: boolean;
|
|
30
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
31
|
+
export declare function SpsAutocomplete({ className, debounce, disabled, conformWidth, formControl, formMeta, onChange, onSelectionChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, textKey, captionKey, tallOptionList, value, zeroState, loading, maxHeightOptionListPx, maxHeightOptionListRem, disableOptionsMemoization, inputNotClearable, autoFocusOnSelection, "data-testid": testId, ...rest }: SpsAutocompleteProps): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ButtonKind, ButtonType } from "@spscommerce/ds-shared";
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export type SpsButtonProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
href?: string;
|
|
8
|
+
icon?: SpsIcon;
|
|
9
|
+
kind?: ButtonKind;
|
|
10
|
+
spinning?: boolean;
|
|
11
|
+
spinningTitle?: string;
|
|
12
|
+
type?: ButtonType;
|
|
13
|
+
}> & React.HTMLProps<HTMLButtonElement | HTMLAnchorElement>;
|
|
14
|
+
export declare function SpsButton(props: SpsButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsButtonGroupProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsButtonGroup(props: SpsButtonGroupProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsIconButtonPanelProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsIconButtonPanel({ children, className, ...rest }: SpsIconButtonPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpsIcon } from '@spscommerce/ds-shared';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { SpsGlobalPropTypes } from '../prop-types';
|
|
4
|
+
export type SpsCardProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
activeTab?: string;
|
|
6
|
+
footer?: React.ReactNode | (() => React.ReactNode);
|
|
7
|
+
headerContent?: React.ReactNode | (() => React.ReactNode);
|
|
8
|
+
headerIcon?: SpsIcon;
|
|
9
|
+
headerTitle?: string;
|
|
10
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export declare function SpsCard(props: SpsCardProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsCardHeaderProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
title?: string;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsCardHeader(props: SpsCardHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import { TagKind } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export type SpsCardTabbedPaneProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
activateTab?: (target: HTMLAnchorElement, index: number, children: React.ReactNode) => void;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
icon?: SpsIcon;
|
|
9
|
+
label?: string;
|
|
10
|
+
index?: number;
|
|
11
|
+
tag?: string;
|
|
12
|
+
tagKind?: TagKind;
|
|
13
|
+
tagIcon?: SpsIcon;
|
|
14
|
+
}> & React.HTMLAttributes<HTMLAnchorElement>;
|
|
15
|
+
export declare function SpsCardTabbedPane(props: SpsCardTabbedPaneProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
export type SpsCheckboxProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<boolean>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<boolean>;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
16
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
17
|
+
export declare function SpsCheckbox({ checked: checkedProp, className, disabled, formControl, formMeta, id, indeterminate: indeterminateProp, inline, label, onChange, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsCheckboxProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import { SpsCheckbox } from "../checkbox/SpsCheckbox";
|
|
4
|
+
import { SpsDropdown } from "../dropdown/SpsDropdown";
|
|
5
|
+
type PassthruCheckboxProps = Pick<Parameters<typeof SpsCheckbox>[0], "checked" | "onChange" | "indeterminate" | "disabled">;
|
|
6
|
+
type PassthruDropdownProps = Pick<Parameters<typeof SpsDropdown>[0], "options">;
|
|
7
|
+
export type SpsCheckboxDropdownProps = React.PropsWithChildren<SpsGlobalPropTypes & PassthruCheckboxProps & PassthruDropdownProps> & React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
export declare function SpsCheckboxDropdown(props: SpsCheckboxDropdownProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsCheckboxDropdown";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClickableTagKind } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsClickableTagProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
kind?: ClickableTagKind;
|
|
8
|
+
onAdd?: () => void;
|
|
9
|
+
onRemove?: () => void;
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare function SpsClickableTag(props: SpsClickableTagProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsColumnChooserProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
maxSelectedColumns?: number | null;
|
|
5
|
+
unselectedColumns?: any[];
|
|
6
|
+
selectedColumns?: any[];
|
|
7
|
+
onApplyChanges?: (selectedColumns: ColumnProps[]) => void;
|
|
8
|
+
maxVisibleUnselectedColumns?: number;
|
|
9
|
+
updateInitialState?: boolean;
|
|
10
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export interface ColumnProps {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
mandatory?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function SpsColumnChooser(props: SpsColumnChooserProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsColumnChooserColumnProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
index?: number;
|
|
5
|
+
key?: string;
|
|
6
|
+
columnId?: string;
|
|
7
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
8
|
+
name?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
onDelete?: (columnValue: string) => void;
|
|
11
|
+
mandatory?: boolean;
|
|
12
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
export declare function SpsColumnChooserColumn(props: SpsColumnChooserColumnProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsConditionalFieldProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
showCondition?: boolean;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare function SpsConditionalField({ showCondition, children, className, ...rest }: SpsConditionalFieldProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsContentRowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
alternateLayout?: boolean;
|
|
5
|
+
cardSpacing?: boolean;
|
|
6
|
+
expanded?: boolean;
|
|
7
|
+
initiallyExpanded?: boolean;
|
|
8
|
+
onBeforeCollapsed?: () => boolean;
|
|
9
|
+
onBeforeExpanded?: () => boolean;
|
|
10
|
+
onSelectionChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
onCollapsed?: () => void;
|
|
12
|
+
onExpanded?: () => void;
|
|
13
|
+
selectable?: boolean;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
export declare function SpsContentRow(props: SpsContentRowProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsContentRowColProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
borderless?: boolean;
|
|
5
|
+
lean?: boolean;
|
|
6
|
+
leaner?: boolean;
|
|
7
|
+
widthPx?: number;
|
|
8
|
+
widthRem?: number;
|
|
9
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare function SpsContentRowCol(props: SpsContentRowColProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsContentRowExpansionProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsContentRowExpansion(props: SpsContentRowExpansionProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsContextBar";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
+
export type SpsCurrencyInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
autoComplete?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
formMeta?: SpsFormFieldMeta<number>;
|
|
8
|
+
name?: string;
|
|
9
|
+
onChange?: (newValue: number) => void;
|
|
10
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
11
|
+
value?: number;
|
|
12
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
13
|
+
export declare function SpsCurrencyInput({ className, disabled, formMeta, id, name, onChange, ref, title, value, ...rest }: SpsCurrencyInputProps): React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SimpleDate, SimpleDateRange, DatePreset } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
export type SpsDateRangePickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
currentUser?: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formMeta?: SpsFormFieldMeta<SimpleDateRange | null | undefined>;
|
|
10
|
+
maxDate?: SimpleDate;
|
|
11
|
+
minDate?: SimpleDate;
|
|
12
|
+
onChange?: (newDateRange?: SimpleDateRange | null, preset?: DatePreset["definition"]) => void;
|
|
13
|
+
presets?: DatePreset[];
|
|
14
|
+
selectedPreset?: string;
|
|
15
|
+
onPresetChange?: (newPreset?: string) => void;
|
|
16
|
+
value?: SimpleDateRange | null;
|
|
17
|
+
showTwoMonths?: boolean;
|
|
18
|
+
format?: string;
|
|
19
|
+
}> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange" | "min" | "max" | "value">;
|
|
20
|
+
export declare const DEFAULT_PRESETS: DatePreset[];
|
|
21
|
+
export declare function SpsDateRangePicker({ children, className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, presets, selectedPreset: presetProp, onPresetChange, value, showTwoMonths, format, "data-testid": testId, ...rest }: SpsDateRangePickerProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SimpleMomentRange, SimpleDate, DateTimePreset } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
export type SpsDateTimeRangePickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
currentUser?: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
formMeta?: SpsFormFieldMeta<SimpleMomentRange | undefined>;
|
|
9
|
+
maxDate?: SimpleDate;
|
|
10
|
+
minDate?: SimpleDate;
|
|
11
|
+
onChange?: (newDateTimeRange?: SimpleMomentRange) => void;
|
|
12
|
+
presets?: DateTimePreset[];
|
|
13
|
+
value?: SimpleMomentRange;
|
|
14
|
+
showTwoMonths?: boolean;
|
|
15
|
+
twentyFourHour?: boolean;
|
|
16
|
+
format?: string;
|
|
17
|
+
placeholder12h?: string;
|
|
18
|
+
placeholder24h?: string;
|
|
19
|
+
selectedPreset?: string;
|
|
20
|
+
onPresetChange?: (newPreset?: string | null) => void;
|
|
21
|
+
}> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange" | "min" | "max" | "value">;
|
|
22
|
+
export declare const DEFAULT_DATETIME_PRESETS: DateTimePreset[];
|
|
23
|
+
export declare function SpsDateTimeRangePicker({ className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, presets, value, showTwoMonths, twentyFourHour, format, "data-testid": testId, placeholder24h, placeholder12h, selectedPreset: presetProp, onPresetChange, }: SpsDateTimeRangePickerProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SimpleDate } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
export type SpsDatepickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
currentUser?: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formMeta?: SpsFormFieldMeta<SimpleDate | undefined>;
|
|
10
|
+
maxDate?: SimpleDate;
|
|
11
|
+
minDate?: SimpleDate;
|
|
12
|
+
onChange?: (newDate: SimpleDate) => void;
|
|
13
|
+
value?: SimpleDate;
|
|
14
|
+
format?: string;
|
|
15
|
+
showTwoMonths?: boolean;
|
|
16
|
+
autoCloseOnSelect?: boolean;
|
|
17
|
+
}> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value">;
|
|
18
|
+
export declare function SpsDatepicker({ children, className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, value, format, showTwoMonths, autoCloseOnSelect, "data-testid": testId, ...rest }: SpsDatepickerProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SimpleDate, SimpleDateRange } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsDatepickerCalendarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
selectedRange?: SimpleDateRange;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
maxDate?: SimpleDate;
|
|
8
|
+
minDate?: SimpleDate;
|
|
9
|
+
currentUser?: any;
|
|
10
|
+
onNewSelection: (date: SimpleDate) => void;
|
|
11
|
+
selectedDate?: SimpleDate;
|
|
12
|
+
showTwoMonths?: boolean;
|
|
13
|
+
selectedPreset?: string | null;
|
|
14
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare function SpsDatepickerCalendar(props: SpsDatepickerCalendarProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SpsDatepickerPopupProps = React.PropsWithChildren<{
|
|
3
|
+
attachTo: React.MutableRefObject<HTMLElement | null>;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare const SpsDatepickerPopup: React.ForwardRefExoticComponent<{
|
|
7
|
+
attachTo: React.MutableRefObject<HTMLElement | null>;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
children?: React.ReactNode | undefined;
|
|
11
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|