@spscommerce/ds-react 5.0.0-rc1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) 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 +22 -22
  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 +27 -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 +16 -16
  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/conditional-field/SpsConditionalField.d.ts +11 -0
  39. package/lib/conditional-field/SpsConditionalField.examples.d.ts +2 -0
  40. package/lib/conditional-field/index.d.ts +2 -0
  41. package/lib/content-row/SpsContentRow.d.ts +22 -21
  42. package/lib/content-row/SpsContentRow.examples.d.ts +2 -2
  43. package/lib/content-row/SpsContentRowCol.d.ts +15 -15
  44. package/lib/content-row/SpsContentRowExpansion.d.ts +10 -10
  45. package/lib/content-row/index.d.ts +4 -4
  46. package/lib/currency-input/SpsCurrencyInput.d.ts +18 -18
  47. package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -2
  48. package/lib/currency-input/index.d.ts +2 -2
  49. package/lib/dateRangePicker/SpsDateRangePicker.d.ts +23 -23
  50. package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -2
  51. package/lib/dateRangePicker/index.d.ts +2 -2
  52. package/lib/datepicker/SpsDatepicker.d.ts +19 -19
  53. package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -2
  54. package/lib/datepicker/index.d.ts +2 -2
  55. package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +20 -20
  56. package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -18
  57. package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +13 -13
  58. package/lib/datepicker-v2/SpsDatepickerV2.d.ts +18 -18
  59. package/lib/datepicker-v2/index.d.ts +4 -4
  60. package/lib/datepicker-v2/useCalendar.d.ts +2 -2
  61. package/lib/datepicker-v2/useMoment.d.ts +3 -3
  62. package/lib/datepicker-v2/utils.d.ts +22 -22
  63. package/lib/datepicker-v2/validation.d.ts +10 -10
  64. package/lib/datetime/SpsDateTime.d.ts +26 -17
  65. package/lib/datetime/SpsDateTime.examples.d.ts +2 -2
  66. package/lib/datetime/index.d.ts +2 -2
  67. package/lib/description-list/SpsDescriptionList.d.ts +14 -14
  68. package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -2
  69. package/lib/description-list/SpsDescriptionListDefinition.d.ts +11 -11
  70. package/lib/description-list/SpsDescriptionListTerm.d.ts +18 -18
  71. package/lib/description-list/index.d.ts +4 -4
  72. package/lib/dropdown/SpsDropdown.d.ts +24 -22
  73. package/lib/dropdown/SpsDropdown.examples.d.ts +2 -2
  74. package/lib/dropdown/index.d.ts +2 -2
  75. package/lib/feedback-block/SpsFeedbackBlock.d.ts +12 -12
  76. package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -2
  77. package/lib/feedback-block/index.d.ts +2 -2
  78. package/lib/fieldset/SpsFieldset.d.ts +22 -22
  79. package/lib/fieldset/SpsFieldset.examples.d.ts +2 -2
  80. package/lib/fieldset/index.d.ts +2 -2
  81. package/lib/filter-panel/SpsFilterPanel.d.ts +10 -10
  82. package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -2
  83. package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -11
  84. package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -16
  85. package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -16
  86. package/lib/filter-panel/index.d.ts +5 -5
  87. package/lib/filter-tile-list/SpsFilterTile.d.ts +15 -0
  88. package/lib/filter-tile-list/SpsFilterTileList.d.ts +10 -0
  89. package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
  90. package/lib/filter-tile-list/index.d.ts +3 -0
  91. package/lib/focused-task/SpsFocusedTask.d.ts +13 -13
  92. package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -2
  93. package/lib/focused-task/SpsFocusedTaskActions.d.ts +10 -10
  94. package/lib/focused-task/index.d.ts +3 -3
  95. package/lib/form/AddRemoveFormRows.examples.d.ts +18 -18
  96. package/lib/form/SpsForm.d.ts +24 -24
  97. package/lib/form/SpsForm.examples.d.ts +29 -29
  98. package/lib/form/SpsFormComponentWrapper.d.ts +19 -19
  99. package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -24
  100. package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -7
  101. package/lib/form/hooks/formArray.d.ts +12 -12
  102. package/lib/form/hooks/formControl.d.ts +9 -9
  103. package/lib/form/hooks/formGroup.d.ts +10 -14
  104. package/lib/form/hooks/useForm.d.ts +2 -2
  105. package/lib/form/hooks/useFormControlId.d.ts +4 -4
  106. package/lib/form/hooks/useServerSideValidation.d.ts +3 -3
  107. package/lib/form/hooks/useSpsForm.d.ts +74 -76
  108. package/lib/form/index.d.ts +15 -15
  109. package/lib/form/validation/SpsValidators.d.ts +16 -16
  110. package/lib/form/validation/types.d.ts +6 -9
  111. package/lib/form/validation/validate.d.ts +2 -2
  112. package/lib/growler/SpsGrowler.d.ts +17 -17
  113. package/lib/growler/SpsGrowler.examples.d.ts +2 -2
  114. package/lib/growler/index.d.ts +3 -3
  115. package/lib/growler/useGrowlers.d.ts +12 -11
  116. package/lib/i18n.d.ts +3 -3
  117. package/lib/icon/SpsIcon.d.ts +13 -13
  118. package/lib/icon/index.d.ts +1 -1
  119. package/lib/incrementor/SpsIncrementor.d.ts +15 -15
  120. package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -2
  121. package/lib/incrementor/index.d.ts +2 -2
  122. package/lib/index.cjs.js +8252 -14878
  123. package/lib/index.d.ts +71 -67
  124. package/lib/index.es.js +37616 -0
  125. package/lib/input-group/SpsInputGroup.d.ts +17 -17
  126. package/lib/input-group/index.d.ts +1 -1
  127. package/lib/insight-tile/SpsInsightTile.d.ts +18 -0
  128. package/lib/insight-tile/SpsInsightTile.examples.d.ts +2 -0
  129. package/lib/insight-tile/SpsInsights.d.ts +10 -0
  130. package/lib/insight-tile/index.d.ts +2 -0
  131. package/lib/key-value-list/SpsKeyValueList.d.ts +11 -11
  132. package/lib/key-value-list/SpsKeyValueList.examples.d.ts +2 -2
  133. package/lib/key-value-list/SpsKeyValueListItem.d.ts +13 -11
  134. package/lib/key-value-list/index.d.ts +3 -3
  135. package/lib/key-value-tag/SpsKeyValueTag.d.ts +16 -16
  136. package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -2
  137. package/lib/key-value-tag/index.d.ts +2 -2
  138. package/lib/label/SpsLabel.d.ts +20 -20
  139. package/lib/label/SpsLabel.examples.d.ts +2 -2
  140. package/lib/label/index.d.ts +2 -2
  141. package/lib/list-action-bar/SpsListActionBar.d.ts +12 -12
  142. package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -2
  143. package/lib/list-action-bar/index.d.ts +2 -2
  144. package/lib/list-toolbar/SpsListToolbar.d.ts +25 -25
  145. package/lib/list-toolbar/SpsListToolbar.examples.d.ts +3 -3
  146. package/lib/list-toolbar/SpsListToolbarSearch.d.ts +12 -12
  147. package/lib/list-toolbar/index.d.ts +3 -3
  148. package/lib/manifest.d.ts +2 -2
  149. package/lib/micro-block/SpsMicroBlock.d.ts +13 -13
  150. package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -2
  151. package/lib/micro-block/index.d.ts +2 -2
  152. package/lib/modal/SpsModal.d.ts +25 -25
  153. package/lib/modal/SpsModal.examples.d.ts +2 -2
  154. package/lib/modal/SpsModalAction.d.ts +18 -18
  155. package/lib/modal/SpsModalBody.d.ts +10 -10
  156. package/lib/modal/SpsModalFooter.d.ts +16 -16
  157. package/lib/modal/SpsModalHeader.d.ts +11 -11
  158. package/lib/modal/SpsModalOverlay.d.ts +12 -12
  159. package/lib/modal/index.d.ts +2 -2
  160. package/lib/modal-v2/SpsModalV2.d.ts +18 -18
  161. package/lib/modal-v2/index.d.ts +1 -1
  162. package/lib/multi-select/SpsMultiSelect.d.ts +33 -31
  163. package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -2
  164. package/lib/multi-select/index.d.ts +2 -2
  165. package/lib/option-list/SpsOptionList.d.ts +3 -3
  166. package/lib/option-list/SpsOptionListProps.d.ts +74 -69
  167. package/lib/option-list/index.d.ts +1 -1
  168. package/lib/option-list/useOptionListOptions.d.ts +8 -8
  169. package/lib/option-list/useOptionListSearch.d.ts +13 -13
  170. package/lib/option-list/useSpsAction.d.ts +2 -2
  171. package/lib/page-title/SpsPageSubtitle.d.ts +10 -10
  172. package/lib/page-title/SpsPageTitle.d.ts +10 -10
  173. package/lib/page-title/SpsPageTitle.examples.d.ts +2 -2
  174. package/lib/page-title/index.d.ts +3 -3
  175. package/lib/pagination/SpsPageSelector.d.ts +14 -14
  176. package/lib/pagination/SpsPagination.d.ts +16 -16
  177. package/lib/pagination/SpsPagination.examples.d.ts +2 -2
  178. package/lib/pagination/index.d.ts +3 -3
  179. package/lib/product-bar/SpsProductBar.d.ts +19 -19
  180. package/lib/product-bar/SpsProductBar.examples.d.ts +2 -2
  181. package/lib/product-bar/SpsProductBarTab.d.ts +6 -11
  182. package/lib/product-bar/index.d.ts +3 -3
  183. package/lib/progress-bar/SpsProgressBar.d.ts +15 -15
  184. package/lib/progress-bar/SpsProgressBar.examples.d.ts +27 -27
  185. package/lib/progress-bar/index.d.ts +2 -2
  186. package/lib/progress-ring/SpsProgressRing.d.ts +13 -13
  187. package/lib/progress-ring/index.d.ts +1 -1
  188. package/lib/prop-types.d.ts +23 -25
  189. package/lib/radio-button/SpsRadioButton.d.ts +23 -23
  190. package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -2
  191. package/lib/radio-button/index.d.ts +2 -2
  192. package/lib/scrollable-container/SpsScrollableContainer.d.ts +11 -11
  193. package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -14
  194. package/lib/scrollable-container/index.d.ts +2 -2
  195. package/lib/search-results-bar/SpsSearchResultsBar.d.ts +13 -13
  196. package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -2
  197. package/lib/search-results-bar/index.d.ts +2 -2
  198. package/lib/select/SpsSelect.d.ts +36 -35
  199. package/lib/select/SpsSelect.examples.d.ts +2 -2
  200. package/lib/select/index.d.ts +2 -2
  201. package/lib/setup-jest.d.ts +1 -1
  202. package/lib/side-nav/SpsSideNav.d.ts +36 -36
  203. package/lib/side-nav/SpsSideNav.examples.d.ts +2 -2
  204. package/lib/side-nav/SpsSideNavBranch.d.ts +9 -9
  205. package/lib/side-nav/index.d.ts +2 -2
  206. package/lib/slack-link/SpsSlackLink.d.ts +11 -11
  207. package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -2
  208. package/lib/slack-link/index.d.ts +2 -2
  209. package/lib/sorting-header/SpsSortingHeader.d.ts +13 -13
  210. package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -2
  211. package/lib/sorting-header/SpsSortingHeaderCell.d.ts +17 -17
  212. package/lib/sorting-header/index.d.ts +3 -3
  213. package/lib/spinner/SpsSpinner.d.ts +14 -14
  214. package/lib/spinner/SpsSpinner.examples.d.ts +2 -2
  215. package/lib/spinner/index.d.ts +2 -2
  216. package/lib/split-button/SpsSplitButton.d.ts +18 -17
  217. package/lib/split-button/SpsSplitButton.examples.d.ts +2 -2
  218. package/lib/split-button/index.d.ts +2 -2
  219. package/lib/stepped-progress-bar/SpsStepepdProgressBar.examples.d.ts +20 -0
  220. package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +23 -0
  221. package/lib/stepped-progress-bar/index.d.ts +2 -0
  222. package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -2
  223. package/lib/summary-list/SpsSummaryListColumn.d.ts +14 -14
  224. package/lib/summary-list/SpsSummaryListExpansion.d.ts +10 -10
  225. package/lib/summary-list/SpsSummaryListRow.d.ts +13 -13
  226. package/lib/summary-list/index.d.ts +4 -4
  227. package/lib/table/SpsTable.d.ts +14 -14
  228. package/lib/table/SpsTable.examples.d.ts +2 -2
  229. package/lib/table/SpsTableBody.d.ts +11 -11
  230. package/lib/table/SpsTableCell.d.ts +15 -15
  231. package/lib/table/SpsTableHead.d.ts +15 -15
  232. package/lib/table/SpsTableHeader.d.ts +17 -17
  233. package/lib/table/SpsTableRow.d.ts +14 -14
  234. package/lib/table/index.d.ts +7 -7
  235. package/lib/table/usePinnedStyles.d.ts +4 -4
  236. package/lib/tabs/SpsTabs.d.ts +14 -14
  237. package/lib/tabs-v2/SpsTab.d.ts +6 -6
  238. package/lib/tabs-v2/SpsTabPanel.d.ts +5 -5
  239. package/lib/tabs-v2/SpsTabsV2.d.ts +2 -2
  240. package/lib/tabs-v2/index.d.ts +4 -4
  241. package/lib/tag/SpsTag.d.ts +13 -13
  242. package/lib/tag/SpsTag.examples.d.ts +2 -2
  243. package/lib/tag/index.d.ts +2 -2
  244. package/lib/task-queue/SpsTaskQueue.d.ts +36 -35
  245. package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -2
  246. package/lib/task-queue/index.d.ts +2 -2
  247. package/lib/test-util.d.ts +1 -1
  248. package/lib/text-input/SpsTextInput.d.ts +22 -22
  249. package/lib/text-input/SpsTextInput.examples.d.ts +2 -2
  250. package/lib/text-input/index.d.ts +2 -2
  251. package/lib/textarea/SpsTextarea.d.ts +22 -22
  252. package/lib/textarea/SpsTextarea.examples.d.ts +2 -2
  253. package/lib/textarea/index.d.ts +2 -2
  254. package/lib/tile-list/SpsTile.d.ts +16 -16
  255. package/lib/tile-list/SpsTileList.d.ts +10 -10
  256. package/lib/tile-list/SpsTileList.examples.d.ts +2 -2
  257. package/lib/tile-list/index.d.ts +3 -3
  258. package/lib/toggle/SpsToggle.d.ts +27 -27
  259. package/lib/toggle/SpsToggle.examples.d.ts +2 -2
  260. package/lib/toggle/index.d.ts +2 -2
  261. package/lib/tooltip/SpsTooltip.d.ts +29 -29
  262. package/lib/tooltip/SpsTooltip.examples.d.ts +2 -2
  263. package/lib/tooltip/SpsTooltipTitle.d.ts +13 -0
  264. package/lib/tooltip/index.d.ts +3 -2
  265. package/lib/utils/FauxChangeEvent.d.ts +20 -20
  266. package/lib/utils/contentOf.d.ts +2 -2
  267. package/lib/utils/getPosition.d.ts +11 -10
  268. package/lib/utils/getScrollParent.d.ts +1 -1
  269. package/lib/utils/index.d.ts +11 -11
  270. package/lib/utils/selectChildren.d.ts +5 -7
  271. package/lib/utils/useCheckDeprecatedProps.d.ts +2 -2
  272. package/lib/utils/useDidUpdateEffect.d.ts +2 -2
  273. package/lib/utils/useDocumentEventListener.d.ts +1 -1
  274. package/lib/utils/useElementId.d.ts +2 -1
  275. package/lib/utils/useInputPopup.d.ts +6 -7
  276. package/lib/utils/usePatchReducer.d.ts +2 -1
  277. package/lib/utils/usePortal.d.ts +6 -6
  278. package/lib/vertical-rule/SpsVerticalRule.d.ts +11 -11
  279. package/lib/vertical-rule/index.d.ts +1 -1
  280. package/lib/wizard/SpsWizard.examples.d.ts +2 -2
  281. package/lib/wizard/SpsWizardSidebar.d.ts +23 -23
  282. package/lib/wizard/SpsWizardSubstep.d.ts +14 -14
  283. package/lib/wizard/index.d.ts +3 -3
  284. package/lib/workflow/SpsWorkflow.d.ts +14 -14
  285. package/lib/workflow/SpsWorkflow.examples.d.ts +2 -2
  286. package/lib/workflow/SpsWorkflowDocument.d.ts +11 -11
  287. package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +13 -13
  288. package/lib/workflow/SpsWorkflowStep.d.ts +14 -14
  289. package/lib/workflow/index.d.ts +5 -5
  290. package/lib/zero-state/SpsMicroZeroState.d.ts +14 -14
  291. package/lib/zero-state/SpsZeroState.d.ts +13 -13
  292. package/lib/zero-state/SpsZeroState.examples.d.ts +2 -2
  293. package/lib/zero-state/index.d.ts +3 -3
  294. package/package.json +34 -40
  295. package/vite.config.js +20 -0
  296. package/lib/_template/SpsComponent.test-unit.d.ts +0 -1
  297. package/lib/advanced-search/SpsAdvancedSearch.test-unit.d.ts +0 -1
  298. package/lib/autocomplete/SpsAutocomplete.test-unit.d.ts +0 -1
  299. package/lib/autocomplete/SpsAutocomplete.test-visual.d.ts +0 -1
  300. package/lib/button/SpsButton.test-unit.d.ts +0 -1
  301. package/lib/button/SpsButton.test-visual.d.ts +0 -1
  302. package/lib/card/SpsCard.test-unit.d.ts +0 -1
  303. package/lib/card/SpsCard.test-visual.d.ts +0 -1
  304. package/lib/checkbox/SpsCheckbox.test-unit.d.ts +0 -1
  305. package/lib/column-chooser/SpsColumnChooser.test-unit.d.ts +0 -1
  306. package/lib/content-row/SpsContentRow.test-unit.d.ts +0 -1
  307. package/lib/currency-input/SpsCurrencyInput.test-unit.d.ts +0 -1
  308. package/lib/dateRangePicker/SpsDateRangePicker.test-unit.d.ts +0 -1
  309. package/lib/datepicker/SpsDatepicker.test-unit.d.ts +0 -1
  310. package/lib/description-list/SpsDescriptionList.test-unit.d.ts +0 -1
  311. package/lib/dropdown/SpsDropdown.test-unit.d.ts +0 -1
  312. package/lib/feedback-block/SpsFeedbackBlock.test-unit.d.ts +0 -1
  313. package/lib/fieldset/SpsFieldset.test-unit.d.ts +0 -1
  314. package/lib/filter-panel/SpsFilterPanel.test-unit.d.ts +0 -1
  315. package/lib/focused-task/SpsFocusedTask.test-unit.d.ts +0 -1
  316. package/lib/growler/SpsGrowler.test-unit.d.ts +0 -1
  317. package/lib/incrementor/SpsIncrementor.test-unit.d.ts +0 -1
  318. package/lib/index.esm.js +0 -14666
  319. package/lib/key-value-list/SpsKeyValueList.test-unit.d.ts +0 -1
  320. package/lib/label/SpsLabel.test-unit.d.ts +0 -1
  321. package/lib/list-action-bar/SpsListActionBar.test-unit.d.ts +0 -1
  322. package/lib/list-toolbar/SpsListToolbar.test-unit.d.ts +0 -1
  323. package/lib/micro-block/SpsMicroBlock.test-unit.d.ts +0 -1
  324. package/lib/modal/SpsModal.test-unit.d.ts +0 -1
  325. package/lib/multi-select/SpsMultiSelect.test-unit.d.ts +0 -1
  326. package/lib/page-title/SpsPageTitle.test-unit.d.ts +0 -1
  327. package/lib/pagination/SpsPagination.test-unit.d.ts +0 -1
  328. package/lib/product-bar/SpsProductBar.test-unit.d.ts +0 -1
  329. package/lib/progress-bar/SpsProgressBar.test-unit.d.ts +0 -1
  330. package/lib/radio-button/SpsRadioButton.test-unit.d.ts +0 -1
  331. package/lib/search-results-bar/SpsSearchResultsBar.test-unit.d.ts +0 -1
  332. package/lib/select/SpsSelect.test-unit.d.ts +0 -1
  333. package/lib/side-nav/SpsSideNav.test-unit.d.ts +0 -1
  334. package/lib/slack-link/SpsSlackLink.test-unit.d.ts +0 -1
  335. package/lib/sorting-header/SpsSortingHeader.test-unit.d.ts +0 -1
  336. package/lib/spinner/SpsSpinner.test-unit.d.ts +0 -1
  337. package/lib/split-button/SpsSplitButton.test-unit.d.ts +0 -1
  338. package/lib/summary-list/SummaryList.test-unit.d.ts +0 -1
  339. package/lib/table/SpsTable.test-unit.d.ts +0 -1
  340. package/lib/tag/SpsTag.test-unit.d.ts +0 -1
  341. package/lib/task-queue/SpsTaskQueue.test-unit.d.ts +0 -1
  342. package/lib/text-input/SpsTextInput.test-unit.d.ts +0 -1
  343. package/lib/textarea/SpsTextarea.test-unit.d.ts +0 -1
  344. package/lib/tile-list/SpsTileList.test-unit.d.ts +0 -1
  345. package/lib/toggle/SpsToggle.test-unit.d.ts +0 -1
  346. package/lib/tooltip/SpsTooltip.test-unit.d.ts +0 -1
  347. package/lib/wizard/SpsWizard.test-unit.d.ts +0 -1
  348. package/lib/workflow/SpsWorkflow.test-unit.d.ts +0 -1
  349. package/lib/zero-state/SpsZeroState.test-unit.d.ts +0 -1
  350. package/rollup.config.js +0 -24
@@ -1,13 +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
- /** replace HTMLDivElement with appropriate specific type
10
- * e.g. HTMLButtonElement, or generic HTMLElement as applicable */
11
- export declare type SpsComponentProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
12
- export declare function SpsComponent({ children, className, someProp, ...rest }: SpsComponentProps): JSX.Element;
13
- export {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsComponentExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsComponentExamples: DSReactExamples;
@@ -1,2 +1,2 @@
1
- export * from './SpsComponent';
2
- export * from './SpsComponent.examples';
1
+ export * from "./SpsComponent";
2
+ export * from "./SpsComponent.examples";
@@ -1,22 +1,22 @@
1
- import * as React from 'react';
2
- import { SpsFormArrayMeta, SpsFormGroupMeta } from '../form/hooks/useSpsForm';
3
- import { SpsFormArray } from '../form/hooks/formArray';
4
- import { 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 {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsAdvancedSearchExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsAdvancedSearchExamples: DSReactExamples;
@@ -1,2 +1,2 @@
1
- export * from './SpsAdvancedSearch';
2
- export * from './SpsAdvancedSearch.examples';
1
+ export * from "./SpsAdvancedSearch";
2
+ export * from "./SpsAdvancedSearch.examples";
@@ -1,26 +1,27 @@
1
- import { SpsIcon } from '@spscommerce/ds-shared';
2
- import { Eventually } from '@spscommerce/utils';
3
- import * as React from 'react';
4
- import { SpsFormControl } from '../form/hooks/formControl';
5
- import { 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
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
20
- className: PropTypes.Requireable<string>;
21
- 'data-testid': PropTypes.Requireable<string>;
22
- unsafelyReplaceClassName: PropTypes.Requireable<string>;
23
- };
24
- export declare type SpsAutocompleteProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
25
- export declare function SpsAutocomplete({ className, debounce, disabled, formControl, formMeta, onChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, tallOptionList, value, zeroState, ...rest }: SpsAutocompleteProps): JSX.Element;
26
- export {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsAutocompleteExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsAutocompleteExamples: DSReactExamples;
@@ -1,2 +1,2 @@
1
- export * from './SpsAutocomplete';
2
- export * from './SpsAutocomplete.examples';
1
+ export * from "./SpsAutocomplete";
2
+ export * from "./SpsAutocomplete.examples";
@@ -1,18 +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 {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsButtonExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsButtonExamples: DSReactExamples;
@@ -1,10 +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 {};
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 {};
@@ -1,10 +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 {};
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 {};
@@ -1,4 +1,4 @@
1
- export * from './SpsButton';
2
- export * from './SpsButtonGroup';
3
- export * from './SpsButton.examples';
4
- export * from './SpsIconButtonPanel';
1
+ export * from "./SpsButton";
2
+ export * from "./SpsButtonGroup";
3
+ export * from "./SpsButton.examples";
4
+ export * from "./SpsIconButtonPanel";
@@ -1,16 +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 {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsCardExamples: DSReactExamples;
1
+ import type { DSReactExamples } from '@spscommerce/ds-shared';
2
+ export declare const SpsCardExamples: DSReactExamples;
@@ -1,14 +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 {};
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 {};
@@ -1,19 +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 {};
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 {};
@@ -1,3 +1,3 @@
1
- export * from './SpsCard';
2
- export * from './SpsCardTabbedPane';
3
- export * from './SpsCard.examples';
1
+ export * from "./SpsCard";
2
+ export * from "./SpsCardTabbedPane";
3
+ export * from "./SpsCard.examples";
@@ -1,18 +1,18 @@
1
- export declare type ActiveCardState = {
2
- index: any;
3
- content: any;
4
- };
5
- export declare type 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;
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;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export default function SpsCardV2({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
1
+ import * as React from "react";
2
+ export default function SpsCardV2({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export default function SpsCardV2Footer({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
1
+ import * as React from "react";
2
+ export default function SpsCardV2Footer({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export default function SpsCardV2Header({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
1
+ import * as React from "react";
2
+ export default function SpsCardV2Header({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export default function SpsCardV2Title({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
1
+ import * as React from "react";
2
+ export default function SpsCardV2Title({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): JSX.Element;
@@ -1,5 +1,5 @@
1
- import SpsCardV2 from './SpsCardV2';
2
- import SpsCardV2Footer from './SpsCardV2Footer';
3
- import SpsCardV2Header from './SpsCardV2Header';
4
- import SpsCardV2Title from './SpsCardV2Title';
5
- export { SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, };
1
+ import SpsCardV2 from "./SpsCardV2";
2
+ import SpsCardV2Footer from "./SpsCardV2Footer";
3
+ import SpsCardV2Header from "./SpsCardV2Header";
4
+ import SpsCardV2Title from "./SpsCardV2Title";
5
+ export { SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, };
@@ -1,21 +1,21 @@
1
- import * as React from 'react';
2
- import * as PropTypes from '../prop-types';
3
- import { SpsFormControl } from '../form/hooks/formControl';
4
- import { 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 {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsCheckboxExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsCheckboxExamples: DSReactExamples;
@@ -1,2 +1,2 @@
1
- export * from './SpsCheckbox';
2
- export * from './SpsCheckbox.examples';
1
+ export * from "./SpsCheckbox";
2
+ export * from "./SpsCheckbox.examples";
@@ -1,17 +1,17 @@
1
- import { 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 {};
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 {};
@@ -1 +1 @@
1
- export * from './SpsCheckboxDropdown';
1
+ export * from "./SpsCheckboxDropdown";
@@ -1,16 +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 {};
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 {};
@@ -1,2 +1,2 @@
1
- import { DSReactExamples } from '@spscommerce/ds-shared';
2
- export declare const SpsClickableTagExamples: DSReactExamples;
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsClickableTagExamples: DSReactExamples;
@@ -1,2 +1,2 @@
1
- export * from './SpsClickableTag';
2
- export * from './SpsClickableTag.examples';
1
+ export * from "./SpsClickableTag";
2
+ export * from "./SpsClickableTag.examples";