@sequencing/design-system 1.0.15 → 1.0.16
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/dist/documentation.json +12 -5
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Atoms/TextField/TextField.d.ts +2 -2
- package/dist/esm/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/dist/index.d.ts +9 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/TextField/TextField.d.ts +2 -2
- package/dist/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/package.json +1 -1
|
@@ -17,8 +17,8 @@ export interface TextFieldProps {
|
|
|
17
17
|
variant?: "primary";
|
|
18
18
|
/** Callback called when the text is updated */
|
|
19
19
|
onChange?: (value: string) => void;
|
|
20
|
-
/** Callback called when the
|
|
21
|
-
onClick?: (
|
|
20
|
+
/** Callback called when the input is clicked */
|
|
21
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "react-datepicker/dist/react-datepicker-cssmodules.css";
|
|
3
3
|
export interface DatePickerProps {
|
|
4
|
-
/** Custom css class to customize the styling */
|
|
5
|
-
|
|
4
|
+
/** Custom css class to customize the styling if input. Used TextField from SDS */
|
|
5
|
+
inputCustomClass?: string;
|
|
6
6
|
/** Format of the date to be displayed. Default: ``MMMM d, yyyy`` */
|
|
7
7
|
dateFormat?: string;
|
|
8
8
|
/** Callback called when the date is updated. Return standard JS Date object */
|
|
9
9
|
onDateChange?: (date: Date | null) => void;
|
|
10
|
+
/** Start date of the date picker. Use anything which could be converted to date.
|
|
11
|
+
* If undefined or not provided - current day will be selected.
|
|
12
|
+
* If null or any falsy value - field will be empty
|
|
13
|
+
* */
|
|
14
|
+
startDate?: string | number | Date | undefined;
|
|
10
15
|
}
|
|
11
16
|
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
12
17
|
export default DatePicker;
|
package/dist/index.d.ts
CHANGED
|
@@ -153,8 +153,8 @@ interface TextFieldProps {
|
|
|
153
153
|
variant?: "primary";
|
|
154
154
|
/** Callback called when the text is updated */
|
|
155
155
|
onChange?: (value: string) => void;
|
|
156
|
-
/** Callback called when the
|
|
157
|
-
onClick?: (
|
|
156
|
+
/** Callback called when the input is clicked */
|
|
157
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
@@ -326,12 +326,17 @@ interface AppBarProps {
|
|
|
326
326
|
declare const AppBar: ({ icon, isBeta, appName, version, children, customClass, lastUpdated, lastUpdatedTooltip, description, tooltipContent, rightAddornment, backgroundColor, backgroundImage, backgroundGradient, }: PropsWithChildren<AppBarProps>) => React.JSX.Element;
|
|
327
327
|
|
|
328
328
|
interface DatePickerProps {
|
|
329
|
-
/** Custom css class to customize the styling */
|
|
330
|
-
|
|
329
|
+
/** Custom css class to customize the styling if input. Used TextField from SDS */
|
|
330
|
+
inputCustomClass?: string;
|
|
331
331
|
/** Format of the date to be displayed. Default: ``MMMM d, yyyy`` */
|
|
332
332
|
dateFormat?: string;
|
|
333
333
|
/** Callback called when the date is updated. Return standard JS Date object */
|
|
334
334
|
onDateChange?: (date: Date | null) => void;
|
|
335
|
+
/** Start date of the date picker. Use anything which could be converted to date.
|
|
336
|
+
* If undefined or not provided - current day will be selected.
|
|
337
|
+
* If null or any falsy value - field will be empty
|
|
338
|
+
* */
|
|
339
|
+
startDate?: string | number | Date | undefined;
|
|
335
340
|
}
|
|
336
341
|
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
337
342
|
|