@spscommerce/ds-react 5.33.11 → 6.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 +13 -15
- package/lib/datepicker/SpsDatepicker.d.ts +10 -11
- package/lib/{datepicker-v2 → datepicker}/SpsDatepickerCalendar.d.ts +0 -0
- package/lib/{datepicker-v2 → datepicker}/SpsDatepickerPopup.d.ts +0 -0
- package/lib/datepicker/index.d.ts +2 -0
- package/lib/{datepicker-v2 → datepicker}/useCalendar.d.ts +0 -0
- package/lib/{datepicker-v2 → datepicker}/useMoment.d.ts +0 -0
- package/lib/{datepicker-v2 → datepicker}/utils.d.ts +0 -0
- package/lib/{datepicker-v2 → datepicker}/validation.d.ts +0 -0
- package/lib/index.cjs.js +426 -401
- package/lib/index.d.ts +0 -2
- package/lib/index.es.js +1414 -2862
- package/lib/modal/SpsModal.d.ts +9 -16
- package/lib/pagination/SpsPageSelector.d.ts +1 -0
- package/lib/pagination/SpsPagination.d.ts +1 -0
- package/lib/toggle/SpsToggle.d.ts +0 -4
- package/package.json +11 -11
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +0 -21
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +0 -18
- package/lib/datepicker-v2/index.d.ts +0 -4
- package/lib/modal/SpsModalAction.d.ts +0 -18
- package/lib/modal/SpsModalBody.d.ts +0 -10
- package/lib/modal/SpsModalFooter.d.ts +0 -16
- package/lib/modal/SpsModalHeader.d.ts +0 -11
- package/lib/modal/SpsModalOverlay.d.ts +0 -12
- package/lib/modal-v2/SpsModalV2.d.ts +0 -18
- package/lib/modal-v2/index.d.ts +0 -1
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import * as PropTypes from '../prop-types';
|
|
1
|
+
import type { SimpleDate, SimpleDateRange, DatePreset } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
4
|
declare const propTypes: {
|
|
6
|
-
placeholder: PropTypes.Requireable<string>;
|
|
7
5
|
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
value: PropTypes.Requireable<MomentRange>;
|
|
14
|
-
preset: PropTypes.Requireable<momentImport.Duration>;
|
|
6
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<SimpleDateRange | DatePreset>>;
|
|
7
|
+
maxDate: PropTypes.Requireable<SimpleDate>;
|
|
8
|
+
minDate: PropTypes.Requireable<SimpleDate>;
|
|
9
|
+
onChange: PropTypes.Requireable<(newDateRange: SimpleDateRange | DatePreset) => void>;
|
|
10
|
+
presets: PropTypes.Requireable<DatePreset[]>;
|
|
15
11
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
12
|
className: PropTypes.Requireable<string>;
|
|
17
13
|
"data-testid": PropTypes.Requireable<string>;
|
|
18
14
|
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
15
|
};
|
|
20
|
-
export declare
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
export declare type SpsDateRangePickerProps = {
|
|
17
|
+
value?: SimpleDateRange | DatePreset;
|
|
18
|
+
} & Omit<PropTypes.InferTS<typeof propTypes, HTMLInputElement>, "value">;
|
|
19
|
+
export declare const DEFAULT_PRESETS: DatePreset[];
|
|
20
|
+
export declare function SpsDateRangePicker({ children, className, disabled, formMeta, id, maxDate, minDate, onChange, presets, value, "data-testid": testId, ...rest }: SpsDateRangePickerProps): JSX.Element;
|
|
23
21
|
export {};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SimpleDate } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as PropTypes from "../prop-types";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
3
4
|
declare const propTypes: {
|
|
4
5
|
disabled: PropTypes.Requireable<boolean>;
|
|
5
|
-
|
|
6
|
-
maxDate: PropTypes.Requireable<
|
|
7
|
-
minDate: PropTypes.Requireable<
|
|
8
|
-
onChange: PropTypes.Requireable<(
|
|
9
|
-
|
|
10
|
-
placeholder: PropTypes.Requireable<string>;
|
|
11
|
-
value: PropTypes.Requireable<string>;
|
|
6
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<SimpleDate>>;
|
|
7
|
+
maxDate: PropTypes.Requireable<SimpleDate>;
|
|
8
|
+
minDate: PropTypes.Requireable<SimpleDate>;
|
|
9
|
+
onChange: PropTypes.Requireable<(newDate: SimpleDate) => void>;
|
|
10
|
+
value: PropTypes.Requireable<SimpleDate>;
|
|
12
11
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
12
|
className: PropTypes.Requireable<string>;
|
|
14
13
|
"data-testid": PropTypes.Requireable<string>;
|
|
15
14
|
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
16
15
|
};
|
|
17
|
-
export declare type SpsDatepickerProps = PropTypes.InferTS<typeof propTypes,
|
|
18
|
-
declare function SpsDatepicker(
|
|
19
|
-
export {
|
|
16
|
+
export declare type SpsDatepickerProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
17
|
+
export declare function SpsDatepicker({ children, className, disabled, formMeta, id, maxDate, minDate, onChange, value, "data-testid": testId, ...rest }: SpsDatepickerProps): JSX.Element;
|
|
18
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|