@spscommerce/ds-react 6.14.1 → 6.17.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.cjs.js +368 -365
- package/lib/index.d.ts +2 -0
- package/lib/index.es.js +5138 -5017
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +22 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.examples.d.ts +2 -0
- package/lib/multi-value-text-input/index.d.ts +2 -0
- package/lib/multi-value-text-input/splitStringByDelimiter.d.ts +2 -0
- package/package.json +11 -10
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as PropTypes from "../prop-types";
|
|
4
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
6
|
+
declare const propTypes: {
|
|
7
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
+
formControl: PropTypes.Requireable<SpsFormControl<any[]>>;
|
|
9
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any[]>>;
|
|
10
|
+
icon: PropTypes.Requireable<SpsIcon>;
|
|
11
|
+
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
12
|
+
onEntryChange: PropTypes.Requireable<(searchText: string) => void>;
|
|
13
|
+
placeholder: PropTypes.Requireable<string>;
|
|
14
|
+
value: PropTypes.Requireable<any>;
|
|
15
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
className: PropTypes.Requireable<string>;
|
|
17
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
18
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
|
+
};
|
|
20
|
+
export declare type SpsMultiValueTextInputProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
21
|
+
export declare function SpsMultiValueTextInput({ className, disabled, formControl, formMeta, id, onChange, onEntryChange, placeholder, unsafelyReplaceClassName, value, icon, "data-testid": testId, ...rest }: SpsMultiValueTextInputProps): JSX.Element;
|
|
22
|
+
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": "6.
|
|
4
|
+
"version": "6.17.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",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"lodash.isplainobject": "^4.0.6",
|
|
23
23
|
"nanoid": "^2.1.0",
|
|
24
24
|
"prop-types": "^15.7.2",
|
|
25
|
-
"react-beautiful-dnd": "^
|
|
25
|
+
"react-beautiful-dnd": "^13.1.0",
|
|
26
26
|
"scroll-into-view-if-needed": "^2.2.20",
|
|
27
27
|
"tiny-invariant": "^1.0.4"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-stately/collections": "^3.3.3",
|
|
31
|
-
"@spscommerce/ds-colors": "6.
|
|
32
|
-
"@spscommerce/ds-illustrations": "6.
|
|
33
|
-
"@spscommerce/ds-shared": "6.
|
|
34
|
-
"@spscommerce/positioning": "6.
|
|
31
|
+
"@spscommerce/ds-colors": "6.17.0",
|
|
32
|
+
"@spscommerce/ds-illustrations": "6.17.0",
|
|
33
|
+
"@spscommerce/ds-shared": "6.17.0",
|
|
34
|
+
"@spscommerce/positioning": "6.17.0",
|
|
35
35
|
"@spscommerce/utils": "^6.11.3",
|
|
36
36
|
"moment": "^2.25.3",
|
|
37
37
|
"moment-timezone": "^0.5.28",
|
|
@@ -40,14 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@react-stately/collections": "^3.3.3",
|
|
43
|
-
"@spscommerce/ds-colors": "6.
|
|
44
|
-
"@spscommerce/ds-illustrations": "6.
|
|
45
|
-
"@spscommerce/ds-shared": "6.
|
|
46
|
-
"@spscommerce/positioning": "6.
|
|
43
|
+
"@spscommerce/ds-colors": "6.17.0",
|
|
44
|
+
"@spscommerce/ds-illustrations": "6.17.0",
|
|
45
|
+
"@spscommerce/ds-shared": "6.17.0",
|
|
46
|
+
"@spscommerce/positioning": "6.17.0",
|
|
47
47
|
"@spscommerce/utils": "^6.11.3",
|
|
48
48
|
"@testing-library/react": "^9.3.2",
|
|
49
49
|
"@types/prop-types": "^15.7.1",
|
|
50
50
|
"@types/react": "^16.9.0",
|
|
51
|
+
"@types/react-beautiful-dnd": "^13.1.2",
|
|
51
52
|
"expect": "^24.1.0",
|
|
52
53
|
"lz-string": "^1.4.4",
|
|
53
54
|
"moment": "^2.25.3",
|