@spscommerce/ds-react 8.0.0-rc1 → 8.0.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/dateRangePicker/SpsDateRangePicker.d.ts +5 -3
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.d.ts +17 -0
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.examples.d.ts +2 -0
- package/lib/dateTimeRangePicker/index.d.ts +2 -0
- package/lib/datepicker/SpsDatepicker.d.ts +1 -1
- package/lib/datepicker/SpsDatepickerCalendar.d.ts +1 -0
- package/lib/datepicker/utils.d.ts +17 -7
- package/lib/datepicker/validation.d.ts +5 -5
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +2 -2
- package/lib/form/validation/SpsValidators.d.ts +3 -3
- package/lib/index.cjs.js +1992 -1630
- package/lib/index.d.ts +2 -0
- package/lib/index.es.js +17478 -16438
- package/lib/split-button/SpsSplitButton.d.ts +2 -0
- package/lib/text-input/SpsTextInput.d.ts +2 -0
- package/lib/time-input/SpsTimeInput.d.ts +11 -0
- package/lib/time-input/SpsTimeInput.examples.d.ts +2 -0
- package/lib/time-input/index.d.ts +2 -0
- package/package.json +12 -12
|
@@ -10,5 +10,7 @@ export declare type SpsSplitButtonProps = React.PropsWithChildren<SpsGlobalPropT
|
|
|
10
10
|
icon?: SpsIcon;
|
|
11
11
|
kind?: StdButtonKind;
|
|
12
12
|
options?: Parameters<typeof SpsDropdown>[0]["options"];
|
|
13
|
+
spinning?: boolean;
|
|
14
|
+
spinningTitle?: string;
|
|
13
15
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
14
16
|
export declare function SpsSplitButton(props: SpsSplitButtonProps): JSX.Element;
|
|
@@ -13,6 +13,7 @@ export declare type SpsTextInputProps = React.PropsWithChildren<SpsGlobalPropTyp
|
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
value?: string;
|
|
15
15
|
additionalText?: string;
|
|
16
|
+
notClearable?: boolean;
|
|
16
17
|
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
17
18
|
export declare const SpsTextInput: React.ForwardRefExoticComponent<SpsGlobalPropTypes & {
|
|
18
19
|
disabled?: boolean | undefined;
|
|
@@ -24,6 +25,7 @@ export declare const SpsTextInput: React.ForwardRefExoticComponent<SpsGlobalProp
|
|
|
24
25
|
placeholder?: string | undefined;
|
|
25
26
|
value?: string | undefined;
|
|
26
27
|
additionalText?: string | undefined;
|
|
28
|
+
notClearable?: boolean | undefined;
|
|
27
29
|
} & {
|
|
28
30
|
children?: React.ReactNode;
|
|
29
31
|
} & React.HTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
+
export declare type SpsTimeInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
7
|
+
onChange?: (newValue: string) => void;
|
|
8
|
+
value?: string;
|
|
9
|
+
twentyFourHour?: boolean;
|
|
10
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
11
|
+
export declare function SpsTimeInput({ className, disabled, formMeta, id, onChange, value, twentyFourHour, "data-testid": testId, }: SpsTimeInputProps): JSX.Element;
|
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.0.0
|
|
4
|
+
"version": "8.0.0",
|
|
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.0.0
|
|
50
|
-
"@
|
|
51
|
-
"@spscommerce/ds-colors": "8.0.0
|
|
52
|
-
"@
|
|
53
|
-
"@spscommerce/positioning": "8.0.0
|
|
49
|
+
"@sps-woodland/illustrations": "8.0.0",
|
|
50
|
+
"@sps-woodland/tabs": "8.0.0",
|
|
51
|
+
"@spscommerce/ds-colors": "8.0.0",
|
|
52
|
+
"@spscommerce/ds-shared": "8.0.0",
|
|
53
|
+
"@spscommerce/positioning": "8.0.0"
|
|
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.0.0
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
78
|
-
"@spscommerce/ds-
|
|
79
|
-
"@spscommerce/positioning": "8.0.0
|
|
80
|
-
"
|
|
75
|
+
"@sps-woodland/illustrations": "8.0.0",
|
|
76
|
+
"@sps-woodland/tabs": "8.0.0",
|
|
77
|
+
"@spscommerce/ds-colors": "8.0.0",
|
|
78
|
+
"@spscommerce/ds-shared": "8.0.0",
|
|
79
|
+
"@spscommerce/positioning": "8.0.0",
|
|
80
|
+
"test": "8.0.0"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "pnpm run build:js && pnpm run build:types",
|