@spscommerce/ds-react 8.14.1 → 8.14.2
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 +465 -428
- package/lib/index.es.js +2371 -2318
- package/lib/pagination/SpsPageSelector.d.ts +1 -0
- package/lib/pagination/SpsPagination.d.ts +1 -0
- package/lib/select/SpsSelect.d.ts +2 -0
- package/package.json +12 -12
|
@@ -7,5 +7,6 @@ export declare type SpsPageSelectorProps = React.PropsWithChildren<SpsGlobalProp
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
unknownPageCount?: boolean;
|
|
9
9
|
nextPageBtnDisabled?: boolean;
|
|
10
|
+
onBeforeChange?: (page: number) => boolean | Promise<boolean>;
|
|
10
11
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
11
12
|
export declare function SpsPageSelector(props: SpsPageSelectorProps): React.JSX.Element;
|
|
@@ -10,5 +10,6 @@ export declare type SpsPaginationProps = React.PropsWithChildren<SpsGlobalPropTy
|
|
|
10
10
|
unknownPageCount?: boolean;
|
|
11
11
|
nextPageBtnDisabled?: boolean;
|
|
12
12
|
resultsOnPage?: number;
|
|
13
|
+
onBeforeChange?: (page: number, pageSize: number) => boolean | Promise<boolean>;
|
|
13
14
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
14
15
|
export declare function SpsPagination(props: SpsPaginationProps): React.JSX.Element;
|
|
@@ -30,6 +30,7 @@ export declare type SpsSelectProps = React.PropsWithChildren<SpsGlobalPropTypes
|
|
|
30
30
|
maxHeightOptionListRem?: number;
|
|
31
31
|
disableOptionsMemoization?: boolean;
|
|
32
32
|
disableDefaultOptionsFiltering?: boolean;
|
|
33
|
+
onBeforeChange?: (value: string) => boolean | Promise<boolean>;
|
|
33
34
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
34
35
|
declare type FocusRef = {
|
|
35
36
|
focus: () => void;
|
|
@@ -60,6 +61,7 @@ export declare const SpsSelect: React.ForwardRefExoticComponent<SpsGlobalPropTyp
|
|
|
60
61
|
maxHeightOptionListRem?: number | undefined;
|
|
61
62
|
disableOptionsMemoization?: boolean | undefined;
|
|
62
63
|
disableDefaultOptionsFiltering?: boolean | undefined;
|
|
64
|
+
onBeforeChange?: ((value: string) => boolean | Promise<boolean>) | undefined;
|
|
63
65
|
} & {
|
|
64
66
|
children?: React.ReactNode;
|
|
65
67
|
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<FocusRef>>;
|
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": "8.14.
|
|
4
|
+
"version": "8.14.2",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"moment-timezone": "^0.5.28",
|
|
47
47
|
"react": "^16.9.0",
|
|
48
48
|
"react-dom": "^16.9.0",
|
|
49
|
-
"@sps-woodland/illustrations": "8.14.
|
|
50
|
-
"@sps-woodland/tabs": "8.14.
|
|
51
|
-
"@spscommerce/ds-colors": "8.14.
|
|
52
|
-
"@spscommerce/ds-shared": "8.14.
|
|
53
|
-
"@spscommerce/positioning": "8.14.
|
|
49
|
+
"@sps-woodland/illustrations": "8.14.2",
|
|
50
|
+
"@sps-woodland/tabs": "8.14.2",
|
|
51
|
+
"@spscommerce/ds-colors": "8.14.2",
|
|
52
|
+
"@spscommerce/ds-shared": "8.14.2",
|
|
53
|
+
"@spscommerce/positioning": "8.14.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@react-spectrum/provider": "^3.4.1",
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"raf-stub": "^2.0.2",
|
|
73
73
|
"react": "^16.9.0",
|
|
74
74
|
"react-dom": "^16.9.0",
|
|
75
|
-
"@sps-woodland/illustrations": "8.14.
|
|
76
|
-
"@sps-woodland/tabs": "8.14.
|
|
77
|
-
"@spscommerce/ds-colors": "8.14.
|
|
78
|
-
"@spscommerce/ds-shared": "8.14.
|
|
79
|
-
"@spscommerce/positioning": "8.14.
|
|
80
|
-
"test": "8.14.
|
|
75
|
+
"@sps-woodland/illustrations": "8.14.2",
|
|
76
|
+
"@sps-woodland/tabs": "8.14.2",
|
|
77
|
+
"@spscommerce/ds-colors": "8.14.2",
|
|
78
|
+
"@spscommerce/ds-shared": "8.14.2",
|
|
79
|
+
"@spscommerce/positioning": "8.14.2",
|
|
80
|
+
"test": "8.14.2"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "pnpm run build:js && pnpm run build:types",
|