@spscommerce/ds-react 6.37.3 → 7.0.1

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.
Files changed (140) hide show
  1. package/lib/advanced-search/SpsAdvancedSearch.d.ts +8 -20
  2. package/lib/autocomplete/SpsAutocomplete.d.ts +19 -25
  3. package/lib/button/SpsButton.d.ts +13 -17
  4. package/lib/button/SpsButtonGroup.d.ts +3 -9
  5. package/lib/button/SpsIconButtonPanel.d.ts +3 -9
  6. package/lib/card/SpsCard.d.ts +9 -14
  7. package/lib/card/SpsCardHeader.d.ts +8 -13
  8. package/lib/card/SpsCardTabbedPane.d.ts +14 -18
  9. package/lib/card/index.d.ts +0 -1
  10. package/lib/checkbox/SpsCheckbox.d.ts +12 -17
  11. package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +6 -14
  12. package/lib/clickable-tag/SpsClickableTag.d.ts +9 -14
  13. package/lib/column-chooser/SpsColumnChooser.d.ts +8 -13
  14. package/lib/column-chooser/SpsColumnChooserColumn.d.ts +12 -16
  15. package/lib/conditional-field/SpsConditionalField.d.ts +6 -11
  16. package/lib/content-row/SpsContentRow.d.ts +14 -20
  17. package/lib/content-row/SpsContentRowCol.d.ts +9 -14
  18. package/lib/content-row/SpsContentRowExpansion.d.ts +3 -9
  19. package/lib/currency-input/SpsCurrencyInput.d.ts +9 -15
  20. package/lib/dateRangePicker/SpsDateRangePicker.d.ts +10 -16
  21. package/lib/datepicker/SpsDatepicker.d.ts +10 -15
  22. package/lib/datepicker/SpsDatepickerCalendar.d.ts +8 -15
  23. package/lib/datepicker/SpsDatepickerPopup.d.ts +10 -12
  24. package/lib/datepicker/useMoment.d.ts +1 -1
  25. package/lib/datepicker/utils.d.ts +7 -7
  26. package/lib/datetime/SpsDateTime.d.ts +10 -16
  27. package/lib/description-list/SpsDescriptionList.d.ts +8 -13
  28. package/lib/description-list/SpsDescriptionListDefinition.d.ts +4 -10
  29. package/lib/description-list/SpsDescriptionListTerm.d.ts +10 -15
  30. package/lib/dropdown/SpsDropdown.d.ts +20 -25
  31. package/lib/feedback-block/SpsFeedbackBlock.d.ts +5 -10
  32. package/lib/fieldset/SpsFieldset.d.ts +13 -18
  33. package/lib/filter-panel/SpsFilterPanel.d.ts +3 -9
  34. package/lib/filter-panel/SpsFilterPanelCap.d.ts +5 -10
  35. package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +7 -13
  36. package/lib/filter-panel/SpsFilterPanelSection.d.ts +10 -15
  37. package/lib/filter-tile-list/SpsFilterTile.d.ts +8 -13
  38. package/lib/filter-tile-list/SpsFilterTileList.d.ts +3 -9
  39. package/lib/focused-task/SpsFocusedTask.d.ts +7 -12
  40. package/lib/focused-task/SpsFocusedTaskActions.d.ts +3 -9
  41. package/lib/form/SpsForm.d.ts +6 -12
  42. package/lib/form/SpsFormComponentWrapper.d.ts +7 -12
  43. package/lib/form/hooks/useFormControlId.d.ts +2 -2
  44. package/lib/form/hooks/useServerSideValidation.d.ts +1 -1
  45. package/lib/form/hooks/useSpsForm.d.ts +9 -9
  46. package/lib/growler/SpsGrowler.d.ts +8 -14
  47. package/lib/growler/useGrowlers.d.ts +2 -2
  48. package/lib/icon/SpsIcon.d.ts +8 -12
  49. package/lib/incrementor/SpsIncrementor.d.ts +9 -14
  50. package/lib/index.cjs.js +1075 -1600
  51. package/lib/index.es.js +22208 -28833
  52. package/lib/input-group/SpsInputGroup.d.ts +8 -13
  53. package/lib/insight-tile/SpsInsightTile.d.ts +12 -17
  54. package/lib/insight-tile/SpsInsights.d.ts +3 -9
  55. package/lib/key-value-list/SpsKeyValueList.d.ts +5 -10
  56. package/lib/key-value-list/SpsKeyValueListItem.d.ts +6 -11
  57. package/lib/key-value-list/index.d.ts +0 -1
  58. package/lib/key-value-tag/SpsKeyValueTag.d.ts +9 -14
  59. package/lib/label/SpsLabel.d.ts +11 -16
  60. package/lib/list-action-bar/SpsListActionBar.d.ts +7 -12
  61. package/lib/list-toolbar/SpsListToolbar.d.ts +20 -25
  62. package/lib/list-toolbar/SpsListToolbarSearch.d.ts +4 -10
  63. package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +3 -9
  64. package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +8 -13
  65. package/lib/micro-block/SpsMicroBlock.d.ts +6 -11
  66. package/lib/modal/SpsModal.d.ts +9 -15
  67. package/lib/multi-select/SpsMultiSelect.d.ts +27 -34
  68. package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +13 -19
  69. package/lib/option-list/SpsOptionListProps.d.ts +46 -69
  70. package/lib/option-list/useOptionListSearch.d.ts +1 -1
  71. package/lib/option-list-v2/SpsOptionListV2.d.ts +0 -0
  72. package/lib/option-list-v2/index.d.ts +0 -0
  73. package/lib/page-title/SpsPageSubtitle.d.ts +3 -9
  74. package/lib/page-title/SpsPageTitle.d.ts +3 -9
  75. package/lib/pagination/SpsPageSelector.d.ts +10 -15
  76. package/lib/pagination/SpsPagination.d.ts +13 -18
  77. package/lib/product-bar/SpsProductBar.d.ts +11 -17
  78. package/lib/progress-bar/SpsProgressBar.d.ts +9 -14
  79. package/lib/progress-ring/SpsProgressRing.d.ts +6 -11
  80. package/lib/prop-types.d.ts +4 -23
  81. package/lib/radio-button/SpsRadioButton.d.ts +14 -20
  82. package/lib/scrollable-container/SpsScrollableContainer.d.ts +5 -10
  83. package/lib/scrollable-container/index.d.ts +0 -1
  84. package/lib/search-results-bar/SpsSearchResultsBar.d.ts +7 -12
  85. package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +8 -13
  86. package/lib/select/SpsSelect.d.ts +57 -34
  87. package/lib/slack-link/SpsSlackLink.d.ts +5 -10
  88. package/lib/slide-in-panel/SpsSlideInPanel.d.ts +8 -14
  89. package/lib/sorting-header/SpsSortingHeader.d.ts +6 -11
  90. package/lib/sorting-header/SpsSortingHeaderCell.d.ts +10 -15
  91. package/lib/spinner/SpsSpinner.d.ts +7 -12
  92. package/lib/spinner/index.d.ts +0 -1
  93. package/lib/split-button/SpsSplitButton.d.ts +13 -17
  94. package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +11 -12
  95. package/lib/summary-list/SpsSummaryListColumn.d.ts +8 -13
  96. package/lib/summary-list/SpsSummaryListExpansion.d.ts +3 -9
  97. package/lib/summary-list/SpsSummaryListRow.d.ts +7 -12
  98. package/lib/table/SpsTable.d.ts +12 -17
  99. package/lib/table/SpsTableBody.d.ts +3 -9
  100. package/lib/table/SpsTableCell.d.ts +8 -13
  101. package/lib/table/SpsTableHead.d.ts +5 -10
  102. package/lib/table/SpsTableHeader.d.ts +8 -13
  103. package/lib/table/SpsTableRow.d.ts +3 -9
  104. package/lib/table/useColumnResizer.d.ts +2 -2
  105. package/lib/table/usePinnedStyles.d.ts +4 -4
  106. package/lib/tabs/SpsTabs.d.ts +7 -12
  107. package/lib/tag/SpsTag.d.ts +8 -12
  108. package/lib/task-queue/SpsTaskQueue.d.ts +14 -20
  109. package/lib/text-input/SpsTextInput.d.ts +26 -20
  110. package/lib/textarea/SpsTextarea.d.ts +13 -19
  111. package/lib/tile-list/SpsTile.d.ts +13 -18
  112. package/lib/tile-list/SpsTileList.d.ts +3 -9
  113. package/lib/toggle/SpsToggle.d.ts +13 -19
  114. package/lib/tooltip/SpsTooltip.d.ts +13 -19
  115. package/lib/tooltip/SpsTooltipTitle.d.ts +8 -12
  116. package/lib/utils/contentOf.d.ts +2 -2
  117. package/lib/utils/useCheckDeprecatedProps.d.ts +1 -2
  118. package/lib/utils/useElementId.d.ts +3 -2
  119. package/lib/utils/useInputPopup.d.ts +1 -1
  120. package/lib/utils/usePortal.d.ts +3 -3
  121. package/lib/vertical-rule/SpsVerticalRule.d.ts +3 -9
  122. package/lib/wizard/SpsWizardSidebar.d.ts +5 -10
  123. package/lib/wizard/SpsWizardSubstep.d.ts +7 -12
  124. package/lib/workflow/SpsWorkflow.d.ts +7 -12
  125. package/lib/workflow/SpsWorkflowDocument.d.ts +3 -9
  126. package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +6 -11
  127. package/lib/workflow/SpsWorkflowStep.d.ts +7 -12
  128. package/lib/zero-state/SpsMicroZeroState.d.ts +9 -14
  129. package/lib/zero-state/SpsZeroState.d.ts +8 -13
  130. package/package.json +35 -22
  131. package/vite.config.js +6 -6
  132. package/lib/_template/SpsComponent.d.ts +0 -15
  133. package/lib/_template/SpsComponent.examples.d.ts +0 -2
  134. package/lib/_template/index.d.ts +0 -2
  135. package/lib/card/SpsCard.examples.d.ts +0 -2
  136. package/lib/insight-tile/SpsInsightTile.examples.d.ts +0 -2
  137. package/lib/key-value-list/SpsKeyValueList.examples.d.ts +0 -2
  138. package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +0 -14
  139. package/lib/spinner/SpsSpinner.examples.d.ts +0 -2
  140. package/lib/test-util.d.ts +0 -2
@@ -1,8 +1,8 @@
1
1
  import { GrowlerKind } from "@spscommerce/ds-shared";
2
- import type { ReactNodeOrRenderFn } from "../prop-types";
2
+ import * as React from "react";
3
3
  export interface GrowlerConfig {
4
4
  title?: string;
5
- content: ReactNodeOrRenderFn;
5
+ content: React.ReactNode | (() => React.ReactNode);
6
6
  kind?: GrowlerKind;
7
7
  imgSrc?: string;
8
8
  onClose?: () => void;
@@ -1,13 +1,9 @@
1
- import { SpsIcon as SpsIconEnum, SpsIconSize } from "@spscommerce/ds-shared";
2
- import * as PropTypes from "../prop-types";
3
- declare const propTypes: {
4
- icon: PropTypes.Validator<SpsIconEnum>;
5
- size: PropTypes.Requireable<SpsIconSize>;
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 SpsIconProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
1
+ import type { SpsIcon as SpsIconEnum } from "@spscommerce/ds-shared";
2
+ import { SpsIconSize } from "@spscommerce/ds-shared";
3
+ import * as React from "react";
4
+ import type { SpsGlobalPropTypes } from "../prop-types";
5
+ export declare type SpsIconProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ icon: SpsIconEnum;
7
+ size?: SpsIconSize;
8
+ }> & React.HTMLAttributes<HTMLElement>;
12
9
  export declare function SpsI(props: SpsIconProps): JSX.Element;
13
- export {};
@@ -1,15 +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
- disabled: PropTypes.Requireable<boolean>;
8
- min: PropTypes.Requireable<number>;
9
- max: PropTypes.Requireable<number>;
10
- step: PropTypes.Requireable<number>;
11
- onValueChange: PropTypes.Requireable<(newValue: number) => void>;
12
- };
13
- export declare type SpsIncrementorProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export declare type SpsIncrementorProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ disabled?: boolean;
5
+ min?: number;
6
+ max?: number;
7
+ step?: number;
8
+ onValueChange?: (newValue: number) => void;
9
+ }> & React.HTMLAttributes<HTMLDivElement>;
14
10
  export declare function SpsIncrementor(props: SpsIncrementorProps): JSX.Element;
15
- export {};