Repository navigation
feat: export the props type of every component - #965
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
commit: |
# Conflicts: # packages/react/index.tsx
# Conflicts: # packages/react/components/radio/radio.tsx
Summary
@raystack/apsara. Root parts use<Component>Props(TabsProps,CheckboxProps), asChatPanelPropsandPromptInputPropsalready did. Parts keep their names (TabsTabProps,CheckboxGroupProps).RangePickerSlotPropsis exported next toDatePickerSlotProps.AccordionPropsandRadioGroupPropskeep theValuetype parameter from feat: [accordion, radio] add generic value types #957, for exampleRadioGroupProps<Plan>.BoxPropstoFlexProps,ToolbarPropstoDataViewToolbarProps,DisplayControlsPropstoDataViewDisplayControlsProps,DisplaySettingsPropstoDataTableDisplayControlsProps,VirtualizedContentPropstoDataTableVirtualizedContentPropsandSidebarNavigationGroupPropstoSidebarGroupProps. None of these names could be imported before.refonCommand.Content,closeLabelonDrawer.Content, andchildrenonDataTable,DataViewandDataView.Toolbar.Tooltip.Triggertakes theTooltipTriggerPropsit declares instead of the Base UI props. Each exported type is what its part accepts.add-new-componentskill checks that a new component's props types are listed indist/index.d.tsafter the build.AGENTS.mdsays to export them with the component.ComponentProps<typeof Tabs.List>for them.Closes #877