@spscommerce/ds-react 5.10.5-ie → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_template/SpsComponent.d.ts +15 -0
- package/lib/_template/SpsComponent.examples.d.ts +2 -0
- package/lib/_template/index.d.ts +2 -0
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +22 -0
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -0
- package/lib/advanced-search/index.d.ts +2 -0
- package/lib/autocomplete/SpsAutocomplete.d.ts +27 -0
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
- package/lib/autocomplete/index.d.ts +2 -0
- package/lib/button/SpsButton.d.ts +18 -0
- package/lib/button/SpsButton.examples.d.ts +2 -0
- package/lib/button/SpsButtonGroup.d.ts +10 -0
- package/lib/button/SpsIconButtonPanel.d.ts +10 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/card/SpsCard.d.ts +16 -0
- package/lib/card/SpsCard.examples.d.ts +2 -0
- package/lib/card/SpsCardHeader.d.ts +14 -0
- package/lib/card/SpsCardTabbedPane.d.ts +19 -0
- package/lib/card/index.d.ts +3 -0
- package/lib/card/useTab.d.ts +18 -0
- package/lib/card-v2/SpsCardV2.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Footer.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Header.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Title.d.ts +2 -0
- package/lib/card-v2/index.d.ts +5 -0
- package/lib/checkbox/SpsCheckbox.d.ts +21 -0
- package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -0
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +17 -0
- package/lib/checkbox-dropdown/index.d.ts +1 -0
- package/lib/clickable-tag/SpsClickableTag.d.ts +16 -0
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -0
- package/lib/clickable-tag/index.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooser.d.ts +19 -0
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +17 -0
- package/lib/column-chooser/index.d.ts +3 -0
- package/lib/conditional-field/SpsConditionalField.d.ts +11 -0
- package/lib/conditional-field/SpsConditionalField.examples.d.ts +2 -0
- package/lib/conditional-field/index.d.ts +2 -0
- package/lib/content-row/SpsContentRow.d.ts +22 -0
- package/lib/content-row/SpsContentRow.examples.d.ts +2 -0
- package/lib/content-row/SpsContentRowCol.d.ts +15 -0
- package/lib/content-row/SpsContentRowExpansion.d.ts +10 -0
- package/lib/content-row/index.d.ts +4 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +18 -0
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -0
- package/lib/currency-input/index.d.ts +2 -0
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +23 -0
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
- package/lib/dateRangePicker/index.d.ts +2 -0
- package/lib/datepicker/SpsDatepicker.d.ts +19 -0
- package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -0
- package/lib/datepicker/index.d.ts +2 -0
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +21 -0
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -0
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +13 -0
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +18 -0
- package/lib/datepicker-v2/index.d.ts +4 -0
- package/lib/datepicker-v2/useCalendar.d.ts +2 -0
- package/lib/datepicker-v2/useMoment.d.ts +3 -0
- package/lib/datepicker-v2/utils.d.ts +23 -0
- package/lib/datepicker-v2/validation.d.ts +10 -0
- package/lib/datetime/SpsDateTime.d.ts +26 -0
- package/lib/datetime/SpsDateTime.examples.d.ts +2 -0
- package/lib/datetime/index.d.ts +2 -0
- package/lib/description-list/SpsDescriptionList.d.ts +14 -0
- package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -0
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +11 -0
- package/lib/description-list/SpsDescriptionListTerm.d.ts +18 -0
- package/lib/description-list/index.d.ts +4 -0
- package/lib/dropdown/SpsDropdown.d.ts +24 -0
- package/lib/dropdown/SpsDropdown.examples.d.ts +2 -0
- package/lib/dropdown/index.d.ts +2 -0
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +12 -0
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -0
- package/lib/feedback-block/index.d.ts +2 -0
- package/lib/fieldset/SpsFieldset.d.ts +22 -0
- package/lib/fieldset/SpsFieldset.examples.d.ts +2 -0
- package/lib/fieldset/index.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanel.d.ts +10 -0
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +11 -0
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -0
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +16 -0
- package/lib/filter-panel/index.d.ts +5 -0
- package/lib/filter-tile-list/SpsFilterTile.d.ts +15 -0
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +10 -0
- package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
- package/lib/filter-tile-list/index.d.ts +3 -0
- package/lib/focused-task/SpsFocusedTask.d.ts +13 -0
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -0
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +10 -0
- package/lib/focused-task/index.d.ts +3 -0
- package/lib/form/AddRemoveFormRows.examples.d.ts +18 -0
- package/lib/form/SpsForm.d.ts +24 -0
- package/lib/form/SpsForm.examples.d.ts +41 -0
- package/lib/form/SpsFormComponentWrapper.d.ts +19 -0
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -0
- package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -0
- package/lib/form/hooks/formArray.d.ts +12 -0
- package/lib/form/hooks/formControl.d.ts +9 -0
- package/lib/form/hooks/formGroup.d.ts +10 -0
- package/lib/form/hooks/useForm.d.ts +2 -0
- package/lib/form/hooks/useFormControlId.d.ts +4 -0
- package/lib/form/hooks/useServerSideValidation.d.ts +3 -0
- package/lib/form/hooks/useSpsForm.d.ts +79 -0
- package/lib/form/index.d.ts +15 -0
- package/lib/form/validation/SpsValidators.d.ts +16 -0
- package/lib/form/validation/types.d.ts +7 -0
- package/lib/form/validation/validate.d.ts +2 -0
- package/lib/growler/SpsGrowler.d.ts +17 -0
- package/lib/growler/SpsGrowler.examples.d.ts +2 -0
- package/lib/growler/index.d.ts +3 -0
- package/lib/growler/useGrowlers.d.ts +12 -0
- package/lib/i18n.d.ts +3 -0
- package/lib/icon/SpsIcon.d.ts +13 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +15 -0
- package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -0
- package/lib/incrementor/index.d.ts +2 -0
- package/lib/index.cjs.js +8473 -0
- package/lib/index.d.ts +71 -0
- package/lib/index.es.js +38099 -0
- package/lib/input-group/SpsInputGroup.d.ts +17 -0
- package/lib/input-group/index.d.ts +1 -0
- package/lib/insight-tile/SpsInsightTile.d.ts +18 -0
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +2 -0
- package/lib/insight-tile/SpsInsights.d.ts +10 -0
- package/lib/insight-tile/index.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueList.d.ts +11 -0
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +13 -0
- package/lib/key-value-list/index.d.ts +3 -0
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +16 -0
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -0
- package/lib/key-value-tag/index.d.ts +2 -0
- package/lib/label/SpsLabel.d.ts +20 -0
- package/lib/label/SpsLabel.examples.d.ts +2 -0
- package/lib/label/index.d.ts +2 -0
- package/lib/list-action-bar/SpsListActionBar.d.ts +12 -0
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -0
- package/lib/list-action-bar/index.d.ts +2 -0
- package/lib/list-toolbar/SpsListToolbar.d.ts +25 -0
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +3 -0
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +12 -0
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +10 -0
- package/lib/list-toolbar/index.d.ts +4 -0
- package/lib/manifest.d.ts +2 -0
- package/lib/micro-block/SpsMicroBlock.d.ts +13 -0
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -0
- package/lib/micro-block/index.d.ts +2 -0
- package/lib/modal/SpsModal.d.ts +25 -0
- package/lib/modal/SpsModal.examples.d.ts +2 -0
- package/lib/modal/SpsModalAction.d.ts +18 -0
- package/lib/modal/SpsModalBody.d.ts +10 -0
- package/lib/modal/SpsModalFooter.d.ts +16 -0
- package/lib/modal/SpsModalHeader.d.ts +11 -0
- package/lib/modal/SpsModalOverlay.d.ts +12 -0
- package/lib/modal/index.d.ts +2 -0
- package/lib/modal-v2/SpsModalV2.d.ts +18 -0
- package/lib/modal-v2/index.d.ts +1 -0
- package/lib/multi-select/SpsMultiSelect.d.ts +34 -0
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/lib/multi-select/index.d.ts +2 -0
- package/lib/option-list/SpsOptionList.d.ts +3 -0
- package/lib/option-list/SpsOptionListProps.d.ts +75 -0
- package/lib/option-list/index.d.ts +1 -0
- package/lib/option-list/useOptionListOptions.d.ts +8 -0
- package/lib/option-list/useOptionListSearch.d.ts +13 -0
- package/lib/option-list/useSpsAction.d.ts +2 -0
- package/lib/page-title/SpsPageSubtitle.d.ts +10 -0
- package/lib/page-title/SpsPageTitle.d.ts +10 -0
- package/lib/page-title/SpsPageTitle.examples.d.ts +2 -0
- package/lib/page-title/index.d.ts +3 -0
- package/lib/pagination/SpsPageSelector.d.ts +14 -0
- package/lib/pagination/SpsPagination.d.ts +16 -0
- package/lib/pagination/SpsPagination.examples.d.ts +2 -0
- package/lib/pagination/index.d.ts +3 -0
- package/lib/product-bar/SpsProductBar.d.ts +19 -0
- package/lib/product-bar/SpsProductBar.examples.d.ts +2 -0
- package/lib/product-bar/SpsProductBarTab.d.ts +6 -0
- package/lib/product-bar/index.d.ts +3 -0
- package/lib/progress-bar/SpsProgressBar.d.ts +15 -0
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +27 -0
- package/lib/progress-bar/index.d.ts +2 -0
- package/lib/progress-ring/SpsProgressRing.d.ts +13 -0
- package/lib/progress-ring/index.d.ts +1 -0
- package/lib/prop-types.d.ts +23 -0
- package/lib/radio-button/SpsRadioButton.d.ts +23 -0
- package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -0
- package/lib/radio-button/index.d.ts +2 -0
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +11 -0
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -0
- package/lib/scrollable-container/index.d.ts +2 -0
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +13 -0
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
- package/lib/search-results-bar/index.d.ts +2 -0
- package/lib/select/SpsSelect.d.ts +37 -0
- package/lib/select/SpsSelect.examples.d.ts +2 -0
- package/lib/select/index.d.ts +2 -0
- package/lib/side-nav/SpsSideNav.d.ts +38 -0
- package/lib/side-nav/SpsSideNav.examples.d.ts +2 -0
- package/lib/side-nav/SpsSideNavBranch.d.ts +9 -0
- package/lib/side-nav/index.d.ts +2 -0
- package/lib/slack-link/SpsSlackLink.d.ts +11 -0
- package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -0
- package/lib/slack-link/index.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeader.d.ts +13 -0
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +17 -0
- package/lib/sorting-header/index.d.ts +3 -0
- package/lib/spinner/SpsSpinner.d.ts +14 -0
- package/lib/spinner/SpsSpinner.examples.d.ts +2 -0
- package/lib/spinner/index.d.ts +2 -0
- package/lib/split-button/SpsSplitButton.d.ts +18 -0
- package/lib/split-button/SpsSplitButton.examples.d.ts +2 -0
- package/lib/split-button/index.d.ts +2 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +25 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +24 -0
- package/lib/stepped-progress-bar/index.d.ts +2 -0
- package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -0
- package/lib/summary-list/SpsSummaryListColumn.d.ts +14 -0
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +10 -0
- package/lib/summary-list/SpsSummaryListRow.d.ts +13 -0
- package/lib/summary-list/index.d.ts +4 -0
- package/lib/table/SpsTable.d.ts +14 -0
- package/lib/table/SpsTable.examples.d.ts +2 -0
- package/lib/table/SpsTableBody.d.ts +11 -0
- package/lib/table/SpsTableCell.d.ts +15 -0
- package/lib/table/SpsTableHead.d.ts +15 -0
- package/lib/table/SpsTableHeader.d.ts +17 -0
- package/lib/table/SpsTableRow.d.ts +14 -0
- package/lib/table/index.d.ts +7 -0
- package/lib/table/usePinnedStyles.d.ts +4 -0
- package/lib/tabs/SpsTabs.d.ts +14 -0
- package/lib/tabs-v2/SpsTab.d.ts +6 -0
- package/lib/tabs-v2/SpsTabPanel.d.ts +5 -0
- package/lib/tabs-v2/SpsTabsV2.d.ts +2 -0
- package/lib/tabs-v2/index.d.ts +4 -0
- package/lib/tag/SpsTag.d.ts +13 -0
- package/lib/tag/SpsTag.examples.d.ts +2 -0
- package/lib/tag/index.d.ts +2 -0
- package/lib/task-queue/SpsTaskQueue.d.ts +36 -0
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -0
- package/lib/task-queue/index.d.ts +2 -0
- package/lib/test-util.d.ts +2 -0
- package/lib/text-input/SpsTextInput.d.ts +22 -0
- package/lib/text-input/SpsTextInput.examples.d.ts +2 -0
- package/lib/text-input/index.d.ts +2 -0
- package/lib/textarea/SpsTextarea.d.ts +22 -0
- package/lib/textarea/SpsTextarea.examples.d.ts +2 -0
- package/lib/textarea/index.d.ts +2 -0
- package/lib/tile-list/SpsTile.d.ts +16 -0
- package/lib/tile-list/SpsTileList.d.ts +10 -0
- package/lib/tile-list/SpsTileList.examples.d.ts +2 -0
- package/lib/tile-list/index.d.ts +3 -0
- package/lib/toggle/SpsToggle.d.ts +27 -0
- package/lib/toggle/SpsToggle.examples.d.ts +2 -0
- package/lib/toggle/index.d.ts +2 -0
- package/lib/tooltip/SpsTooltip.d.ts +29 -0
- package/lib/tooltip/SpsTooltip.examples.d.ts +2 -0
- package/lib/tooltip/SpsTooltipTitle.d.ts +13 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/utils/FauxChangeEvent.d.ts +20 -0
- package/lib/utils/contentOf.d.ts +2 -0
- package/lib/utils/getPosition.d.ts +11 -0
- package/lib/utils/getScrollParent.d.ts +1 -0
- package/lib/utils/index.d.ts +11 -0
- package/lib/utils/selectChildren.d.ts +5 -0
- package/lib/utils/useCheckDeprecatedProps.d.ts +2 -0
- package/lib/utils/useDidUpdateEffect.d.ts +2 -0
- package/lib/utils/useDocumentEventListener.d.ts +1 -0
- package/lib/utils/useElementId.d.ts +2 -0
- package/lib/utils/useInputPopup.d.ts +6 -0
- package/lib/utils/usePatchReducer.d.ts +2 -0
- package/lib/utils/usePortal.d.ts +6 -0
- package/lib/vertical-rule/SpsVerticalRule.d.ts +11 -0
- package/lib/vertical-rule/index.d.ts +1 -0
- package/lib/wizard/SpsWizard.examples.d.ts +2 -0
- package/lib/wizard/SpsWizardSidebar.d.ts +23 -0
- package/lib/wizard/SpsWizardSubstep.d.ts +14 -0
- package/lib/wizard/index.d.ts +3 -0
- package/lib/workflow/SpsWorkflow.d.ts +14 -0
- package/lib/workflow/SpsWorkflow.examples.d.ts +2 -0
- package/lib/workflow/SpsWorkflowDocument.d.ts +11 -0
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +13 -0
- package/lib/workflow/SpsWorkflowStep.d.ts +14 -0
- package/lib/workflow/index.d.ts +5 -0
- package/lib/zero-state/SpsMicroZeroState.d.ts +14 -0
- package/lib/zero-state/SpsZeroState.d.ts +13 -0
- package/lib/zero-state/SpsZeroState.examples.d.ts +2 -0
- package/lib/zero-state/index.d.ts +3 -0
- package/package.json +19 -13
- package/vite.config.js +1 -1
- package/rollup.config.js +0 -22
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +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 {};
|
|
@@ -0,0 +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 {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.11.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",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"@react-aria/tabs": "^3.0.1",
|
|
17
|
+
"@react-stately/tabs": "^3.0.1",
|
|
18
|
+
"@react-types/shared": "^3.8.0",
|
|
19
|
+
"@react-types/tabs": "^3.0.1",
|
|
16
20
|
"axe-prop-types": "^1.0.9",
|
|
17
21
|
"clsx": "^1.0.3",
|
|
18
22
|
"lodash.isplainobject": "^4.0.6",
|
|
@@ -23,20 +27,22 @@
|
|
|
23
27
|
"tiny-invariant": "^1.0.4"
|
|
24
28
|
},
|
|
25
29
|
"peerDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@spscommerce/ds-
|
|
28
|
-
"@spscommerce/
|
|
29
|
-
"@spscommerce/
|
|
30
|
+
"@react-stately/collections": "^3.3.3",
|
|
31
|
+
"@spscommerce/ds-colors": "5.11.0",
|
|
32
|
+
"@spscommerce/ds-shared": "5.11.0",
|
|
33
|
+
"@spscommerce/positioning": "5.11.0",
|
|
34
|
+
"@spscommerce/utils": "5.11.0",
|
|
30
35
|
"moment": "^2.25.3",
|
|
31
36
|
"moment-timezone": "^0.5.28",
|
|
32
37
|
"react": "^16.9.0",
|
|
33
38
|
"react-dom": "^16.9.0"
|
|
34
39
|
},
|
|
35
40
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@spscommerce/ds-
|
|
38
|
-
"@spscommerce/
|
|
39
|
-
"@spscommerce/
|
|
41
|
+
"@react-stately/collections": "^3.3.3",
|
|
42
|
+
"@spscommerce/ds-colors": "5.11.0",
|
|
43
|
+
"@spscommerce/ds-shared": "5.11.0",
|
|
44
|
+
"@spscommerce/positioning": "5.11.0",
|
|
45
|
+
"@spscommerce/utils": "5.11.0",
|
|
40
46
|
"@testing-library/react": "^9.3.2",
|
|
41
47
|
"@types/prop-types": "^15.7.1",
|
|
42
48
|
"@types/react": "^16.9.0",
|
|
@@ -50,12 +56,12 @@
|
|
|
50
56
|
"typescript": "^4.4.4"
|
|
51
57
|
},
|
|
52
58
|
"scripts": {
|
|
53
|
-
"build": "pnpm run build:
|
|
54
|
-
"build:
|
|
55
|
-
"build:js": "rollup -c rollup.config.js",
|
|
59
|
+
"build": "pnpm run build:js && pnpm run build:types",
|
|
60
|
+
"build:js": "vite build",
|
|
56
61
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
|
|
57
62
|
"watch": "vite build --watch",
|
|
58
63
|
"clean": "git clean -fdX",
|
|
59
64
|
"pub": "pnpm pack && node ../../scripts/publish-package.js"
|
|
60
|
-
}
|
|
65
|
+
},
|
|
66
|
+
"readme": "[//]: # \"START_AUTOGENERATED\"\n\n## [@spscommerce/ds-react](https://github.com/spscommerce/ui-angular/tree/master/packages/@spscommerce/ds-react#readme)\n\n\n\n\n\nSPS Design System React components \n \n ### Installation \n \n ```shell\nnpm install --save @spscommerce/ds-react\n```\n\n#### Peer Dependencies\n\n<div class=\"row\">\n <div class=\"col-5\"> \n <table class=\"sps-table\">\n <thead class=\"sps-table__head\">\n <tr class=\"sps-table__row\">\n <th class=\"sps-table__header\">\n <span class=\"sps-table__header-cell-body\"> \n Package\n </span>\n </th>\n <th class=\"sps-table__header text-right\">\n <span class=\"sps-table__header-cell-body\"> \n Version\n </span>\n </th>\n </tr>\n </thead>\n <tbody class=\"sps-table__body\">\n <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>\n<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>\n<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>\n<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>\n<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>\n<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>\n<tr class=\"sps-table__row\"><td class=\"sps-table__cell\"><a href=\"ai/nanoid\">nanoid</a></td><td class=\"sps-table__cell text-right\">^2.1.6</td></tr>\n<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>\n<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>\n<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>\n<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>\n </tbody>\n </table>\n </div>\n <div class=\"col-7\">\n \n </div>\n</div>\n\n[//]: # \"END_AUTOGENERATED\"\n"
|
|
61
67
|
}
|
package/vite.config.js
CHANGED
|
@@ -7,7 +7,7 @@ import pkg from './package.json';
|
|
|
7
7
|
export default defineConfig({
|
|
8
8
|
build: {
|
|
9
9
|
lib: {
|
|
10
|
-
entry: path.resolve(__dirname, '
|
|
10
|
+
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
11
11
|
formats: ['es', 'cjs'],
|
|
12
12
|
fileName: (format) => `index.${format}.js`,
|
|
13
13
|
},
|
package/rollup.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
2
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
3
|
-
import pkg from "./package.json";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
input: "dist/out-tsc/index.js",
|
|
7
|
-
output: [
|
|
8
|
-
{
|
|
9
|
-
file: pkg.main,
|
|
10
|
-
format: "cjs",
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
file: pkg.module,
|
|
14
|
-
format: "es",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
external: Object.keys(pkg.peerDependencies || {}),
|
|
18
|
-
plugins: [
|
|
19
|
-
resolve(),
|
|
20
|
-
commonjs(),
|
|
21
|
-
],
|
|
22
|
-
};
|