@spscommerce/ds-react 6.37.2 → 7.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/advanced-search/SpsAdvancedSearch.d.ts +8 -20
- package/lib/autocomplete/SpsAutocomplete.d.ts +19 -25
- package/lib/button/SpsButton.d.ts +13 -17
- package/lib/button/SpsButtonGroup.d.ts +3 -9
- package/lib/button/SpsIconButtonPanel.d.ts +3 -9
- package/lib/card/SpsCard.d.ts +9 -14
- package/lib/card/SpsCardHeader.d.ts +8 -13
- package/lib/card/SpsCardTabbedPane.d.ts +14 -18
- package/lib/card/index.d.ts +0 -1
- package/lib/checkbox/SpsCheckbox.d.ts +12 -17
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +6 -14
- package/lib/clickable-tag/SpsClickableTag.d.ts +9 -14
- package/lib/column-chooser/SpsColumnChooser.d.ts +8 -13
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +12 -16
- package/lib/conditional-field/SpsConditionalField.d.ts +6 -11
- package/lib/content-row/SpsContentRow.d.ts +14 -20
- package/lib/content-row/SpsContentRowCol.d.ts +9 -14
- package/lib/content-row/SpsContentRowExpansion.d.ts +3 -9
- package/lib/currency-input/SpsCurrencyInput.d.ts +9 -15
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +10 -16
- package/lib/datepicker/SpsDatepicker.d.ts +10 -15
- package/lib/datepicker/SpsDatepickerCalendar.d.ts +8 -15
- package/lib/datepicker/SpsDatepickerPopup.d.ts +10 -12
- package/lib/datepicker/useMoment.d.ts +1 -1
- package/lib/datepicker/utils.d.ts +7 -7
- package/lib/datetime/SpsDateTime.d.ts +10 -16
- package/lib/description-list/SpsDescriptionList.d.ts +8 -13
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +4 -10
- package/lib/description-list/SpsDescriptionListTerm.d.ts +10 -15
- package/lib/dropdown/SpsDropdown.d.ts +20 -25
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +5 -10
- package/lib/fieldset/SpsFieldset.d.ts +13 -18
- package/lib/filter-panel/SpsFilterPanel.d.ts +3 -9
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +5 -10
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +7 -13
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +10 -15
- package/lib/filter-tile-list/SpsFilterTile.d.ts +8 -13
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +3 -9
- package/lib/focused-task/SpsFocusedTask.d.ts +7 -12
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +3 -9
- package/lib/form/SpsForm.d.ts +6 -12
- package/lib/form/SpsFormComponentWrapper.d.ts +7 -12
- package/lib/form/hooks/useFormControlId.d.ts +2 -2
- package/lib/form/hooks/useServerSideValidation.d.ts +1 -1
- package/lib/form/hooks/useSpsForm.d.ts +9 -9
- package/lib/growler/SpsGrowler.d.ts +8 -14
- package/lib/growler/useGrowlers.d.ts +2 -2
- package/lib/icon/SpsIcon.d.ts +8 -12
- package/lib/incrementor/SpsIncrementor.d.ts +9 -14
- package/lib/index.cjs.js +1075 -1600
- package/lib/index.es.js +22208 -28832
- package/lib/input-group/SpsInputGroup.d.ts +8 -13
- package/lib/insight-tile/SpsInsightTile.d.ts +12 -17
- package/lib/insight-tile/SpsInsights.d.ts +3 -9
- package/lib/key-value-list/SpsKeyValueList.d.ts +5 -10
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +6 -11
- package/lib/key-value-list/index.d.ts +0 -1
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +9 -14
- package/lib/label/SpsLabel.d.ts +11 -16
- package/lib/list-action-bar/SpsListActionBar.d.ts +7 -12
- package/lib/list-toolbar/SpsListToolbar.d.ts +20 -25
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +4 -10
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +3 -9
- package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +8 -13
- package/lib/micro-block/SpsMicroBlock.d.ts +6 -11
- package/lib/modal/SpsModal.d.ts +9 -15
- package/lib/multi-select/SpsMultiSelect.d.ts +27 -34
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +13 -19
- package/lib/option-list/SpsOptionListProps.d.ts +46 -69
- package/lib/option-list/useOptionListSearch.d.ts +1 -1
- 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 +3 -9
- package/lib/page-title/SpsPageTitle.d.ts +3 -9
- package/lib/pagination/SpsPageSelector.d.ts +10 -15
- package/lib/pagination/SpsPagination.d.ts +13 -18
- package/lib/product-bar/SpsProductBar.d.ts +11 -17
- package/lib/progress-bar/SpsProgressBar.d.ts +9 -14
- package/lib/progress-ring/SpsProgressRing.d.ts +6 -11
- package/lib/prop-types.d.ts +4 -23
- package/lib/radio-button/SpsRadioButton.d.ts +14 -20
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +5 -10
- package/lib/scrollable-container/index.d.ts +0 -1
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +7 -12
- package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +8 -13
- package/lib/select/SpsSelect.d.ts +57 -34
- package/lib/slack-link/SpsSlackLink.d.ts +5 -10
- package/lib/slide-in-panel/SpsSlideInPanel.d.ts +8 -14
- package/lib/sorting-header/SpsSortingHeader.d.ts +6 -11
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +10 -15
- package/lib/spinner/SpsSpinner.d.ts +7 -12
- package/lib/spinner/index.d.ts +0 -1
- package/lib/split-button/SpsSplitButton.d.ts +13 -17
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +11 -12
- package/lib/summary-list/SpsSummaryListColumn.d.ts +8 -13
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +3 -9
- package/lib/summary-list/SpsSummaryListRow.d.ts +7 -12
- package/lib/table/SpsTable.d.ts +12 -17
- package/lib/table/SpsTableBody.d.ts +3 -9
- package/lib/table/SpsTableCell.d.ts +8 -13
- package/lib/table/SpsTableHead.d.ts +5 -10
- package/lib/table/SpsTableHeader.d.ts +8 -13
- package/lib/table/SpsTableRow.d.ts +3 -9
- package/lib/table/useColumnResizer.d.ts +2 -2
- package/lib/table/usePinnedStyles.d.ts +4 -4
- package/lib/tabs/SpsTabs.d.ts +7 -12
- package/lib/tag/SpsTag.d.ts +8 -12
- package/lib/task-queue/SpsTaskQueue.d.ts +14 -20
- package/lib/text-input/SpsTextInput.d.ts +26 -20
- package/lib/textarea/SpsTextarea.d.ts +13 -19
- package/lib/tile-list/SpsTile.d.ts +13 -18
- package/lib/tile-list/SpsTileList.d.ts +3 -9
- package/lib/toggle/SpsToggle.d.ts +13 -19
- package/lib/tooltip/SpsTooltip.d.ts +13 -19
- package/lib/tooltip/SpsTooltipTitle.d.ts +8 -12
- package/lib/utils/contentOf.d.ts +2 -2
- package/lib/utils/useCheckDeprecatedProps.d.ts +1 -2
- package/lib/utils/useElementId.d.ts +3 -2
- package/lib/utils/useInputPopup.d.ts +1 -1
- package/lib/utils/usePortal.d.ts +3 -3
- package/lib/vertical-rule/SpsVerticalRule.d.ts +3 -9
- package/lib/wizard/SpsWizardSidebar.d.ts +5 -10
- package/lib/wizard/SpsWizardSubstep.d.ts +7 -12
- package/lib/workflow/SpsWorkflow.d.ts +7 -12
- package/lib/workflow/SpsWorkflowDocument.d.ts +3 -9
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +6 -11
- package/lib/workflow/SpsWorkflowStep.d.ts +7 -12
- package/lib/zero-state/SpsMicroZeroState.d.ts +9 -14
- package/lib/zero-state/SpsZeroState.d.ts +8 -13
- package/package.json +35 -22
- package/vite.config.js +6 -6
- package/lib/_template/SpsComponent.d.ts +0 -15
- package/lib/_template/SpsComponent.examples.d.ts +0 -2
- package/lib/_template/index.d.ts +0 -2
- package/lib/card/SpsCard.examples.d.ts +0 -2
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +0 -2
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +0 -2
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +0 -14
- package/lib/spinner/SpsSpinner.examples.d.ts +0 -2
- package/lib/test-util.d.ts +0 -2
|
@@ -1,15 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
3
|
import { SteppedProgressBarColor } from "@spscommerce/ds-shared";
|
|
3
|
-
import
|
|
4
|
-
declare const propTypes: {
|
|
5
|
-
title: PropTypes.Requireable<string>;
|
|
6
|
-
stepsCount: PropTypes.Requireable<number>;
|
|
7
|
-
completedStepsCount: PropTypes.Requireable<number>;
|
|
8
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
9
|
-
showStepsCounter: PropTypes.Requireable<boolean>;
|
|
10
|
-
color: PropTypes.Requireable<SteppedProgressBarColor>;
|
|
11
|
-
data: PropTypes.Requireable<SteppedProgressBarData[]>;
|
|
12
|
-
};
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
13
5
|
export interface SteppedProgressBarData {
|
|
14
6
|
index: number;
|
|
15
7
|
icon: SpsIcon;
|
|
@@ -17,6 +9,13 @@ export interface SteppedProgressBarData {
|
|
|
17
9
|
description: string;
|
|
18
10
|
skipped: boolean;
|
|
19
11
|
}
|
|
20
|
-
export declare type SpsSteppedProgressBarProps =
|
|
12
|
+
export declare type SpsSteppedProgressBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
13
|
+
title?: string;
|
|
14
|
+
stepsCount?: number;
|
|
15
|
+
completedStepsCount?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
showStepsCounter?: boolean;
|
|
18
|
+
color?: SteppedProgressBarColor;
|
|
19
|
+
data?: SteppedProgressBarData[];
|
|
20
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
21
21
|
export declare function SpsSteppedProgressBar(props: SpsSteppedProgressBarProps): JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsSummaryListColumnProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsSummaryListColumnProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
borderless?: boolean;
|
|
5
|
+
lean?: boolean;
|
|
6
|
+
leaner?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
13
9
|
export declare function SpsSummaryListColumn(props: SpsSummaryListColumnProps): JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsSummaryListExpansionProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsSummaryListExpansionProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
4
|
export declare function SpsSummaryListExpansion(props: SpsSummaryListExpansionProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsSummaryListRowProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsSummaryListRowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onToggle?: (isExpanded: boolean) => void;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
8
|
export declare function SpsSummaryListRow(props: SpsSummaryListRowProps): JSX.Element;
|
|
13
|
-
export {};
|
package/lib/table/SpsTable.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import type { SortChangeHandler, SortedColumn, ResizeState, ResizeStateChangeHandler } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
15
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
export declare type SpsTableProps = PropTypes.InferTS<typeof propTypes, HTMLTableElement>;
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export declare type SpsTableProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
onSortChange?: SortChangeHandler;
|
|
6
|
+
sort?: SortedColumn[];
|
|
7
|
+
selectable?: boolean;
|
|
8
|
+
maxHeightPx?: number;
|
|
9
|
+
maxHeightRem?: number;
|
|
10
|
+
resizeable?: boolean;
|
|
11
|
+
resizeState?: ResizeState;
|
|
12
|
+
onResizeStateChange?: ResizeStateChangeHandler;
|
|
13
|
+
}> & React.HTMLAttributes<HTMLTableElement>;
|
|
18
14
|
export declare function SpsTable({ children, className, onSortChange, sort, "data-testid": testId, unsafelyReplaceClassName, maxHeightPx, maxHeightRem, resizeable, resizeState, onResizeStateChange, ...rest }: SpsTableProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsTableBodyProps = PropTypes.InferTS<typeof propTypes, HTMLTableSectionElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTableBodyProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
9
4
|
export declare function SpsTableBody(props: SpsTableBodyProps): JSX.Element;
|
|
10
5
|
export declare function SpsTbody(props: SpsTableBodyProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsTableCellProps = PropTypes.InferTS<typeof propTypes, HTMLTableCellElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTableCellProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
buttonCell?: boolean;
|
|
5
|
+
controlCell?: boolean;
|
|
6
|
+
wrap?: 200 | 300 | 400 | 500 | 600;
|
|
7
|
+
pinned?: boolean;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLTableCellElement>;
|
|
13
9
|
export declare function SpsTableCell(props: SpsTableCellProps): JSX.Element;
|
|
14
10
|
export declare function SpsTd(props: SpsTableCellProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsTableHeadProps = PropTypes.InferTS<typeof propTypes, HTMLTableSectionElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTableHeadProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
pinned?: boolean;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
10
6
|
export declare function SpsTableHead({ children, className, "data-testid": testId, unsafelyReplaceClassName, pinned, ...rest }: SpsTableHeadProps): JSX.Element;
|
|
11
7
|
export declare function SpsThead(props: SpsTableHeadProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsTableHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLTableCellElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTableHeaderProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
controlCell?: boolean;
|
|
5
|
+
sortKey?: string;
|
|
6
|
+
resizeKey?: string;
|
|
7
|
+
pinned?: boolean;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLTableCellElement>;
|
|
13
9
|
export declare function SpsTableHeader({ children, className, controlCell, sortKey, resizeKey, "data-testid": testId, unsafelyReplaceClassName, pinned, ...rest }: SpsTableHeaderProps): JSX.Element;
|
|
14
10
|
export declare function SpsTh(props: SpsTableHeaderProps): JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsTableRowProps = PropTypes.InferTS<typeof propTypes, HTMLTableRowElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTableRowProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLTableRowElement>;
|
|
9
4
|
export declare function SpsTableRow({ children, className, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsTableRowProps): JSX.Element;
|
|
10
5
|
export declare function SpsTr(props: SpsTableRowProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export declare const useColumnResizer: ({ tableHeaderRef, resizerRef, resizeKey, }: {
|
|
3
|
-
tableHeaderRef: React.MutableRefObject<HTMLTableCellElement>;
|
|
4
|
-
resizerRef: React.MutableRefObject<HTMLSpanElement>;
|
|
3
|
+
tableHeaderRef: React.MutableRefObject<HTMLTableCellElement | null>;
|
|
4
|
+
resizerRef: React.MutableRefObject<HTMLSpanElement | null>;
|
|
5
5
|
resizeKey: string;
|
|
6
6
|
}) => {
|
|
7
7
|
isResizeable: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare const usePinnedCellStyle: (isPinned: boolean, elementRef: React.MutableRefObject<HTMLTableCellElement>) => void;
|
|
3
|
-
export declare const usePinnedTableBackgroundStyle: (containerRef: React.MutableRefObject<HTMLDivElement>) => void;
|
|
4
|
-
export declare const usePinnedTableHeadStyle: (containerRef: React.MutableRefObject<HTMLDivElement>, maxHeight
|
|
5
|
-
export declare const useMaxHeightTableStyle: (containerRef: React.MutableRefObject<HTMLDivElement>, maxHeight
|
|
2
|
+
export declare const usePinnedCellStyle: (isPinned: boolean, elementRef: React.MutableRefObject<HTMLTableCellElement | null>) => void;
|
|
3
|
+
export declare const usePinnedTableBackgroundStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>) => void;
|
|
4
|
+
export declare const usePinnedTableHeadStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>, maxHeight?: number) => void;
|
|
5
|
+
export declare const useMaxHeightTableStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>, maxHeight?: number) => void;
|
package/lib/tabs/SpsTabs.d.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import type { SpsTab } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
10
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsTabsProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export declare type SpsTabsProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
tabs: SpsTab[];
|
|
6
|
+
activeTab?: SpsTab;
|
|
7
|
+
onTabChange?: (newTab: SpsTab) => void;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
13
9
|
export declare function SpsTabs(props: SpsTabsProps): JSX.Element;
|
|
14
|
-
export {};
|
package/lib/tag/SpsTag.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { SpsIcon
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsTagProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
|
|
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 declare type SpsTagProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
kind?: TagKind;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLSpanElement>;
|
|
12
9
|
export declare function SpsTag(props: SpsTagProps): JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsIcon, SpsTask } from "@spscommerce/ds-shared";
|
|
3
3
|
import { TooltipKind, Position } from "@spscommerce/ds-shared";
|
|
4
|
-
import
|
|
5
|
-
declare const propTypes: {
|
|
6
|
-
tasks: PropTypes.Requireable<ReactSpsTask[]>;
|
|
7
|
-
taskQueuePosition: PropTypes.Requireable<Position>;
|
|
8
|
-
notificationText: PropTypes.Requireable<string>;
|
|
9
|
-
tooltipConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
-
position: PropTypes.Requireable<Position>;
|
|
11
|
-
kind: PropTypes.Requireable<TooltipKind>;
|
|
12
|
-
}>>;
|
|
13
|
-
onClose: PropTypes.Requireable<() => void>;
|
|
14
|
-
onOpen: PropTypes.Requireable<() => void>;
|
|
15
|
-
onClearCompleted: PropTypes.Requireable<() => void>;
|
|
16
|
-
suppressTooltips: PropTypes.Requireable<boolean>;
|
|
17
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
18
|
-
className: PropTypes.Requireable<string>;
|
|
19
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
20
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
21
|
-
};
|
|
22
|
-
export declare type SpsTaskQueueProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
23
5
|
export interface ReactSpsTaskAction {
|
|
24
6
|
label?: string;
|
|
25
7
|
caption?: string;
|
|
@@ -32,5 +14,17 @@ export declare type ReactSpsTask = Pick<SpsTask, "heading" | "status" | "unread"
|
|
|
32
14
|
subheading?: React.ReactNode;
|
|
33
15
|
actions?: Array<ReactSpsTaskAction | React.ReactElement>;
|
|
34
16
|
};
|
|
17
|
+
export declare type SpsTaskQueueProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
18
|
+
tasks?: ReactSpsTask[];
|
|
19
|
+
taskQueuePosition?: Position;
|
|
20
|
+
notificationText?: string;
|
|
21
|
+
tooltipConfig?: {
|
|
22
|
+
position?: Position;
|
|
23
|
+
kind?: TooltipKind;
|
|
24
|
+
};
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
onOpen?: () => void;
|
|
27
|
+
onClearCompleted?: () => void;
|
|
28
|
+
suppressTooltips?: boolean;
|
|
29
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
35
30
|
export declare function SpsTaskQueue({ tasks, taskQueuePosition, notificationText, tooltipConfig, onOpen, onClose, onClearCompleted, className, "data-testid": testId, unsafelyReplaceClassName, suppressTooltips, ...rest }: SpsTaskQueueProps): JSX.Element;
|
|
36
|
-
export {};
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
-
import
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
4
|
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
5
|
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
6
|
-
declare
|
|
7
|
-
disabled
|
|
8
|
-
formControl
|
|
9
|
-
formMeta
|
|
10
|
-
icon
|
|
11
|
-
name
|
|
12
|
-
onChange
|
|
13
|
-
placeholder
|
|
14
|
-
value
|
|
15
|
-
additionalText
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
export declare type SpsTextInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
formControl?: SpsFormControl<string>;
|
|
9
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
10
|
+
icon?: SpsIcon;
|
|
11
|
+
name?: string;
|
|
12
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
additionalText?: string;
|
|
16
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
17
|
+
export declare const SpsTextInput: React.ForwardRefExoticComponent<SpsGlobalPropTypes & {
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
formControl?: SpsFormControl<string> | undefined;
|
|
20
|
+
formMeta?: SpsFormFieldMeta<string> | undefined;
|
|
21
|
+
icon?: SpsIcon | undefined;
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
24
|
+
placeholder?: string | undefined;
|
|
25
|
+
value?: string | undefined;
|
|
26
|
+
additionalText?: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & React.HTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
3
|
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
4
|
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
-
declare
|
|
6
|
-
disabled
|
|
7
|
-
formControl
|
|
8
|
-
formMeta
|
|
9
|
-
name
|
|
10
|
-
onChange
|
|
11
|
-
placeholder
|
|
12
|
-
ref
|
|
13
|
-
rows
|
|
14
|
-
value
|
|
15
|
-
additionalText
|
|
16
|
-
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
19
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
|
-
export declare type SpsTextareaProps = PropTypes.InferTS<typeof propTypes, HTMLTextAreaElement>;
|
|
5
|
+
export declare type SpsTextareaProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
formControl?: SpsFormControl<string>;
|
|
8
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
9
|
+
name?: string;
|
|
10
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
13
|
+
rows?: number;
|
|
14
|
+
value?: string;
|
|
15
|
+
additionalText?: string;
|
|
16
|
+
}> & React.HTMLAttributes<HTMLTextAreaElement>;
|
|
22
17
|
export declare function SpsTextarea({ className, disabled, formControl, formMeta, id, name, onChange, placeholder, ref, rows, "data-testid": testId, unsafelyReplaceClassName, value, additionalText, ...rest }: SpsTextareaProps): JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
15
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
export declare type SpsTileProps = PropTypes.InferTS<typeof propTypes, HTMLAnchorElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTileProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
icon: React.ReactNode | (() => React.ReactNode);
|
|
7
|
+
error?: boolean;
|
|
8
|
+
errorIcon?: React.ReactNode | (() => React.ReactNode);
|
|
9
|
+
title: string;
|
|
10
|
+
warning?: boolean;
|
|
11
|
+
warningIcon?: React.ReactNode | (() => React.ReactNode);
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}> & React.HTMLAttributes<HTMLAnchorElement>;
|
|
18
14
|
export declare function SpsTile(props: SpsTileProps): JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsTileListProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export declare type SpsTileListProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
4
|
export declare function SpsTileList(props: SpsTileListProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
3
3
|
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
-
import
|
|
5
|
-
declare
|
|
6
|
-
active
|
|
7
|
-
description
|
|
8
|
-
disabled
|
|
9
|
-
formControl
|
|
10
|
-
formMeta
|
|
11
|
-
id
|
|
12
|
-
label
|
|
13
|
-
large
|
|
14
|
-
onChange
|
|
15
|
-
ref
|
|
16
|
-
|
|
17
|
-
className: PropTypes.Requireable<string>;
|
|
18
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
19
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
20
|
-
};
|
|
21
|
-
export declare type SpsToggleProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export declare type SpsToggleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
active?: boolean;
|
|
7
|
+
description?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<boolean>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<boolean>;
|
|
11
|
+
id?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
large?: boolean;
|
|
14
|
+
onChange?: (isActive: boolean) => void;
|
|
15
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
16
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
22
17
|
export declare function SpsToggle(props: SpsToggleProps): JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Position, TooltipKind, TooltipShowTrigger } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
4
|
export declare enum TooltipVisibility {
|
|
5
5
|
VISIBLE = "visible",
|
|
6
6
|
DEFER_VISIBLE = "defer_visible",
|
|
@@ -8,22 +8,16 @@ export declare enum TooltipVisibility {
|
|
|
8
8
|
DELAYED_HIDDEN = "delayed_hidden"
|
|
9
9
|
}
|
|
10
10
|
export declare function toggleTooltipState(state: TooltipVisibility): TooltipVisibility.VISIBLE | TooltipVisibility.HIDDEN;
|
|
11
|
-
declare
|
|
12
|
-
for:
|
|
13
|
-
hideDelay
|
|
14
|
-
isShown
|
|
15
|
-
kind
|
|
16
|
-
offsets
|
|
17
|
-
onDeferred
|
|
18
|
-
position
|
|
19
|
-
altPosition
|
|
20
|
-
showOn
|
|
21
|
-
title
|
|
22
|
-
|
|
23
|
-
className: PropTypes.Requireable<string>;
|
|
24
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
25
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
26
|
-
};
|
|
27
|
-
export declare type SpsTooltipProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
11
|
+
export declare type SpsTooltipProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
12
|
+
for: React.MutableRefObject<any> | string;
|
|
13
|
+
hideDelay?: number;
|
|
14
|
+
isShown?: TooltipVisibility;
|
|
15
|
+
kind?: TooltipKind;
|
|
16
|
+
offsets?: number[];
|
|
17
|
+
onDeferred?: () => void;
|
|
18
|
+
position?: Position;
|
|
19
|
+
altPosition?: Position;
|
|
20
|
+
showOn?: TooltipShowTrigger;
|
|
21
|
+
title?: string | React.ReactNode;
|
|
22
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
28
23
|
export declare function SpsTooltip({ children, className, for: forProp, "data-testid": testId, hideDelay, isShown, kind, offsets, onDeferred, position, altPosition, showOn, style, title, unsafelyReplaceClassName, }: SpsTooltipProps): React.ReactPortal;
|
|
29
|
-
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsTooltipTitleProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import { SpsIconSize } from "@spscommerce/ds-shared";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export declare type SpsTooltipTitleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
iconSize?: SpsIconSize;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
9
|
export declare function SpsTooltipTitle({ icon, iconSize, children, }: SpsTooltipTitleProps): JSX.Element;
|
|
13
|
-
export {};
|