Skip to content

Commit

Permalink
Quick fix existing platform-bible-react build errors (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcouch-sil authored May 20, 2024
2 parents b90bf2e + 994a218 commit 5003dc5
Show file tree
Hide file tree
Showing 11 changed files with 2,538 additions and 2,275 deletions.
10 changes: 10 additions & 0 deletions lib/platform-bible-react/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ module.exports = {
rules: {
'no-console': 'off',
},
overrides: [
{
files: ['./src/components/shadcn-ui/*'],
rules: {
// These files are copy/pasted boilerplate, so we want to avoid changing them where
// appropriate
'import/prefer-default-export': 'off',
},
},
],
settings: {
'import/resolver': {
typescript: {
Expand Down
583 changes: 349 additions & 234 deletions lib/platform-bible-react/dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

30 changes: 8 additions & 22 deletions lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ export type ButtonProps = React$1.PropsWithChildren<{
/**
* Button a user can click to do something
*
* Thanks to MUI for heavy inspiration and documentation
* https://mui.com/material-ui/getting-started/overview/
* Thanks to Shadcn for heavy inspiration and documentation
* https://ui.shadcn.com/docs/components/button
*/
export declare function Button({ id, isDisabled, className, onClick, onContextMenu, children, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
export type ChapterRangeSelectorProps = {
Expand Down Expand Up @@ -514,10 +514,8 @@ export type SearchBarProps = {
onSearch: (searchQuery: string) => void;
/** Optional string that appears in the search bar without a search string */
placeholder?: string;
/** Optional boolean to set the input base to full width */
isFullWidth?: boolean;
};
export function SearchBar({ onSearch, placeholder, isFullWidth }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
export function SearchBar({ onSearch, placeholder }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
export type SliderProps = {
/** Optional unique identifier */
id?: string;
Expand Down Expand Up @@ -894,12 +892,6 @@ export type TableProps<R> = {
*/
export declare function Table<R>({ columns, sortColumns, onSortColumnsChange, onColumnResize, defaultColumnWidth, defaultColumnMinWidth, defaultColumnMaxWidth, defaultColumnSortable, defaultColumnResizable, rows, enableSelectColumn, selectColumnWidth, rowKeyGetter, rowHeight, headerRowHeight, selectedRows, onSelectedRowsChange, onRowsChange, onCellClick, onCellDoubleClick, onCellContextMenu, onCellKeyDown, direction, enableVirtualization, onCopy, onPaste, onScroll, className, "data-testid": testId, }: TableProps<R>): import("react/jsx-runtime").JSX.Element;
export type TextFieldProps = {
/**
* The variant to use.
*
* @default 'outlined'
*/
variant?: "outlined" | "filled";
/** Optional unique identifier */
id?: string;
/**
Expand All @@ -914,12 +906,6 @@ export type TextFieldProps = {
* @default false
*/
hasError?: boolean;
/**
* If `true`, the input will take up the full width of its container.
*
* @default false
*/
isFullWidth?: boolean;
/** Text that gives the user instructions on what contents the TextField expects */
helperText?: string;
/** The title of the TextField */
Expand All @@ -935,9 +921,9 @@ export type TextFieldProps = {
/** Additional css classes to help with unique styling of the text field */
className?: string;
/** Starting value for the text field if it is not controlled */
defaultValue?: unknown;
defaultValue?: string | number;
/** Value of the text field if controlled */
value?: unknown;
value?: string | number;
/** Triggers when content of textfield is changed */
onChange?: React$1.ChangeEventHandler<HTMLInputElement>;
/** Triggers when textfield gets focus */
Expand All @@ -948,10 +934,10 @@ export type TextFieldProps = {
/**
* Text input field
*
* Thanks to MUI for heavy inspiration and documentation
* https://mui.com/material-ui/getting-started/overview/
* Thanks to Shadcn for heavy inspiration and documentation
* https://ui.shadcn.com/docs/components/input#with-label
*/
export declare function TextField({ variant, id, isDisabled, hasError, isFullWidth, helperText, label, placeholder, isRequired, className, defaultValue, value, onChange, onFocus, onBlur, }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
export declare function TextField({ id, isDisabled, hasError, helperText, label, placeholder, isRequired, className, defaultValue, value, onChange, onFocus, onBlur, }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
export type ToolbarProps = React$1.PropsWithChildren<{
/** The handler to use for menu commands (and eventually toolbar commands). */
commandHandler: CommandHandler;
Expand Down
Loading

0 comments on commit 5003dc5

Please sign in to comment.