@sequencing/design-system 1.0.13 → 1.0.15
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 +36 -1
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +8 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Atoms/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/Atoms/TextField/TextField.d.ts +6 -4
- package/dist/esm/types/components/Molecules/DatePicker/DatePicker.d.ts +12 -0
- package/dist/esm/types/components/Molecules/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +18 -6
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Atoms/Button/Button.d.ts +1 -1
- package/dist/types/components/Atoms/TextField/TextField.d.ts +6 -4
- package/dist/types/components/Molecules/DatePicker/DatePicker.d.ts +12 -0
- package/dist/types/components/Molecules/index.d.ts +2 -0
- package/package.json +2 -1
|
@@ -17,7 +17,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
17
17
|
*/
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
/** Controls the look and feel of the button. Default: ``primary`` */
|
|
20
|
-
variant?: "fancy" | "primary" | "secondary" | "outlined" | "outlinedSecondary" | "outlinedDanger" | "outlinedWarning" | "outlinedWhite" | "danger" | "warning" | "white" | "text" | "textSecondary";
|
|
20
|
+
variant?: "fancy" | "primary" | "secondary" | "outlined" | "outlinedSecondary" | "outlinedDanger" | "outlinedWarning" | "outlinedWhite" | "danger" | "warning" | "white" | "text" | "textSecondary" | "success" | "outlinedSuccess";
|
|
21
21
|
/** Controls the size of the button. Default: ``medium`` */
|
|
22
22
|
size?: "small" | "medium" | "large";
|
|
23
23
|
/** If present, display an icon in the button label. */
|
|
@@ -6,21 +6,23 @@ export interface TextFieldProps {
|
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
/** If ``true``, a small button will appear at the right side of the text field
|
|
8
8
|
* to clear its contents
|
|
9
|
-
|
|
9
|
+
*/
|
|
10
10
|
showClearButton?: boolean;
|
|
11
11
|
/** Text to render in the field */
|
|
12
12
|
value?: string;
|
|
13
13
|
/**
|
|
14
14
|
* The look and feel of the link.
|
|
15
15
|
* Default: ``primary``
|
|
16
|
-
|
|
16
|
+
*/
|
|
17
17
|
variant?: "primary";
|
|
18
18
|
/** Callback called when the text is updated */
|
|
19
19
|
onChange?: (value: string) => void;
|
|
20
|
+
/** Callback called when the text is clicked */
|
|
21
|
+
onClick?: (value: string) => void;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* The Text Field component renders a simple input field with SDS stylings applied.
|
|
23
25
|
*
|
|
24
|
-
*/
|
|
25
|
-
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
26
|
+
*/
|
|
27
|
+
declare const TextField: ({ value, customClass, placeholder, showClearButton, variant, onChange, onClick, }: PropsWithChildren<TextFieldProps>) => React.JSX.Element;
|
|
26
28
|
export default TextField;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-datepicker/dist/react-datepicker-cssmodules.css";
|
|
3
|
+
export interface DatePickerProps {
|
|
4
|
+
/** Custom css class to customize the styling */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Format of the date to be displayed. Default: ``MMMM d, yyyy`` */
|
|
7
|
+
dateFormat?: string;
|
|
8
|
+
/** Callback called when the date is updated. Return standard JS Date object */
|
|
9
|
+
onDateChange?: (date: Date | null) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
12
|
+
export default DatePicker;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as Modal } from "./Modal/Modal";
|
|
2
2
|
export { default as AppBar } from "./AppBar/AppBar";
|
|
3
|
+
export { default as DatePicker } from "./DatePicker/DatePicker";
|
|
3
4
|
export type { AppBarProps } from "./AppBar/AppBar";
|
|
4
5
|
export type { ModalProps } from "./Modal/Modal";
|
|
6
|
+
export type { DatePickerProps } from "./DatePicker/DatePicker";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencing/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Sequencing Design System",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\"",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
],
|
|
62
62
|
"types": "index",
|
|
63
63
|
"dependencies": {
|
|
64
|
+
"react-datepicker": "^7.4.0",
|
|
64
65
|
"react-instantsearch-dom": "^6.40.0",
|
|
65
66
|
"rollup-plugin-peer-deps-external": "^2.2.4"
|
|
66
67
|
},
|