@spscommerce/ds-react 5.0.0-rc1 → 5.0.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/_template/SpsComponent.d.ts +15 -13
- package/lib/_template/SpsComponent.examples.d.ts +2 -2
- package/lib/_template/index.d.ts +2 -2
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +22 -22
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -2
- package/lib/advanced-search/index.d.ts +2 -2
- package/lib/autocomplete/SpsAutocomplete.d.ts +27 -26
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -2
- package/lib/autocomplete/index.d.ts +2 -2
- package/lib/button/SpsButton.d.ts +18 -18
- package/lib/button/SpsButton.examples.d.ts +2 -2
- package/lib/button/SpsButtonGroup.d.ts +10 -10
- package/lib/button/SpsIconButtonPanel.d.ts +10 -10
- package/lib/button/index.d.ts +4 -4
- package/lib/card/SpsCard.d.ts +16 -16
- package/lib/card/SpsCard.examples.d.ts +2 -2
- package/lib/card/SpsCardHeader.d.ts +14 -14
- package/lib/card/SpsCardTabbedPane.d.ts +19 -19
- package/lib/card/index.d.ts +3 -3
- package/lib/card/useTab.d.ts +18 -18
- package/lib/card-v2/SpsCardV2.d.ts +2 -2
- package/lib/card-v2/SpsCardV2Footer.d.ts +2 -2
- package/lib/card-v2/SpsCardV2Header.d.ts +2 -2
- package/lib/card-v2/SpsCardV2Title.d.ts +2 -2
- package/lib/card-v2/index.d.ts +5 -5
- package/lib/checkbox/SpsCheckbox.d.ts +21 -21
- package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -2
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +17 -17
- package/lib/checkbox-dropdown/index.d.ts +1 -1
- package/lib/clickable-tag/SpsClickableTag.d.ts +16 -16
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -2
- package/lib/clickable-tag/index.d.ts +2 -2
- package/lib/column-chooser/SpsColumnChooser.d.ts +19 -19
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -2
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +17 -17
- package/lib/column-chooser/index.d.ts +3 -3
- package/lib/conditional-field/SpsConditionalField.d.ts +11 -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 +22 -21
- package/lib/content-row/SpsContentRow.examples.d.ts +2 -2
- package/lib/content-row/SpsContentRowCol.d.ts +15 -15
- package/lib/content-row/SpsContentRowExpansion.d.ts +10 -10
- package/lib/content-row/index.d.ts +4 -4
- package/lib/currency-input/SpsCurrencyInput.d.ts +18 -18
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -2
- package/lib/currency-input/index.d.ts +2 -2
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +23 -23
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -2
- package/lib/dateRangePicker/index.d.ts +2 -2
- package/lib/datepicker/SpsDatepicker.d.ts +19 -19
- package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -2
- package/lib/datepicker/index.d.ts +2 -2
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +20 -20
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -18
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +13 -13
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +18 -18
- package/lib/datepicker-v2/index.d.ts +4 -4
- package/lib/datepicker-v2/useCalendar.d.ts +2 -2
- package/lib/datepicker-v2/useMoment.d.ts +3 -3
- package/lib/datepicker-v2/utils.d.ts +22 -22
- package/lib/datepicker-v2/validation.d.ts +10 -10
- package/lib/datetime/SpsDateTime.d.ts +26 -17
- package/lib/datetime/SpsDateTime.examples.d.ts +2 -2
- package/lib/datetime/index.d.ts +2 -2
- package/lib/description-list/SpsDescriptionList.d.ts +14 -14
- package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -2
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +11 -11
- package/lib/description-list/SpsDescriptionListTerm.d.ts +18 -18
- package/lib/description-list/index.d.ts +4 -4
- package/lib/dropdown/SpsDropdown.d.ts +24 -22
- package/lib/dropdown/SpsDropdown.examples.d.ts +2 -2
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +12 -12
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -2
- package/lib/feedback-block/index.d.ts +2 -2
- package/lib/fieldset/SpsFieldset.d.ts +22 -22
- package/lib/fieldset/SpsFieldset.examples.d.ts +2 -2
- package/lib/fieldset/index.d.ts +2 -2
- package/lib/filter-panel/SpsFilterPanel.d.ts +10 -10
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -2
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -11
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -16
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -16
- package/lib/filter-panel/index.d.ts +5 -5
- package/lib/filter-tile-list/SpsFilterTile.d.ts +15 -0
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +10 -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 +13 -13
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -2
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +10 -10
- package/lib/focused-task/index.d.ts +3 -3
- package/lib/form/AddRemoveFormRows.examples.d.ts +18 -18
- package/lib/form/SpsForm.d.ts +24 -24
- package/lib/form/SpsForm.examples.d.ts +29 -29
- package/lib/form/SpsFormComponentWrapper.d.ts +19 -19
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -24
- package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -7
- package/lib/form/hooks/formArray.d.ts +12 -12
- package/lib/form/hooks/formControl.d.ts +9 -9
- package/lib/form/hooks/formGroup.d.ts +10 -14
- package/lib/form/hooks/useForm.d.ts +2 -2
- package/lib/form/hooks/useFormControlId.d.ts +4 -4
- package/lib/form/hooks/useServerSideValidation.d.ts +3 -3
- package/lib/form/hooks/useSpsForm.d.ts +74 -76
- package/lib/form/index.d.ts +15 -15
- package/lib/form/validation/SpsValidators.d.ts +16 -16
- package/lib/form/validation/types.d.ts +6 -9
- package/lib/form/validation/validate.d.ts +2 -2
- package/lib/growler/SpsGrowler.d.ts +17 -17
- package/lib/growler/SpsGrowler.examples.d.ts +2 -2
- package/lib/growler/index.d.ts +3 -3
- package/lib/growler/useGrowlers.d.ts +12 -11
- package/lib/i18n.d.ts +3 -3
- package/lib/icon/SpsIcon.d.ts +13 -13
- package/lib/icon/index.d.ts +1 -1
- package/lib/incrementor/SpsIncrementor.d.ts +15 -15
- package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -2
- package/lib/incrementor/index.d.ts +2 -2
- package/lib/index.cjs.js +8252 -14878
- package/lib/index.d.ts +71 -67
- package/lib/index.es.js +37616 -0
- package/lib/input-group/SpsInputGroup.d.ts +17 -17
- package/lib/input-group/index.d.ts +1 -1
- package/lib/insight-tile/SpsInsightTile.d.ts +18 -0
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +2 -0
- package/lib/insight-tile/SpsInsights.d.ts +10 -0
- package/lib/insight-tile/index.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueList.d.ts +11 -11
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +2 -2
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +13 -11
- package/lib/key-value-list/index.d.ts +3 -3
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +16 -16
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -2
- package/lib/key-value-tag/index.d.ts +2 -2
- package/lib/label/SpsLabel.d.ts +20 -20
- package/lib/label/SpsLabel.examples.d.ts +2 -2
- package/lib/label/index.d.ts +2 -2
- package/lib/list-action-bar/SpsListActionBar.d.ts +12 -12
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -2
- package/lib/list-action-bar/index.d.ts +2 -2
- package/lib/list-toolbar/SpsListToolbar.d.ts +25 -25
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +3 -3
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +12 -12
- package/lib/list-toolbar/index.d.ts +3 -3
- package/lib/manifest.d.ts +2 -2
- package/lib/micro-block/SpsMicroBlock.d.ts +13 -13
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -2
- package/lib/micro-block/index.d.ts +2 -2
- package/lib/modal/SpsModal.d.ts +25 -25
- package/lib/modal/SpsModal.examples.d.ts +2 -2
- package/lib/modal/SpsModalAction.d.ts +18 -18
- package/lib/modal/SpsModalBody.d.ts +10 -10
- package/lib/modal/SpsModalFooter.d.ts +16 -16
- package/lib/modal/SpsModalHeader.d.ts +11 -11
- package/lib/modal/SpsModalOverlay.d.ts +12 -12
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal-v2/SpsModalV2.d.ts +18 -18
- package/lib/modal-v2/index.d.ts +1 -1
- package/lib/multi-select/SpsMultiSelect.d.ts +33 -31
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -2
- package/lib/multi-select/index.d.ts +2 -2
- package/lib/option-list/SpsOptionList.d.ts +3 -3
- package/lib/option-list/SpsOptionListProps.d.ts +74 -69
- package/lib/option-list/index.d.ts +1 -1
- package/lib/option-list/useOptionListOptions.d.ts +8 -8
- package/lib/option-list/useOptionListSearch.d.ts +13 -13
- package/lib/option-list/useSpsAction.d.ts +2 -2
- package/lib/page-title/SpsPageSubtitle.d.ts +10 -10
- package/lib/page-title/SpsPageTitle.d.ts +10 -10
- package/lib/page-title/SpsPageTitle.examples.d.ts +2 -2
- package/lib/page-title/index.d.ts +3 -3
- package/lib/pagination/SpsPageSelector.d.ts +14 -14
- package/lib/pagination/SpsPagination.d.ts +16 -16
- package/lib/pagination/SpsPagination.examples.d.ts +2 -2
- package/lib/pagination/index.d.ts +3 -3
- package/lib/product-bar/SpsProductBar.d.ts +19 -19
- package/lib/product-bar/SpsProductBar.examples.d.ts +2 -2
- package/lib/product-bar/SpsProductBarTab.d.ts +6 -11
- package/lib/product-bar/index.d.ts +3 -3
- package/lib/progress-bar/SpsProgressBar.d.ts +15 -15
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +27 -27
- package/lib/progress-bar/index.d.ts +2 -2
- package/lib/progress-ring/SpsProgressRing.d.ts +13 -13
- package/lib/progress-ring/index.d.ts +1 -1
- package/lib/prop-types.d.ts +23 -25
- package/lib/radio-button/SpsRadioButton.d.ts +23 -23
- package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -2
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +11 -11
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -14
- package/lib/scrollable-container/index.d.ts +2 -2
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +13 -13
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -2
- package/lib/search-results-bar/index.d.ts +2 -2
- package/lib/select/SpsSelect.d.ts +36 -35
- package/lib/select/SpsSelect.examples.d.ts +2 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/setup-jest.d.ts +1 -1
- package/lib/side-nav/SpsSideNav.d.ts +36 -36
- package/lib/side-nav/SpsSideNav.examples.d.ts +2 -2
- package/lib/side-nav/SpsSideNavBranch.d.ts +9 -9
- package/lib/side-nav/index.d.ts +2 -2
- package/lib/slack-link/SpsSlackLink.d.ts +11 -11
- package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -2
- package/lib/slack-link/index.d.ts +2 -2
- package/lib/sorting-header/SpsSortingHeader.d.ts +13 -13
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -2
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +17 -17
- package/lib/sorting-header/index.d.ts +3 -3
- package/lib/spinner/SpsSpinner.d.ts +14 -14
- package/lib/spinner/SpsSpinner.examples.d.ts +2 -2
- package/lib/spinner/index.d.ts +2 -2
- package/lib/split-button/SpsSplitButton.d.ts +18 -17
- package/lib/split-button/SpsSplitButton.examples.d.ts +2 -2
- package/lib/split-button/index.d.ts +2 -2
- package/lib/stepped-progress-bar/SpsStepepdProgressBar.examples.d.ts +20 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +23 -0
- package/lib/stepped-progress-bar/index.d.ts +2 -0
- package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -2
- package/lib/summary-list/SpsSummaryListColumn.d.ts +14 -14
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +10 -10
- package/lib/summary-list/SpsSummaryListRow.d.ts +13 -13
- package/lib/summary-list/index.d.ts +4 -4
- package/lib/table/SpsTable.d.ts +14 -14
- package/lib/table/SpsTable.examples.d.ts +2 -2
- package/lib/table/SpsTableBody.d.ts +11 -11
- package/lib/table/SpsTableCell.d.ts +15 -15
- package/lib/table/SpsTableHead.d.ts +15 -15
- package/lib/table/SpsTableHeader.d.ts +17 -17
- package/lib/table/SpsTableRow.d.ts +14 -14
- package/lib/table/index.d.ts +7 -7
- package/lib/table/usePinnedStyles.d.ts +4 -4
- package/lib/tabs/SpsTabs.d.ts +14 -14
- package/lib/tabs-v2/SpsTab.d.ts +6 -6
- package/lib/tabs-v2/SpsTabPanel.d.ts +5 -5
- package/lib/tabs-v2/SpsTabsV2.d.ts +2 -2
- package/lib/tabs-v2/index.d.ts +4 -4
- package/lib/tag/SpsTag.d.ts +13 -13
- package/lib/tag/SpsTag.examples.d.ts +2 -2
- package/lib/tag/index.d.ts +2 -2
- package/lib/task-queue/SpsTaskQueue.d.ts +36 -35
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -2
- package/lib/task-queue/index.d.ts +2 -2
- package/lib/test-util.d.ts +1 -1
- package/lib/text-input/SpsTextInput.d.ts +22 -22
- package/lib/text-input/SpsTextInput.examples.d.ts +2 -2
- package/lib/text-input/index.d.ts +2 -2
- package/lib/textarea/SpsTextarea.d.ts +22 -22
- package/lib/textarea/SpsTextarea.examples.d.ts +2 -2
- package/lib/textarea/index.d.ts +2 -2
- package/lib/tile-list/SpsTile.d.ts +16 -16
- package/lib/tile-list/SpsTileList.d.ts +10 -10
- package/lib/tile-list/SpsTileList.examples.d.ts +2 -2
- package/lib/tile-list/index.d.ts +3 -3
- package/lib/toggle/SpsToggle.d.ts +27 -27
- package/lib/toggle/SpsToggle.examples.d.ts +2 -2
- package/lib/toggle/index.d.ts +2 -2
- package/lib/tooltip/SpsTooltip.d.ts +29 -29
- package/lib/tooltip/SpsTooltip.examples.d.ts +2 -2
- package/lib/tooltip/SpsTooltipTitle.d.ts +13 -0
- package/lib/tooltip/index.d.ts +3 -2
- package/lib/utils/FauxChangeEvent.d.ts +20 -20
- package/lib/utils/contentOf.d.ts +2 -2
- package/lib/utils/getPosition.d.ts +11 -10
- package/lib/utils/getScrollParent.d.ts +1 -1
- package/lib/utils/index.d.ts +11 -11
- package/lib/utils/selectChildren.d.ts +5 -7
- package/lib/utils/useCheckDeprecatedProps.d.ts +2 -2
- package/lib/utils/useDidUpdateEffect.d.ts +2 -2
- package/lib/utils/useDocumentEventListener.d.ts +1 -1
- package/lib/utils/useElementId.d.ts +2 -1
- package/lib/utils/useInputPopup.d.ts +6 -7
- package/lib/utils/usePatchReducer.d.ts +2 -1
- package/lib/utils/usePortal.d.ts +6 -6
- package/lib/vertical-rule/SpsVerticalRule.d.ts +11 -11
- package/lib/vertical-rule/index.d.ts +1 -1
- package/lib/wizard/SpsWizard.examples.d.ts +2 -2
- package/lib/wizard/SpsWizardSidebar.d.ts +23 -23
- package/lib/wizard/SpsWizardSubstep.d.ts +14 -14
- package/lib/wizard/index.d.ts +3 -3
- package/lib/workflow/SpsWorkflow.d.ts +14 -14
- package/lib/workflow/SpsWorkflow.examples.d.ts +2 -2
- package/lib/workflow/SpsWorkflowDocument.d.ts +11 -11
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +13 -13
- package/lib/workflow/SpsWorkflowStep.d.ts +14 -14
- package/lib/workflow/index.d.ts +5 -5
- package/lib/zero-state/SpsMicroZeroState.d.ts +14 -14
- package/lib/zero-state/SpsZeroState.d.ts +13 -13
- package/lib/zero-state/SpsZeroState.examples.d.ts +2 -2
- package/lib/zero-state/index.d.ts +3 -3
- package/package.json +34 -40
- package/vite.config.js +20 -0
- package/lib/_template/SpsComponent.test-unit.d.ts +0 -1
- package/lib/advanced-search/SpsAdvancedSearch.test-unit.d.ts +0 -1
- package/lib/autocomplete/SpsAutocomplete.test-unit.d.ts +0 -1
- package/lib/autocomplete/SpsAutocomplete.test-visual.d.ts +0 -1
- package/lib/button/SpsButton.test-unit.d.ts +0 -1
- package/lib/button/SpsButton.test-visual.d.ts +0 -1
- package/lib/card/SpsCard.test-unit.d.ts +0 -1
- package/lib/card/SpsCard.test-visual.d.ts +0 -1
- package/lib/checkbox/SpsCheckbox.test-unit.d.ts +0 -1
- package/lib/column-chooser/SpsColumnChooser.test-unit.d.ts +0 -1
- package/lib/content-row/SpsContentRow.test-unit.d.ts +0 -1
- package/lib/currency-input/SpsCurrencyInput.test-unit.d.ts +0 -1
- package/lib/dateRangePicker/SpsDateRangePicker.test-unit.d.ts +0 -1
- package/lib/datepicker/SpsDatepicker.test-unit.d.ts +0 -1
- package/lib/description-list/SpsDescriptionList.test-unit.d.ts +0 -1
- package/lib/dropdown/SpsDropdown.test-unit.d.ts +0 -1
- package/lib/feedback-block/SpsFeedbackBlock.test-unit.d.ts +0 -1
- package/lib/fieldset/SpsFieldset.test-unit.d.ts +0 -1
- package/lib/filter-panel/SpsFilterPanel.test-unit.d.ts +0 -1
- package/lib/focused-task/SpsFocusedTask.test-unit.d.ts +0 -1
- package/lib/growler/SpsGrowler.test-unit.d.ts +0 -1
- package/lib/incrementor/SpsIncrementor.test-unit.d.ts +0 -1
- package/lib/index.esm.js +0 -14666
- package/lib/key-value-list/SpsKeyValueList.test-unit.d.ts +0 -1
- package/lib/label/SpsLabel.test-unit.d.ts +0 -1
- package/lib/list-action-bar/SpsListActionBar.test-unit.d.ts +0 -1
- package/lib/list-toolbar/SpsListToolbar.test-unit.d.ts +0 -1
- package/lib/micro-block/SpsMicroBlock.test-unit.d.ts +0 -1
- package/lib/modal/SpsModal.test-unit.d.ts +0 -1
- package/lib/multi-select/SpsMultiSelect.test-unit.d.ts +0 -1
- package/lib/page-title/SpsPageTitle.test-unit.d.ts +0 -1
- package/lib/pagination/SpsPagination.test-unit.d.ts +0 -1
- package/lib/product-bar/SpsProductBar.test-unit.d.ts +0 -1
- package/lib/progress-bar/SpsProgressBar.test-unit.d.ts +0 -1
- package/lib/radio-button/SpsRadioButton.test-unit.d.ts +0 -1
- package/lib/search-results-bar/SpsSearchResultsBar.test-unit.d.ts +0 -1
- package/lib/select/SpsSelect.test-unit.d.ts +0 -1
- package/lib/side-nav/SpsSideNav.test-unit.d.ts +0 -1
- package/lib/slack-link/SpsSlackLink.test-unit.d.ts +0 -1
- package/lib/sorting-header/SpsSortingHeader.test-unit.d.ts +0 -1
- package/lib/spinner/SpsSpinner.test-unit.d.ts +0 -1
- package/lib/split-button/SpsSplitButton.test-unit.d.ts +0 -1
- package/lib/summary-list/SummaryList.test-unit.d.ts +0 -1
- package/lib/table/SpsTable.test-unit.d.ts +0 -1
- package/lib/tag/SpsTag.test-unit.d.ts +0 -1
- package/lib/task-queue/SpsTaskQueue.test-unit.d.ts +0 -1
- package/lib/text-input/SpsTextInput.test-unit.d.ts +0 -1
- package/lib/textarea/SpsTextarea.test-unit.d.ts +0 -1
- package/lib/tile-list/SpsTileList.test-unit.d.ts +0 -1
- package/lib/toggle/SpsToggle.test-unit.d.ts +0 -1
- package/lib/tooltip/SpsTooltip.test-unit.d.ts +0 -1
- package/lib/wizard/SpsWizard.test-unit.d.ts +0 -1
- package/lib/workflow/SpsWorkflow.test-unit.d.ts +0 -1
- package/lib/zero-state/SpsZeroState.test-unit.d.ts +0 -1
- package/rollup.config.js +0 -24
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export declare const SpsProgressBarExamples: {
|
|
2
|
-
general: {
|
|
3
|
-
label: string;
|
|
4
|
-
customSection: () => JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
standard: {
|
|
7
|
-
label: string;
|
|
8
|
-
description: () => JSX.Element;
|
|
9
|
-
examples: {
|
|
10
|
-
standard: {
|
|
11
|
-
label: string;
|
|
12
|
-
description: () => JSX.Element;
|
|
13
|
-
react: string;
|
|
14
|
-
};
|
|
15
|
-
completed: {
|
|
16
|
-
label: string;
|
|
17
|
-
description: () => JSX.Element;
|
|
18
|
-
react: string;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
label: string;
|
|
22
|
-
description: () => JSX.Element;
|
|
23
|
-
react: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
1
|
+
export declare const SpsProgressBarExamples: {
|
|
2
|
+
general: {
|
|
3
|
+
label: string;
|
|
4
|
+
customSection: () => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
standard: {
|
|
7
|
+
label: string;
|
|
8
|
+
description: () => JSX.Element;
|
|
9
|
+
examples: {
|
|
10
|
+
standard: {
|
|
11
|
+
label: string;
|
|
12
|
+
description: () => JSX.Element;
|
|
13
|
+
react: string;
|
|
14
|
+
};
|
|
15
|
+
completed: {
|
|
16
|
+
label: string;
|
|
17
|
+
description: () => JSX.Element;
|
|
18
|
+
react: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
label: string;
|
|
22
|
+
description: () => JSX.Element;
|
|
23
|
+
react: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsProgressBar";
|
|
2
|
+
export * from "./SpsProgressBar.examples";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { RingSize } from
|
|
2
|
-
import * as PropTypes from
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
progress: PropTypes.Requireable<number>;
|
|
5
|
-
size: PropTypes.Requireable<RingSize>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsProgressRingProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsProgressRing({ size, progress, }: SpsProgressRingProps): JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
import { RingSize } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
declare const propTypes: {
|
|
4
|
+
progress: PropTypes.Requireable<number>;
|
|
5
|
+
size: PropTypes.Requireable<RingSize>;
|
|
6
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
+
className: PropTypes.Requireable<string>;
|
|
8
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare type SpsProgressRingProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
+
export declare function SpsProgressRing({ size, progress, }: SpsProgressRingProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./SpsProgressRing";
|
package/lib/prop-types.d.ts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { MutableRefObject } from
|
|
2
|
-
import * as PropTypes from
|
|
3
|
-
export declare type Deprecated<T> = PropTypes.Requireable<T>;
|
|
4
|
-
export declare function deprecated<T>(type: PropTypes.Requireable<T>): Deprecated<T>;
|
|
5
|
-
export declare function enumValue<T>(e: any): PropTypes.Requireable<T>;
|
|
6
|
-
export declare function fun<T extends (...args: any[]) => any>(): PropTypes.Requireable<T>;
|
|
7
|
-
export declare function impl<T>(): PropTypes.Requireable<T>;
|
|
8
|
-
export declare function ref<T>(): PropTypes.Requireable<MutableRefObject<T>>;
|
|
9
|
-
export declare type ReactNodeOrRenderFn = PropTypes.ReactNodeLike | (() => PropTypes.ReactNodeLike);
|
|
10
|
-
export declare const nodeOrRenderFn: PropTypes.Requireable<ReactNodeOrRenderFn>;
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
export * from 'prop-types';
|
|
1
|
+
import type { MutableRefObject, HTMLProps } from "react";
|
|
2
|
+
import * as PropTypes from "prop-types";
|
|
3
|
+
export declare type Deprecated<T> = PropTypes.Requireable<T>;
|
|
4
|
+
export declare function deprecated<T>(type: PropTypes.Requireable<T>): Deprecated<T>;
|
|
5
|
+
export declare function enumValue<T>(e: any): PropTypes.Requireable<T>;
|
|
6
|
+
export declare function fun<T extends (...args: any[]) => any>(): PropTypes.Requireable<T>;
|
|
7
|
+
export declare function impl<T>(): PropTypes.Requireable<T>;
|
|
8
|
+
export declare function ref<T>(): PropTypes.Requireable<MutableRefObject<T>>;
|
|
9
|
+
export declare type ReactNodeOrRenderFn = PropTypes.ReactNodeLike | (() => PropTypes.ReactNodeLike);
|
|
10
|
+
export declare const nodeOrRenderFn: PropTypes.Requireable<ReactNodeOrRenderFn>;
|
|
11
|
+
export declare type TypeDoc = Record<string, string | {
|
|
12
|
+
type: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
deprecated?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export declare type InferTS<T, K extends HTMLElement> = PropTypes.InferProps<T> & Omit<HTMLProps<K>, keyof T>;
|
|
17
|
+
export declare const spsGlobalPropTypes: {
|
|
18
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
+
className: PropTypes.Requireable<string>;
|
|
20
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
21
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
22
|
+
};
|
|
23
|
+
export * from "prop-types";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as PropTypes from
|
|
3
|
-
import { SpsFormControl } from
|
|
4
|
-
import { SpsFormFieldMeta } from
|
|
5
|
-
declare const propTypes: {
|
|
6
|
-
checked: PropTypes.Requireable<boolean>;
|
|
7
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
formControl: PropTypes.Requireable<SpsFormControl<any>>;
|
|
9
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any>>;
|
|
10
|
-
inline: PropTypes.Requireable<boolean>;
|
|
11
|
-
label: PropTypes.Requireable<string>;
|
|
12
|
-
name: PropTypes.Validator<string>;
|
|
13
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
14
|
-
ref: PropTypes.Requireable<React.MutableRefObject<HTMLDivElement>>;
|
|
15
|
-
value: PropTypes.Requireable<any>;
|
|
16
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
|
|
19
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
|
-
export declare type SpsRadioButtonProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
22
|
-
export declare function SpsRadioButton({ checked, className,
|
|
23
|
-
export {};
|
|
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<any>>;
|
|
9
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any>>;
|
|
10
|
+
inline: PropTypes.Requireable<boolean>;
|
|
11
|
+
label: PropTypes.Requireable<string>;
|
|
12
|
+
name: PropTypes.Validator<string>;
|
|
13
|
+
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
14
|
+
ref: PropTypes.Requireable<React.MutableRefObject<HTMLDivElement>>;
|
|
15
|
+
value: PropTypes.Requireable<any>;
|
|
16
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
|
+
className: PropTypes.Requireable<string>;
|
|
18
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
19
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
20
|
+
};
|
|
21
|
+
export declare type SpsRadioButtonProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
22
|
+
export declare function SpsRadioButton({ checked, className, "data-testid": testId, disabled, formControl, formMeta, id, inline, label, name, onChange, ref, unsafelyReplaceClassName, value, ...rest }: SpsRadioButtonProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsRadioButtonExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsRadioButtonExamples: DSReactExamples;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsRadioButton";
|
|
2
|
+
export * from "./SpsRadioButton.examples";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as PropTypes from
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
maxHeight: PropTypes.Requireable<string>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsScrollableContainerProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
10
|
-
export declare function SpsScrollableContainer(props: SpsScrollableContainerProps): JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import * as PropTypes from "../prop-types";
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
maxHeight: PropTypes.Requireable<string>;
|
|
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 SpsScrollableContainerProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
10
|
+
export declare function SpsScrollableContainer(props: SpsScrollableContainerProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const SpsScrollableContainerExamples: {
|
|
2
|
-
basic: {
|
|
3
|
-
label: string;
|
|
4
|
-
description: string;
|
|
5
|
-
examples: {
|
|
6
|
-
text: {
|
|
7
|
-
jsx: string;
|
|
8
|
-
};
|
|
9
|
-
components: {
|
|
10
|
-
react: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
1
|
+
export declare const SpsScrollableContainerExamples: {
|
|
2
|
+
basic: {
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
examples: {
|
|
6
|
+
text: {
|
|
7
|
+
jsx: string;
|
|
8
|
+
};
|
|
9
|
+
components: {
|
|
10
|
+
react: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsScrollableContainer";
|
|
2
|
+
export * from "./SpsScrollableContainer.examples";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as PropTypes from
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
resultsCount: PropTypes.Requireable<number>;
|
|
4
|
-
totalResults: PropTypes.Requireable<number>;
|
|
5
|
-
onClear: PropTypes.Requireable<() => void>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsSearchResultsBarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsSearchResultsBar(props: SpsSearchResultsBarProps): JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
import * as PropTypes from "../prop-types";
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
resultsCount: PropTypes.Requireable<number>;
|
|
4
|
+
totalResults: PropTypes.Requireable<number>;
|
|
5
|
+
onClear: PropTypes.Requireable<() => void>;
|
|
6
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
+
className: PropTypes.Requireable<string>;
|
|
8
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare type SpsSearchResultsBarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
+
export declare function SpsSearchResultsBar(props: SpsSearchResultsBarProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsSearchResultsBarExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsSearchResultsBarExamples: DSReactExamples;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsSearchResultsBar";
|
|
2
|
+
export * from "./SpsSearchResultsBar.examples";
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { SpsActionMethod } from
|
|
2
|
-
import { Eventually } from
|
|
3
|
-
import * as React from
|
|
4
|
-
import * as PropTypes from
|
|
5
|
-
import { SpsFormControl } from
|
|
6
|
-
import { SpsFormFieldMeta } from
|
|
7
|
-
declare const propTypes: {
|
|
8
|
-
action: PropTypes.Requireable<SpsActionMethod>;
|
|
9
|
-
captionKey: PropTypes.Requireable<string>;
|
|
10
|
-
comparisonKey: PropTypes.Requireable<string>;
|
|
11
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
12
|
-
formControl: PropTypes.Requireable<SpsFormControl<any>>;
|
|
13
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any>>;
|
|
14
|
-
notClearable: PropTypes.Requireable<boolean>;
|
|
15
|
-
options: PropTypes.Validator<any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>)>;
|
|
16
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
17
|
-
placeholder: PropTypes.Requireable<string>;
|
|
18
|
-
searchDebounce: PropTypes.Requireable<number>;
|
|
19
|
-
searchPlaceholder: PropTypes.Requireable<string>;
|
|
20
|
-
tallOptionList: PropTypes.Requireable<boolean>;
|
|
21
|
-
textKey: PropTypes.Requireable<string>;
|
|
22
|
-
valueKey: PropTypes.Requireable<string>;
|
|
23
|
-
value: PropTypes.Requireable<any>;
|
|
24
|
-
zeroState: PropTypes.Requireable<string>;
|
|
25
|
-
autoFixWidth: PropTypes.Requireable<boolean>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import type { SpsActionMethod } from "@spscommerce/ds-shared";
|
|
2
|
+
import type { Eventually } from "@spscommerce/utils";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as PropTypes from "../prop-types";
|
|
5
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
6
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
7
|
+
declare const propTypes: {
|
|
8
|
+
action: PropTypes.Requireable<SpsActionMethod>;
|
|
9
|
+
captionKey: PropTypes.Requireable<string>;
|
|
10
|
+
comparisonKey: PropTypes.Requireable<string>;
|
|
11
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
12
|
+
formControl: PropTypes.Requireable<SpsFormControl<any>>;
|
|
13
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any>>;
|
|
14
|
+
notClearable: PropTypes.Requireable<boolean>;
|
|
15
|
+
options: PropTypes.Validator<any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>)>;
|
|
16
|
+
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
17
|
+
placeholder: PropTypes.Requireable<string>;
|
|
18
|
+
searchDebounce: PropTypes.Requireable<number>;
|
|
19
|
+
searchPlaceholder: PropTypes.Requireable<string>;
|
|
20
|
+
tallOptionList: PropTypes.Requireable<boolean>;
|
|
21
|
+
textKey: PropTypes.Requireable<string>;
|
|
22
|
+
valueKey: PropTypes.Requireable<string>;
|
|
23
|
+
value: PropTypes.Requireable<any>;
|
|
24
|
+
zeroState: PropTypes.Requireable<string>;
|
|
25
|
+
autoFixWidth: PropTypes.Requireable<boolean>;
|
|
26
|
+
loading: PropTypes.Requireable<boolean>;
|
|
27
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
|
+
className: PropTypes.Requireable<string>;
|
|
29
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
30
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
31
|
+
};
|
|
32
|
+
export declare type SpsSelectProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
33
|
+
export declare const SpsSelect: React.ForwardRefExoticComponent<Pick<SpsSelectProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "data-testid" | "unsafelyReplaceClassName" | "formMeta" | "formControl" | "loading" | "searchDebounce" | "searchPlaceholder" | "captionKey" | "comparisonKey" | "options" | "textKey" | "valueKey" | "zeroState" | "tallOptionList" | "notClearable" | "autoFixWidth"> & React.RefAttributes<{
|
|
34
|
+
focus: () => void;
|
|
35
|
+
}>>;
|
|
36
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsSelectExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsSelectExamples: DSReactExamples;
|
package/lib/select/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsSelect";
|
|
2
|
+
export * from "./SpsSelect.examples";
|
package/lib/setup-jest.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
-
import * as React from
|
|
3
|
-
import { SpsIcon, TagKind } from
|
|
4
|
-
export interface SideNavItems {
|
|
5
|
-
name: string;
|
|
6
|
-
tag?: TagKind;
|
|
7
|
-
tagContent?: string;
|
|
8
|
-
subNavItems?: SideNavItems[];
|
|
9
|
-
icon?: SpsIcon;
|
|
10
|
-
}
|
|
11
|
-
export interface SideNavSection {
|
|
12
|
-
sectionTitle: string;
|
|
13
|
-
navItems: SideNavItems[];
|
|
14
|
-
}
|
|
15
|
-
export interface SideNavBranch extends SideNavItems {
|
|
16
|
-
expanded: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface SpsSideNavProps {
|
|
19
|
-
title
|
|
20
|
-
titleIcon?: SpsIcon;
|
|
21
|
-
activeNavItem: string;
|
|
22
|
-
onNavChange?: (newNav: string) => void;
|
|
23
|
-
navOptions: SideNavSection[];
|
|
24
|
-
tabs?: string[];
|
|
25
|
-
initialActiveTab?: string;
|
|
26
|
-
onTabChange?: (newTab: string) => void;
|
|
27
|
-
filterable?: boolean;
|
|
28
|
-
filterInputPlaceholder?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Helper to find if parent navigation contains the active child branch
|
|
32
|
-
* @param nav SideNavItems[] array of navigation branches to be checked
|
|
33
|
-
* @param activeTab string currently active tab
|
|
34
|
-
*/
|
|
35
|
-
export declare const findParentBranches: (nav: SideNavItems[], activeTab: string) => boolean;
|
|
36
|
-
export declare const SpsSideNav: React.FC<SpsSideNavProps>;
|
|
1
|
+
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsIcon, TagKind } from "@spscommerce/ds-shared";
|
|
4
|
+
export interface SideNavItems {
|
|
5
|
+
name: string;
|
|
6
|
+
tag?: TagKind;
|
|
7
|
+
tagContent?: string;
|
|
8
|
+
subNavItems?: SideNavItems[];
|
|
9
|
+
icon?: SpsIcon;
|
|
10
|
+
}
|
|
11
|
+
export interface SideNavSection {
|
|
12
|
+
sectionTitle: string;
|
|
13
|
+
navItems: SideNavItems[];
|
|
14
|
+
}
|
|
15
|
+
export interface SideNavBranch extends SideNavItems {
|
|
16
|
+
expanded: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface SpsSideNavProps {
|
|
19
|
+
title?: string;
|
|
20
|
+
titleIcon?: SpsIcon;
|
|
21
|
+
activeNavItem: string;
|
|
22
|
+
onNavChange?: (newNav: string) => void;
|
|
23
|
+
navOptions: SideNavSection[];
|
|
24
|
+
tabs?: string[];
|
|
25
|
+
initialActiveTab?: string;
|
|
26
|
+
onTabChange?: (newTab: string) => void;
|
|
27
|
+
filterable?: boolean;
|
|
28
|
+
filterInputPlaceholder?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Helper to find if parent navigation contains the active child branch
|
|
32
|
+
* @param nav SideNavItems[] array of navigation branches to be checked
|
|
33
|
+
* @param activeTab string currently active tab
|
|
34
|
+
*/
|
|
35
|
+
export declare const findParentBranches: (nav: SideNavItems[], activeTab: string) => boolean;
|
|
36
|
+
export declare const SpsSideNav: React.FC<SpsSideNavProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsSideNavExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsSideNavExamples: DSReactExamples;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
-
import * as React from
|
|
3
|
-
import { SideNavBranch } from
|
|
4
|
-
export interface SpsSideNavBranchProps {
|
|
5
|
-
branch: SideNavBranch;
|
|
6
|
-
activeBranch: string;
|
|
7
|
-
setActiveBranch: (activeChildBranchName: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const SpsSideNavBranch: React.FC<SpsSideNavBranchProps>;
|
|
1
|
+
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SideNavBranch } from "./SpsSideNav";
|
|
4
|
+
export interface SpsSideNavBranchProps {
|
|
5
|
+
branch: SideNavBranch;
|
|
6
|
+
activeBranch: string;
|
|
7
|
+
setActiveBranch: (activeChildBranchName: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SpsSideNavBranch: React.FC<SpsSideNavBranchProps>;
|
package/lib/side-nav/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsSideNav";
|
|
2
|
+
export * from "./SpsSideNav.examples";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as PropTypes from
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
channelId: PropTypes.Validator<string>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsSlackLinkProps = PropTypes.InferTS<typeof propTypes, HTMLAnchorElement>;
|
|
10
|
-
export declare function SpsSlackLink(props: SpsSlackLinkProps): JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import * as PropTypes from "../prop-types";
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
channelId: PropTypes.Validator<string>;
|
|
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 SpsSlackLinkProps = PropTypes.InferTS<typeof propTypes, HTMLAnchorElement>;
|
|
10
|
+
export declare function SpsSlackLink(props: SpsSlackLinkProps): JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsSlackLinkExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsSlackLinkExamples: DSReactExamples;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./SpsSlackLink";
|
|
2
|
+
export * from "./SpsSlackLink.examples";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SortChangeHandler, SortedColumn } from
|
|
2
|
-
import * as PropTypes from
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
sort: PropTypes.Requireable<SortedColumn[]>;
|
|
5
|
-
onSortChange: PropTypes.Requireable<SortChangeHandler>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsSortingHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsSortingHeader({ className,
|
|
13
|
-
export {};
|
|
1
|
+
import type { SortChangeHandler, SortedColumn } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
declare const propTypes: {
|
|
4
|
+
sort: PropTypes.Requireable<SortedColumn[]>;
|
|
5
|
+
onSortChange: PropTypes.Requireable<SortChangeHandler>;
|
|
6
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
+
className: PropTypes.Requireable<string>;
|
|
8
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare type SpsSortingHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
+
export declare function SpsSortingHeader({ className, "data-testid": testId, unsafelyReplaceClassName, sort, onSortChange, children, ...rest }: SpsSortingHeaderProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DSReactExamples } from
|
|
2
|
-
export declare const SpsSortingHeaderExamples: DSReactExamples;
|
|
1
|
+
import type { DSReactExamples } from "@spscommerce/ds-shared";
|
|
2
|
+
export declare const SpsSortingHeaderExamples: DSReactExamples;
|