Skip to content

Commit

Permalink
Clean up merge
Browse files Browse the repository at this point in the history
  • Loading branch information
20BBrown14 committed Feb 1, 2022
1 parent b061453 commit 6d739ec
Show file tree
Hide file tree
Showing 10 changed files with 444 additions and 341 deletions.
450 changes: 427 additions & 23 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"nuke-everything": "rm -rf ./dist && rm -rf ./node_modules && rm -f package-lock.json",
"commit": "npx git-cz",
"format": "npx prettier --write 'src/**/*.{js,ts,tsx}'",
"format.ci": "npx prettier --check './{pages,src}/**/*.{js,ts,tsx}'",
"docs": "cd SQFormDocs && npm start",
"build-docs": "cd SQFormDocs && npm ci && npm run build"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import SQFormDatePicker, {SQFormDatePickerProps} from './SQFormDatePicker';
import {useForm} from './useForm';
import type {BaseFieldProps} from 'types';

export interface SQFormDatePickerWithCalendarInputOnlyProps extends BaseFieldProps {
export interface SQFormDatePickerWithCalendarInputOnlyProps
extends BaseFieldProps {
/** Disabled property to disable the input if true */
isDisabled?: boolean;
/** Placeholder text used inside the input field to provide hints to the user */
Expand Down
72 changes: 0 additions & 72 deletions src/components/SQForm/SQFormMaskedReadOnlyField.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/components/SQForm/SQFormMaskedReadOnlyField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ interface TextFieldMaskProps extends React.HTMLAttributes<HTMLInputElement> {
mask?: maskProp;
}

export interface SQFormMaskedReadOnlyFieldProps extends SQFormReadOnlyFieldProps {
export interface SQFormMaskedReadOnlyFieldProps
extends SQFormReadOnlyFieldProps {
/** Valid mask array; custom or from utils/masks.js */
mask?: maskProp;
/** Placeholder text used inside the input field to provide hints to the user */
Expand Down
117 changes: 0 additions & 117 deletions src/components/SQForm/SQFormMaskedTextField.js

This file was deleted.

57 changes: 0 additions & 57 deletions src/components/SQForm/SQFormReadOnlyField.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/SQForm/SQFormResetButtonWithConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ function SQFormResetButtonWithConfirmation({
confirmationContent,
confirmationTitle = 'Reset Form',
variant = 'contained',
onReset
onReset,
}: SQFormResetButtonWithConfirmationProps): JSX.Element {
const {isDialogOpen, openDialog, closeDialog} = useDialog();
const {dirty, handleReset} = useFormButton({
isDisabled,
buttonType: BUTTON_TYPES.RESET,
shouldRequireFieldUpdates: false
shouldRequireFieldUpdates: false,
});

const handlePrimaryButtonClick = () => {
Expand Down
60 changes: 0 additions & 60 deletions src/components/SQForm/useFormButton.js

This file was deleted.

Loading

0 comments on commit 6d739ec

Please sign in to comment.