@spscommerce/ds-react 5.10.5-ie → 5.11.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 -0
- package/lib/_template/SpsComponent.examples.d.ts +2 -0
- package/lib/_template/index.d.ts +2 -0
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +22 -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 +27 -0
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
- package/lib/autocomplete/index.d.ts +2 -0
- package/lib/button/SpsButton.d.ts +18 -0
- package/lib/button/SpsButton.examples.d.ts +2 -0
- package/lib/button/SpsButtonGroup.d.ts +10 -0
- package/lib/button/SpsIconButtonPanel.d.ts +10 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/card/SpsCard.d.ts +16 -0
- package/lib/card/SpsCard.examples.d.ts +2 -0
- package/lib/card/SpsCardHeader.d.ts +14 -0
- package/lib/card/SpsCardTabbedPane.d.ts +19 -0
- package/lib/card/index.d.ts +3 -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 +21 -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 +17 -0
- package/lib/checkbox-dropdown/index.d.ts +1 -0
- package/lib/clickable-tag/SpsClickableTag.d.ts +16 -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 +19 -0
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +17 -0
- package/lib/column-chooser/index.d.ts +3 -0
- 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 -0
- package/lib/content-row/SpsContentRow.examples.d.ts +2 -0
- package/lib/content-row/SpsContentRowCol.d.ts +15 -0
- package/lib/content-row/SpsContentRowExpansion.d.ts +10 -0
- package/lib/content-row/index.d.ts +4 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +18 -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 +23 -0
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
- package/lib/dateRangePicker/index.d.ts +2 -0
- package/lib/datepicker/SpsDatepicker.d.ts +19 -0
- package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -0
- package/lib/datepicker/index.d.ts +2 -0
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +21 -0
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -0
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +13 -0
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +18 -0
- package/lib/datepicker-v2/index.d.ts +4 -0
- package/lib/datepicker-v2/useCalendar.d.ts +2 -0
- package/lib/datepicker-v2/useMoment.d.ts +3 -0
- package/lib/datepicker-v2/utils.d.ts +23 -0
- package/lib/datepicker-v2/validation.d.ts +10 -0
- package/lib/datetime/SpsDateTime.d.ts +26 -0
- package/lib/datetime/SpsDateTime.examples.d.ts +2 -0
- package/lib/datetime/index.d.ts +2 -0
- package/lib/description-list/SpsDescriptionList.d.ts +14 -0
- package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -0
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +11 -0
- package/lib/description-list/SpsDescriptionListTerm.d.ts +18 -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 +12 -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 +10 -0
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -0
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -0
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -0
- package/lib/filter-panel/index.d.ts +5 -0
- 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 -0
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -0
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +10 -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 +24 -0
- package/lib/form/SpsForm.examples.d.ts +41 -0
- package/lib/form/SpsFormComponentWrapper.d.ts +19 -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/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 +79 -0
- package/lib/form/index.d.ts +15 -0
- package/lib/form/validation/SpsValidators.d.ts +16 -0
- package/lib/form/validation/types.d.ts +7 -0
- package/lib/form/validation/validate.d.ts +2 -0
- package/lib/growler/SpsGrowler.d.ts +17 -0
- package/lib/growler/SpsGrowler.examples.d.ts +2 -0
- package/lib/growler/index.d.ts +3 -0
- package/lib/growler/useGrowlers.d.ts +12 -0
- package/lib/i18n.d.ts +3 -0
- package/lib/icon/SpsIcon.d.ts +13 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +15 -0
- package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -0
- package/lib/incrementor/index.d.ts +2 -0
- package/lib/index.cjs.js +8473 -0
- package/lib/index.d.ts +71 -0
- package/lib/index.es.js +38099 -0
- package/lib/input-group/SpsInputGroup.d.ts +17 -0
- package/lib/input-group/index.d.ts +1 -0
- 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 -0
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +13 -0
- package/lib/key-value-list/index.d.ts +3 -0
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +16 -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 +20 -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 +12 -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 +25 -0
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +3 -0
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +12 -0
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +10 -0
- package/lib/list-toolbar/index.d.ts +4 -0
- package/lib/manifest.d.ts +2 -0
- package/lib/micro-block/SpsMicroBlock.d.ts +13 -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 +25 -0
- package/lib/modal/SpsModal.examples.d.ts +2 -0
- package/lib/modal/SpsModalAction.d.ts +18 -0
- package/lib/modal/SpsModalBody.d.ts +10 -0
- package/lib/modal/SpsModalFooter.d.ts +16 -0
- package/lib/modal/SpsModalHeader.d.ts +11 -0
- package/lib/modal/SpsModalOverlay.d.ts +12 -0
- package/lib/modal/index.d.ts +2 -0
- package/lib/modal-v2/SpsModalV2.d.ts +18 -0
- package/lib/modal-v2/index.d.ts +1 -0
- package/lib/multi-select/SpsMultiSelect.d.ts +34 -0
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/lib/multi-select/index.d.ts +2 -0
- package/lib/option-list/SpsOptionList.d.ts +3 -0
- package/lib/option-list/SpsOptionListProps.d.ts +75 -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/useSpsAction.d.ts +2 -0
- package/lib/page-title/SpsPageSubtitle.d.ts +10 -0
- package/lib/page-title/SpsPageTitle.d.ts +10 -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 +14 -0
- package/lib/pagination/SpsPagination.d.ts +16 -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 +19 -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 +15 -0
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +27 -0
- package/lib/progress-bar/index.d.ts +2 -0
- package/lib/progress-ring/SpsProgressRing.d.ts +13 -0
- package/lib/progress-ring/index.d.ts +1 -0
- package/lib/prop-types.d.ts +23 -0
- package/lib/radio-button/SpsRadioButton.d.ts +23 -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 +11 -0
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -0
- package/lib/scrollable-container/index.d.ts +2 -0
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +13 -0
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
- package/lib/search-results-bar/index.d.ts +2 -0
- package/lib/select/SpsSelect.d.ts +37 -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 +11 -0
- package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -0
- package/lib/slack-link/index.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeader.d.ts +13 -0
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +17 -0
- package/lib/sorting-header/index.d.ts +3 -0
- package/lib/spinner/SpsSpinner.d.ts +14 -0
- package/lib/spinner/SpsSpinner.examples.d.ts +2 -0
- package/lib/spinner/index.d.ts +2 -0
- package/lib/split-button/SpsSplitButton.d.ts +18 -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 +25 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +24 -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 +14 -0
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +10 -0
- package/lib/summary-list/SpsSummaryListRow.d.ts +13 -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 +11 -0
- package/lib/table/SpsTableCell.d.ts +15 -0
- package/lib/table/SpsTableHead.d.ts +15 -0
- package/lib/table/SpsTableHeader.d.ts +17 -0
- package/lib/table/SpsTableRow.d.ts +14 -0
- package/lib/table/index.d.ts +7 -0
- package/lib/table/usePinnedStyles.d.ts +4 -0
- package/lib/tabs/SpsTabs.d.ts +14 -0
- package/lib/tabs-v2/SpsTab.d.ts +6 -0
- package/lib/tabs-v2/SpsTabPanel.d.ts +5 -0
- package/lib/tabs-v2/SpsTabsV2.d.ts +2 -0
- package/lib/tabs-v2/index.d.ts +4 -0
- package/lib/tag/SpsTag.d.ts +13 -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 +36 -0
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -0
- package/lib/task-queue/index.d.ts +2 -0
- package/lib/test-util.d.ts +2 -0
- package/lib/text-input/SpsTextInput.d.ts +22 -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 +22 -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 +16 -0
- package/lib/tile-list/SpsTileList.d.ts +10 -0
- package/lib/tile-list/SpsTileList.examples.d.ts +2 -0
- package/lib/tile-list/index.d.ts +3 -0
- package/lib/toggle/SpsToggle.d.ts +27 -0
- package/lib/toggle/SpsToggle.examples.d.ts +2 -0
- package/lib/toggle/index.d.ts +2 -0
- package/lib/tooltip/SpsTooltip.d.ts +29 -0
- package/lib/tooltip/SpsTooltip.examples.d.ts +2 -0
- package/lib/tooltip/SpsTooltipTitle.d.ts +13 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/utils/FauxChangeEvent.d.ts +20 -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 +11 -0
- package/lib/utils/selectChildren.d.ts +5 -0
- package/lib/utils/useCheckDeprecatedProps.d.ts +2 -0
- package/lib/utils/useDidUpdateEffect.d.ts +2 -0
- package/lib/utils/useDocumentEventListener.d.ts +1 -0
- package/lib/utils/useElementId.d.ts +2 -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 +11 -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 +23 -0
- package/lib/wizard/SpsWizardSubstep.d.ts +14 -0
- package/lib/wizard/index.d.ts +3 -0
- package/lib/workflow/SpsWorkflow.d.ts +14 -0
- package/lib/workflow/SpsWorkflow.examples.d.ts +2 -0
- package/lib/workflow/SpsWorkflowDocument.d.ts +11 -0
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +13 -0
- package/lib/workflow/SpsWorkflowStep.d.ts +14 -0
- package/lib/workflow/index.d.ts +5 -0
- package/lib/zero-state/SpsMicroZeroState.d.ts +14 -0
- package/lib/zero-state/SpsZeroState.d.ts +13 -0
- package/lib/zero-state/SpsZeroState.examples.d.ts +2 -0
- package/lib/zero-state/index.d.ts +3 -0
- package/package.json +19 -13
- package/vite.config.js +1 -1
- package/rollup.config.js +0 -22
|
@@ -0,0 +1,15 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 {};
|
|
@@ -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 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;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsCheckboxDropdown";
|
|
@@ -0,0 +1,16 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,17 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,22 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MomentRange } from '@spscommerce/ds-shared';
|
|
2
|
+
import * as momentImport from 'moment-timezone';
|
|
3
|
+
import { Moment } from 'moment-timezone';
|
|
4
|
+
import * as PropTypes from '../prop-types';
|
|
5
|
+
declare const propTypes: {
|
|
6
|
+
placeholder: PropTypes.Requireable<string>;
|
|
7
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
+
format: PropTypes.Requireable<string>;
|
|
9
|
+
minDate: PropTypes.Requireable<string>;
|
|
10
|
+
maxDate: PropTypes.Requireable<string>;
|
|
11
|
+
availablePresets: PropTypes.Requireable<any[]>;
|
|
12
|
+
onChange: PropTypes.Requireable<(newValue: MomentRange) => void>;
|
|
13
|
+
value: PropTypes.Requireable<MomentRange>;
|
|
14
|
+
preset: PropTypes.Requireable<momentImport.Duration>;
|
|
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 function weekOfMonth(mmt: Moment): number;
|
|
21
|
+
export declare type SpsDateRangePickerProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
22
|
+
export declare function SpsDateRangePicker(props: SpsDateRangePickerProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Moment } from "moment-timezone";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
declare const propTypes: {
|
|
4
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
5
|
+
format: PropTypes.Requireable<string>;
|
|
6
|
+
maxDate: PropTypes.Requireable<string>;
|
|
7
|
+
minDate: PropTypes.Requireable<string>;
|
|
8
|
+
onChange: PropTypes.Requireable<(newValue: Moment) => void>;
|
|
9
|
+
onClickOutside: PropTypes.Requireable<(event: MouseEvent) => void>;
|
|
10
|
+
placeholder: PropTypes.Requireable<string>;
|
|
11
|
+
value: PropTypes.Requireable<string>;
|
|
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 SpsDatepickerProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
18
|
+
declare function SpsDatepicker(props: SpsDatepickerProps): JSX.Element;
|
|
19
|
+
export { SpsDatepicker };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SimpleDate, SimpleDateRange, DatePreset } from "@spscommerce/ds-shared";
|
|
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<SimpleDateRange | DatePreset>>;
|
|
7
|
+
maxDate: PropTypes.Requireable<SimpleDate>;
|
|
8
|
+
minDate: PropTypes.Requireable<SimpleDate>;
|
|
9
|
+
onChange: PropTypes.Requireable<(newDateRange: SimpleDateRange | DatePreset) => void>;
|
|
10
|
+
presets: PropTypes.Requireable<DatePreset[]>;
|
|
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 SpsDateRangePickerV2Props = {
|
|
17
|
+
value?: SimpleDateRange | DatePreset;
|
|
18
|
+
} & Omit<PropTypes.InferTS<typeof propTypes, HTMLInputElement>, "value">;
|
|
19
|
+
export declare const DEFAULT_PRESETS: DatePreset[];
|
|
20
|
+
export declare function SpsDateRangePickerV2({ children, className, disabled, formMeta, id, maxDate, minDate, onChange, presets, value, "data-testid": testId, ...rest }: SpsDateRangePickerV2Props): JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SimpleDate, SimpleDateRange } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
declare const propTypes: {
|
|
4
|
+
maxDate: PropTypes.Requireable<SimpleDate>;
|
|
5
|
+
minDate: PropTypes.Requireable<SimpleDate>;
|
|
6
|
+
onNewSelection: PropTypes.Validator<(date: SimpleDate) => void>;
|
|
7
|
+
selectedDate: PropTypes.Requireable<SimpleDate>;
|
|
8
|
+
selectedRange: PropTypes.Requireable<SimpleDate[]>;
|
|
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 interface SpsDatepickerCalendarProps extends PropTypes.InferTS<typeof propTypes, HTMLDivElement> {
|
|
15
|
+
selectedRange?: SimpleDateRange;
|
|
16
|
+
}
|
|
17
|
+
export declare function SpsDatepickerCalendar(props: SpsDatepickerCalendarProps): JSX.Element;
|
|
18
|
+
export {};
|