@spscommerce/ds-react 5.10.0 → 5.10.4
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/datepicker-v2/SpsDateRangePickerV2.d.ts +2 -1
- package/lib/index.cjs.js +74 -74
- package/lib/index.es.js +61 -11
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -1147,8 +1147,10 @@ function useSpsForm(value, validatorMap) {
|
|
|
1147
1147
|
if (action.path) {
|
|
1148
1148
|
if (action.markAsBlurred) {
|
|
1149
1149
|
const control = getMember$1(currentState.formMeta, action.path);
|
|
1150
|
-
control
|
|
1151
|
-
|
|
1150
|
+
if (control) {
|
|
1151
|
+
control.focused = false;
|
|
1152
|
+
control.revealAllErrors = true;
|
|
1153
|
+
}
|
|
1152
1154
|
} else {
|
|
1153
1155
|
newValue = cloneFormValue(currentState.formValue, action.path);
|
|
1154
1156
|
setPath(newValue, action.path, action.value);
|
|
@@ -1254,6 +1256,11 @@ function useSpsForm(value, validatorMap) {
|
|
|
1254
1256
|
scheduledDispatch.current = sd;
|
|
1255
1257
|
}
|
|
1256
1258
|
}
|
|
1259
|
+
useEffect(() => () => {
|
|
1260
|
+
if (scheduledDispatch.current) {
|
|
1261
|
+
window.clearTimeout(scheduledDispatch.current);
|
|
1262
|
+
}
|
|
1263
|
+
}, []);
|
|
1257
1264
|
return state;
|
|
1258
1265
|
}
|
|
1259
1266
|
const spsFormComponentWrapperPropTypes = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
@@ -1639,8 +1646,7 @@ function usePortal(id2, classes = []) {
|
|
|
1639
1646
|
target.classList.add(className);
|
|
1640
1647
|
}
|
|
1641
1648
|
parent.appendChild(target);
|
|
1642
|
-
} else if (target
|
|
1643
|
-
parent.removeChild(target);
|
|
1649
|
+
} else if (!parent.contains(target)) {
|
|
1644
1650
|
parent.appendChild(target);
|
|
1645
1651
|
}
|
|
1646
1652
|
return createPortal(jsx, target);
|
|
@@ -21878,6 +21884,7 @@ function SpsTooltip({
|
|
|
21878
21884
|
const [shown, setShown] = React.useState(false);
|
|
21879
21885
|
const rootElement = React.useRef(null);
|
|
21880
21886
|
const forElementRef = typeof forProp === "string" ? React.useRef(document.getElementById(forProp)) : forProp;
|
|
21887
|
+
const caretRef = React.useRef(null);
|
|
21881
21888
|
const clearHideDelay = React.useCallback(() => {
|
|
21882
21889
|
if (iref.current.hideTimer) {
|
|
21883
21890
|
window.clearTimeout(iref.current.hideTimer);
|
|
@@ -21927,6 +21934,35 @@ function SpsTooltip({
|
|
|
21927
21934
|
clearHideDelay();
|
|
21928
21935
|
iref.current.hideTimer = window.setTimeout(hide2, hideDelay);
|
|
21929
21936
|
}, []);
|
|
21937
|
+
const getSecondaryOffset = React.useCallback((pos) => {
|
|
21938
|
+
var _a, _b, _c, _d, _e, _f;
|
|
21939
|
+
const [primaryPosition, secondaryPosition] = pos.split(" ");
|
|
21940
|
+
const forElementBounds = (_a = forElementRef == null ? void 0 : forElementRef.current) == null ? void 0 : _a.getBoundingClientRect();
|
|
21941
|
+
const caretWidth = caretRef.current ? parseInt(((_b = getComputedStyle(caretRef.current)) == null ? void 0 : _b.width) || "0", 10) : 0;
|
|
21942
|
+
const caretDiagonal = caretWidth * Math.sqrt(2);
|
|
21943
|
+
const caretTransformationMargin = (caretDiagonal - caretWidth) / 2;
|
|
21944
|
+
if (["top", "bottom"].includes(primaryPosition) && secondaryPosition !== "middle") {
|
|
21945
|
+
if (!(forElementBounds == null ? void 0 : forElementBounds.width) || forElementBounds.width > 50) {
|
|
21946
|
+
return 0;
|
|
21947
|
+
}
|
|
21948
|
+
const caretLeft = caretRef.current ? parseInt(((_c = getComputedStyle(caretRef.current)) == null ? void 0 : _c.left) || "0", 10) : 0;
|
|
21949
|
+
const caretRight = caretRef.current ? parseInt(((_d = getComputedStyle(caretRef.current)) == null ? void 0 : _d.right) || "0", 10) : 0;
|
|
21950
|
+
const caretOffsetStart = caretLeft < caretRight ? caretLeft : caretRight;
|
|
21951
|
+
const caretOffsetToMiddle = caretOffsetStart - caretTransformationMargin + caretDiagonal / 2;
|
|
21952
|
+
return forElementBounds.width / 2 - caretOffsetToMiddle;
|
|
21953
|
+
} else if (["left", "right"].includes(primaryPosition) && secondaryPosition !== "middle") {
|
|
21954
|
+
if ((forElementBounds == null ? void 0 : forElementBounds.height) && forElementBounds.height > 50) {
|
|
21955
|
+
return 0;
|
|
21956
|
+
}
|
|
21957
|
+
const caretTop = caretRef.current ? parseInt(((_e = getComputedStyle(caretRef.current)) == null ? void 0 : _e.top) || "0", 10) : 0;
|
|
21958
|
+
const caretBottom = caretRef.current ? parseInt(((_f = getComputedStyle(caretRef.current)) == null ? void 0 : _f.bottom) || "0", 10) : 0;
|
|
21959
|
+
const caretOffsetStart = caretTop < caretBottom ? caretTop : caretBottom;
|
|
21960
|
+
const caretOffsetToMiddle = caretOffsetStart - caretTransformationMargin + caretDiagonal / 2;
|
|
21961
|
+
return forElementBounds.height / 2 - caretOffsetToMiddle;
|
|
21962
|
+
} else {
|
|
21963
|
+
return 0;
|
|
21964
|
+
}
|
|
21965
|
+
}, []);
|
|
21930
21966
|
React.useEffect(() => {
|
|
21931
21967
|
if (typeof forProp === "string") {
|
|
21932
21968
|
forElementRef.current = document.getElementById(forProp);
|
|
@@ -21997,7 +22033,7 @@ function SpsTooltip({
|
|
|
21997
22033
|
const [posStyle, altPositionUsed] = shown ? getPosition(rootElement, forElementRef, position3, __spreadValues({
|
|
21998
22034
|
altPosition,
|
|
21999
22035
|
setMinWidth: false,
|
|
22000
|
-
offsets: [offsets[0] - CARET_SPACING_PX, offsets[1]]
|
|
22036
|
+
offsets: [offsets[0] - CARET_SPACING_PX, offsets[1] + getSecondaryOffset(position3)]
|
|
22001
22037
|
}, portalContext)) : [{}, false];
|
|
22002
22038
|
const classes = clsx(unsafelyReplaceClassName || "sps-tooltip", "z-stratum-tip", `sps-tooltip--${kind}`, `sps-tooltip--pos-${(altPositionUsed ? altPosition : position3).replace(" ", "-")}`, shown && "sps-tooltip--shown", className);
|
|
22003
22039
|
return portal(/* @__PURE__ */ React.createElement("div", {
|
|
@@ -22013,6 +22049,7 @@ function SpsTooltip({
|
|
|
22013
22049
|
}, title) : title), /* @__PURE__ */ React.createElement("span", {
|
|
22014
22050
|
className: "sps-tooltip__body d-block"
|
|
22015
22051
|
}, children), /* @__PURE__ */ React.createElement("span", {
|
|
22052
|
+
ref: caretRef,
|
|
22016
22053
|
className: "sps-tooltip__caret"
|
|
22017
22054
|
})));
|
|
22018
22055
|
}
|
|
@@ -36794,7 +36831,8 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36794
36831
|
minDate,
|
|
36795
36832
|
onNewSelection,
|
|
36796
36833
|
selectedDate,
|
|
36797
|
-
selectedRange
|
|
36834
|
+
selectedRange,
|
|
36835
|
+
"data-testid": testId
|
|
36798
36836
|
} = _a, rest = __objRest(_a, [
|
|
36799
36837
|
"children",
|
|
36800
36838
|
"className",
|
|
@@ -36802,7 +36840,8 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36802
36840
|
"minDate",
|
|
36803
36841
|
"onNewSelection",
|
|
36804
36842
|
"selectedDate",
|
|
36805
|
-
"selectedRange"
|
|
36843
|
+
"selectedRange",
|
|
36844
|
+
"data-testid"
|
|
36806
36845
|
]);
|
|
36807
36846
|
const { t: t2 } = React.useContext(I18nContext);
|
|
36808
36847
|
const [viewMonth, setViewMonth] = React.useState(() => determineViewMonth(props2));
|
|
@@ -36843,12 +36882,14 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36843
36882
|
}
|
|
36844
36883
|
const classes = clsx(CSS_ELEMENT$1, className);
|
|
36845
36884
|
return viewMonth ? /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({
|
|
36885
|
+
"data-testid": `${testId}`,
|
|
36846
36886
|
className: classes
|
|
36847
36887
|
}, rest), {
|
|
36848
36888
|
onMouseOver: handleMouseEnter
|
|
36849
36889
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
36850
36890
|
className: `${CSS_ELEMENT$1}-head`
|
|
36851
36891
|
}, /* @__PURE__ */ React.createElement("button", {
|
|
36892
|
+
"data-testid": `${testId}_prev_month`,
|
|
36852
36893
|
type: "button",
|
|
36853
36894
|
tabIndex: -1,
|
|
36854
36895
|
disabled: SimpleDateUtils.isSameMonth(viewMonth, minDate),
|
|
@@ -36865,6 +36906,7 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36865
36906
|
className: `${CSS_ELEMENT$1}-head-label-year`
|
|
36866
36907
|
}, viewMonth.year)), /* @__PURE__ */ React.createElement("button", {
|
|
36867
36908
|
type: "button",
|
|
36909
|
+
"data-testid": `${testId}_next_month`,
|
|
36868
36910
|
tabIndex: -1,
|
|
36869
36911
|
disabled: SimpleDateUtils.isSameMonth(viewMonth, maxDate),
|
|
36870
36912
|
title: t2("design-system:datepicker.calendar.nextMonth"),
|
|
@@ -36885,7 +36927,8 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36885
36927
|
}, week.map((date2, j) => /* @__PURE__ */ React.createElement("div", {
|
|
36886
36928
|
key: j,
|
|
36887
36929
|
className: calendarCellClasses(date2),
|
|
36888
|
-
onClick: () => handleCellClick(date2)
|
|
36930
|
+
onClick: () => handleCellClick(date2),
|
|
36931
|
+
"data-testid": `${testId}_${SimpleDateUtils.toString(date2)}`
|
|
36889
36932
|
}, date2 ? date2.date : "")))))) : /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
36890
36933
|
}
|
|
36891
36934
|
Object.assign(SpsDatepickerCalendar, {
|
|
@@ -37081,7 +37124,8 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37081
37124
|
minDate,
|
|
37082
37125
|
onChange,
|
|
37083
37126
|
presets = DEFAULT_PRESETS,
|
|
37084
|
-
value
|
|
37127
|
+
value,
|
|
37128
|
+
"data-testid": testId
|
|
37085
37129
|
} = _Z, rest = __objRest(_Z, [
|
|
37086
37130
|
"children",
|
|
37087
37131
|
"className",
|
|
@@ -37092,7 +37136,8 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37092
37136
|
"minDate",
|
|
37093
37137
|
"onChange",
|
|
37094
37138
|
"presets",
|
|
37095
|
-
"value"
|
|
37139
|
+
"value",
|
|
37140
|
+
"data-testid"
|
|
37096
37141
|
]);
|
|
37097
37142
|
const { t: t2 } = React.useContext(I18nContext);
|
|
37098
37143
|
const { wrapperId, controlId } = useFormControlId(id2, formMeta);
|
|
@@ -37207,6 +37252,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37207
37252
|
}, /* @__PURE__ */ React.createElement("i", {
|
|
37208
37253
|
className: clsx("sps-text-input__icon", "sps-icon", "sps-icon-calendar")
|
|
37209
37254
|
}), selectedPreset && /* @__PURE__ */ React.createElement("div", {
|
|
37255
|
+
"data-testid": `${testId}_selected_preset`,
|
|
37210
37256
|
className: "sps-datepicker__selected-preset"
|
|
37211
37257
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
37212
37258
|
className: "sps-tag sps-tag--info"
|
|
@@ -37214,6 +37260,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37214
37260
|
type: "text",
|
|
37215
37261
|
ref: textInput,
|
|
37216
37262
|
className: "sps-text-input__input",
|
|
37263
|
+
"data-testid": `${testId}_date_input`,
|
|
37217
37264
|
id: controlId,
|
|
37218
37265
|
placeholder: !stringValue && !selectedPreset ? FORMAT : void 0,
|
|
37219
37266
|
onChange: handleTextInputChange,
|
|
@@ -37236,6 +37283,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37236
37283
|
}, t2("design-system:datepicker.presetsLabel")), /* @__PURE__ */ React.createElement("div", {
|
|
37237
37284
|
className: "sps-custom-control sps-custom-radio sps-custom-control--no-error"
|
|
37238
37285
|
}, /* @__PURE__ */ React.createElement("input", {
|
|
37286
|
+
"data-testid": `${testId}_presets_custom_input`,
|
|
37239
37287
|
type: "radio",
|
|
37240
37288
|
id: `sps-date-range-picker-${wrapperId}__range-custom`,
|
|
37241
37289
|
className: "sps-custom-control__input",
|
|
@@ -37250,6 +37298,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37250
37298
|
className: "sps-custom-control sps-custom-radio sps-custom-control--no-error"
|
|
37251
37299
|
}, /* @__PURE__ */ React.createElement("input", {
|
|
37252
37300
|
type: "radio",
|
|
37301
|
+
"data-testid": `${testId}_preset_option_${preset2.label}`,
|
|
37253
37302
|
id: `sps-date-range-picker-${wrapperId}__range-${i2}`,
|
|
37254
37303
|
name: `sps-date-range-picker-${wrapperId}__range`,
|
|
37255
37304
|
onChange: () => selectPreset(preset2),
|
|
@@ -37259,6 +37308,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
37259
37308
|
className: "sps-custom-control__label",
|
|
37260
37309
|
htmlFor: `sps-date-range-picker-${wrapperId}__range-${i2}`
|
|
37261
37310
|
}, getPresetText(preset2)))))), /* @__PURE__ */ React.createElement(SpsDatepickerCalendar, {
|
|
37311
|
+
"data-testid": `${testId}_calendar`,
|
|
37262
37312
|
selectedRange: Array.isArray(value) ? value : displayRange,
|
|
37263
37313
|
onNewSelection: handleNewSelection,
|
|
37264
37314
|
minDate,
|
|
@@ -38028,4 +38078,4 @@ Object.assign(SpsVr, {
|
|
|
38028
38078
|
propTypes,
|
|
38029
38079
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
38030
38080
|
});
|
|
38031
|
-
export { AsTypingErrorKeys, ContentOrderExample, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
|
38081
|
+
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
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.10.
|
|
4
|
+
"version": "5.10.4",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-stately/collections": "^3.3.3",
|
|
31
|
-
"@spscommerce/ds-colors": "5.10.
|
|
32
|
-
"@spscommerce/ds-shared": "5.10.
|
|
33
|
-
"@spscommerce/positioning": "5.10.
|
|
34
|
-
"@spscommerce/utils": "5.10.
|
|
31
|
+
"@spscommerce/ds-colors": "5.10.4",
|
|
32
|
+
"@spscommerce/ds-shared": "5.10.4",
|
|
33
|
+
"@spscommerce/positioning": "5.10.4",
|
|
34
|
+
"@spscommerce/utils": "5.10.4",
|
|
35
35
|
"moment": "^2.25.3",
|
|
36
36
|
"moment-timezone": "^0.5.28",
|
|
37
37
|
"react": "^16.9.0",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@react-stately/collections": "^3.3.3",
|
|
42
|
-
"@spscommerce/ds-colors": "5.10.
|
|
43
|
-
"@spscommerce/ds-shared": "5.10.
|
|
44
|
-
"@spscommerce/positioning": "5.10.
|
|
45
|
-
"@spscommerce/utils": "5.10.
|
|
42
|
+
"@spscommerce/ds-colors": "5.10.4",
|
|
43
|
+
"@spscommerce/ds-shared": "5.10.4",
|
|
44
|
+
"@spscommerce/positioning": "5.10.4",
|
|
45
|
+
"@spscommerce/utils": "5.10.4",
|
|
46
46
|
"@testing-library/react": "^9.3.2",
|
|
47
47
|
"@types/prop-types": "^15.7.1",
|
|
48
48
|
"@types/react": "^16.9.0",
|