@spscommerce/ds-shared 7.17.9 → 8.0.1
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/button.d.ts +2 -2
- package/lib/datetime.d.ts +4 -4
- package/lib/examples.d.ts +6 -6
- package/lib/grid.d.ts +1 -1
- package/lib/table.d.ts +4 -4
- package/package.json +1 -1
package/lib/button.d.ts
CHANGED
@@ -10,7 +10,7 @@ declare enum ButtonKindIcon {
|
|
10
10
|
declare enum ButtonKindLink {
|
11
11
|
LINK = "link"
|
12
12
|
}
|
13
|
-
export type DropdownKind = StdButtonKind | ButtonKindIcon;
|
13
|
+
export declare type DropdownKind = StdButtonKind | ButtonKindIcon;
|
14
14
|
export declare const DropdownKind: Readonly<{
|
15
15
|
ICON: ButtonKindIcon.ICON;
|
16
16
|
DEFAULT: StdButtonKind.DEFAULT;
|
@@ -18,7 +18,7 @@ export declare const DropdownKind: Readonly<{
|
|
18
18
|
DELETE: StdButtonKind.DELETE;
|
19
19
|
KEY: StdButtonKind.KEY;
|
20
20
|
}>;
|
21
|
-
export type ButtonKind = StdButtonKind | ButtonKindIcon | ButtonKindLink;
|
21
|
+
export declare type ButtonKind = StdButtonKind | ButtonKindIcon | ButtonKindLink;
|
22
22
|
export declare const ButtonKind: Readonly<{
|
23
23
|
LINK: ButtonKindLink.LINK;
|
24
24
|
ICON: ButtonKindIcon.ICON;
|
package/lib/datetime.d.ts
CHANGED
@@ -9,8 +9,8 @@ export interface SimpleDate {
|
|
9
9
|
month: number;
|
10
10
|
date: number;
|
11
11
|
}
|
12
|
-
export type SimpleDateRange = [SimpleDate, SimpleDate];
|
13
|
-
export type SimpleMomentRange = [Moment | null, Moment | null];
|
12
|
+
export declare type SimpleDateRange = [SimpleDate, SimpleDate];
|
13
|
+
export declare type SimpleMomentRange = [Moment | null, Moment | null];
|
14
14
|
export declare enum SelectMode {
|
15
15
|
START = 0,
|
16
16
|
END = 1
|
@@ -29,8 +29,8 @@ export interface DateSelectionEvent<T = Moment | MomentRange> {
|
|
29
29
|
* [ 27, 28, 29, 30, , , ] ]
|
30
30
|
* but where each number is a SimpleDate object
|
31
31
|
*/
|
32
|
-
export type CalendarArray = ReadonlyArray<readonly SimpleDate[]>;
|
33
|
-
export type ISO8601String = string;
|
32
|
+
export declare type CalendarArray = ReadonlyArray<readonly SimpleDate[]>;
|
33
|
+
export declare type ISO8601String = string;
|
34
34
|
export interface DatePreset {
|
35
35
|
label: string;
|
36
36
|
definition: ISO8601String | (() => SimpleDateRange);
|
package/lib/examples.d.ts
CHANGED
@@ -11,7 +11,7 @@ export interface ExtraExampleRendererArgs {
|
|
11
11
|
children: ReactElement | string;
|
12
12
|
}) => ReactElement;
|
13
13
|
}
|
14
|
-
type ReactChildOrRenderer = ReactElement | string | ((args: ExtraExampleRendererArgs) => ReactElement | string);
|
14
|
+
declare type ReactChildOrRenderer = ReactElement | string | ((args: ExtraExampleRendererArgs) => ReactElement | string);
|
15
15
|
export interface DSExampleBase {
|
16
16
|
description?: ReactChildOrRenderer;
|
17
17
|
}
|
@@ -22,8 +22,8 @@ export interface DSReactExampleJSX {
|
|
22
22
|
export interface DSReactExampleComponent {
|
23
23
|
react: string;
|
24
24
|
}
|
25
|
-
export type DSReactExample = DSExampleBase & (DSReactExampleComponent | DSReactExampleJSX);
|
26
|
-
export type DSExample = DSReactExample;
|
25
|
+
export declare type DSReactExample = DSExampleBase & (DSReactExampleComponent | DSReactExampleJSX);
|
26
|
+
export declare type DSExample = DSReactExample;
|
27
27
|
export declare function exampleIsReactComponentExample(example: DSExample): example is DSReactExampleComponent;
|
28
28
|
export declare function exampleIsReactJSXExample(example: DSExample): example is DSReactExampleJSX;
|
29
29
|
export interface DSExamplesTab<T extends DSExample = DSExample> {
|
@@ -32,9 +32,9 @@ export interface DSExamplesTab<T extends DSExample = DSExample> {
|
|
32
32
|
customSection?: ReactChildOrRenderer;
|
33
33
|
examples?: Record<string, T>;
|
34
34
|
}
|
35
|
-
export type DSExamples<T extends DSExample = DSExample> = Record<string, DSExamplesTab<T>>;
|
36
|
-
export type DSReactExamples = DSExamples<DSReactExample>;
|
37
|
-
export type ComponentManifest = Record<string, {
|
35
|
+
export declare type DSExamples<T extends DSExample = DSExample> = Record<string, DSExamplesTab<T>>;
|
36
|
+
export declare type DSReactExamples = DSExamples<DSReactExample>;
|
37
|
+
export declare type ComponentManifest = Record<string, {
|
38
38
|
description?: ReactChildOrRenderer;
|
39
39
|
components: unknown[];
|
40
40
|
examples: DSReactExamples;
|
package/lib/grid.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/** Allowable values for the width of an element in our 12-column layout grid. */
|
2
|
-
export type GridWidth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
2
|
+
export declare type GridWidth = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
package/lib/table.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface SortedColumn {
|
|
6
6
|
key: string;
|
7
7
|
direction: SortDirection;
|
8
8
|
}
|
9
|
-
export type SortChangeHandler = (newSort: SortedColumn[]) => void;
|
10
|
-
export type ResizeState = Record<string, number>;
|
11
|
-
export type ResizeStateChangeHandler = (newResizeState: ResizeState) => void;
|
12
|
-
export type SpsTableCellWrapWidth = 200 | 300 | 400 | 500 | 600;
|
9
|
+
export declare type SortChangeHandler = (newSort: SortedColumn[]) => void;
|
10
|
+
export declare type ResizeState = Record<string, number>;
|
11
|
+
export declare type ResizeStateChangeHandler = (newResizeState: ResizeState) => void;
|
12
|
+
export declare type SpsTableCellWrapWidth = 200 | 300 | 400 | 500 | 600;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spscommerce/ds-shared",
|
3
3
|
"description": "Package for sharing code and types between DS Angular and DS React.",
|
4
|
-
"version": "
|
4
|
+
"version": "8.0.1",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-shared",
|