@sequencing/design-system 1.0.20 → 1.0.22

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.
@@ -4,11 +4,15 @@ interface Tab {
4
4
  label: ReactNode;
5
5
  tabId: number;
6
6
  chip?: ReactNode;
7
+ customClass?: string;
7
8
  }
8
9
  export interface TabMenuProps {
9
10
  /** Custom css class to customize the stylings */
10
11
  customClass?: string;
11
- /** Custom css class to apply to individual tabs */
12
+ /**
13
+ * Custom css class to apply to all individual tabs. For full control over individual tabs' classes, set the `customClass`
14
+ * property individually on the `tabs` array
15
+ */
12
16
  tabCustomClass?: string;
13
17
  /** This prop determines tab's 'value' for purposes of switching tabs */
14
18
  tabs: Tab[];
@@ -4,11 +4,11 @@ export interface TextFieldProps {
4
4
  customClass?: string;
5
5
  /** Placeholder when there's no text in the field */
6
6
  placeholder?: string;
7
- /** If ``true``, a small button will appear at the right side of the text field
7
+ /** If ``true``, a small button will appear on the right side of the text field
8
8
  * to clear its contents
9
9
  */
10
10
  showClearButton?: boolean;
11
- /** Text to render in the field */
11
+ /** Text to render in the field. You can omit it if you want to have uncontrolled input */
12
12
  value?: string;
13
13
  /**
14
14
  * The look and feel of the link.
@@ -19,7 +19,7 @@ export interface TextFieldProps {
19
19
  onChange?: (value: string) => void;
20
20
  /** Callback called when the input is clicked */
21
21
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
22
- /** Reference to the input element */
22
+ /** Reference to the input element. You must provide it if you want to have clear button for uncontrolled input */
23
23
  inputRef?: React.RefObject<HTMLInputElement>;
24
24
  /** Icon to display inside the text field */
25
25
  icon?: string;
package/dist/index.d.ts CHANGED
@@ -140,11 +140,11 @@ interface TextFieldProps {
140
140
  customClass?: string;
141
141
  /** Placeholder when there's no text in the field */
142
142
  placeholder?: string;
143
- /** If ``true``, a small button will appear at the right side of the text field
143
+ /** If ``true``, a small button will appear on the right side of the text field
144
144
  * to clear its contents
145
145
  */
146
146
  showClearButton?: boolean;
147
- /** Text to render in the field */
147
+ /** Text to render in the field. You can omit it if you want to have uncontrolled input */
148
148
  value?: string;
149
149
  /**
150
150
  * The look and feel of the link.
@@ -155,7 +155,7 @@ interface TextFieldProps {
155
155
  onChange?: (value: string) => void;
156
156
  /** Callback called when the input is clicked */
157
157
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
158
- /** Reference to the input element */
158
+ /** Reference to the input element. You must provide it if you want to have clear button for uncontrolled input */
159
159
  inputRef?: React.RefObject<HTMLInputElement>;
160
160
  /** Icon to display inside the text field */
161
161
  icon?: string;
@@ -209,11 +209,15 @@ interface Tab {
209
209
  label: ReactNode;
210
210
  tabId: number;
211
211
  chip?: ReactNode;
212
+ customClass?: string;
212
213
  }
213
214
  interface TabMenuProps {
214
215
  /** Custom css class to customize the stylings */
215
216
  customClass?: string;
216
- /** Custom css class to apply to individual tabs */
217
+ /**
218
+ * Custom css class to apply to all individual tabs. For full control over individual tabs' classes, set the `customClass`
219
+ * property individually on the `tabs` array
220
+ */
217
221
  tabCustomClass?: string;
218
222
  /** This prop determines tab's 'value' for purposes of switching tabs */
219
223
  tabs: Tab[];