@spscommerce/ds-react 4.10.0 → 4.14.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.
Files changed (348) hide show
  1. package/lib/_template/SpsComponent.d.ts +15 -13
  2. package/lib/_template/SpsComponent.examples.d.ts +2 -2
  3. package/lib/_template/index.d.ts +2 -2
  4. package/lib/advanced-search/SpsAdvancedSearch.d.ts +23 -23
  5. package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -2
  6. package/lib/advanced-search/index.d.ts +2 -2
  7. package/lib/autocomplete/SpsAutocomplete.d.ts +26 -26
  8. package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -2
  9. package/lib/autocomplete/index.d.ts +2 -2
  10. package/lib/button/SpsButton.d.ts +18 -18
  11. package/lib/button/SpsButton.examples.d.ts +2 -2
  12. package/lib/button/SpsButtonGroup.d.ts +10 -10
  13. package/lib/button/SpsIconButtonPanel.d.ts +10 -10
  14. package/lib/button/index.d.ts +4 -4
  15. package/lib/card/SpsCard.d.ts +16 -16
  16. package/lib/card/SpsCard.examples.d.ts +2 -2
  17. package/lib/card/SpsCardHeader.d.ts +14 -14
  18. package/lib/card/SpsCardTabbedPane.d.ts +19 -19
  19. package/lib/card/index.d.ts +3 -3
  20. package/lib/card/useTab.d.ts +18 -18
  21. package/lib/card-v2/SpsCardV2.d.ts +2 -2
  22. package/lib/card-v2/SpsCardV2Footer.d.ts +2 -2
  23. package/lib/card-v2/SpsCardV2Header.d.ts +2 -2
  24. package/lib/card-v2/SpsCardV2Title.d.ts +2 -2
  25. package/lib/card-v2/index.d.ts +5 -5
  26. package/lib/checkbox/SpsCheckbox.d.ts +21 -21
  27. package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -2
  28. package/lib/checkbox/index.d.ts +2 -2
  29. package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +17 -17
  30. package/lib/checkbox-dropdown/index.d.ts +1 -1
  31. package/lib/clickable-tag/SpsClickableTag.d.ts +18 -18
  32. package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -2
  33. package/lib/clickable-tag/index.d.ts +2 -2
  34. package/lib/column-chooser/SpsColumnChooser.d.ts +19 -19
  35. package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -2
  36. package/lib/column-chooser/SpsColumnChooserColumn.d.ts +17 -17
  37. package/lib/column-chooser/index.d.ts +3 -3
  38. package/lib/content-row/SpsContentRow.d.ts +22 -22
  39. package/lib/content-row/SpsContentRow.examples.d.ts +2 -2
  40. package/lib/content-row/SpsContentRowCol.d.ts +15 -15
  41. package/lib/content-row/SpsContentRowExpansion.d.ts +10 -10
  42. package/lib/content-row/index.d.ts +4 -4
  43. package/lib/currency-input/SpsCurrencyInput.d.ts +18 -18
  44. package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -2
  45. package/lib/currency-input/index.d.ts +2 -2
  46. package/lib/dateRangePicker/SpsDateRangePicker.d.ts +23 -23
  47. package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -2
  48. package/lib/dateRangePicker/index.d.ts +2 -2
  49. package/lib/datepicker/SpsDatepicker.d.ts +19 -19
  50. package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -2
  51. package/lib/datepicker/index.d.ts +2 -2
  52. package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +20 -20
  53. package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -18
  54. package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +13 -13
  55. package/lib/datepicker-v2/SpsDatepickerV2.d.ts +18 -18
  56. package/lib/datepicker-v2/index.d.ts +4 -4
  57. package/lib/datepicker-v2/useCalendar.d.ts +2 -2
  58. package/lib/datepicker-v2/useMoment.d.ts +3 -3
  59. package/lib/datepicker-v2/utils.d.ts +22 -22
  60. package/lib/datepicker-v2/validation.d.ts +10 -10
  61. package/lib/datetime/SpsDateTime.d.ts +17 -17
  62. package/lib/datetime/SpsDateTime.examples.d.ts +2 -2
  63. package/lib/datetime/index.d.ts +2 -2
  64. package/lib/description-list/SpsDescriptionList.d.ts +14 -14
  65. package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -2
  66. package/lib/description-list/SpsDescriptionListDefinition.d.ts +11 -11
  67. package/lib/description-list/SpsDescriptionListTerm.d.ts +18 -18
  68. package/lib/description-list/index.d.ts +4 -4
  69. package/lib/dropdown/SpsDropdown.d.ts +23 -22
  70. package/lib/dropdown/SpsDropdown.examples.d.ts +2 -2
  71. package/lib/dropdown/index.d.ts +2 -2
  72. package/lib/feedback-block/SpsFeedbackBlock.d.ts +12 -12
  73. package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -2
  74. package/lib/feedback-block/index.d.ts +2 -2
  75. package/lib/fieldset/SpsFieldset.d.ts +22 -22
  76. package/lib/fieldset/SpsFieldset.examples.d.ts +2 -2
  77. package/lib/fieldset/index.d.ts +2 -2
  78. package/lib/filter-panel/SpsFilterPanel.d.ts +10 -10
  79. package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -2
  80. package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -11
  81. package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -16
  82. package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -16
  83. package/lib/filter-panel/index.d.ts +5 -5
  84. package/lib/filter-tile-list/SpsFilterTile.d.ts +15 -15
  85. package/lib/filter-tile-list/SpsFilterTileList.d.ts +10 -10
  86. package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -2
  87. package/lib/filter-tile-list/index.d.ts +3 -3
  88. package/lib/focused-task/SpsFocusedTask.d.ts +13 -13
  89. package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -2
  90. package/lib/focused-task/SpsFocusedTaskActions.d.ts +10 -10
  91. package/lib/focused-task/index.d.ts +3 -3
  92. package/lib/form/AddRemoveFormRows.examples.d.ts +18 -18
  93. package/lib/form/SpsForm.d.ts +24 -24
  94. package/lib/form/SpsForm.examples.d.ts +29 -29
  95. package/lib/form/SpsFormComponentWrapper.d.ts +19 -19
  96. package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -24
  97. package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -7
  98. package/lib/form/hooks/formArray.d.ts +12 -12
  99. package/lib/form/hooks/formControl.d.ts +9 -9
  100. package/lib/form/hooks/formGroup.d.ts +10 -14
  101. package/lib/form/hooks/useForm.d.ts +2 -2
  102. package/lib/form/hooks/useFormControlId.d.ts +4 -4
  103. package/lib/form/hooks/useServerSideValidation.d.ts +3 -3
  104. package/lib/form/hooks/useSpsForm.d.ts +74 -76
  105. package/lib/form/index.d.ts +15 -15
  106. package/lib/form/validation/SpsValidators.d.ts +16 -16
  107. package/lib/form/validation/types.d.ts +5 -9
  108. package/lib/form/validation/validate.d.ts +2 -2
  109. package/lib/growler/SpsGrowler.d.ts +17 -17
  110. package/lib/growler/SpsGrowler.examples.d.ts +2 -2
  111. package/lib/growler/index.d.ts +3 -3
  112. package/lib/growler/useGrowlers.d.ts +11 -11
  113. package/lib/i18n.d.ts +3 -3
  114. package/lib/icon/SpsIcon.d.ts +14 -14
  115. package/lib/icon/index.d.ts +1 -1
  116. package/lib/incrementor/SpsIncrementor.d.ts +15 -15
  117. package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -2
  118. package/lib/incrementor/index.d.ts +2 -2
  119. package/lib/index.cjs.js +8081 -15224
  120. package/lib/index.d.ts +70 -70
  121. package/lib/index.es.js +32947 -0
  122. package/lib/input-group/SpsInputGroup.d.ts +17 -17
  123. package/lib/input-group/index.d.ts +1 -1
  124. package/lib/insight-tile/SpsInsightTile.d.ts +18 -18
  125. package/lib/insight-tile/SpsInsightTile.examples.d.ts +2 -2
  126. package/lib/insight-tile/SpsInsights.d.ts +10 -10
  127. package/lib/insight-tile/index.d.ts +2 -2
  128. package/lib/key-value-list/SpsKeyValueList.d.ts +11 -11
  129. package/lib/key-value-list/SpsKeyValueList.examples.d.ts +2 -2
  130. package/lib/key-value-list/SpsKeyValueListItem.d.ts +11 -11
  131. package/lib/key-value-list/index.d.ts +3 -3
  132. package/lib/key-value-tag/SpsKeyValueTag.d.ts +16 -16
  133. package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -2
  134. package/lib/key-value-tag/index.d.ts +2 -2
  135. package/lib/label/SpsLabel.d.ts +20 -20
  136. package/lib/label/SpsLabel.examples.d.ts +2 -2
  137. package/lib/label/index.d.ts +2 -2
  138. package/lib/list-action-bar/SpsListActionBar.d.ts +12 -12
  139. package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -2
  140. package/lib/list-action-bar/index.d.ts +2 -2
  141. package/lib/list-toolbar/SpsListToolbar.d.ts +25 -25
  142. package/lib/list-toolbar/SpsListToolbar.examples.d.ts +3 -3
  143. package/lib/list-toolbar/SpsListToolbarSearch.d.ts +12 -12
  144. package/lib/list-toolbar/index.d.ts +3 -3
  145. package/lib/manifest.d.ts +2 -2
  146. package/lib/micro-block/SpsMicroBlock.d.ts +13 -13
  147. package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -2
  148. package/lib/micro-block/index.d.ts +2 -2
  149. package/lib/modal/SpsModal.d.ts +25 -25
  150. package/lib/modal/SpsModal.examples.d.ts +2 -2
  151. package/lib/modal/SpsModalAction.d.ts +18 -18
  152. package/lib/modal/SpsModalBody.d.ts +10 -10
  153. package/lib/modal/SpsModalFooter.d.ts +16 -16
  154. package/lib/modal/SpsModalHeader.d.ts +11 -11
  155. package/lib/modal/SpsModalOverlay.d.ts +12 -12
  156. package/lib/modal/index.d.ts +2 -2
  157. package/lib/modal-v2/SpsModalV2.d.ts +18 -18
  158. package/lib/modal-v2/index.d.ts +1 -1
  159. package/lib/multi-select/SpsMultiSelect.d.ts +32 -31
  160. package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -2
  161. package/lib/multi-select/SpsMultiSelectTag.d.ts +16 -16
  162. package/lib/multi-select/index.d.ts +2 -2
  163. package/lib/option-list/SpsOptionList.d.ts +3 -3
  164. package/lib/option-list/SpsOptionListProps.d.ts +73 -69
  165. package/lib/option-list/index.d.ts +1 -1
  166. package/lib/option-list/useOptionListOptions.d.ts +8 -8
  167. package/lib/option-list/useOptionListSearch.d.ts +13 -13
  168. package/lib/option-list/useSpsAction.d.ts +2 -2
  169. package/lib/page-title/SpsPageSubtitle.d.ts +10 -10
  170. package/lib/page-title/SpsPageTitle.d.ts +10 -10
  171. package/lib/page-title/SpsPageTitle.examples.d.ts +2 -2
  172. package/lib/page-title/index.d.ts +3 -3
  173. package/lib/pagination/SpsPageSelector.d.ts +14 -14
  174. package/lib/pagination/SpsPagination.d.ts +16 -16
  175. package/lib/pagination/SpsPagination.examples.d.ts +2 -2
  176. package/lib/pagination/index.d.ts +3 -3
  177. package/lib/product-bar/SpsProductBar.d.ts +19 -19
  178. package/lib/product-bar/SpsProductBar.examples.d.ts +2 -2
  179. package/lib/product-bar/SpsProductBarTab.d.ts +11 -11
  180. package/lib/product-bar/index.d.ts +3 -3
  181. package/lib/progress-bar/SpsProgressBar.d.ts +15 -15
  182. package/lib/progress-bar/SpsProgressBar.examples.d.ts +27 -27
  183. package/lib/progress-bar/index.d.ts +2 -2
  184. package/lib/progress-ring/SpsProgressRing.d.ts +13 -13
  185. package/lib/progress-ring/index.d.ts +1 -1
  186. package/lib/prop-types.d.ts +23 -25
  187. package/lib/radio-button/SpsRadioButton.d.ts +23 -23
  188. package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -2
  189. package/lib/radio-button/index.d.ts +2 -2
  190. package/lib/scrollable-container/SpsScrollableContainer.d.ts +11 -11
  191. package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -14
  192. package/lib/scrollable-container/index.d.ts +2 -2
  193. package/lib/search-results-bar/SpsSearchResultsBar.d.ts +13 -13
  194. package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -2
  195. package/lib/search-results-bar/index.d.ts +2 -2
  196. package/lib/select/SpsSelect.d.ts +35 -35
  197. package/lib/select/SpsSelect.examples.d.ts +2 -2
  198. package/lib/select/index.d.ts +2 -2
  199. package/lib/setup-jest.d.ts +1 -1
  200. package/lib/side-nav/SpsSideNav.d.ts +36 -36
  201. package/lib/side-nav/SpsSideNav.examples.d.ts +2 -2
  202. package/lib/side-nav/SpsSideNavBranch.d.ts +9 -9
  203. package/lib/side-nav/index.d.ts +2 -2
  204. package/lib/slack-link/SpsSlackLink.d.ts +11 -11
  205. package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -2
  206. package/lib/slack-link/index.d.ts +2 -2
  207. package/lib/sorting-header/SpsSortingHeader.d.ts +13 -13
  208. package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -2
  209. package/lib/sorting-header/SpsSortingHeaderCell.d.ts +17 -17
  210. package/lib/sorting-header/index.d.ts +3 -3
  211. package/lib/spinner/SpsSpinner.d.ts +14 -14
  212. package/lib/spinner/SpsSpinner.examples.d.ts +2 -2
  213. package/lib/spinner/index.d.ts +2 -2
  214. package/lib/split-button/SpsSplitButton.d.ts +18 -17
  215. package/lib/split-button/SpsSplitButton.examples.d.ts +2 -2
  216. package/lib/split-button/index.d.ts +2 -2
  217. package/lib/stepped-progress-bar/SpsStepepdProgressBar.examples.d.ts +20 -20
  218. package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +23 -23
  219. package/lib/stepped-progress-bar/index.d.ts +2 -2
  220. package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -2
  221. package/lib/summary-list/SpsSummaryListColumn.d.ts +14 -14
  222. package/lib/summary-list/SpsSummaryListExpansion.d.ts +10 -10
  223. package/lib/summary-list/SpsSummaryListRow.d.ts +13 -13
  224. package/lib/summary-list/index.d.ts +4 -4
  225. package/lib/table/SpsTable.d.ts +14 -14
  226. package/lib/table/SpsTable.examples.d.ts +2 -2
  227. package/lib/table/SpsTableBody.d.ts +11 -11
  228. package/lib/table/SpsTableCell.d.ts +15 -15
  229. package/lib/table/SpsTableHead.d.ts +15 -15
  230. package/lib/table/SpsTableHeader.d.ts +17 -17
  231. package/lib/table/SpsTableRow.d.ts +14 -14
  232. package/lib/table/index.d.ts +7 -7
  233. package/lib/table/usePinnedStyles.d.ts +4 -4
  234. package/lib/tabs/SpsTabs.d.ts +14 -14
  235. package/lib/tabs-v2/SpsTab.d.ts +6 -6
  236. package/lib/tabs-v2/SpsTabPanel.d.ts +5 -5
  237. package/lib/tabs-v2/SpsTabsV2.d.ts +2 -2
  238. package/lib/tabs-v2/index.d.ts +4 -4
  239. package/lib/tag/SpsTag.d.ts +13 -13
  240. package/lib/tag/SpsTag.examples.d.ts +2 -2
  241. package/lib/tag/index.d.ts +2 -2
  242. package/lib/task-queue/SpsTaskQueue.d.ts +36 -35
  243. package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -2
  244. package/lib/task-queue/index.d.ts +2 -2
  245. package/lib/test-util.d.ts +1 -1
  246. package/lib/text-input/SpsTextInput.d.ts +22 -22
  247. package/lib/text-input/SpsTextInput.examples.d.ts +2 -2
  248. package/lib/text-input/index.d.ts +2 -2
  249. package/lib/textarea/SpsTextarea.d.ts +22 -22
  250. package/lib/textarea/SpsTextarea.examples.d.ts +2 -2
  251. package/lib/textarea/index.d.ts +2 -2
  252. package/lib/tile-list/SpsTile.d.ts +16 -16
  253. package/lib/tile-list/SpsTileList.d.ts +10 -10
  254. package/lib/tile-list/SpsTileList.examples.d.ts +2 -2
  255. package/lib/tile-list/index.d.ts +3 -3
  256. package/lib/toggle/SpsToggle.d.ts +27 -27
  257. package/lib/toggle/SpsToggle.examples.d.ts +2 -2
  258. package/lib/toggle/index.d.ts +2 -2
  259. package/lib/tooltip/SpsTooltip.d.ts +29 -29
  260. package/lib/tooltip/SpsTooltip.examples.d.ts +2 -2
  261. package/lib/tooltip/index.d.ts +2 -2
  262. package/lib/utils/FauxChangeEvent.d.ts +20 -20
  263. package/lib/utils/contentOf.d.ts +2 -2
  264. package/lib/utils/getPosition.d.ts +11 -10
  265. package/lib/utils/getScrollParent.d.ts +1 -1
  266. package/lib/utils/index.d.ts +11 -11
  267. package/lib/utils/selectChildren.d.ts +5 -7
  268. package/lib/utils/useCheckDeprecatedProps.d.ts +2 -2
  269. package/lib/utils/useDidUpdateEffect.d.ts +2 -2
  270. package/lib/utils/useDocumentEventListener.d.ts +1 -1
  271. package/lib/utils/useElementId.d.ts +2 -1
  272. package/lib/utils/useInputPopup.d.ts +6 -7
  273. package/lib/utils/usePatchReducer.d.ts +2 -1
  274. package/lib/utils/usePortal.d.ts +6 -6
  275. package/lib/vertical-rule/SpsVerticalRule.d.ts +11 -11
  276. package/lib/vertical-rule/index.d.ts +1 -1
  277. package/lib/wizard/SpsWizard.examples.d.ts +2 -2
  278. package/lib/wizard/SpsWizardSidebar.d.ts +23 -23
  279. package/lib/wizard/SpsWizardSubstep.d.ts +14 -14
  280. package/lib/wizard/index.d.ts +3 -3
  281. package/lib/workflow/SpsWorkflow.d.ts +14 -14
  282. package/lib/workflow/SpsWorkflow.examples.d.ts +2 -2
  283. package/lib/workflow/SpsWorkflowDocument.d.ts +11 -11
  284. package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +13 -13
  285. package/lib/workflow/SpsWorkflowStep.d.ts +14 -14
  286. package/lib/workflow/index.d.ts +5 -5
  287. package/lib/zero-state/SpsMicroZeroState.d.ts +14 -14
  288. package/lib/zero-state/SpsZeroState.d.ts +13 -13
  289. package/lib/zero-state/SpsZeroState.examples.d.ts +2 -2
  290. package/lib/zero-state/index.d.ts +3 -3
  291. package/package.json +32 -39
  292. package/vite.config.js +20 -0
  293. package/lib/_template/SpsComponent.test-unit.d.ts +0 -1
  294. package/lib/advanced-search/SpsAdvancedSearch.test-unit.d.ts +0 -1
  295. package/lib/autocomplete/SpsAutocomplete.test-unit.d.ts +0 -1
  296. package/lib/autocomplete/SpsAutocomplete.test-visual.d.ts +0 -1
  297. package/lib/button/SpsButton.test-unit.d.ts +0 -1
  298. package/lib/button/SpsButton.test-visual.d.ts +0 -1
  299. package/lib/card/SpsCard.test-unit.d.ts +0 -1
  300. package/lib/card/SpsCard.test-visual.d.ts +0 -1
  301. package/lib/checkbox/SpsCheckbox.test-unit.d.ts +0 -1
  302. package/lib/column-chooser/SpsColumnChooser.test-unit.d.ts +0 -1
  303. package/lib/content-row/SpsContentRow.test-unit.d.ts +0 -1
  304. package/lib/currency-input/SpsCurrencyInput.test-unit.d.ts +0 -1
  305. package/lib/dateRangePicker/SpsDateRangePicker.test-unit.d.ts +0 -1
  306. package/lib/datepicker/SpsDatepicker.test-unit.d.ts +0 -1
  307. package/lib/description-list/SpsDescriptionList.test-unit.d.ts +0 -1
  308. package/lib/dropdown/SpsDropdown.test-unit.d.ts +0 -1
  309. package/lib/feedback-block/SpsFeedbackBlock.test-unit.d.ts +0 -1
  310. package/lib/fieldset/SpsFieldset.test-unit.d.ts +0 -1
  311. package/lib/filter-panel/SpsFilterPanel.test-unit.d.ts +0 -1
  312. package/lib/filter-tile-list/SpsFilterTileList.test-unit.d.ts +0 -1
  313. package/lib/focused-task/SpsFocusedTask.test-unit.d.ts +0 -1
  314. package/lib/growler/SpsGrowler.test-unit.d.ts +0 -1
  315. package/lib/incrementor/SpsIncrementor.test-unit.d.ts +0 -1
  316. package/lib/index.esm.js +0 -15003
  317. package/lib/key-value-list/SpsKeyValueList.test-unit.d.ts +0 -1
  318. package/lib/label/SpsLabel.test-unit.d.ts +0 -1
  319. package/lib/list-action-bar/SpsListActionBar.test-unit.d.ts +0 -1
  320. package/lib/list-toolbar/SpsListToolbar.test-unit.d.ts +0 -1
  321. package/lib/micro-block/SpsMicroBlock.test-unit.d.ts +0 -1
  322. package/lib/modal/SpsModal.test-unit.d.ts +0 -1
  323. package/lib/multi-select/SpsMultiSelect.test-unit.d.ts +0 -1
  324. package/lib/page-title/SpsPageTitle.test-unit.d.ts +0 -1
  325. package/lib/pagination/SpsPagination.test-unit.d.ts +0 -1
  326. package/lib/product-bar/SpsProductBar.test-unit.d.ts +0 -1
  327. package/lib/progress-bar/SpsProgressBar.test-unit.d.ts +0 -1
  328. package/lib/radio-button/SpsRadioButton.test-unit.d.ts +0 -1
  329. package/lib/search-results-bar/SpsSearchResultsBar.test-unit.d.ts +0 -1
  330. package/lib/select/SpsSelect.test-unit.d.ts +0 -1
  331. package/lib/side-nav/SpsSideNav.test-unit.d.ts +0 -1
  332. package/lib/slack-link/SpsSlackLink.test-unit.d.ts +0 -1
  333. package/lib/sorting-header/SpsSortingHeader.test-unit.d.ts +0 -1
  334. package/lib/spinner/SpsSpinner.test-unit.d.ts +0 -1
  335. package/lib/split-button/SpsSplitButton.test-unit.d.ts +0 -1
  336. package/lib/summary-list/SummaryList.test-unit.d.ts +0 -1
  337. package/lib/table/SpsTable.test-unit.d.ts +0 -1
  338. package/lib/tag/SpsTag.test-unit.d.ts +0 -1
  339. package/lib/task-queue/SpsTaskQueue.test-unit.d.ts +0 -1
  340. package/lib/text-input/SpsTextInput.test-unit.d.ts +0 -1
  341. package/lib/textarea/SpsTextarea.test-unit.d.ts +0 -1
  342. package/lib/tile-list/SpsTileList.test-unit.d.ts +0 -1
  343. package/lib/toggle/SpsToggle.test-unit.d.ts +0 -1
  344. package/lib/tooltip/SpsTooltip.test-unit.d.ts +0 -1
  345. package/lib/wizard/SpsWizard.test-unit.d.ts +0 -1
  346. package/lib/workflow/SpsWorkflow.test-unit.d.ts +0 -1
  347. package/lib/zero-state/SpsZeroState.test-unit.d.ts +0 -1
  348. package/rollup.config.js +0 -24
@@ -1,20 +1,20 @@
1
- import { ChangeEvent } from 'react';
2
- export declare class FauxChangeEvent<T> implements ChangeEvent<T> {
3
- target: EventTarget & T;
4
- constructor(target: EventTarget & T, eventInit?: EventInit);
5
- nativeEvent: Event;
6
- currentTarget: EventTarget & T;
7
- private isPgStoppedInternal;
8
- get bubbles(): boolean;
9
- get cancelable(): boolean;
10
- get defaultPrevented(): boolean;
11
- get eventPhase(): number;
12
- get isTrusted(): boolean;
13
- get timeStamp(): number;
14
- get type(): string;
15
- preventDefault(): void;
16
- isDefaultPrevented(): boolean;
17
- stopPropagation(): void;
18
- isPropagationStopped(): boolean;
19
- persist(): void;
20
- }
1
+ import type { ChangeEvent } from "react";
2
+ export declare class FauxChangeEvent<T> implements ChangeEvent<T> {
3
+ target: EventTarget & T;
4
+ nativeEvent: Event;
5
+ currentTarget: EventTarget & T;
6
+ private isPgStoppedInternal;
7
+ constructor(target: EventTarget & T, eventInit?: EventInit);
8
+ get bubbles(): boolean;
9
+ get cancelable(): boolean;
10
+ get defaultPrevented(): boolean;
11
+ get eventPhase(): number;
12
+ get isTrusted(): boolean;
13
+ get timeStamp(): number;
14
+ get type(): string;
15
+ preventDefault(): void;
16
+ isDefaultPrevented(): boolean;
17
+ stopPropagation(): void;
18
+ isPropagationStopped(): boolean;
19
+ persist(): void;
20
+ }
@@ -1,2 +1,2 @@
1
- import * as PropTypes from '../prop-types';
2
- export declare function contentOf(nodeOrRenderFn: PropTypes.ReactNodeOrRenderFn): PropTypes.ReactNodeLike;
1
+ import type * as PropTypes from "../prop-types";
2
+ export declare function contentOf(nodeOrRenderFn: PropTypes.ReactNodeOrRenderFn): PropTypes.ReactNodeLike;
@@ -1,10 +1,11 @@
1
- import { Position } from '@spscommerce/ds-shared';
2
- export declare function flipPosition(position: Position): Position;
3
- export declare function getPosition(subjectRef: React.RefObject<HTMLElement>, targetRef: React.RefObject<HTMLElement>, position: Position, { altPosition, setMinWidth, setWidth, parentElementRef, fixed, offsets, }: {
4
- altPosition?: Position;
5
- setMinWidth?: boolean;
6
- setWidth?: boolean;
7
- parentElementRef?: React.RefObject<HTMLElement>;
8
- fixed?: boolean;
9
- offsets?: [number, number];
10
- }): [React.CSSProperties, boolean];
1
+ import type { CSSProperties, RefObject } from "react";
2
+ import { Position } from "@spscommerce/ds-shared";
3
+ export declare function flipPosition(position: Position): Position;
4
+ export declare function getPosition(subjectRef: RefObject<HTMLElement>, targetRef: RefObject<HTMLElement>, position: Position, { altPosition, setMinWidth, setWidth, parentElementRef, fixed, offsets, }: {
5
+ altPosition?: Position;
6
+ setMinWidth?: boolean;
7
+ setWidth?: boolean;
8
+ parentElementRef?: RefObject<HTMLElement>;
9
+ fixed?: boolean;
10
+ offsets?: [number, number];
11
+ }): [CSSProperties, boolean];
@@ -1 +1 @@
1
- export declare const getScrollParent: (node: any) => any;
1
+ export declare const getScrollParent: (node: any) => any;
@@ -1,11 +1,11 @@
1
- export * from './contentOf';
2
- export * from './FauxChangeEvent';
3
- export * from './getPosition';
4
- export * from './selectChildren';
5
- export * from './useCheckDeprecatedProps';
6
- export * from './useDidUpdateEffect';
7
- export * from './useDocumentEventListener';
8
- export * from './useElementId';
9
- export * from './useInputPopup';
10
- export * from './usePatchReducer';
11
- export * from './usePortal';
1
+ export * from "./contentOf";
2
+ export * from "./FauxChangeEvent";
3
+ export * from "./getPosition";
4
+ export * from "./selectChildren";
5
+ export * from "./useCheckDeprecatedProps";
6
+ export * from "./useDidUpdateEffect";
7
+ export * from "./useDocumentEventListener";
8
+ export * from "./useElementId";
9
+ export * from "./useInputPopup";
10
+ export * from "./usePatchReducer";
11
+ export * from "./usePortal";
@@ -1,7 +1,5 @@
1
- export interface ISelectChildrenGroup {
2
- type?: any;
3
- props?: {
4
- [key: string]: any;
5
- };
6
- }
7
- export declare function selectChildren(children?: any, groups?: Array<ISelectChildrenGroup | Array<ISelectChildrenGroup>>): any[][];
1
+ export interface ISelectChildrenGroup {
2
+ type?: any;
3
+ props?: Record<string, any>;
4
+ }
5
+ export declare function selectChildren(children?: any, groups?: Array<ISelectChildrenGroup | ISelectChildrenGroup[]>): any[][];
@@ -1,2 +1,2 @@
1
- import * as PropTypes from '../prop-types';
2
- export declare function useCheckDeprecatedProps(componentName: string, propsDoc: PropTypes.TypeDoc, props: any): void;
1
+ import type * as PropTypes from "../prop-types";
2
+ export declare function useCheckDeprecatedProps(componentName: string, propsDoc: PropTypes.TypeDoc, props: any): void;
@@ -1,2 +1,2 @@
1
- import { EffectCallback } from 'react';
2
- export declare function useDidUpdateEffect(cb: EffectCallback, deps?: any[]): void;
1
+ import type { EffectCallback } from "react";
2
+ export declare function useDidUpdateEffect(cb: EffectCallback, deps?: any[]): void;
@@ -1 +1 @@
1
- export declare function useDocumentEventListener(eventName: string, listenerFactory: Function, deps: Array<any>): void;
1
+ export declare function useDocumentEventListener(eventName: string, listenerFactory: (...args: unknown[]) => EventListenerOrEventListenerObject, deps: unknown[]): void;
@@ -1 +1,2 @@
1
- export declare function useElementId(id: string): React.RefObject<string>;
1
+ import type { RefObject } from "react";
2
+ export declare function useElementId(id: string): RefObject<string>;
@@ -1,7 +1,6 @@
1
- import * as React from 'react';
2
- import { SpsFormFieldMeta } from '../form/hooks/useSpsForm';
3
- export declare function useInputPopup(rootRef: React.MutableRefObject<HTMLElement>, popupRef: React.MutableRefObject<HTMLElement>, formMeta: SpsFormFieldMeta<any>): {
4
- showPopup: boolean;
5
- doShowPopup: () => void;
6
- doHidePopup: (suppressNextShow?: any) => void;
7
- };
1
+ import * as React from "react";
2
+ export declare function useInputPopup(rootRef: React.MutableRefObject<HTMLElement>, popupRef: React.MutableRefObject<HTMLElement>): {
3
+ showPopup: boolean;
4
+ doShowPopup: () => void;
5
+ doHidePopup: (suppressNextShow?: any) => void;
6
+ };
@@ -1 +1,2 @@
1
- export declare function usePatchReducer<T>(initState: T): [T, React.Dispatch<Partial<T>>];
1
+ import type { Dispatch } from "react";
2
+ export declare function usePatchReducer<T>(initState: T): [T, Dispatch<Partial<T>>];
@@ -1,6 +1,6 @@
1
- import { ReactNode, ReactPortal, RefObject } from 'react';
2
- export declare const PortalContext: import("react").Context<{
3
- parentElementRef?: RefObject<HTMLElement>;
4
- fixed?: boolean;
5
- }>;
6
- export declare function usePortal(id: string, classes?: Array<string>): (jsx: ReactNode) => ReactPortal;
1
+ import type { ReactNode, ReactPortal, RefObject } from "react";
2
+ export declare const PortalContext: import("react").Context<{
3
+ parentElementRef?: RefObject<HTMLElement>;
4
+ fixed?: boolean;
5
+ }>;
6
+ export declare function usePortal(id: string, classes?: string[]): (jsx: ReactNode) => ReactPortal;
@@ -1,11 +1,11 @@
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 SpsVerticalRuleProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
9
- export declare function SpsVerticalRule(props: SpsVerticalRuleProps): JSX.Element;
10
- export declare function SpsVr(p: SpsVerticalRuleProps): JSX.Element;
11
- export {};
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 SpsVerticalRuleProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
9
+ export declare function SpsVerticalRule(props: SpsVerticalRuleProps): JSX.Element;
10
+ export declare function SpsVr(props: SpsVerticalRuleProps): JSX.Element;
11
+ export {};
@@ -1 +1 @@
1
- export * from './SpsVerticalRule';
1
+ export * from "./SpsVerticalRule";
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsWizardExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsWizardExamples: DSReactExamples;
@@ -1,23 +1,23 @@
1
- import * as PropTypes from '../prop-types';
2
- export interface WizardStep {
3
- title: string;
4
- percentComplete: number;
5
- active: boolean;
6
- disabled: boolean;
7
- onClick?: () => void;
8
- }
9
- export interface WizardPhase {
10
- steps: Array<WizardStep>;
11
- title: string;
12
- disabled: boolean;
13
- }
14
- declare const propTypes: {
15
- phases: PropTypes.Requireable<WizardPhase[]>;
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 SpsWizardSidebarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
22
- export declare function SpsWizardSidebar({ className, phases, }: SpsWizardSidebarProps): JSX.Element;
23
- export {};
1
+ import * as PropTypes from "../prop-types";
2
+ export interface WizardStep {
3
+ title: string;
4
+ percentComplete: number;
5
+ active: boolean;
6
+ disabled: boolean;
7
+ onClick?: () => void;
8
+ }
9
+ export interface WizardPhase {
10
+ steps: WizardStep[];
11
+ title: string;
12
+ disabled: boolean;
13
+ }
14
+ declare const propTypes: {
15
+ phases: PropTypes.Requireable<WizardPhase[]>;
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 SpsWizardSidebarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
22
+ export declare function SpsWizardSidebar({ className, phases, }: SpsWizardSidebarProps): JSX.Element;
23
+ export {};
@@ -1,14 +1,14 @@
1
- import { WizardSubstepConditions } from '@spscommerce/ds-shared';
2
- import * as PropTypes from '../prop-types';
3
- declare const propTypes: {
4
- condition: PropTypes.Validator<WizardSubstepConditions>;
5
- display: PropTypes.Validator<string>;
6
- orderPosition: PropTypes.Validator<string | number>;
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 SpsWizardSubstepProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
13
- export declare function SpsWizardSubstep(props: SpsWizardSubstepProps): JSX.Element;
14
- export {};
1
+ import { WizardSubstepConditions } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ declare const propTypes: {
4
+ condition: PropTypes.Validator<WizardSubstepConditions>;
5
+ display: PropTypes.Validator<string>;
6
+ orderPosition: PropTypes.Validator<string | number>;
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 SpsWizardSubstepProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
13
+ export declare function SpsWizardSubstep(props: SpsWizardSubstepProps): JSX.Element;
14
+ export {};
@@ -1,3 +1,3 @@
1
- export * from './SpsWizard.examples';
2
- export * from './SpsWizardSidebar';
3
- export * from './SpsWizardSubstep';
1
+ export * from "./SpsWizard.examples";
2
+ export * from "./SpsWizardSidebar";
3
+ export * from "./SpsWizardSubstep";
@@ -1,14 +1,14 @@
1
- import { SpsIcon } from '@spscommerce/ds-shared';
2
- import * as PropTypes from '../prop-types';
3
- declare const propTypes: {
4
- heading: PropTypes.Requireable<string>;
5
- icon: PropTypes.Requireable<SpsIcon>;
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 SpsWorkflowProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
- export declare function SpsWorkflow(props: SpsWorkflowProps): JSX.Element;
13
- export declare function SpsWf(props: SpsWorkflowProps): JSX.Element;
14
- export {};
1
+ import { SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ declare const propTypes: {
4
+ heading: PropTypes.Requireable<string>;
5
+ icon: PropTypes.Requireable<SpsIcon>;
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 SpsWorkflowProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
+ export declare function SpsWorkflow(props: SpsWorkflowProps): JSX.Element;
13
+ export declare function SpsWf(props: SpsWorkflowProps): JSX.Element;
14
+ export {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsWorkflowExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsWorkflowExamples: DSReactExamples;
@@ -1,11 +1,11 @@
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 SpsWorkflowDocumentProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
9
- export declare function SpsWorkflowDocument(props: SpsWorkflowDocumentProps): JSX.Element;
10
- export declare function SpsWfDoc(props: SpsWorkflowDocumentProps): JSX.Element;
11
- export {};
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 SpsWorkflowDocumentProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
9
+ export declare function SpsWorkflowDocument(props: SpsWorkflowDocumentProps): JSX.Element;
10
+ export declare function SpsWfDoc(props: SpsWorkflowDocumentProps): JSX.Element;
11
+ export {};
@@ -1,13 +1,13 @@
1
- import { SpsIcon } from '@spscommerce/ds-shared';
2
- import * as PropTypes from '../prop-types';
3
- declare const propTypes: {
4
- icon: PropTypes.Requireable<SpsIcon>;
5
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
6
- className: PropTypes.Requireable<string>;
7
- 'data-testid': PropTypes.Requireable<string>;
8
- unsafelyReplaceClassName: PropTypes.Requireable<string>;
9
- };
10
- export declare type SpsWorkflowDocumentStatusProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
11
- export declare function SpsWorkflowDocumentStatus(props: SpsWorkflowDocumentStatusProps): JSX.Element;
12
- export declare function SpsWfDs(props: SpsWorkflowDocumentStatusProps): JSX.Element;
13
- export {};
1
+ import { SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ declare const propTypes: {
4
+ icon: PropTypes.Requireable<SpsIcon>;
5
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
6
+ className: PropTypes.Requireable<string>;
7
+ "data-testid": PropTypes.Requireable<string>;
8
+ unsafelyReplaceClassName: PropTypes.Requireable<string>;
9
+ };
10
+ export declare type SpsWorkflowDocumentStatusProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
11
+ export declare function SpsWorkflowDocumentStatus(props: SpsWorkflowDocumentStatusProps): JSX.Element;
12
+ export declare function SpsWfDs(props: SpsWorkflowDocumentStatusProps): JSX.Element;
13
+ export {};
@@ -1,14 +1,14 @@
1
- import { SpsIcon } from '@spscommerce/ds-shared';
2
- import * as PropTypes from '../prop-types';
3
- declare const propTypes: {
4
- icon: PropTypes.Validator<SpsIcon>;
5
- title: PropTypes.Validator<string>;
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 SpsWorkflowStepProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
- export declare function SpsWorkflowStep(props: SpsWorkflowStepProps): JSX.Element;
13
- export declare function SpsWfStep(props: SpsWorkflowStepProps): JSX.Element;
14
- export {};
1
+ import { SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ declare const propTypes: {
4
+ icon: PropTypes.Validator<SpsIcon>;
5
+ title: PropTypes.Validator<string>;
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 SpsWorkflowStepProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
+ export declare function SpsWorkflowStep(props: SpsWorkflowStepProps): JSX.Element;
13
+ export declare function SpsWfStep(props: SpsWorkflowStepProps): JSX.Element;
14
+ export {};
@@ -1,5 +1,5 @@
1
- export * from './SpsWorkflow';
2
- export * from './SpsWorkflowStep';
3
- export * from './SpsWorkflowDocumentStatus';
4
- export * from './SpsWorkflowDocument';
5
- export * from './SpsWorkflow.examples';
1
+ export * from "./SpsWorkflow";
2
+ export * from "./SpsWorkflowStep";
3
+ export * from "./SpsWorkflowDocumentStatus";
4
+ export * from "./SpsWorkflowDocument";
5
+ export * from "./SpsWorkflow.examples";
@@ -1,14 +1,14 @@
1
- import { SpsIcon } from '@spscommerce/ds-shared';
2
- import * as PropTypes from '../prop-types';
3
- declare const propTypes: {
4
- icon: PropTypes.Validator<SpsIcon>;
5
- heading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
6
- subHeading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
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 SpsMicroZeroStateProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
13
- export declare function SpsMicroZeroState(props: SpsMicroZeroStateProps): JSX.Element;
14
- export {};
1
+ import { SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ declare const propTypes: {
4
+ icon: PropTypes.Validator<SpsIcon>;
5
+ heading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
6
+ subHeading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
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 SpsMicroZeroStateProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
13
+ export declare function SpsMicroZeroState(props: SpsMicroZeroStateProps): JSX.Element;
14
+ export {};
@@ -1,13 +1,13 @@
1
- import * as PropTypes from '../prop-types';
2
- declare const propTypes: {
3
- artwork: PropTypes.Validator<string>;
4
- heading: PropTypes.Validator<string>;
5
- subHeading: PropTypes.Requireable<string>;
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 SpsZeroStateProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
- export declare function SpsZeroState(props: SpsZeroStateProps): JSX.Element;
13
- export {};
1
+ import * as PropTypes from "../prop-types";
2
+ declare const propTypes: {
3
+ artwork: PropTypes.Validator<string>;
4
+ heading: PropTypes.Validator<string>;
5
+ subHeading: PropTypes.Requireable<string>;
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 SpsZeroStateProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
+ export declare function SpsZeroState(props: SpsZeroStateProps): JSX.Element;
13
+ export {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsZeroStateExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsZeroStateExamples: DSReactExamples;
@@ -1,3 +1,3 @@
1
- export * from './SpsMicroZeroState';
2
- export * from './SpsZeroState';
3
- export * from './SpsZeroState.examples';
1
+ export * from "./SpsMicroZeroState";
2
+ export * from "./SpsZeroState";
3
+ export * from "./SpsZeroState.examples";
package/package.json CHANGED
@@ -1,19 +1,13 @@
1
1
  {
2
2
  "name": "@spscommerce/ds-react",
3
3
  "description": "SPS Design System React components",
4
- "version": "4.10.0",
4
+ "version": "4.14.0",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
8
8
  "homepage": "https://github.com/spscommerce/design-system/tree/master/packages/@spscommerce/ds-react#readme",
9
- "scripts": {
10
- "build": "yarn run build:rollup",
11
- "build:rollup": "npx rollup -c rollup.config.js",
12
- "clean": "git clean -fdX",
13
- "pub": "node ../../../scripts/publish-package.js"
14
- },
15
9
  "main": "./lib/index.cjs.js",
16
- "module": "./lib/index.esm.js",
10
+ "module": "./lib/index.es.js",
17
11
  "types": "./lib/index.d.ts",
18
12
  "publishConfig": {
19
13
  "access": "public"
@@ -24,51 +18,50 @@
24
18
  "@react-types/shared": "^3.8.0",
25
19
  "@react-types/tabs": "^3.0.1",
26
20
  "axe-prop-types": "^1.0.9",
21
+ "clsx": "^1.0.3",
22
+ "lodash.isplainobject": "^4.0.6",
23
+ "nanoid": "^2.1.0",
24
+ "prop-types": "^15.7.2",
25
+ "react-beautiful-dnd": "^11.0.4",
26
+ "scroll-into-view-if-needed": "^2.2.20",
27
27
  "tiny-invariant": "^1.0.4"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "^4.10.0",
32
- "@spscommerce/ds-shared": "^4.10.0",
33
- "@spscommerce/positioning": "^4.10.0",
34
- "@spscommerce/utils": "^4.10.0",
35
- "clsx": "^1.0.3",
31
+ "@spscommerce/ds-colors": "4.14.0",
32
+ "@spscommerce/ds-shared": "4.14.0",
33
+ "@spscommerce/positioning": "4.14.0",
34
+ "@spscommerce/utils": "4.14.0",
36
35
  "moment": "^2.25.3",
37
36
  "moment-timezone": "^0.5.28",
38
- "lodash.isplainobject": "^4.0.6",
39
- "nanoid": "^2.1.6",
40
- "prop-types": "^15.7.2",
41
37
  "react": "^16.9.0",
42
- "react-beautiful-dnd": "^11.0.4",
43
- "react-dom": "^16.9.0",
44
- "scroll-into-view-if-needed": "^2.2.20"
38
+ "react-dom": "^16.9.0"
45
39
  },
46
40
  "devDependencies": {
47
- "@spscommerce/ds-colors": "^4.10.0",
48
- "@spscommerce/ds-shared": "^4.10.0",
49
- "@spscommerce/positioning": "^4.10.0",
50
- "@spscommerce/utils": "^4.10.0",
41
+ "@react-stately/collections": "^3.3.3",
42
+ "@spscommerce/ds-colors": "4.14.0",
43
+ "@spscommerce/ds-shared": "4.14.0",
44
+ "@spscommerce/positioning": "4.14.0",
45
+ "@spscommerce/utils": "4.14.0",
46
+ "@testing-library/jest-dom": "^4.2.4",
47
+ "@testing-library/react": "^9.3.2",
51
48
  "@types/prop-types": "^15.7.1",
52
- "@types/react": "^16.8.8",
53
- "clsx": "^1.0.3",
54
- "d3": "^5.16.0",
55
- "eventemitter3": "^3.1.0",
49
+ "@types/react": "^16.9.0",
56
50
  "expect": "^24.1.0",
57
- "intersection-observer": "^0.5.1",
58
- "jest-dom": "^3.1.1",
59
- "lodash.isempty": "^4.4.0",
60
- "lodash.isnil": "^4.0.0",
61
- "lodash.padstart": "^4.6.1",
62
51
  "lz-string": "^1.4.4",
63
52
  "moment": "^2.25.3",
64
53
  "moment-timezone": "^0.5.28",
65
- "nanoid": "^2.1.6",
66
- "prop-types": "^15.7.2",
67
54
  "raf-stub": "^2.0.2",
68
- "react-beautiful-dnd": "^11.0.4",
69
- "react-testing-library": "^5.4.4",
70
- "recharts": "^1.8.5",
71
- "scroll-into-view-if-needed": "^2.2.20",
72
- "typescript": "^3.5.3"
55
+ "react": "^16.9.0",
56
+ "react-dom": "^16.9.0",
57
+ "typescript": "^4.4.4"
58
+ },
59
+ "scripts": {
60
+ "build": "pnpm run build:js && pnpm run build:types",
61
+ "build:js": "vite build",
62
+ "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
63
+ "watch": "vite build --watch",
64
+ "clean": "git clean -fdX",
65
+ "pub": "pnpm pack && node ../../scripts/publish-package.js"
73
66
  }
74
67
  }
package/vite.config.js ADDED
@@ -0,0 +1,20 @@
1
+ import path from 'path';
2
+
3
+ import { defineConfig } from 'vite';
4
+
5
+ import pkg from './package.json';
6
+
7
+ export default defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: path.resolve(__dirname, 'src/index.ts'),
11
+ formats: ['es', 'cjs'],
12
+ fileName: (format) => `index.${format}.js`,
13
+ },
14
+ outDir: path.resolve(__dirname, './lib'),
15
+ emptyOutDir: false,
16
+ rollupOptions: {
17
+ external: pkg.peerDependencies ? Object.keys(pkg.peerDependencies) : [],
18
+ },
19
+ },
20
+ });