bugfix
: Exported Actions module.
feature
: FieldVisibility
now accepts the children
prop to allow a custom dropdown button.
feature
: EnumInput
can now be passed options of of type SelectOption | string
for more customizability.
feature
: Enhanced the way to customize actions for ModelForm
and ModelTable
. Can alter the underlying button by the actionOptions.actionProps
prop or by expanding the model component down to its primitive components: EditAction, CancelEditAction, SubmitAction, DeleteAction
.
bugfix
: Fixed delay on form values populating FormDisplay
.
upgrade
: [email protected]
bugfix
: z-index of select components were using react-select
's default z-index and not the override version.
feature
: Can now set which rows are "selected" to trigger its selected-row background color.bugfix
: Table resizing now does not allow you to go less than the content width for a brief momentbugfix
: No more default widths set, now uses the default behavior of the auto growing behavior of a table column to fit to the width of the table.bugfix
: FixedsnakeToCamelCase
to accept numbers.bugfix
:EnumInput
can now support multi values.cleanup
: Several default props moved to baseSelectInput
component.stories
: Added stories forEnumInput, ModelInput, SelectInput
typescript
: Fixed typings onEnumInput.value
andSelecInput.props
css
: Set z-index 20 toSelectInput
.css
: Add scrollbar toFieldVisibility
.packages
: Upgraded[email protected]
css
: Sticky action column now works on chrome.
css
: Sticky action column + headercss
: Scrollbar for select inputs are now consistent with Shadcnbugfix
:BooleanDisplay
can now handle null values.bugfix
:NumberInputs
can now be empty.
bugfix
: ModelSelect was always in creatable select mode; fixed. Fixed typings for ModelSelect to support creatable.css
: Consistent styling for select-inputscss
: Consistent datetime input dimensions.css
: Removed z-index from scrollbar.packages
: Updatedreact-day-picker
andcross-spawn
feature
:ModelDisplay
now acceptsnoneValue
which is the display to show when the value is either an empty array, null, or undefined.
feature
:EnumInput
which acceptsoptions: string[]; value: string
andEnumDisplay
to display the string[].feature
:SelectInput
can turn into aCreatable
select by passingisCreatable=true
to its props.feature
: defaults on selects to havemenuShouldBlockScroll
andmenuPortalTarget={document.body}
feature
: Pagination per page select in not searchable anymore.feature
:ModelInput
now has default props forclearValue, isClearable, closeMenuOnSelect
for when an array is passed as a value.feature
: Added forward ref toModelDisplay
ts
:SelectInput
has correct typescript for its props.bugfix
:FormError
didn't appear when there was an error; fixed.bugfix
:id
passed properly to input ofSelectInput
storybook
: ModelIndexPage's first row bigger than the rest; fixed.
feature
: Shadcn Datetime input.feature
: Table now has per page options.bugfix
: Table pads bottom properly when scrollbar exists.bugfix
:ModelDisplay
now showsNone
when it is an empty list.bugfix
:SelectInput
now matches rest of basic input's font size.bugfix
: Now able to overrideModelFormContent
.enhancement
: Import sorting using prettier.
feature
: Combined ModelListInput
and ModelListDisplay
(as well as for the model item counterparts). Removed selectoption
from fieldOptions
due to inputProps
being robust enough to do that and more.
package
: upgraded all packages.feature
: addedinputProps
anddisplayProps
toFieldOptions
feature
: addednull/undefined
checks on inputs to default to the primitive type.feature
:ModelListDisplay
basic display component added.bugfix
: select input's ring color now using thering
css variable.
bugfix
: Fixedlabel
infieldOptions
not showing up onModelForm
.enhancement
: Removed defaultmenuPortalTarget
prop fromSelectInput
.enhancement
: Replaced_display_value
withdisplayValue
for consistent naming conventions.
bugfix
:SelectInput
's options now allow any DataType for its options to utilize thegetOptionLabel
andgetOptionValue
props. The options passed intofieldOptions
forModelTable/ModelForm
can be accessed from the form control byselectoptions
.
feature
:CreatableSelectInput
exposes theCreatableSelect
from react-select.bugfix
: Table column resizing no longer affects other columns and work as intended.bugfix
: WhenonUpdate
forModelForm
andModelTable
is set to be undefined, hide the edit button.
feature
: react-select now used under the hood for select components.feature
:ModelTable
can now be resized.feature
:ModelTable
's internalScrollAreaWrapper
andBorderWrapper
classNames can now be accessed fromscrollable/bordered
props intableOptions
feature
:ModelTable
andModelForm
now exposes mainUseFormProps
from react-hook-form.- This allows developers to configure the options for the form implemented under the hood for ModelTable and ModelForm.
- Default options are configured to have
mode="onSubmit"
andcriteriaMode="all"
.
feature
: Action functions passed to ModelTable and ModelForm now contains onEdit and onEditCancel handlers to toggle between input and display modes; onEditCancel resets the form as well.removed
:Loading
directory removed in usage ofisSubmitting
which can be accessed from react-hook-form. Spinner deemed unused and replaced with a lucide spinner icon inside of a button.refactor
:Form
no longer supports render functions; instead it utilizes radix UI Slots to pass form props to child input.- Comes with
FormError
,FormLabel
, andFormControl
.
- Comes with
refactor
:ModelTable
props moved around for ease of use.data
is required as TableFallback no longer presents a spinner on undefined data.refactor
:ModelForm
has been refactored in its entirety to utilize the new Form components.
bugfix
: Pagination className typescript error fixed.css
: Added default padding around pagination and padding to last row ofModelTable
when overflown.
feature
:ModelTable
can now make columns visible or not based off of toggles.feature
:ModelTable: columnOptions
havehidden: boolean
prop to hide columns completely and cannot be made visible.story
: Table column DnD story added under Table > TableGuidetypescript
:SearchResult.extra
was supposed to be optional per magql-sqlalchemy docstypescript
: Extra type safety onModelTable
'scolumnOptions
based off offields
prop.bugfix
: Escape key press now resets table row form.css
: Buttons spacing inModelTable
andModelForm
backlog
:ModelIndexSortSetting
is backlogged until it becomes more customizable.
feature
: AddedModelFilter
; A basic filters UI for ModelIndex that can be customized.feature
: AddedModelCheckDelete
; A basic delete confirmation UI. #5cleanup
: RemoveduseTableView
due to just being a useState for tableView with minor functionality. (reduces the amount to know about this repo)