Skip to content

Commit 41b52d5

Browse files
committed
Update stories typings
- update components defaultProps
1 parent d0fb8cc commit 41b52d5

File tree

75 files changed

+599
-473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+599
-473
lines changed

src/ButtonGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ ButtonGroup.defaultProps = {
6262
shade: 'mid',
6363
size: 'md',
6464
variant: 'primary',
65-
};
65+
} as const;

src/ButtonSplit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ ButtonSplit.defaultProps = {
143143
shade: 'mid',
144144
size: 'md',
145145
variant: 'primary',
146-
};
146+
} as const;
147147

148148
export { MenuDivider as ButtonSplitDivider, MenuItem as ButtonSplitItem } from './Menu';

src/CopyToClipboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ CopyToClipboard.defaultProps = {
104104
size: 16,
105105
tooltipCopiedText: 'Copied!',
106106
tooltipText: 'Copy',
107-
};
107+
} as const;

src/DatePicker/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ DatePickerInput.defaultProps = {
255255
showRangeApply: false,
256256
variant: 'primary',
257257
width: 'auto',
258-
};
258+
} as const;

src/DatePicker/Range.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,4 @@ DatePickerRange.defaultProps = {
151151
...defaultProps,
152152
formatLocale: 'en-US',
153153
showApply: false,
154-
};
154+
} as const;

src/DatePicker/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
export const defaultProps = {
2727
currentMonthLabel: 'Go to today',
2828
variant: 'primary',
29-
};
29+
} as const;
3030

3131
export function getNumberOfMonths(fromDate?: Date | string, toDate?: Date | string): number {
3232
if (fromDate && toDate) {

src/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ Dialog.defaultProps = {
159159
textAlign: 'left',
160160
variant: 'primary',
161161
width: 380,
162-
};
162+
} as const;

src/Divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ Divider.defaultProps = {
162162
shade: 'light',
163163
size: 'regular',
164164
variant: 'gray',
165-
};
165+
} as const;

src/Dropdown/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,4 @@ Dropdown.defaultProps = {
203203
shade: 'mid',
204204
variant: 'primary',
205205
width: 260,
206-
};
206+
} as const;

src/Field/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,6 @@ Field.defaultProps = {
187187
required: false,
188188
skipValidation: false,
189189
type: 'text',
190-
};
190+
} as const;
191191

192192
export type { FieldProps } from './types';

0 commit comments

Comments
 (0)