@spscommerce/ds-react 0.0.0-20260319-8230915ce

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 (307) hide show
  1. package/README.md +55 -0
  2. package/lib/advanced-search/SpsAdvancedSearch.d.ts +10 -0
  3. package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -0
  4. package/lib/advanced-search/index.d.ts +2 -0
  5. package/lib/autocomplete/SpsAutocomplete.d.ts +31 -0
  6. package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
  7. package/lib/autocomplete/index.d.ts +2 -0
  8. package/lib/button/SpsButton.d.ts +14 -0
  9. package/lib/button/SpsButton.examples.d.ts +2 -0
  10. package/lib/button/SpsButtonGroup.d.ts +4 -0
  11. package/lib/button/SpsIconButtonPanel.d.ts +4 -0
  12. package/lib/button/index.d.ts +4 -0
  13. package/lib/card/SpsCard.d.ts +11 -0
  14. package/lib/card/SpsCardHeader.d.ts +9 -0
  15. package/lib/card/SpsCardTabbedPane.d.ts +15 -0
  16. package/lib/card/index.d.ts +2 -0
  17. package/lib/card/useTab.d.ts +18 -0
  18. package/lib/card-v2/SpsCardV2.d.ts +2 -0
  19. package/lib/card-v2/SpsCardV2Footer.d.ts +2 -0
  20. package/lib/card-v2/SpsCardV2Header.d.ts +2 -0
  21. package/lib/card-v2/SpsCardV2Title.d.ts +2 -0
  22. package/lib/card-v2/index.d.ts +5 -0
  23. package/lib/checkbox/SpsCheckbox.d.ts +17 -0
  24. package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -0
  25. package/lib/checkbox/index.d.ts +2 -0
  26. package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +9 -0
  27. package/lib/checkbox-dropdown/index.d.ts +1 -0
  28. package/lib/clickable-tag/SpsClickableTag.d.ts +12 -0
  29. package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -0
  30. package/lib/clickable-tag/index.d.ts +2 -0
  31. package/lib/column-chooser/SpsColumnChooser.d.ts +16 -0
  32. package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
  33. package/lib/column-chooser/SpsColumnChooserColumn.d.ts +13 -0
  34. package/lib/column-chooser/index.d.ts +3 -0
  35. package/lib/conditional-field/SpsConditionalField.d.ts +6 -0
  36. package/lib/conditional-field/SpsConditionalField.examples.d.ts +2 -0
  37. package/lib/conditional-field/index.d.ts +2 -0
  38. package/lib/content-row/SpsContentRow.d.ts +16 -0
  39. package/lib/content-row/SpsContentRow.examples.d.ts +2 -0
  40. package/lib/content-row/SpsContentRowCol.d.ts +10 -0
  41. package/lib/content-row/SpsContentRowExpansion.d.ts +4 -0
  42. package/lib/content-row/index.d.ts +4 -0
  43. package/lib/context-bar/SpsContextBar.d.ts +6 -0
  44. package/lib/context-bar/index.d.ts +1 -0
  45. package/lib/currency-input/SpsCurrencyInput.d.ts +13 -0
  46. package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -0
  47. package/lib/currency-input/index.d.ts +2 -0
  48. package/lib/dateRangePicker/SpsDateRangePicker.d.ts +21 -0
  49. package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
  50. package/lib/dateRangePicker/index.d.ts +2 -0
  51. package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.d.ts +23 -0
  52. package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.examples.d.ts +2 -0
  53. package/lib/dateTimeRangePicker/index.d.ts +2 -0
  54. package/lib/datepicker/SpsDatepicker.d.ts +18 -0
  55. package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -0
  56. package/lib/datepicker/SpsDatepickerCalendar.d.ts +15 -0
  57. package/lib/datepicker/SpsDatepickerPopup.d.ts +11 -0
  58. package/lib/datepicker/index.d.ts +4 -0
  59. package/lib/datepicker/useCalendar.d.ts +2 -0
  60. package/lib/datepicker/useMoment.d.ts +3 -0
  61. package/lib/datepicker/utils.d.ts +38 -0
  62. package/lib/datepicker/validation.d.ts +11 -0
  63. package/lib/datetime/SpsDateTime.d.ts +11 -0
  64. package/lib/datetime/SpsDateTime.examples.d.ts +2 -0
  65. package/lib/datetime/SpsLocaleProvider.d.ts +7 -0
  66. package/lib/datetime/index.d.ts +3 -0
  67. package/lib/datetime/localeDefinitions.d.ts +20 -0
  68. package/lib/datetime/momentLocale.d.ts +3 -0
  69. package/lib/description-list/SpsDescriptionList.d.ts +9 -0
  70. package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -0
  71. package/lib/description-list/SpsDescriptionListDefinition.d.ts +5 -0
  72. package/lib/description-list/SpsDescriptionListTerm.d.ts +13 -0
  73. package/lib/description-list/index.d.ts +4 -0
  74. package/lib/dropdown/SpsDropdown.d.ts +24 -0
  75. package/lib/dropdown/SpsDropdown.examples.d.ts +2 -0
  76. package/lib/dropdown/index.d.ts +2 -0
  77. package/lib/feedback-block/SpsFeedbackBlock.d.ts +7 -0
  78. package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -0
  79. package/lib/feedback-block/index.d.ts +2 -0
  80. package/lib/fieldset/SpsFieldset.d.ts +22 -0
  81. package/lib/fieldset/SpsFieldset.examples.d.ts +2 -0
  82. package/lib/fieldset/index.d.ts +2 -0
  83. package/lib/filter-panel/SpsFilterPanel.d.ts +4 -0
  84. package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
  85. package/lib/filter-panel/SpsFilterPanelCap.d.ts +6 -0
  86. package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +10 -0
  87. package/lib/filter-panel/SpsFilterPanelSection.d.ts +11 -0
  88. package/lib/filter-panel/index.d.ts +5 -0
  89. package/lib/filter-tile-list/SpsFilterTile.d.ts +10 -0
  90. package/lib/filter-tile-list/SpsFilterTileList.d.ts +4 -0
  91. package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
  92. package/lib/filter-tile-list/index.d.ts +3 -0
  93. package/lib/focused-task/SpsFocusedTask.d.ts +8 -0
  94. package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -0
  95. package/lib/focused-task/SpsFocusedTaskActions.d.ts +4 -0
  96. package/lib/focused-task/index.d.ts +3 -0
  97. package/lib/form/AddRemoveFormRows.examples.d.ts +18 -0
  98. package/lib/form/SpsForm.d.ts +18 -0
  99. package/lib/form/SpsForm.examples.d.ts +1 -0
  100. package/lib/form/SpsFormComponentWrapper.d.ts +14 -0
  101. package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -0
  102. package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -0
  103. package/lib/form/hooks/formArray.d.ts +12 -0
  104. package/lib/form/hooks/formControl.d.ts +9 -0
  105. package/lib/form/hooks/formGroup.d.ts +10 -0
  106. package/lib/form/hooks/useCustomValidator.d.ts +7 -0
  107. package/lib/form/hooks/useForm.d.ts +2 -0
  108. package/lib/form/hooks/useFormControlId.d.ts +4 -0
  109. package/lib/form/hooks/useServerSideValidation.d.ts +3 -0
  110. package/lib/form/hooks/useSpsForm.d.ts +92 -0
  111. package/lib/form/index.d.ts +16 -0
  112. package/lib/form/validation/SpsValidators.d.ts +20 -0
  113. package/lib/form/validation/types.d.ts +10 -0
  114. package/lib/form/validation/validate.d.ts +2 -0
  115. package/lib/growler/SpsGrowler.d.ts +11 -0
  116. package/lib/growler/SpsGrowler.examples.d.ts +2 -0
  117. package/lib/growler/index.d.ts +3 -0
  118. package/lib/growler/useGrowlers.d.ts +13 -0
  119. package/lib/icon/SpsIcon.d.ts +9 -0
  120. package/lib/icon/index.d.ts +1 -0
  121. package/lib/incrementor/SpsIncrementor.d.ts +12 -0
  122. package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -0
  123. package/lib/incrementor/index.d.ts +2 -0
  124. package/lib/index.d.ts +74 -0
  125. package/lib/index.js +35288 -0
  126. package/lib/index.umd.cjs +11826 -0
  127. package/lib/input-group/SpsInputGroup.d.ts +12 -0
  128. package/lib/input-group/index.d.ts +1 -0
  129. package/lib/insight-tile/SpsInsightTile.d.ts +13 -0
  130. package/lib/insight-tile/SpsInsights.d.ts +4 -0
  131. package/lib/insight-tile/index.d.ts +2 -0
  132. package/lib/key-value-list/SpsKeyValueList.d.ts +6 -0
  133. package/lib/key-value-list/SpsKeyValueListItem.d.ts +8 -0
  134. package/lib/key-value-list/index.d.ts +2 -0
  135. package/lib/key-value-tag/SpsKeyValueTag.d.ts +11 -0
  136. package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -0
  137. package/lib/key-value-tag/index.d.ts +2 -0
  138. package/lib/label/SpsLabel.d.ts +15 -0
  139. package/lib/label/SpsLabel.examples.d.ts +2 -0
  140. package/lib/label/index.d.ts +2 -0
  141. package/lib/list-action-bar/SpsListActionBar.d.ts +7 -0
  142. package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -0
  143. package/lib/list-action-bar/index.d.ts +2 -0
  144. package/lib/list-toolbar/SpsListToolbar.d.ts +22 -0
  145. package/lib/list-toolbar/SpsListToolbar.examples.d.ts +4 -0
  146. package/lib/list-toolbar/SpsListToolbarSearch.d.ts +6 -0
  147. package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +4 -0
  148. package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +16 -0
  149. package/lib/list-toolbar/index.d.ts +5 -0
  150. package/lib/manifest.d.ts +2 -0
  151. package/lib/micro-block/SpsMicroBlock.d.ts +8 -0
  152. package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -0
  153. package/lib/micro-block/index.d.ts +2 -0
  154. package/lib/modal/SpsModal.d.ts +13 -0
  155. package/lib/modal/SpsModal.examples.d.ts +2 -0
  156. package/lib/modal/index.d.ts +3 -0
  157. package/lib/modal/useModals.d.ts +15 -0
  158. package/lib/multi-select/SpsMultiSelect.d.ts +37 -0
  159. package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -0
  160. package/lib/multi-select/index.d.ts +2 -0
  161. package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +20 -0
  162. package/lib/multi-value-text-input/SpsMultiValueTextInput.examples.d.ts +2 -0
  163. package/lib/multi-value-text-input/index.d.ts +2 -0
  164. package/lib/multi-value-text-input/splitStringByDelimiter.d.ts +2 -0
  165. package/lib/option-list/SpsOptionList.d.ts +3 -0
  166. package/lib/option-list/SpsOptionListProps.d.ts +89 -0
  167. package/lib/option-list/index.d.ts +1 -0
  168. package/lib/option-list/useOptionListOptions.d.ts +8 -0
  169. package/lib/option-list/useOptionListSearch.d.ts +13 -0
  170. package/lib/option-list/usePreventScroll.d.ts +7 -0
  171. package/lib/option-list/useSpsAction.d.ts +2 -0
  172. package/lib/option-list-v2/SpsOptionListV2.d.ts +0 -0
  173. package/lib/option-list-v2/index.d.ts +0 -0
  174. package/lib/page-title/SpsPageSubtitle.d.ts +4 -0
  175. package/lib/page-title/SpsPageTitle.d.ts +4 -0
  176. package/lib/page-title/SpsPageTitle.examples.d.ts +2 -0
  177. package/lib/page-title/index.d.ts +3 -0
  178. package/lib/pagination/SpsPageSelector.d.ts +12 -0
  179. package/lib/pagination/SpsPagination.d.ts +15 -0
  180. package/lib/pagination/SpsPagination.examples.d.ts +2 -0
  181. package/lib/pagination/index.d.ts +3 -0
  182. package/lib/product-bar/SpsProductBar.d.ts +13 -0
  183. package/lib/product-bar/SpsProductBar.examples.d.ts +2 -0
  184. package/lib/product-bar/SpsProductBarTab.d.ts +6 -0
  185. package/lib/product-bar/index.d.ts +3 -0
  186. package/lib/progress-bar/SpsProgressBar.d.ts +10 -0
  187. package/lib/progress-bar/SpsProgressBar.examples.d.ts +28 -0
  188. package/lib/progress-bar/index.d.ts +2 -0
  189. package/lib/progress-ring/SpsProgressRing.d.ts +8 -0
  190. package/lib/progress-ring/index.d.ts +1 -0
  191. package/lib/prop-types.d.ts +4 -0
  192. package/lib/radio-button/SpsRadioButton.d.ts +19 -0
  193. package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -0
  194. package/lib/radio-button/index.d.ts +2 -0
  195. package/lib/scrollable-container/SpsScrollableContainer.d.ts +6 -0
  196. package/lib/scrollable-container/index.d.ts +1 -0
  197. package/lib/search-results-bar/SpsSearchResultsBar.d.ts +8 -0
  198. package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
  199. package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +9 -0
  200. package/lib/search-results-bar/index.d.ts +3 -0
  201. package/lib/select/SpsSelect.d.ts +76 -0
  202. package/lib/select/SpsSelect.examples.d.ts +2 -0
  203. package/lib/select/index.d.ts +2 -0
  204. package/lib/side-nav/SpsSideNav.d.ts +38 -0
  205. package/lib/side-nav/SpsSideNav.examples.d.ts +2 -0
  206. package/lib/side-nav/SpsSideNavBranch.d.ts +9 -0
  207. package/lib/side-nav/index.d.ts +2 -0
  208. package/lib/slack-link/SpsSlackLink.d.ts +6 -0
  209. package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -0
  210. package/lib/slack-link/index.d.ts +2 -0
  211. package/lib/slide-in-panel/SpsSlideInPanel.d.ts +11 -0
  212. package/lib/slide-in-panel/SpsSlideInPanel.examples.d.ts +2 -0
  213. package/lib/slide-in-panel/index.d.ts +2 -0
  214. package/lib/sorting-header/SpsSortingHeader.d.ts +8 -0
  215. package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
  216. package/lib/sorting-header/SpsSortingHeaderCell.d.ts +12 -0
  217. package/lib/sorting-header/index.d.ts +3 -0
  218. package/lib/spinner/SpsSpinner.d.ts +9 -0
  219. package/lib/spinner/index.d.ts +1 -0
  220. package/lib/split-button/SpsSplitButton.d.ts +17 -0
  221. package/lib/split-button/SpsSplitButton.examples.d.ts +2 -0
  222. package/lib/split-button/index.d.ts +2 -0
  223. package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +21 -0
  224. package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +29 -0
  225. package/lib/stepped-progress-bar/index.d.ts +2 -0
  226. package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -0
  227. package/lib/summary-list/SpsSummaryListColumn.d.ts +9 -0
  228. package/lib/summary-list/SpsSummaryListExpansion.d.ts +4 -0
  229. package/lib/summary-list/SpsSummaryListRow.d.ts +8 -0
  230. package/lib/summary-list/index.d.ts +4 -0
  231. package/lib/table/SpsTable.d.ts +14 -0
  232. package/lib/table/SpsTable.examples.d.ts +2 -0
  233. package/lib/table/SpsTableBody.d.ts +5 -0
  234. package/lib/table/SpsTableCell.d.ts +10 -0
  235. package/lib/table/SpsTableContext.d.ts +20 -0
  236. package/lib/table/SpsTableHead.d.ts +7 -0
  237. package/lib/table/SpsTableHeader.d.ts +10 -0
  238. package/lib/table/SpsTableRow.d.ts +5 -0
  239. package/lib/table/index.d.ts +8 -0
  240. package/lib/table/useColumnResizer.d.ts +9 -0
  241. package/lib/table/usePinnedStyles.d.ts +6 -0
  242. package/lib/tabs/SpsTabs.d.ts +9 -0
  243. package/lib/tabs-v2/SpsTab.d.ts +7 -0
  244. package/lib/tabs-v2/SpsTabPanel.d.ts +6 -0
  245. package/lib/tabs-v2/SpsTabsV2.d.ts +3 -0
  246. package/lib/tabs-v2/index.d.ts +4 -0
  247. package/lib/tag/SpsTag.d.ts +9 -0
  248. package/lib/tag/SpsTag.examples.d.ts +2 -0
  249. package/lib/tag/index.d.ts +2 -0
  250. package/lib/task-queue/SpsTaskQueue.d.ts +30 -0
  251. package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -0
  252. package/lib/task-queue/index.d.ts +2 -0
  253. package/lib/text-input/SpsTextInput.d.ts +33 -0
  254. package/lib/text-input/SpsTextInput.examples.d.ts +2 -0
  255. package/lib/text-input/index.d.ts +2 -0
  256. package/lib/textarea/SpsTextarea.d.ts +18 -0
  257. package/lib/textarea/SpsTextarea.examples.d.ts +2 -0
  258. package/lib/textarea/index.d.ts +2 -0
  259. package/lib/tile-list/SpsTile.d.ts +15 -0
  260. package/lib/tile-list/SpsTileList.d.ts +4 -0
  261. package/lib/tile-list/SpsTileList.examples.d.ts +2 -0
  262. package/lib/tile-list/index.d.ts +3 -0
  263. package/lib/time-input/SpsTimeInput.d.ts +18 -0
  264. package/lib/time-input/SpsTimeInput.examples.d.ts +2 -0
  265. package/lib/time-input/index.d.ts +2 -0
  266. package/lib/toggle/SpsToggle.d.ts +18 -0
  267. package/lib/toggle/SpsToggle.examples.d.ts +2 -0
  268. package/lib/toggle/index.d.ts +2 -0
  269. package/lib/tooltip/SpsTooltip.d.ts +23 -0
  270. package/lib/tooltip/SpsTooltip.examples.d.ts +2 -0
  271. package/lib/tooltip/SpsTooltipTitle.d.ts +9 -0
  272. package/lib/tooltip/index.d.ts +3 -0
  273. package/lib/utils/FauxChangeEvent.d.ts +20 -0
  274. package/lib/utils/Provide.d.ts +24 -0
  275. package/lib/utils/bindProps.d.ts +33 -0
  276. package/lib/utils/contentOf.d.ts +2 -0
  277. package/lib/utils/getPosition.d.ts +11 -0
  278. package/lib/utils/getScrollParent.d.ts +1 -0
  279. package/lib/utils/index.d.ts +14 -0
  280. package/lib/utils/letterAndNumberKeys.d.ts +1 -0
  281. package/lib/utils/selectChildren.d.ts +5 -0
  282. package/lib/utils/useCheckDeprecatedProps.d.ts +1 -0
  283. package/lib/utils/useDidUpdateEffect.d.ts +11 -0
  284. package/lib/utils/useDocumentEventListener.d.ts +1 -0
  285. package/lib/utils/useElementId.d.ts +3 -0
  286. package/lib/utils/useInputPopup.d.ts +6 -0
  287. package/lib/utils/usePatchReducer.d.ts +2 -0
  288. package/lib/utils/usePortal.d.ts +6 -0
  289. package/lib/vertical-rule/SpsVerticalRule.d.ts +5 -0
  290. package/lib/vertical-rule/index.d.ts +1 -0
  291. package/lib/wizard/SpsWizard.examples.d.ts +2 -0
  292. package/lib/wizard/SpsWizardSidebar.d.ts +18 -0
  293. package/lib/wizard/SpsWizardSubstep.d.ts +9 -0
  294. package/lib/wizard/index.d.ts +3 -0
  295. package/lib/workflow/SpsWorkflow.DeprecationWarning.d.ts +2 -0
  296. package/lib/workflow/SpsWorkflow.d.ts +9 -0
  297. package/lib/workflow/SpsWorkflow.examples.d.ts +2 -0
  298. package/lib/workflow/SpsWorkflowDocument.d.ts +5 -0
  299. package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +8 -0
  300. package/lib/workflow/SpsWorkflowStep.d.ts +9 -0
  301. package/lib/workflow/index.d.ts +5 -0
  302. package/lib/zero-state/SpsMicroZeroState.d.ts +10 -0
  303. package/lib/zero-state/SpsZeroState.d.ts +9 -0
  304. package/lib/zero-state/SpsZeroState.examples.d.ts +2 -0
  305. package/lib/zero-state/index.d.ts +3 -0
  306. package/package.json +92 -0
  307. package/vite.config.mjs +20 -0
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ [//]: # "START_AUTOGENERATED"
2
+
3
+ ## [@spscommerce/ds-react](https://github.com/spscommerce/ui-angular/tree/master/packages/@spscommerce/ds-react#readme)
4
+
5
+ ![release: 1.1.0](https://img.shields.io/badge/release-1.1.0-blue.svg?style=flat-square)
6
+ ![build: passing](https://img.shields.io/badge/build-passing-green.svg?style=flat-square)
7
+ ![tests: failing](https://img.shields.io/badge/tests-failing-red.svg?style=flat-square)
8
+
9
+ SPS Design System React components
10
+
11
+ ### Installation
12
+
13
+ ```shell
14
+ npm install --save @spscommerce/ds-react
15
+ ```
16
+
17
+ #### Peer Dependencies
18
+
19
+ <div class="row">
20
+ <div class="col-5">
21
+ <table class="sps-table">
22
+ <thead class="sps-table__head">
23
+ <tr class="sps-table__row">
24
+ <th class="sps-table__header">
25
+ <span class="sps-table__header-cell-body">
26
+ Package
27
+ </span>
28
+ </th>
29
+ <th class="sps-table__header text-right">
30
+ <span class="sps-table__header-cell-body">
31
+ Version
32
+ </span>
33
+ </th>
34
+ </tr>
35
+ </thead>
36
+ <tbody class="sps-table__body">
37
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-shared#readme">@spscommerce/ds-shared</a></td><td class="sps-table__cell text-right">^1.1.0</td></tr>
38
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/positioning#readme">@spscommerce/positioning</a></td><td class="sps-table__cell text-right">^1.1.0</td></tr>
39
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/utils#readme">@spscommerce/utils</a></td><td class="sps-table__cell text-right">^1.1.0</td></tr>
40
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="lukeed/clsx">clsx</a></td><td class="sps-table__cell text-right">^1.0.3</td></tr>
41
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://momentjs.com">moment</a></td><td class="sps-table__cell text-right">^2.25.3</td></tr>
42
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="http://momentjs.com/timezone/">moment-timezone</a></td><td class="sps-table__cell text-right">^0.5.28</td></tr>
43
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://facebook.github.io/react/">prop-types</a></td><td class="sps-table__cell text-right">^15.7.2</td></tr>
44
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://reactjs.org/">react</a></td><td class="sps-table__cell text-right">^16.9.0</td></tr>
45
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://reactjs.org/">react-dom</a></td><td class="sps-table__cell text-right">^16.9.0</td></tr>
46
+ <tr class="sps-table__row"><td class="sps-table__cell"><a href="https://scroll-into-view-if-needed.netlify.com">scroll-into-view-if-needed</a></td><td class="sps-table__cell text-right">^2.2.20</td></tr>
47
+ </tbody>
48
+ </table>
49
+ </div>
50
+ <div class="col-7">
51
+ &nbsp;
52
+ </div>
53
+ </div>
54
+
55
+ [//]: # "END_AUTOGENERATED"
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { SpsFormProps } from "../form/SpsForm";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ export type SpsAdvancedSearchProps = React.PropsWithChildren<SpsGlobalPropTypes & SpsFormProps & {
5
+ controlsDisabled?: boolean;
6
+ footerLinks?: React.ReactNode | (() => React.ReactNode);
7
+ isOpen?: boolean;
8
+ onClear?: () => void;
9
+ }> & React.HTMLAttributes<HTMLDivElement>;
10
+ export declare function SpsAdvancedSearch(props: SpsAdvancedSearchProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsAdvancedSearchExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsAdvancedSearch";
2
+ export * from "./SpsAdvancedSearch.examples";
@@ -0,0 +1,31 @@
1
+ import type { 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 type { SpsGlobalPropTypes } from "../prop-types";
7
+ export type SpsAutocompleteProps = React.PropsWithChildren<SpsGlobalPropTypes & {
8
+ autoComplete?: string;
9
+ conformWidth?: boolean;
10
+ debounce?: number;
11
+ disabled?: boolean;
12
+ formControl?: SpsFormControl<string>;
13
+ formMeta?: SpsFormFieldMeta<string>;
14
+ icon?: SpsIcon;
15
+ onChange?: React.ChangeEventHandler;
16
+ onSelectionChange?: (newValue?: string) => void;
17
+ placeholder?: string;
18
+ suggestions: string[] | Promise<string[]> | ((filter?: string) => Eventually<string[]>);
19
+ textKey?: string;
20
+ captionKey?: string;
21
+ tallOptionList?: boolean;
22
+ value?: string;
23
+ zeroState?: string;
24
+ loading?: boolean;
25
+ maxHeightOptionListPx?: number;
26
+ maxHeightOptionListRem?: number;
27
+ disableOptionsMemoization?: boolean;
28
+ inputNotClearable?: boolean;
29
+ autoFocusOnSelection?: boolean;
30
+ }> & React.HTMLAttributes<HTMLInputElement>;
31
+ export declare function SpsAutocomplete({ className, debounce, disabled, conformWidth, formControl, formMeta, onChange, onSelectionChange, icon, id, placeholder, suggestions, unsafelyReplaceClassName, textKey, captionKey, tallOptionList, value, zeroState, loading, maxHeightOptionListPx, maxHeightOptionListRem, disableOptionsMemoization, inputNotClearable, autoFocusOnSelection, "data-testid": testId, ...rest }: SpsAutocompleteProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsAutocompleteExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsAutocomplete";
2
+ export * from "./SpsAutocomplete.examples";
@@ -0,0 +1,14 @@
1
+ import { ButtonKind, ButtonType } from "@spscommerce/ds-shared";
2
+ import type { SpsIcon } from "@spscommerce/ds-shared";
3
+ import * as React from "react";
4
+ import type { SpsGlobalPropTypes } from "../prop-types";
5
+ export type SpsButtonProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ disabled?: boolean;
7
+ href?: string;
8
+ icon?: SpsIcon;
9
+ kind?: ButtonKind;
10
+ spinning?: boolean;
11
+ spinningTitle?: string;
12
+ type?: ButtonType;
13
+ }> & React.HTMLProps<HTMLButtonElement | HTMLAnchorElement>;
14
+ export declare function SpsButton(props: SpsButtonProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsButtonExamples: DSReactExamples;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsButtonGroupProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
4
+ export declare function SpsButtonGroup(props: SpsButtonGroupProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsIconButtonPanelProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
4
+ export declare function SpsIconButtonPanel({ children, className, ...rest }: SpsIconButtonPanelProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from "./SpsButton";
2
+ export * from "./SpsButtonGroup";
3
+ export * from "./SpsButton.examples";
4
+ export * from "./SpsIconButtonPanel";
@@ -0,0 +1,11 @@
1
+ import { SpsIcon } from '@spscommerce/ds-shared';
2
+ import * as React from 'react';
3
+ import type { SpsGlobalPropTypes } from '../prop-types';
4
+ export type SpsCardProps = React.PropsWithChildren<SpsGlobalPropTypes & {
5
+ activeTab?: string;
6
+ footer?: React.ReactNode | (() => React.ReactNode);
7
+ headerContent?: React.ReactNode | (() => React.ReactNode);
8
+ headerIcon?: SpsIcon;
9
+ headerTitle?: string;
10
+ }> & React.HTMLAttributes<HTMLDivElement>;
11
+ export declare function SpsCard(props: SpsCardProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as React from "react";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ export type SpsCardHeaderProps = React.PropsWithChildren<SpsGlobalPropTypes & {
5
+ content?: React.ReactNode;
6
+ icon?: SpsIcon;
7
+ title?: string;
8
+ }> & React.HTMLAttributes<HTMLDivElement>;
9
+ export declare function SpsCardHeader(props: SpsCardHeaderProps): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { SpsIcon } from "@spscommerce/ds-shared";
2
+ import { TagKind } from "@spscommerce/ds-shared";
3
+ import * as React from "react";
4
+ import type { SpsGlobalPropTypes } from "../prop-types";
5
+ export type SpsCardTabbedPaneProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ activateTab?: (target: HTMLAnchorElement, index: number, children: React.ReactNode) => void;
7
+ active?: boolean;
8
+ icon?: SpsIcon;
9
+ label?: string;
10
+ index?: number;
11
+ tag?: string;
12
+ tagKind?: TagKind;
13
+ tagIcon?: SpsIcon;
14
+ }> & React.HTMLAttributes<HTMLAnchorElement>;
15
+ export declare function SpsCardTabbedPane(props: SpsCardTabbedPaneProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsCard";
2
+ export * from "./SpsCardTabbedPane";
@@ -0,0 +1,18 @@
1
+ export interface ActiveCardState {
2
+ index: any;
3
+ content: any;
4
+ }
5
+ export interface TabProps {
6
+ index: any;
7
+ active: any;
8
+ activateTab: any;
9
+ "data-testid"?: string;
10
+ }
11
+ export type TabHook = [ActiveCardState, any];
12
+ /**
13
+ * A react hook for tabs
14
+ * @param children
15
+ * @param activeTab
16
+ * @param isTabbedCard
17
+ */
18
+ export declare function useTab(children: any, activeTab: any, isTabbedCard: any): TabHook;
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export default function SpsCardV2({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export default function SpsCardV2Footer({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export default function SpsCardV2Header({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export default function SpsCardV2Title({ children, className, ...rest }: React.HTMLProps<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +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, };
@@ -0,0 +1,17 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ import type { SpsFormControl } from "../form/hooks/formControl";
4
+ import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
5
+ export type SpsCheckboxProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ autoComplete?: string;
7
+ checked?: boolean;
8
+ disabled?: boolean;
9
+ formControl?: SpsFormControl<boolean>;
10
+ formMeta?: SpsFormFieldMeta<boolean>;
11
+ indeterminate?: boolean;
12
+ inline?: boolean;
13
+ label?: string;
14
+ name?: string;
15
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
16
+ }> & React.HTMLAttributes<HTMLInputElement>;
17
+ export declare function SpsCheckbox({ checked: checkedProp, className, disabled, formControl, formMeta, id, indeterminate: indeterminateProp, inline, label, onChange, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsCheckboxProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsCheckboxExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsCheckbox";
2
+ export * from "./SpsCheckbox.examples";
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ import { SpsCheckbox } from "../checkbox/SpsCheckbox";
4
+ import { SpsDropdown } from "../dropdown/SpsDropdown";
5
+ type PassthruCheckboxProps = Pick<Parameters<typeof SpsCheckbox>[0], "checked" | "onChange" | "indeterminate" | "disabled">;
6
+ type PassthruDropdownProps = Pick<Parameters<typeof SpsDropdown>[0], "options">;
7
+ export type SpsCheckboxDropdownProps = React.PropsWithChildren<SpsGlobalPropTypes & PassthruCheckboxProps & PassthruDropdownProps> & React.HTMLAttributes<HTMLElement>;
8
+ export declare function SpsCheckboxDropdown(props: SpsCheckboxDropdownProps): React.JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./SpsCheckboxDropdown";
@@ -0,0 +1,12 @@
1
+ import { ClickableTagKind } from "@spscommerce/ds-shared";
2
+ import * as React from "react";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ export type SpsClickableTagProps = React.PropsWithChildren<SpsGlobalPropTypes & {
5
+ disabled?: boolean;
6
+ href?: string;
7
+ kind?: ClickableTagKind;
8
+ onAdd?: () => void;
9
+ onRemove?: () => void;
10
+ wrap?: boolean;
11
+ }> & React.HTMLAttributes<HTMLDivElement>;
12
+ export declare function SpsClickableTag(props: SpsClickableTagProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsClickableTagExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsClickableTag";
2
+ export * from "./SpsClickableTag.examples";
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsColumnChooserProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ maxSelectedColumns?: number | null;
5
+ unselectedColumns?: any[];
6
+ selectedColumns?: any[];
7
+ onApplyChanges?: (selectedColumns: ColumnProps[]) => void;
8
+ maxVisibleUnselectedColumns?: number;
9
+ updateInitialState?: boolean;
10
+ }> & React.HTMLAttributes<HTMLDivElement>;
11
+ export interface ColumnProps {
12
+ name: string;
13
+ value: string;
14
+ mandatory?: boolean;
15
+ }
16
+ export declare function SpsColumnChooser(props: SpsColumnChooserProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsColumnChooserExamples: DSReactExamples;
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsColumnChooserColumnProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ index?: number;
5
+ key?: string;
6
+ columnId?: string;
7
+ ref?: React.MutableRefObject<HTMLDivElement>;
8
+ name?: string;
9
+ value?: string;
10
+ onDelete?: (columnValue: string) => void;
11
+ mandatory?: boolean;
12
+ }> & React.HTMLAttributes<HTMLDivElement>;
13
+ export declare function SpsColumnChooserColumn(props: SpsColumnChooserColumnProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from "./SpsColumnChooser";
2
+ export * from "./SpsColumnChooserColumn";
3
+ export * from "./SpsColumnChooser.examples";
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsConditionalFieldProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ showCondition?: boolean;
5
+ }> & React.HTMLAttributes<HTMLDivElement>;
6
+ export declare function SpsConditionalField({ showCondition, children, className, ...rest }: SpsConditionalFieldProps): React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsConditionalFieldExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsConditionalField";
2
+ export * from "./SpsConditionalField.examples";
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsContentRowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ alternateLayout?: boolean;
5
+ cardSpacing?: boolean;
6
+ expanded?: boolean;
7
+ initiallyExpanded?: boolean;
8
+ onBeforeCollapsed?: () => boolean;
9
+ onBeforeExpanded?: () => boolean;
10
+ onSelectionChange?: React.ChangeEventHandler<HTMLInputElement>;
11
+ onCollapsed?: () => void;
12
+ onExpanded?: () => void;
13
+ selectable?: boolean;
14
+ selected?: boolean;
15
+ }> & React.HTMLAttributes<HTMLDivElement>;
16
+ export declare function SpsContentRow(props: SpsContentRowProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsContentRowExamples: DSReactExamples;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsContentRowColProps = React.PropsWithChildren<SpsGlobalPropTypes & {
4
+ borderless?: boolean;
5
+ lean?: boolean;
6
+ leaner?: boolean;
7
+ widthPx?: number;
8
+ widthRem?: number;
9
+ }> & React.HTMLAttributes<HTMLDivElement>;
10
+ export declare function SpsContentRowCol(props: SpsContentRowColProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ export type SpsContentRowExpansionProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
4
+ export declare function SpsContentRowExpansion(props: SpsContentRowExpansionProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from "./SpsContentRow";
2
+ export * from "./SpsContentRowCol";
3
+ export * from "./SpsContentRowExpansion";
4
+ export * from "./SpsContentRow.examples";
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export declare const SpsContextBar: React.FC<{
3
+ viewing: React.ReactNode;
4
+ in?: React.ReactNode;
5
+ onChange?: () => void;
6
+ }>;
@@ -0,0 +1 @@
1
+ export * from "./SpsContextBar";
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import type { SpsGlobalPropTypes } from "../prop-types";
3
+ import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
4
+ export type SpsCurrencyInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
5
+ autoComplete?: string;
6
+ disabled?: boolean;
7
+ formMeta?: SpsFormFieldMeta<number>;
8
+ name?: string;
9
+ onChange?: (newValue: number) => void;
10
+ ref?: React.MutableRefObject<HTMLDivElement>;
11
+ value?: number;
12
+ }> & React.HTMLAttributes<HTMLInputElement>;
13
+ export declare function SpsCurrencyInput({ className, disabled, formMeta, id, name, onChange, ref, title, value, ...rest }: SpsCurrencyInputProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsCurrencyInputExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsCurrencyInput";
2
+ export * from "./SpsCurrencyInput.examples";
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import type { SimpleDate, SimpleDateRange, DatePreset } from "@spscommerce/ds-shared";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
5
+ export type SpsDateRangePickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ autoComplete?: string;
7
+ currentUser?: any;
8
+ disabled?: boolean;
9
+ formMeta?: SpsFormFieldMeta<SimpleDateRange | null | undefined>;
10
+ maxDate?: SimpleDate;
11
+ minDate?: SimpleDate;
12
+ onChange?: (newDateRange?: SimpleDateRange | null, preset?: DatePreset["definition"]) => void;
13
+ presets?: DatePreset[];
14
+ selectedPreset?: string;
15
+ onPresetChange?: (newPreset?: string) => void;
16
+ value?: SimpleDateRange | null;
17
+ showTwoMonths?: boolean;
18
+ format?: string;
19
+ }> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange" | "min" | "max" | "value">;
20
+ export declare const DEFAULT_PRESETS: DatePreset[];
21
+ export declare function SpsDateRangePicker({ children, className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, presets, selectedPreset: presetProp, onPresetChange, value, showTwoMonths, format, "data-testid": testId, ...rest }: SpsDateRangePickerProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsDateRangePickerExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsDateRangePicker";
2
+ export * from "./SpsDateRangePicker.examples";
@@ -0,0 +1,23 @@
1
+ import * as React from "react";
2
+ import type { SimpleMomentRange, SimpleDate, DateTimePreset } from "@spscommerce/ds-shared";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
5
+ export type SpsDateTimeRangePickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ currentUser?: any;
7
+ disabled?: boolean;
8
+ formMeta?: SpsFormFieldMeta<SimpleMomentRange | undefined>;
9
+ maxDate?: SimpleDate;
10
+ minDate?: SimpleDate;
11
+ onChange?: (newDateTimeRange?: SimpleMomentRange) => void;
12
+ presets?: DateTimePreset[];
13
+ value?: SimpleMomentRange;
14
+ showTwoMonths?: boolean;
15
+ twentyFourHour?: boolean;
16
+ format?: string;
17
+ placeholder12h?: string;
18
+ placeholder24h?: string;
19
+ selectedPreset?: string;
20
+ onPresetChange?: (newPreset?: string | null) => void;
21
+ }> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange" | "min" | "max" | "value">;
22
+ export declare const DEFAULT_DATETIME_PRESETS: DateTimePreset[];
23
+ export declare function SpsDateTimeRangePicker({ className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, presets, value, showTwoMonths, twentyFourHour, format, "data-testid": testId, placeholder24h, placeholder12h, selectedPreset: presetProp, onPresetChange, }: SpsDateTimeRangePickerProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsDateTimeRangePickerExamples: DSReactExamples;
@@ -0,0 +1,2 @@
1
+ export * from "./SpsDateTimeRangePicker";
2
+ export * from "./SpsDateTimeRangePicker.examples";
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import type { SimpleDate } from "@spscommerce/ds-shared";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
5
+ export type SpsDatepickerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
6
+ autoComplete?: string;
7
+ currentUser?: any;
8
+ disabled?: boolean;
9
+ formMeta?: SpsFormFieldMeta<SimpleDate | undefined>;
10
+ maxDate?: SimpleDate;
11
+ minDate?: SimpleDate;
12
+ onChange?: (newDate: SimpleDate) => void;
13
+ value?: SimpleDate;
14
+ format?: string;
15
+ showTwoMonths?: boolean;
16
+ autoCloseOnSelect?: boolean;
17
+ }> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value">;
18
+ export declare function SpsDatepicker({ children, className, currentUser, disabled, formMeta, id, maxDate, minDate, onChange, value, format, showTwoMonths, autoCloseOnSelect, "data-testid": testId, ...rest }: SpsDatepickerProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { DSReactExamples } from "@spscommerce/ds-shared";
2
+ export declare const SpsDatepickerExamples: DSReactExamples;
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ import type { SimpleDate, SimpleDateRange } from "@spscommerce/ds-shared";
3
+ import type { SpsGlobalPropTypes } from "../prop-types";
4
+ export type SpsDatepickerCalendarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
5
+ selectedRange?: SimpleDateRange;
6
+ isOpen?: boolean;
7
+ maxDate?: SimpleDate;
8
+ minDate?: SimpleDate;
9
+ currentUser?: any;
10
+ onNewSelection: (date: SimpleDate) => void;
11
+ selectedDate?: SimpleDate;
12
+ showTwoMonths?: boolean;
13
+ selectedPreset?: string | null;
14
+ }> & React.HTMLAttributes<HTMLDivElement>;
15
+ export declare function SpsDatepickerCalendar(props: SpsDatepickerCalendarProps): React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export type SpsDatepickerPopupProps = React.PropsWithChildren<{
3
+ attachTo: React.MutableRefObject<HTMLElement | null>;
4
+ isOpen: boolean;
5
+ }> & React.HTMLAttributes<HTMLDivElement>;
6
+ export declare const SpsDatepickerPopup: React.ForwardRefExoticComponent<{
7
+ attachTo: React.MutableRefObject<HTMLElement | null>;
8
+ isOpen: boolean;
9
+ } & {
10
+ children?: React.ReactNode | undefined;
11
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,4 @@
1
+ export * from "./SpsDatepicker";
2
+ export { SimpleDateUtils } from "./utils";
3
+ export * from "./validation";
4
+ export * from "./SpsDatepicker.examples";
@@ -0,0 +1,2 @@
1
+ import type { CalendarArray, SimpleDate } from "@spscommerce/ds-shared";
2
+ export declare function useCalendar(month: SimpleDate): CalendarArray;
@@ -0,0 +1,3 @@
1
+ import type { SimpleDate } from "@spscommerce/ds-shared";
2
+ import type { Moment } from "moment";
3
+ export declare function useMoment(date: SimpleDate): Moment | null;