@sequencing/design-system 1.0.15 → 1.0.17
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 +19 -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 +5 -3
- package/dist/esm/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/dist/index.d.ts +12 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/TextField/TextField.d.ts +5 -3
- package/dist/types/components/Molecules/DatePicker/DatePicker.d.ts +7 -2
- package/package.json +1 -1
|
@@ -17,12 +17,14 @@ 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
|
+
/** Reference to the input element */
|
|
23
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
25
27
|
*
|
|
26
28
|
*/
|
|
27
|
-
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
29
|
+
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, inputRef, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
28
30
|
export default TextField;
|
|
@@ -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,14 +153,16 @@ 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
|
+
/** Reference to the input element */
|
|
159
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
158
160
|
}
|
|
159
161
|
/**
|
|
160
162
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
161
163
|
*
|
|
162
164
|
*/
|
|
163
|
-
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
165
|
+
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, inputRef, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
164
166
|
|
|
165
167
|
interface AccordionProps {
|
|
166
168
|
/**
|
|
@@ -326,12 +328,17 @@ interface AppBarProps {
|
|
|
326
328
|
declare const AppBar: ({ icon, isBeta, appName, version, children, customClass, lastUpdated, lastUpdatedTooltip, description, tooltipContent, rightAddornment, backgroundColor, backgroundImage, backgroundGradient, }: PropsWithChildren<AppBarProps>) => React.JSX.Element;
|
|
327
329
|
|
|
328
330
|
interface DatePickerProps {
|
|
329
|
-
/** Custom css class to customize the styling */
|
|
330
|
-
|
|
331
|
+
/** Custom css class to customize the styling if input. Used TextField from SDS */
|
|
332
|
+
inputCustomClass?: string;
|
|
331
333
|
/** Format of the date to be displayed. Default: ``MMMM d, yyyy`` */
|
|
332
334
|
dateFormat?: string;
|
|
333
335
|
/** Callback called when the date is updated. Return standard JS Date object */
|
|
334
336
|
onDateChange?: (date: Date | null) => void;
|
|
337
|
+
/** Start date of the date picker. Use anything which could be converted to date.
|
|
338
|
+
* If undefined or not provided - current day will be selected.
|
|
339
|
+
* If null or any falsy value - field will be empty
|
|
340
|
+
* */
|
|
341
|
+
startDate?: string | number | Date | undefined;
|
|
335
342
|
}
|
|
336
343
|
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
337
344
|
|