@spscommerce/ds-react 5.12.1 → 5.13.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/index.es.js CHANGED
@@ -256,6 +256,7 @@ const SpsForm = React.forwardRef((props2, ref2) => {
256
256
  if (formMeta) {
257
257
  formMeta.markAsDirty();
258
258
  formMeta.markAsBlurred();
259
+ formMeta.markAsSubmitted();
259
260
  }
260
261
  onSubmit(event);
261
262
  }
@@ -637,6 +638,19 @@ var lodash_isplainobject = isPlainObject$1;
637
638
  const OnBlurErrorKeys = new Set();
638
639
  const AsTypingErrorKeys = new Set();
639
640
  const PreventativeErrorKeys = new Set();
641
+ const OnSubmitErrorKeys = new Set();
642
+ function addOnChangeErrorKey(errorKey) {
643
+ if (OnBlurErrorKeys.has(errorKey) || PreventativeErrorKeys.has(errorKey) || OnSubmitErrorKeys.has(errorKey)) {
644
+ return;
645
+ }
646
+ AsTypingErrorKeys.add(errorKey);
647
+ }
648
+ function addOnSubmitErrorKey(errorKey) {
649
+ if (OnBlurErrorKeys.has(errorKey) || PreventativeErrorKeys.has(errorKey) || AsTypingErrorKeys.has(errorKey)) {
650
+ return;
651
+ }
652
+ OnSubmitErrorKeys.add(errorKey);
653
+ }
640
654
  const moment$5 = moment$6.default || moment$6;
641
655
  const FORMAT = "MM/DD/YYYY";
642
656
  const FORMAT_PATTERN = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;
@@ -900,10 +914,10 @@ class SpsFormMetaBase {
900
914
  this.errors = null;
901
915
  this.revealAllErrors = false;
902
916
  this.preventativeErrors = [];
917
+ this.submitted = false;
903
918
  }
904
919
  setValidators(newValidators) {
905
- this.validators = newValidators;
906
- this.update(null);
920
+ this.update(this.path, null, null, newValidators);
907
921
  return this;
908
922
  }
909
923
  validate(newValue) {
@@ -926,7 +940,7 @@ class SpsFormMetaBase {
926
940
  return !!this.errors;
927
941
  }
928
942
  isVisibilyInvalid() {
929
- return this.errors && (this.revealAllErrors || !this.isPristine() && Object.keys(this.errors).some((key) => AsTypingErrorKeys.has(key)));
943
+ return this.errors && (this.revealAllErrors && !Object.keys(this.errors).some((key) => OnSubmitErrorKeys.has(key)) || this.revealAllErrors && Object.keys(this.errors).some((key) => OnSubmitErrorKeys.has(key)) && this.isSubmitted() || !this.isPristine() && Object.keys(this.errors).some((key) => AsTypingErrorKeys.has(key)));
930
944
  }
931
945
  hasError(errorKey) {
932
946
  return this.errors && Object.prototype.hasOwnProperty.call(this.errors, errorKey);
@@ -940,6 +954,9 @@ class SpsFormMetaBase {
940
954
  isRequired() {
941
955
  return this.validators && this.validators.indexOf(SpsValidators.required) > -1;
942
956
  }
957
+ isSubmitted() {
958
+ return this.submitted;
959
+ }
943
960
  onFocus() {
944
961
  }
945
962
  onBlur() {
@@ -1000,6 +1017,11 @@ class SpsFormFieldMeta extends SpsFormMetaBase {
1000
1017
  this.preventativeErrors = [];
1001
1018
  return this;
1002
1019
  }
1020
+ markAsSubmitted() {
1021
+ this.submitted = true;
1022
+ this.update(null);
1023
+ return this;
1024
+ }
1003
1025
  }
1004
1026
  class SpsFormSetMeta extends SpsFormFieldMeta {
1005
1027
  constructor(inferValOrPath, pathOrUpdate, updateWhenInferring) {
@@ -1052,6 +1074,13 @@ class SpsFormSetMeta extends SpsFormFieldMeta {
1052
1074
  }
1053
1075
  return this;
1054
1076
  }
1077
+ markAsSubmitted() {
1078
+ super.markAsSubmitted();
1079
+ for (const key of Object.keys(this.fields)) {
1080
+ this.fields[key].markAsSubmitted();
1081
+ }
1082
+ return this;
1083
+ }
1055
1084
  }
1056
1085
  class SpsFormGroupMeta extends SpsFormSetMeta {
1057
1086
  inferMembers(inferFromValue) {
@@ -1148,6 +1177,7 @@ function useSpsForm(value, validatorMap) {
1148
1177
  return controlSet;
1149
1178
  }, []);
1150
1179
  const scheduledDispatch = useRef();
1180
+ let currentValidatorMap = validatorMap;
1151
1181
  const reducer2 = useCallback$1((currentState, action) => {
1152
1182
  let newValue;
1153
1183
  scheduledDispatch.current = null;
@@ -1159,6 +1189,14 @@ function useSpsForm(value, validatorMap) {
1159
1189
  control.focused = false;
1160
1190
  control.revealAllErrors = true;
1161
1191
  }
1192
+ } else if (action.newValidators) {
1193
+ if (currentValidatorMap) {
1194
+ const controlPath = action.path.join(".");
1195
+ const newValidatorMap = __spreadValues({}, currentValidatorMap);
1196
+ newValidatorMap[controlPath] = action.newValidators;
1197
+ currentValidatorMap = newValidatorMap;
1198
+ updateValidators(currentState.formValue, currentState.formMeta, currentValidatorMap, true);
1199
+ }
1162
1200
  } else {
1163
1201
  newValue = cloneFormValue(currentState.formValue, action.path);
1164
1202
  setPath(newValue, action.path, action.value);
@@ -1203,8 +1241,8 @@ function useSpsForm(value, validatorMap) {
1203
1241
  }
1204
1242
  }
1205
1243
  }
1206
- if (validatorMap) {
1207
- updateValidators(newValue, currentState.formMeta, validatorMap);
1244
+ if (currentValidatorMap) {
1245
+ updateValidators(newValue, currentState.formMeta, currentValidatorMap);
1208
1246
  const alreadyValidated = new Set();
1209
1247
  validatorMapForEach(currentState.formMeta, validatorMap, (control, validators) => {
1210
1248
  if (typeof validators === "function") {
@@ -1233,6 +1271,11 @@ function useSpsForm(value, validatorMap) {
1233
1271
  const childMeta = meta.fields[key];
1234
1272
  if (!alreadyValidated.has(childMeta)) {
1235
1273
  meta.fields[key].validate(newSubValue[key]);
1274
+ if (dType === DiffChange.ADDITION && childMeta.fields) {
1275
+ for (const [fieldKey, field] of Object.entries(childMeta.fields)) {
1276
+ field.validate(newSubValue[key][fieldKey]);
1277
+ }
1278
+ }
1236
1279
  }
1237
1280
  }
1238
1281
  }
@@ -1247,9 +1290,14 @@ function useSpsForm(value, validatorMap) {
1247
1290
  };
1248
1291
  }, []);
1249
1292
  const [state, dispatch] = useReducer(reducer2, { formValue: value, formMeta, updateForm });
1250
- function update2(path, newValue, markAsBlurred = false) {
1293
+ function update2(path, newValue, markAsBlurred = false, newValidators) {
1251
1294
  if (path) {
1252
- dispatch({ path, value: newValue, markAsBlurred });
1295
+ dispatch({
1296
+ path,
1297
+ value: newValue,
1298
+ markAsBlurred,
1299
+ newValidators
1300
+ });
1253
1301
  } else {
1254
1302
  updateForm();
1255
1303
  }
@@ -1672,7 +1720,8 @@ const spsOptionListPassthroughProps = {
1672
1720
  textKey: "string",
1673
1721
  valueKey: "string",
1674
1722
  zeroState: "string",
1675
- maxHeight: "number"
1723
+ maxHeightPx: "number",
1724
+ maxHeightRem: "number"
1676
1725
  },
1677
1726
  propTypes: {
1678
1727
  captionKey: propTypes$1N.exports.string,
@@ -1687,7 +1736,8 @@ const spsOptionListPassthroughProps = {
1687
1736
  textKey: propTypes$1N.exports.string,
1688
1737
  valueKey: propTypes$1N.exports.string,
1689
1738
  zeroState: propTypes$1N.exports.string,
1690
- maxHeight: propTypes$1N.exports.number
1739
+ maxHeightPx: propTypes$1N.exports.number,
1740
+ maxHeightRem: propTypes$1N.exports.number
1691
1741
  }
1692
1742
  };
1693
1743
  const searchableOptionListProps = {
@@ -2025,7 +2075,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
2025
2075
  unsafelyReplaceClassName,
2026
2076
  loading,
2027
2077
  filterByTextAndCaptionKey,
2028
- maxHeight,
2078
+ maxHeightPx,
2079
+ maxHeightRem,
2029
2080
  "data-testid": testId
2030
2081
  } = _a, rest = __objRest(_a, [
2031
2082
  "captionKey",
@@ -2061,7 +2112,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
2061
2112
  "unsafelyReplaceClassName",
2062
2113
  "loading",
2063
2114
  "filterByTextAndCaptionKey",
2064
- "maxHeight",
2115
+ "maxHeightPx",
2116
+ "maxHeightRem",
2065
2117
  "data-testid"
2066
2118
  ]);
2067
2119
  const specialActionOption = React.useMemo(() => specialAction ? new SpsOptionListOption(specialAction, {
@@ -2283,6 +2335,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
2283
2335
  onPositionFlip(openingUpward);
2284
2336
  }
2285
2337
  }, [isOpen]);
2338
+ const maxHeight = maxHeightPx ? maxHeightPx / 16 : maxHeightRem;
2339
+ const optionsInlineStyles = maxHeight ? { maxHeight: `${maxHeight}rem` } : {};
2286
2340
  return portal(/* @__PURE__ */ React.createElement("div", __spreadValues({
2287
2341
  className: classes,
2288
2342
  id: id2,
@@ -2296,7 +2350,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
2296
2350
  className: optionsClasses,
2297
2351
  ref: optionsRef,
2298
2352
  "data-testid": `${testId}-options`,
2299
- style: maxHeight ? { maxHeight: `${maxHeight}px` } : {}
2353
+ style: optionsInlineStyles
2300
2354
  }, !loading && !searchState.pending && zeroState && (searchState.value || !searchState.isAsync) && optionList.length === 0 && /* @__PURE__ */ React.createElement("div", {
2301
2355
  className: "sps-option-list__zero-state"
2302
2356
  }, zeroState), (loading || searchState.pending) && /* @__PURE__ */ React.createElement("div", {
@@ -2451,7 +2505,8 @@ const propsDoc$1F = {
2451
2505
  value: "string",
2452
2506
  zeroState: "string",
2453
2507
  loading: "boolean",
2454
- maxHeightOptionList: "number"
2508
+ maxHeightOptionListPx: "number",
2509
+ maxHeightOptionListRem: "number"
2455
2510
  };
2456
2511
  const propTypes$1I = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
2457
2512
  debounce: propTypes$1N.exports.number,
@@ -2470,7 +2525,8 @@ const propTypes$1I = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
2470
2525
  value: propTypes$1N.exports.string,
2471
2526
  zeroState: propTypes$1N.exports.string,
2472
2527
  loading: propTypes$1N.exports.bool,
2473
- maxHeightOptionList: propTypes$1N.exports.number
2528
+ maxHeightOptionListPx: propTypes$1N.exports.number,
2529
+ maxHeightOptionListRem: propTypes$1N.exports.number
2474
2530
  });
2475
2531
  function SpsAutocomplete(_a) {
2476
2532
  var _b = _a, {
@@ -2489,7 +2545,8 @@ function SpsAutocomplete(_a) {
2489
2545
  value = "",
2490
2546
  zeroState,
2491
2547
  loading,
2492
- maxHeightOptionList
2548
+ maxHeightOptionListPx,
2549
+ maxHeightOptionListRem
2493
2550
  } = _b, rest = __objRest(_b, [
2494
2551
  "className",
2495
2552
  "debounce",
@@ -2506,7 +2563,8 @@ function SpsAutocomplete(_a) {
2506
2563
  "value",
2507
2564
  "zeroState",
2508
2565
  "loading",
2509
- "maxHeightOptionList"
2566
+ "maxHeightOptionListPx",
2567
+ "maxHeightOptionListRem"
2510
2568
  ]);
2511
2569
  const meta = formMeta || formControl2;
2512
2570
  const { wrapperId, controlId } = useFormControlId(id2, meta);
@@ -2616,7 +2674,8 @@ function SpsAutocomplete(_a) {
2616
2674
  tall: tallOptionList,
2617
2675
  zeroState,
2618
2676
  loading,
2619
- maxHeight: maxHeightOptionList
2677
+ maxHeightPx: maxHeightOptionListPx,
2678
+ maxHeightRem: maxHeightOptionListRem
2620
2679
  }));
2621
2680
  }
2622
2681
  Object.assign(SpsAutocomplete, {
@@ -2757,7 +2816,8 @@ const propsDoc$1E = {
2757
2816
  onOpen: "() => void",
2758
2817
  onClose: "() => void",
2759
2818
  loading: "boolean",
2760
- maxHeightOptionList: "number"
2819
+ maxHeightOptionListPx: "number",
2820
+ maxHeightOptionListRem: "number"
2761
2821
  };
2762
2822
  const propTypes$1H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
2763
2823
  alignLeft: propTypes$1N.exports.bool,
@@ -2772,7 +2832,8 @@ const propTypes$1H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
2772
2832
  onOpen: fun(),
2773
2833
  onClose: fun(),
2774
2834
  loading: propTypes$1N.exports.bool,
2775
- maxHeightOptionList: propTypes$1N.exports.number
2835
+ maxHeightOptionListPx: propTypes$1N.exports.number,
2836
+ maxHeightOptionListRem: propTypes$1N.exports.number
2776
2837
  });
2777
2838
  function SpsDropdown(props2) {
2778
2839
  const _a = props2, {
@@ -2792,7 +2853,8 @@ function SpsDropdown(props2) {
2792
2853
  onOpen,
2793
2854
  onClose,
2794
2855
  loading,
2795
- maxHeightOptionList
2856
+ maxHeightOptionListPx,
2857
+ maxHeightOptionListRem
2796
2858
  } = _a, rest = __objRest(_a, [
2797
2859
  "alignLeft",
2798
2860
  "className",
@@ -2810,7 +2872,8 @@ function SpsDropdown(props2) {
2810
2872
  "onOpen",
2811
2873
  "onClose",
2812
2874
  "loading",
2813
- "maxHeightOptionList"
2875
+ "maxHeightOptionListPx",
2876
+ "maxHeightOptionListRem"
2814
2877
  ]);
2815
2878
  const { t: t2 } = React.useContext(I18nContext);
2816
2879
  const id2 = useElementId(idProp);
@@ -2910,7 +2973,8 @@ function SpsDropdown(props2) {
2910
2973
  tall: tallOptionList,
2911
2974
  optionRole: "option",
2912
2975
  loading,
2913
- maxHeight: maxHeightOptionList
2976
+ maxHeightPx: maxHeightOptionListPx,
2977
+ maxHeightRem: maxHeightOptionListRem
2914
2978
  }), /* @__PURE__ */ React.createElement("div", {
2915
2979
  onClick: handleButtonClick,
2916
2980
  className: buttonClasses,
@@ -23758,6 +23822,22 @@ function useServerSideValidation(formControl2, initialState = null) {
23758
23822
  }, [status]);
23759
23823
  return [status, setStatus];
23760
23824
  }
23825
+ var ValidationMode;
23826
+ (function(ValidationMode2) {
23827
+ ValidationMode2[ValidationMode2["ON_CHANGE"] = 0] = "ON_CHANGE";
23828
+ ValidationMode2[ValidationMode2["ON_BLUR"] = 1] = "ON_BLUR";
23829
+ ValidationMode2[ValidationMode2["ON_SUBMIT"] = 2] = "ON_SUBMIT";
23830
+ })(ValidationMode || (ValidationMode = {}));
23831
+ function useCustomValidator(validator, validatorConfig = {}, dependencies = []) {
23832
+ for (const [key, validateOption] of Object.entries(validatorConfig)) {
23833
+ if (validateOption === 0) {
23834
+ addOnChangeErrorKey(key);
23835
+ } else if (validateOption === 2) {
23836
+ addOnSubmitErrorKey(key);
23837
+ }
23838
+ }
23839
+ return React.useCallback(validator, dependencies);
23840
+ }
23761
23841
  const SpsFormExamples = {
23762
23842
  a_basic: {
23763
23843
  label: "Basic Usage",
@@ -24149,6 +24229,68 @@ const SpsFormExamples = {
24149
24229
  `
24150
24230
  }
24151
24231
  }
24232
+ },
24233
+ custom_errors: {
24234
+ label: "Custom errors",
24235
+ description: () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", null, "When using custom validators you can specify when to show the errors - on Change, on Blur or on Submit.", /* @__PURE__ */ React.createElement("br", null), "On Blur is the the default behavior. If you want to change that behavior you can use ", /* @__PURE__ */ React.createElement("b", null, "useCustomValidator hook"), ". It takes validation function as first argument, validator configuration (object containing errorKey as key and ValidationMode as value) as second argument and dependencies as third argument. useCustomValidator returns a React callback of the validation function with the given dependencies."), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("b", null, "!Note:"), " useCustomValidator hook will make changes to the global scope and once you set a custom error key you can't change it.")),
24236
+ examples: {
24237
+ basic: {
24238
+ react: code`
24239
+ function DemoComponent() {
24240
+
24241
+ const customValidator = useCustomValidator(
24242
+ (value) => value < 3 ? null : { customErrorKey: true },
24243
+ { customErrorKey: ValidationMode.ON_CHANGE }
24244
+ // or { customErrorKey: ValidationMode.ON_SUBMIT }
24245
+ );
24246
+
24247
+ const initValue = {
24248
+ customErrorField: "",
24249
+ };
24250
+
24251
+ const { formValue, formMeta, updateForm } = useSpsForm(initValue, {
24252
+ "customErrorField": [customValidator],
24253
+ });
24254
+
24255
+ function handleSubmit() {
24256
+ console.log("submit", formValue);
24257
+ }
24258
+
24259
+ function reset() {
24260
+ updateForm(initValue);
24261
+ formMeta.markAsPristine();
24262
+ }
24263
+
24264
+ return <>
24265
+ <SpsForm formMeta={formMeta} onSubmit={handleSubmit}>
24266
+ <div className="sfg-row">
24267
+ <div className="sfg-col-8">
24268
+ <SpsLabel
24269
+ for={formMeta.fields.customErrorField}
24270
+ errors={() => formMeta.fields.customErrorField.hasError("customErrorKey")
24271
+ && "Custom error description"}
24272
+ >
24273
+ Custom Error
24274
+ </SpsLabel>
24275
+ <SpsTextInput
24276
+ value={formValue.customErrorField}
24277
+ formMeta={formMeta.fields.customErrorField}
24278
+ />
24279
+ </div>
24280
+ </div>
24281
+
24282
+ <div className="sfg-row">
24283
+ <div className="sfg-col-12">
24284
+ <SpsButton className="mr-1" onClick={reset}>Reset</SpsButton>
24285
+ <SpsButton type={ButtonType.SUBMIT} kind={ButtonKind.CONFIRM}>Submit</SpsButton>
24286
+ </div>
24287
+ </div>
24288
+ </SpsForm>
24289
+ </>;
24290
+ }
24291
+ `
24292
+ }
24293
+ }
24152
24294
  }
24153
24295
  };
24154
24296
  const SpsAddRemoveFormRowExamples = {
@@ -29668,7 +29810,8 @@ const propsDoc$P = {
29668
29810
  value: "any",
29669
29811
  zeroState: "string",
29670
29812
  loading: "boolean",
29671
- maxHeightOptionList: "number"
29813
+ maxHeightOptionListPx: "number",
29814
+ maxHeightOptionListRem: "number"
29672
29815
  };
29673
29816
  const propTypes$R = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
29674
29817
  action: fun(),
@@ -29693,7 +29836,8 @@ const propTypes$R = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
29693
29836
  value: propTypes$1N.exports.any,
29694
29837
  zeroState: propTypes$1N.exports.string,
29695
29838
  loading: propTypes$1N.exports.bool,
29696
- maxHeightOptionList: propTypes$1N.exports.number
29839
+ maxHeightOptionListPx: propTypes$1N.exports.number,
29840
+ maxHeightOptionListRem: propTypes$1N.exports.number
29697
29841
  });
29698
29842
  function SpsMultiSelect(_w) {
29699
29843
  var _x = _w, {
@@ -29718,7 +29862,8 @@ function SpsMultiSelect(_w) {
29718
29862
  zeroState = "There are no matching options.",
29719
29863
  loading,
29720
29864
  icon,
29721
- maxHeightOptionList,
29865
+ maxHeightOptionListPx,
29866
+ maxHeightOptionListRem,
29722
29867
  "data-testid": testId
29723
29868
  } = _x, rest = __objRest(_x, [
29724
29869
  "action",
@@ -29742,7 +29887,8 @@ function SpsMultiSelect(_w) {
29742
29887
  "zeroState",
29743
29888
  "loading",
29744
29889
  "icon",
29745
- "maxHeightOptionList",
29890
+ "maxHeightOptionListPx",
29891
+ "maxHeightOptionListRem",
29746
29892
  "data-testid"
29747
29893
  ]);
29748
29894
  const meta = formMeta || formControl2;
@@ -29942,7 +30088,8 @@ function SpsMultiSelect(_w) {
29942
30088
  textKey,
29943
30089
  zeroState,
29944
30090
  loading,
29945
- maxHeight: maxHeightOptionList
30091
+ maxHeightPx: maxHeightOptionListPx,
30092
+ maxHeightRem: maxHeightOptionListRem
29946
30093
  }));
29947
30094
  }
29948
30095
  Object.assign(SpsMultiSelect, {
@@ -30253,7 +30400,8 @@ const propsDoc$M = {
30253
30400
  autoFixWidth: "boolean",
30254
30401
  loading: "boolean",
30255
30402
  filterByTextAndCaptionKey: "boolean",
30256
- maxHeightOptionList: "number"
30403
+ maxHeightOptionListPx: "number",
30404
+ maxHeightOptionListRem: "number"
30257
30405
  };
30258
30406
  const propTypes$O = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
30259
30407
  action: fun(),
@@ -30280,7 +30428,8 @@ const propTypes$O = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
30280
30428
  autoFixWidth: propTypes$1N.exports.bool,
30281
30429
  loading: propTypes$1N.exports.bool,
30282
30430
  filterByTextAndCaptionKey: propTypes$1N.exports.bool,
30283
- maxHeightOptionList: propTypes$1N.exports.number
30431
+ maxHeightOptionListPx: propTypes$1N.exports.number,
30432
+ maxHeightOptionListRem: propTypes$1N.exports.number
30284
30433
  });
30285
30434
  const SpsSelect = React.forwardRef((props2, ref2) => {
30286
30435
  const _a = props2, {
@@ -30308,7 +30457,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
30308
30457
  zeroState,
30309
30458
  loading,
30310
30459
  filterByTextAndCaptionKey,
30311
- maxHeightOptionList,
30460
+ maxHeightOptionListPx,
30461
+ maxHeightOptionListRem,
30312
30462
  "data-testid": testId
30313
30463
  } = _a, rest = __objRest(_a, [
30314
30464
  "action",
@@ -30335,7 +30485,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
30335
30485
  "zeroState",
30336
30486
  "loading",
30337
30487
  "filterByTextAndCaptionKey",
30338
- "maxHeightOptionList",
30488
+ "maxHeightOptionListPx",
30489
+ "maxHeightOptionListRem",
30339
30490
  "data-testid"
30340
30491
  ]);
30341
30492
  const meta = formMeta || formControl2;
@@ -30506,7 +30657,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
30506
30657
  zeroState,
30507
30658
  ignoreWidthStyles: autoFixWidth,
30508
30659
  loading,
30509
- maxHeight: maxHeightOptionList,
30660
+ maxHeightPx: maxHeightOptionListPx,
30661
+ maxHeightRem: maxHeightOptionListRem,
30510
30662
  "data-testid": `${testId}-option-list`
30511
30663
  }));
30512
30664
  });
@@ -38485,4 +38637,4 @@ Object.assign(SpsVr, {
38485
38637
  propTypes,
38486
38638
  displayName: "SpsDescriptionListTerm / SpsDt"
38487
38639
  });
38488
- 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, SpsSearchResultsBarV2, 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 };
38640
+ export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, OnSubmitErrorKeys, 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, SpsSearchResultsBarV2, 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, ValidationMode, addOnChangeErrorKey, addOnSubmitErrorKey, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
@@ -24,12 +24,13 @@ declare const propTypes: {
24
24
  value: PropTypes.Requireable<any>;
25
25
  zeroState: PropTypes.Requireable<string>;
26
26
  loading: PropTypes.Requireable<boolean>;
27
- maxHeightOptionList: PropTypes.Requireable<number>;
27
+ maxHeightOptionListPx: PropTypes.Requireable<number>;
28
+ maxHeightOptionListRem: PropTypes.Requireable<number>;
28
29
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
29
30
  className: PropTypes.Requireable<string>;
30
31
  "data-testid": PropTypes.Requireable<string>;
31
32
  unsafelyReplaceClassName: PropTypes.Requireable<string>;
32
33
  };
33
34
  export declare type SpsMultiSelectProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
34
- export declare function SpsMultiSelect({ action, captionKey, className, debounce, disabled, disableSelected, comparisonKey, formControl, formMeta, hideSelected, id, onChange, options, placeholder, tallOptionList, textKey, unsafelyReplaceClassName, value, zeroState, loading, icon, maxHeightOptionList, "data-testid": testId, ...rest }: SpsMultiSelectProps): JSX.Element;
35
+ export declare function SpsMultiSelect({ action, captionKey, className, debounce, disabled, disableSelected, comparisonKey, formControl, formMeta, hideSelected, id, onChange, options, placeholder, tallOptionList, textKey, unsafelyReplaceClassName, value, zeroState, loading, icon, maxHeightOptionListPx, maxHeightOptionListRem, "data-testid": testId, ...rest }: SpsMultiSelectProps): JSX.Element;
35
36
  export {};
@@ -13,7 +13,8 @@ export declare const spsOptionListPassthroughProps: {
13
13
  textKey: string;
14
14
  valueKey: string;
15
15
  zeroState: string;
16
- maxHeight: string;
16
+ maxHeightPx: string;
17
+ maxHeightRem: string;
17
18
  };
18
19
  propTypes: {
19
20
  captionKey: PropTypes.Requireable<string>;
@@ -24,7 +25,8 @@ export declare const spsOptionListPassthroughProps: {
24
25
  textKey: PropTypes.Requireable<string>;
25
26
  valueKey: PropTypes.Requireable<string>;
26
27
  zeroState: PropTypes.Requireable<string>;
27
- maxHeight: PropTypes.Requireable<number>;
28
+ maxHeightPx: PropTypes.Requireable<number>;
29
+ maxHeightRem: PropTypes.Requireable<number>;
28
30
  };
29
31
  };
30
32
  export declare const searchableOptionListProps: {
@@ -69,7 +71,8 @@ export declare const propTypes: {
69
71
  textKey: PropTypes.Requireable<string>;
70
72
  valueKey: PropTypes.Requireable<string>;
71
73
  zeroState: PropTypes.Requireable<string>;
72
- maxHeight: PropTypes.Requireable<number>;
74
+ maxHeightPx: PropTypes.Requireable<number>;
75
+ maxHeightRem: PropTypes.Requireable<number>;
73
76
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
74
77
  className: PropTypes.Requireable<string>;
75
78
  "data-testid": PropTypes.Requireable<string>;
@@ -25,14 +25,15 @@ declare const propTypes: {
25
25
  autoFixWidth: PropTypes.Requireable<boolean>;
26
26
  loading: PropTypes.Requireable<boolean>;
27
27
  filterByTextAndCaptionKey: PropTypes.Requireable<boolean>;
28
- maxHeightOptionList: PropTypes.Requireable<number>;
28
+ maxHeightOptionListPx: PropTypes.Requireable<number>;
29
+ maxHeightOptionListRem: PropTypes.Requireable<number>;
29
30
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
30
31
  className: PropTypes.Requireable<string>;
31
32
  "data-testid": PropTypes.Requireable<string>;
32
33
  unsafelyReplaceClassName: PropTypes.Requireable<string>;
33
34
  };
34
35
  export declare type SpsSelectProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
35
- export declare const SpsSelect: React.ForwardRefExoticComponent<Pick<SpsSelectProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "data-testid" | "unsafelyReplaceClassName" | "formMeta" | "formControl" | "loading" | "filterByTextAndCaptionKey" | "searchDebounce" | "searchPlaceholder" | "captionKey" | "comparisonKey" | "options" | "textKey" | "valueKey" | "zeroState" | "tallOptionList" | "maxHeightOptionList" | "notClearable" | "autoFixWidth"> & React.RefAttributes<{
36
+ export declare const SpsSelect: React.ForwardRefExoticComponent<Pick<SpsSelectProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "data-testid" | "unsafelyReplaceClassName" | "formMeta" | "formControl" | "loading" | "filterByTextAndCaptionKey" | "searchDebounce" | "searchPlaceholder" | "captionKey" | "comparisonKey" | "options" | "textKey" | "valueKey" | "zeroState" | "tallOptionList" | "maxHeightOptionListPx" | "maxHeightOptionListRem" | "notClearable" | "autoFixWidth"> & React.RefAttributes<{
36
37
  focus: () => void;
37
38
  }>>;
38
39
  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.12.1",
4
+ "version": "5.13.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",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "5.12.1",
32
- "@spscommerce/ds-shared": "5.12.1",
33
- "@spscommerce/positioning": "5.12.1",
34
- "@spscommerce/utils": "5.12.1",
31
+ "@spscommerce/ds-colors": "5.13.0",
32
+ "@spscommerce/ds-shared": "5.13.0",
33
+ "@spscommerce/positioning": "5.13.0",
34
+ "@spscommerce/utils": "5.13.0",
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.12.1",
43
- "@spscommerce/ds-shared": "5.12.1",
44
- "@spscommerce/positioning": "5.12.1",
45
- "@spscommerce/utils": "5.12.1",
42
+ "@spscommerce/ds-colors": "5.13.0",
43
+ "@spscommerce/ds-shared": "5.13.0",
44
+ "@spscommerce/positioning": "5.13.0",
45
+ "@spscommerce/utils": "5.13.0",
46
46
  "@testing-library/react": "^9.3.2",
47
47
  "@types/prop-types": "^15.7.1",
48
48
  "@types/react": "^16.9.0",